re PR target/50566 ([avr]: Add support for better logging similar to -mdeb)
[gcc.git] / gcc / ChangeLog
1 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
2
3 PR target/50566
4 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
5 * config/avr/avr.c (avr_address_cost): Use it.
6 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
7 (avr_log_vadump): Unknown %-codes finish printing.
8
9 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10
11 PR inline-asm/50571
12 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
13 input constraints allow mem and not reg, pass true instead of
14 false as second argument to maybe_fold_reference.
15
16 PR tree-optimization/46309
17 * fold-const.c (make_range, merge_ranges): Remove prototypes.
18 (make_range_step): New function.
19 (make_range): Use it.
20 * tree.h (make_range_step): New prototypes.
21 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
22 * tree-ssa-reassoc.c: Include diagnostic-core.h.
23 (struct range_entry): New type.
24 (init_range_entry, range_entry_cmp, update_range_test,
25 optimize_range_tests): New functions.
26 (reassociate_bb): Call optimize_range_tests.
27
28 2011-09-30 Jakub Jelinek <jakub@redhat.com>
29 Richard Guenther <rguenther@suse.de>
30
31 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
32 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
33 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
34 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
35 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
36 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
37
38 2011-09-30 Jan Beulich <jbeulich@suse.com>
39
40 * lto-cgraph.c (output_cgraph): Remove processing of
41 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
42 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
43 lto_input_toplevel_asms() instead.
44 * lto-section-in.c (lto_section_name): Add "asm" entry.
45 * lto-streamer-in.c (lto_input_toplevel_asms): New.
46 * lto-streamer-out.c (lto_output_toplevel_asms): New.
47 * lto-streamer.h (LTO_minor_version): Bump.
48 (enum lto_section_type): Add LTO_section_asm.
49 (struct lto_asm_header): New.
50 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
51 * tree-streamer.h (streamer_write_string_cst): Declare.
52 * tree-streamer-out.c (write_string_cst): Rename to
53 streamer_write_string_cst and make global. Handle incoming string
54 being NULL.
55 (streamer_write_tree_header): Adjust call to renamed function.
56
57 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
58
59 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
60 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
61 modulo_last_stage): New static variables.
62 (set_modulo_params, discard_delay_pairs_above): New functions.
63 (struct delay_pair): New member stages.
64 (htab_i2_traverse, htab_i1_traverse): New static functions.
65 (record_delay_slot_pair): New arg stages. All callers changed.
66 Record it.
67 (pair_delay): Take stages into account.
68 (add_delay_dependencies): Don't do so for stage pairs.
69 (struct sched_block_state): New member modulo_epilogue.
70 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
71 (unschedule_insns_until): Decrease modulo_insns_scheduled.
72 Set HARD_DEP without using or.
73 (resolve_dependencies): New static function.
74 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
75 If it is true, allow only insns with INSN_EXACT_TICK set.
76 (schedule_block): Return bool, always true for normal scheduling,
77 true or false depending on modulo scheduling success otherwise.
78 Add bookkeeping for modulo scheduling, and call resolve_dependencies
79 on everything left over after a modulo schedule.
80 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
81 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
82 declarations.
83 (set_modulo_params, discard_delay_pairs_above): Declare.
84 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
85 * doc/invoke.texi (--param): Document it.
86
87 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
88 New arg modulo_scheduling. All callers changed. Move note handling
89 code here from schedule_ebbs.
90 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
91 out of schedule_ebbs.
92 (schedule_ebbs): Call them. Remove note handling code moved to
93 schedule_ebb.
94 * sched-int.h (schedule_ebb, schedule_ebbs_init,
95 schedule_ebbs_finish): Declare.
96
97 2011-09-30 Richard Guenther <rguenther@suse.de>
98
99 PR middle-end/50574
100 * tree-cfg.c (verify_gimple_comparison): Compare component
101 mode sizes for vector comparisons.
102
103 2011-09-30 Revital Eres <revital.eres@linaro.org>
104
105 * ddg.c (autoinc_var_is_used_p): New function.
106 (create_ddg_dep_from_intra_loop_link,
107 add_cross_iteration_register_deps): Call it.
108 * ddg.h (autoinc_var_is_used_p): Declare.
109 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
110 (sms_schedule): Handle instructions with REG_INC.
111
112 2011-09-30 Revital Eres <revital.eres@linaro.org>
113
114 * modulo-sched.c (generate_reg_moves): Skip instructions that
115 do not set a register and verify no regmoves are created for
116 !single_set instructions.
117
118 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
119
120 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
121 insns.
122
123 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
124
125 PR target/50099
126 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
127 (qhs_zextenddi_op): New.
128 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
129 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
130 Distinguish between ARM and Thumb2 states.
131
132 2011-09-30 David S. Miller <davem@davemloft.net>
133
134 * config/sparc/sparc.opt (VIS2): New option.
135 * doc/invoke.texi: Document it.
136 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
137 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
138 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
139 (define_attr type): New insn type 'edgen'.
140 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
141 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
142 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
143 patterns.
144 * niagara.md: Handle edgen.
145 * niagara2.md: Likewise.
146 * ultra1_2.md: Likewise.
147 * ultra3.md: Likewise.
148 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
149 to 0x200 when TARGET_VIS2.
150 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
151 default when targetting capable cpus. TARGET_VIS2 implies
152 TARGET_VIS, clear and it when TARGET_FPU is disabled.
153 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
154 (sparc_expand_builtin): Fix predicate indexing when builtin returns
155 void.
156 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
157 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
158 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
159 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
160 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
161 * doc/extend.texi: Document new VIS 2.0 builtins.
162
163 2011-09-29 Nick Clifton <nickc@redhat.com>
164 Bernd Schmidt <bernds@codesourcery.com>
165
166 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header
167 file.
168 * config/frv/frvend.c: Likewise.
169 * config/frv/frv.c (frv_function_prologue): Move misplaced
170 CALL_ARG_LOCATION notes back to their proper locations.
171
172 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
173
174 PR target/50566
175 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
176 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
177 from avr_rtx_costs.
178 (avr_legitimate_address_p): Use avr_edump to print log information
179 filtered by avr_log.
180 (extra_constraint_Q): Ditto.
181 (avr_legitimize_address): Ditto.
182 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
183 (final_prescan_insn): Use avr_log.rtx_costs as filter.
184
185 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
186
187 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
188 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
189 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
190 NEON vector and structure modes to be tied.
191
192 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
193
194 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
195 forward declaration.
196 (remove_duplicate_close_phi): Detect and repair creation of
197 duplicate close-phis for a containing loop.
198
199 2011-09-27 Andi Kleen <ak@linux.intel.com>
200
201 * gcc.c (get_local_tick). Rename to get_random_number.
202 Read from /dev/urandom.
203 Add getpid call.
204 (compare_debug_dump_opt_spec_function): Drop getpid call.
205
206 2011-09-26 Andi Kleen <ak@linux.intel.com>
207
208 * toplev.c (init_local_tick): Try reading random seed from /dev/urandom
209
210 2011-09-26 Andi Kleen <ak@linux.intel.com>
211
212 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
213 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
214 Handle numerical random seed.
215 * lto-streamer.h (lto_file_decl_data): Change id to unsigned HOST_WIDE_INT.
216 * toplev.c (random_seed): Add.
217 (init_random_seed): Change for numerical random seed.
218 (get_random_seed): Return as HOST_WIDE_INT.
219 (set_random_seed): Crc32 existing string.
220 * toplev.h (get_random_seed): Change to numercal return.
221 * tree.c (get_file_function_name): Remove CRC. Handle numerical random seed.
222
223 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
224
225 PR target/50566
226 * config.gcc (extra_objs): Add avr-log.o for $target in:
227 avr-*-rtems*, avr-*-*.
228 * config/avr/t-avr (avr-log.o): New rule to compile...
229 * config/avr/avr-log.c: ...this new file.
230 * config/avr/avr.opt (mlog=): New option.
231 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
232 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
233 (avr_log_set_avr_log): New prototype.
234 (avr_log_t): New typedef.
235 (avr_log): New declaration.
236 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
237
238 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
239
240 * expr.c (do_store_flag): Expand vector comparison by
241 building an appropriate VEC_COND_EXPR.
242 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
243 (c_objc_common_truthvalue_conversion): Adjust.
244 * tree-vect-generic.c (do_compare): Helper function.
245 (expand_vector_comparison): Check if hardware supports
246 vector comparison of the given type or expand vector
247 piecewise.
248 (expand_vector_operation): Treat comparison as binary
249 operation of vector type.
250 (expand_vector_operations_1): Adjust.
251
252 2011-09-29 Richard Guenther <rguenther@suse.de>
253
254 * tree.c (build_opaque_vector_type): Make opaque vectors
255 variant types of the corresponding non-opaque type. Make
256 sure to share opaque vector types properly.
257
258 2011-09-29 David S. Miller <davem@davemloft.net>
259
260 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
261 UNSPEC_ARRAY32): New unspec.
262 (define_attr type): New type 'array'.
263 (array{8,16,32}<P:mode>_vis): New patterns.
264 * config/sparc/ultra1_2.md: Add reservations for 'array'.
265 * config/sparc/ultra3.md: Likewise.
266 * config/sparc/niagara.md: Likewise.
267 * config/sparc/niagara2.md: Likewise.
268 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
269 array builtins.
270 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
271 __vis_array32): New.
272 * doc/extend.texi: Document new VIS builtins.
273
274 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
275 (VIS pixel-compare insn): Just use <gcond:name>.
276
277 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
278 code iterator used, so just use <code>. There are two mode iterators
279 so explicitly use <GCM:gcm_name>.
280
281 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
282
283 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
284 Darwin >= 9.
285
286 2011-09-28 David S. Miller <davem@davemloft.net>
287
288 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
289 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
290 (UNSPEC_FCMP): New unspec.
291 (gcond): New code iterator.
292 (gcond_name): New code attr.
293 (GCM): New mode iterator.
294 (gcm_name): New mode attr.
295 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
296
297 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
298
299 PR target/49486
300 * config/sh/sh.md (negdi2): Move expansion into split to
301 allow more combination options. Add T_REG clobber.
302 (abssi2): New expander.
303 (*negdi2, *abssi2, *negabssi2): New insns.
304 (cneg): Change from insn to insn_and_split. Rename to
305 negsi_cond. Add alternative for non-SH4.
306
307 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
308
309 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
310 (neon_move_hi_quad_<mode>): Likewise.
311 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
312
313 2011-09-28 Nick Clifton <nickc@redhat.com>
314
315 * config/rx/predicates.md (rx_minmax_operand): New predicate.
316 Accepts immediates and a restricted subset of MEMs.
317 * config/rx/rx.md (int_modes): New iterator.
318 (smaxsi3, sminsi3): Delete and replace with...
319 (smax<int_mode>3, smin<int_mode>3): New patterns.
320 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
321
322 2011-09-28 Richard Guenther <rguenther@suse.de>
323
324 PR middle-end/50460
325 * fold-const.c (try_move_mult_to_index): Handle &a.array the
326 same as &a.array[0].
327
328 2011-09-28 Kai Tietz <ktietz@redhat.com>
329
330 * configure.ac: Add test for new section attribute
331 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
332 * config.in: Regenerated.
333 * configure: Regenerated.
334 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
335 new section flag "e" for excluded sections, if supported.
336 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
337
338 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
339
340 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
341 throughout file.
342
343 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
344
345 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
346 throughout file.
347
348 2011-09-27 Sriraman Tallam <tmsriram@google.com>
349
350 * output.h (SECTION_EXCLUDE): New macro.
351 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
352
353 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
354
355 * fwprop.c (forward_propagate_and_simplify): After checking
356 reg/subreg combinations, check whether the modes are the same.
357
358 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
359 Richard Sandiford <rdsandiford@googlemail.com>
360
361 * config/mips/mips.c (mips_add_cfa_restore): New function.
362 (mips16e_save_restore_reg): Use it.
363 (mips_restore_reg): Likewise. Split double FPRs for
364 REG_CFA_RESTORE notes.
365
366 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
367
368 PR middle-end/50386
369 PR middle-end/50326
370 * tree-sra.c (build_ref_for_model): Use the type of the field as
371 the type of the COMPONENT_REF.
372
373 2011-09-27 Jeff Law <law@redhat.com>
374
375 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
376 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
377 (find_if_case_1): Use the probability of the THEN clause when
378 determining if speculation is profitable.
379 (find_if_case_2): Similarly for the ELSE clause.
380
381 2011-09-27 Jakub Jelinek <jakub@redhat.com>
382
383 * common.opt: Add -foptimize-strlen option.
384 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
385 (tree-sssa-strlen.o): Add dependencies.
386 * opts.c (default_options_table): Enable -foptimize-strlen
387 by default at -O2 if not -Os.
388 * passes.c (init_optimization_passes): Add pass_strlen
389 after pass_object_sizes.
390 * timevar.def (TV_TREE_STRLEN): New timevar.
391 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
392 * tree-pass.h (pass_strlen): Declare.
393 * tree-ssa-strlen.c: New file.
394 * c-decl.c (merge_decls): If compatible stpcpy prototype
395 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
396
397 2011-09-27 Tom de Vries <tom@codesourcery.com>
398
399 PR middle-end/43864
400 * tree-ssa-tail-merge.c: New file.
401 (struct same_succ_def): Define.
402 (same_succ, const_same_succ): New typedef.
403 (struct bb_cluster_def): Define.
404 (bb_cluster, const_bb_cluster): New typedef.
405 (struct aux_bb_info): Define.
406 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
407 (gvn_uses_equal): New function.
408 (same_succ_print, same_succ_print_traverse, update_dep_bb)
409 (stmt_update_dep_bb, local_def, same_succ_hash)
410 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
411 (same_succ_reset): New function.
412 (same_succ_htab, same_succ_edge_flags)
413 (deleted_bbs, deleted_bb_preds): New var.
414 (debug_same_succ): New function.
415 (worklist): New var.
416 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
417 (init_worklist, delete_worklist, delete_basic_block_same_succ)
418 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
419 (print_cluster, debug_cluster, update_rep_bb)
420 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
421 (all_clusters): New var.
422 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
423 (merge_clusters, set_cluster): New function.
424 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
425 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
426 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
427 (find_clusters_1, find_clusters): New function.
428 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
429 (update_bbs): New var.
430 (apply_clusters): New function.
431 (update_debug_stmt, update_debug_stmts): New function.
432 (tail_merge_optimize): New function.
433 tree-pass.h (tail_merge_optimize): Declare.
434 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
435 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
436 (tree-ssa-tail-merge.o): New rule.
437 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
438 default at OPT_LEVELS_2_PLUS.
439 * tree-ssa-sccvn.c (vn_valueize): Move to ...
440 * tree-ssa-sccvn.h (vn_valueize): Here.
441 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
442 * common.opt (ftree-tail-merge): New switch.
443 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
444 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
445 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
446 (-ftree-tail-merge, max-tail-merge-comparisons)
447 (max-tail-merge-iterations): New item.
448
449 2011-09-27 Jan Hubicka <jh@suse.cz>
450
451 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
452
453 2011-09-27 Jan Hubicka <jh@suse.cz>
454
455 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
456 parameters passed by reference; handle loads from non-SSA scalars
457 and update comments.
458
459 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
460
461 PR rtl-optimization/50249
462 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
463 instead of opnum and type. All callers changed. Remove useless
464 declaration.
465 Search forward for other reloads of the same type for the same operand
466 using the same register; if any are found, return false.
467 (reload_regs_reach_end_p): Same argument changes; all callers changed.
468
469 2011-09-27 Andi Kleen <ak@linux.intel.com>
470 Jan Hubicka <jh@suse.cz>
471
472 * doc/invoke.texi (ffat-lto-objects): Document.
473 * toplev.c (compile_file): Do not output assembly when doing slim lto;
474 Output __gnu_slim_lto when doing slim lto.
475 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
476 (cgraph_optimize): Return early when doing slim lto.
477 * opts.c (finish_options): Complain about lack of linker plugin
478 when doing slim lto.
479 * common.opt (ffat-lto-objects): New.
480
481 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
482
483 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
484 between signed and unsigned.
485
486 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
487
488 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
489 vectorization.
490 (vectorizable_type_promotion): Likewise.
491 (vect_analyze_stmt): Call vectorizable_type_demotion and
492 vectorizable_type_promotion for basic blocks.
493 (supportable_widening_operation): Don't assume loop vectorization.
494 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
495 basic blocks. Update vectorization factor for basic block
496 vectorization.
497 (vect_analyze_slp_instance): Allow multiple types for basic block
498 vectorization. Recheck unrolling factor after construction of SLP
499 instance.
500
501 2011-09-27 Richard Guenther <rguenther@suse.de>
502
503 * tree-object-size.c (compute_object_sizes): Fix dumping of
504 folded statement.
505
506 2011-09-27 Richard Guenther <rguenther@suse.de>
507
508 PR tree-optimization/50363
509 * tree-ssa-pre.c (create_expression_by_pieces): Handle
510 pointer conversions in POINTER_PLUS_EXPRs properly.
511
512 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
513
514 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
515 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
516 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
517 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
518 that produce subreg moves. Define using VQX iterators.
519
520 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
521
522 * config/avr/avr.md (ashrqi3): Split alternative "n"
523 into its remaining parts C03, C04, C05, C06, C07 and describe
524 impact in CC by attribute "cc" appropriately.
525 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
526 by digging RTX.
527
528 2011-09-27 Jakub Jelinek <jakub@redhat.com>
529
530 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
531 from 3 x MAX_MACHINE_MODE.
532 (CONSTM1_RTX): Define.
533 * emit-rtl.c (const_tiny_rtx): Change into array of
534 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
535 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
536 CONSTM1_RTX.
537 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
538 MODE_VECTOR_INT modes.
539 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
540 Optimize if one operand is CONSTM1_RTX.
541 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
542 into mask | x.
543
544 2011-09-26 David S. Miller <davem@davemloft.net>
545
546 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
547 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
548 * config/sparc/visintrin.h: Update edge and pixel-compare
549 intrinsics to return 'long' instead of 'int'.
550 * doc/extend.texi: Update documentation to match.
551 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
552 flat, allow any instruction. Otherwise, when V9 allow parallels
553 which consist only of sets to registers outside of %o0 to %o5.
554 (sparc_vis_init_builtins): Update VIS builtin types for edge
555 and pixel-compare.
556
557 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
558 is enabled, mark %gsr as global.
559 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
560 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
561
562 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
563 which will now define __VIS and __VIS__ when -mvis is enabled.
564 * config/sparc/t-sparc: Likewise.
565 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
566 and add t-sparc to tmake_file for all sparc targets.
567 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
568 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
569
570 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
571 builtins for VIS vector addition and subtraction.
572 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
573 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
574 __vis_fpsub32, __vis_fpsub32s): New.
575 * doc/extend.texi: Document new VIS intrinsics.
576
577 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
578
579 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
580 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
581 EQ/NE comparisons against +/-1 in the case of unused-after,
582 non-ld-regs target.
583
584 2011-09-26 Jakub Jelinek <jakub@redhat.com>
585
586 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
587 gctx.into_ssa after push_gimplify_context.
588
589 * gimple.c (gimple_build_call_valist): New function.
590 * gimple.h (gimple_build_call_valist): New prototype.
591 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
592 (update_gimple_call): Likewise.
593 (update_call_from_tree): Use finish_update_gimple_call.
594 * tree-ssa-propagate.h (update_gimple_call): New prototype.
595
596 2011-09-26 Richard Guenther <rguenther@suse.de>
597
598 PR tree-optimization/50472
599 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
600 volatile references.
601
602 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
603
604 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
605 * target.def: (addr_space_subset_p): Likewise.
606
607 2011-09-26 Tom de Vries <tom@codesourcery.com>
608
609 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
610 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
611 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
612 of new var.
613
614 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
615
616 PR target/50465
617 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
618 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
619 output_reload_insisf.
620 (adjust_len): Set default to "no".
621 Remove alternative "yes". Add alternatives: "mov8", "mov16",
622 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
623 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
624 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
625 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
626 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
627 *lshrsi3_const): Set attribute "adjust_len".
628 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
629 (output_movsisf): Don't pass insn to output_reload_insisf.
630 (adjust_insn_length): Handle new alternatives to adjust_len.
631 Remove handling of ADJUST_LEN_YES. Clean-up code.
632
633 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
634
635 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
636 may_trap_p to detect loads that may trap of fault.
637
638 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
639
640 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
641 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
642 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
643 prototype.
644 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
645 * config/avr/avr.c: Rename output_reload_insisf_1 to
646 output_reload_in_const.
647 (avr_popcount_each_byte): Handle SFmode, too.
648 (output_reload_in_const): Change so it can handle HI loads, too.
649 Use avr_popcount_each_byte to work out if scratch register must be
650 created on the fly.
651 (output_reload_inhi): Rewrite using output_reload_in_const and...
652 (output_movhi): ...use it to print constants' loads.
653 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
654
655 2011-09-25 David S. Miller <davem@davemloft.net>
656
657 * config/sparc/constraints.md (C, P, Z): New constraints for
658 const_doube, const_int, and const_vector "all ones" values.
659 Make unused constraint letters comment match reality.
660 * config/sparc/predicates.md (const_all_ones_operand,
661 register_or_zero_or_all_ones_operand): New predicates.
662 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
663 as well as zero constants when VIS.
664 (sparc_legitimate_constant_p): Likewise.
665 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
666 (movsf_insn): Likewise
667 (movdi_insn_sp64): Add fone alternative.
668 (movdf_insn_sp32_v9): Likewise.
669 (movdf_insn_sp64): Likewise.
670
671 * configure.ac: Add feature check to make sure the assembler
672 supports the FMAF, HPC, and VIS 3.0 instructions found on
673 Niagara-3 and later cpus.
674 * configure: Rebuild.
675 * config.in: Likewise.
676 * config/sparc/sparc.opt: New option '-mfmaf'.
677 * config/sparc/sparc.md: Add float fused multiply-add patterns.
678 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
679 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
680 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
681 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
682 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
683 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
684 disabled.
685 (sparc_rtx_costs): Handle 'FMA'.
686 * doc/invoke.texi: Document -mfmaf.
687
688 2011-09-25 Jakub Jelinek <jakub@redhat.com>
689
690 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
691 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
692 DECL_BY_REFERENCE parameters.
693
694 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
695
696 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
697 if there is no outgoing edge.
698
699 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
700 integral types.
701
702 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
703
704 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
705 of vect_analyze_bb here.
706 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
707
708 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
709
710 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
711 Allow not simple iv if analyzing basic block.
712 (create_data_ref): Update call to dr_analyze_innermost.
713 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
714 * tree-loop-distribution.c (generate_memset_zero): Likewise.
715 * tree-predcom.c (find_looparound_phi): Likewise.
716 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
717
718 2011-09-24 David S. Miller <davem@davemloft.net>
719
720 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
721 (SPARC_GSR_REG): Define.
722 (FIXED_REGISTERS): Mark GSR as fixed.
723 (CALL_USED_REGISTERS): Mark GSR as call used.
724 (HARD_REGNO_NREGS): GSR is always 1 register.
725 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
726 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
727 (REGISTER_NAMES): Add "%gsr".
728 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
729 (UNSPEC_WRGSR): New unspec.
730 (GSR_REG): New constant.
731 (type): Add new insn type 'gsr'.
732 (fpack16_vis, fpackfix_vis, fpack32_vis,
733 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
734 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
735 rdgsr_v8plus): New expanders and insns.
736 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
737 using patterns which show that this is a plus in addition to a
738 modification of GSR_REG, instead of an unspec.
739 * config/sparc/ultra1_2.md: Handle 'gsr'.
740 * config/sparc/ultra3.md: Likewise.
741 * config/sparc/niagara.md: Likewise.
742 * config/sparc/niagara2.md: Likewise.
743 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
744 end of table.
745 (sparc_option_override): Make -mvis imply -mv8plus.
746 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
747 for %gsr.
748 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
749 __builtin_vis_read_gsr.
750 (sparc_expand_buildin): Handle builtins that take one argument and
751 return void.
752 (sparc_fold_builtin): Never fold writes to %gsr.
753 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
754 * doc/extend.texi: Document new VIS intrinsics.
755
756 2011-09-23 Jan Hubicka <jh@suse.cz>
757
758 * ipa-inline-transform.c (inline_call): Add comment.
759 * ipa-inline.h (inline_param_summary): New structure and vector.
760 (struct inline_edge_summary): Add param field.
761 * ipa-inline-analysis.c (CHANGED): New constant.
762 (add_clause): Handle CHANGED and NOT_CONSTANT.
763 (predicate_probability): New function.
764 (dump_condition): Dump CHANGED predicate.
765 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
766 of unknown function wide invariant.
767 (evaluate_conditions_for_edge): Handle change probabilities.
768 (inline_edge_duplication_hook): Copy param summaries.
769 (inline_edge_removal_hook): Free param summaries.
770 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
771 sizes; dump param summaries.
772 (will_be_nonconstant_predicate): Use CHANGED predicate.
773 (record_modified_bb_info): New structure.
774 (record_modified): New function.
775 (param_change_prob): New function.
776 (estimate_function_body_sizes): Compute param summaries.
777 (estimate_edge_size_and_time): Add probability argument.
778 (estimate_node_size_and_time): Add inline_param_summary argument;
779 handle predicate probabilities.
780 (remap_predicate): Fix formating.
781 (remap_edge_change_prob): New function.
782 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
783 (remap_edge_predicates): ... this one.
784 (inline_merge_summary): Remap edge summaries; handle predicate
785 probabilities; remove param summaries after we are done.
786 (do_estimate_edge_time): Update.
787 (do_estimate_edge_growth): Update.
788 (read_inline_edge_summary): Read param info.
789 (inline_read_summary): Fix formating.
790 (write_inline_edge_summary): Write param summaries.
791
792 2011-09-23 Jakub Jelinek <jakub@redhat.com>
793
794 * config/i386/i386.c (ix86_print_operand): Handle %~.
795 (ix86_print_operand_punct_valid_p): Return true also for '~'.
796 * config/i386/sse.md (i128): New mode_attr.
797 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
798 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
799 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
800 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
801 patterns, use "<sseinsnmode>" for "mode" attribute.
802 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
803 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
804 %~128 in the patterns, use "OI" for "mode" attribute.
805
806 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
807
808 PR target/50447
809 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
810 "tstsi", "compare".
811 (*cmpqi_sign_extend): Use s8_operand.
812 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
813 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
814 prototypes.
815 (out_tsthi, out_tstsi): Remove prototypes.
816 (avr_out_tsthi, avr_out_tstsi): New prototypes.
817 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
818 (avr_asm_len): Negative length now sets *plen to -length.
819 (compare_sign_p): Return bool instead of int.
820 (compare_diff_p, compare_eq_p): Ditto and make static.
821 (avr_out_tsthi): New function.
822 (avr_out_tstsi): New function.
823 (avr_out_compare): New function.
824 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
825 ADJUST_LEN_COMPARE.
826
827 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
828
829 PR target/50447
830 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
831 (addsi3): Rewrite using QI scratch register. Adjust text
832 peepholes using plus:SI.
833 (*addsi3_zero_extend.hi): New insn.
834 (*subsi3_zero_extend.hi): New insn.
835 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
836 (*subsi3_zero_extend): Ditto.
837 (subsi3): Change predicate #2 to register_operand.
838 * config/avr/avr-protos.h (avr_out_plus): New prototype.
839 (avr_out_plus_1): New static function.
840 (avr_out_plus): New function.
841 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
842
843 2011-09-23 Jakub Jelinek <jakub@redhat.com>
844
845 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
846 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
847
848 2011-09-23 Ian Lance Taylor <iant@google.com>
849
850 * godump.c (go_define): Treat a single character in single quotes,
851 or a string, as an operand.
852
853 2011-09-23 Martin Jambor <mjambor@suse.cz>
854
855 * ipa-prop.h (jump_func_type): Updated comments.
856 (ipa_known_type_data): New type.
857 (ipa_jump_func): Use it to describe known type jump functions.
858 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
859 reflect the new known type jump function contents.
860 (compute_known_type_jump_func): Likewise.
861 (combine_known_type_and_ancestor_jfs): Likewise.
862 (try_make_edge_direct_virtual_call): Likewise.
863 (ipa_write_jump_function): Likewise.
864 (ipa_read_jump_function): Likewise.
865 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
866 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
867 (propagate_accross_jump_function): Likewise.
868
869 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
870
871 PR target/50446
872 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
873 (rotlqi3_4): Turn insn into expander.
874 (*rotlqi3): New insn.
875 (rotlhi3, rotlsi3): Support rotate left/right by 1.
876 (*rotlhi2.1, *rotlhi2.15): New insns.
877 (*rotlsi2.1, *rotlsi2.31): New insns.
878 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
879
880 2011-09-23 Bin Cheng <bin.cheng@arm.com>
881
882 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
883
884 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
885
886 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
887
888 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
889
890 * reload.c (find_reloads): Set operand_mode to Pmode for address
891 operands consisting of just a CONST_INT.
892
893 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
894
895 PR target/50482
896 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
897 blendv, force op_true to register if it doesn't satisfy
898 nonimmediate_operand predicate.
899
900 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
901
902 PR middle-end/50113
903 PR middle-end/50061
904 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
905 get the locate.where_pad value for register-only arguments.
906 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
907 (arm_pad_reg_upward): Handle null types.
908
909 2011-09-22 Jan Hubicka <jh@suse.cz>
910
911 * ipa-inline-analysis.c: Fix overly long lines.
912
913 2011-09-22 Jan Hubicka <jh@suse.cz>
914
915 * ipa-inline-transform.c (inline_call): Always update jump functions
916 after inlining.
917 * ipa-inline.c (ipa_inline): Likewise; do not call
918 ipa_create_all_structures_for_iinln.
919 (ipa_inline): Always free jump functions.
920 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
921 (remap_edge_predicates): Fix pasto.
922 (inline_merge_summary): Remove nlined edge predicate; remove hack.
923 (inline_analyze_function): Always initialize jump functions.
924 (inline_generate_summary): Likewise.
925 (inline_write_summary): Always write jump functions when ipa-cp
926 is not doing that.
927 (inline_read_summary): Always read jump functions when ipa-cp
928 is not doing that.
929 * ipa-prop.c (iinlining_processed_edges): Remove.
930 (update_indirect_edges_after_inlining): Do not use
931 iinlining_processed_edges; instead set param_index to -1.
932 (propagate_info_to_inlined_callees): Only try to indirect inlining
933 when asked to do so; update jump functions of indirect calls, too;
934 remove jump functions of the inlined edge.
935 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
936 (ipa_create_all_structures_for_iinln): Remove.
937 (ipa_free_all_structures_after_iinln): Do not free
938 iinlining_processed_edges.
939 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
940
941 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
942
943 * config/arm/predicates.md (expandable_comparison_operator): New
944 predicate, extracted from...
945 (arm_comparison_operator): ...here.
946 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
947 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
948 (movdfcc): Use expandable_comparison_operator.
949
950 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
951
952 PR target/50447
953 PR target/50465
954 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
955 (avr_popcount_each_byte): New prototype.
956 * config/avr/avr.c (avr_popcount): New static function.
957 (avr_popcount_each_byte): New function.
958 (avr_out_bitop): New function.
959 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
960 avr_out_bitop. Cleanup code.
961 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
962 (Ca4, Co4, Cx4): New constraints.
963 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
964 alternative.
965 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
966 (andsi3, iorsi3, xorsi3): Ditto.
967 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
968
969 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
970
971 PR tree-optimization/50451
972 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
973 constant operands in reduction.
974 (vect_get_slp_defs): Don't create vector operand for NULL scalar
975 operand.
976
977 2011-09-22 David S. Miller <davem@davemloft.net>
978
979 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
980 fpack16, fpack32, fpackfix as const.
981
982 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
983 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
984 constants. Use them everywhere.
985
986 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
987
988 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
989 Added AND special case. Adapted comments.
990 (sh_rtx_costs): Added XOR and IOR case.
991
992 2011-09-21 Jan Hubicka <jh@suse.cz>
993
994 * ipa-inline-analsis.c (compute_inline_parameters): Set
995 cfun and current_function_decl.
996
997 2011-09-21 Jan Hubicka <jh@suse.cz>
998
999 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1000 handled components in parameter of builtin_constant_p.
1001 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1002
1003 2011-09-21 Jan Hubicka <jh@suse.cz>
1004
1005 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1006 * ipa-inline.h (estimate_edge_time): Fix pasto.
1007 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1008
1009 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1010
1011 * config/i386/i386.c (ix86_expand_sse_movcc): Use
1012 blendvps, blendvpd and pblendvb if possible.
1013
1014 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
1015
1016 PR target/50464
1017 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1018 operand 1 predicate to register_operand and operand 2 predicate
1019 to nonimmediate_operand.
1020 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1021 xop_pcmov, force op_true to register. Also, force op_false to
1022 register if it doesn't satisfy nonimmediate_operand predicate.
1023
1024 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
1025
1026 * config/i386/bmi2intrin.h (_mulx_u64): New.
1027 (_mulx_u32): Ditto.
1028
1029 2011-09-21 Jan Hubicka <jh@suse.cz>
1030
1031 PR tree-optimization/50433
1032 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1033 Use get_base_address.
1034
1035 2011-09-21 Jakub Jelinek <jakub@redhat.com>
1036
1037 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1038 nonimmediate_operand instead of register_operand predicate for operands
1039 1 and 2, force them into registers if expanding them as comparison.
1040 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
1041 V8HImode force into register just operand 1.
1042
1043 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1044
1045 PR target/45099
1046 * config/avr/avr.c (avr_function_arg_advance): Change error to
1047 warning if a fixed register is needed as function argument.
1048
1049 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
1050
1051 PR target/50449
1052 PR target/50465
1053 * config/avr/avr.md (adjust_len): New insn attribute.
1054 (*reload_insi, *reload_insf): Use it.
1055 (*movsi, *movsf): Use new interface of output_movsisf.
1056 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1057 * config/avr/avr.c (output_movsisf): Ditto.
1058 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1059 lengths of insns *reload_insi, *reload_insf.
1060 (output_reload_insisf_1): New static function.
1061 (output_reload_insisf): Use it.
1062
1063 2011-09-21 David S. Miller <davem@davemloft.net>
1064
1065 * config/sparc/sparc.c (def_builtin): Change from macro into function.
1066 (def_builtin_const): New.
1067 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1068 other than alignaddr and falignaddr.
1069
1070 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1071 UNSPEC_FCMPEQ): New unspec codes.
1072 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1073 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1074 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1075 new pixel compare VIS patterns.
1076 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1077 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1078 __vis_fcmpeq16, __vis_fcmpeq32): New.
1079 * doc/extend.texi: Document new pixel compare VIS intrinsics.
1080
1081 2011-09-21 Tom de Vries <tom@codesourcery.com>
1082
1083 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1084
1085 2011-09-20 David S. Miller <davem@davemloft.net>
1086
1087 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1088 (aligneddrl<P:mode>_vis): New pattern.
1089 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1090 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1091 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1092 alignaddrl insn, and adjust edge operations for updated types.
1093 * config/sparc/visintrin.h: Likewise.
1094 * doc/extend.texi: Make typing in VIS documentation match reality.
1095
1096 2011-09-20 Terry Guo <terry.guo@arm.com>
1097
1098 * config/arm/arm-arches.def: Add armv6s-m.
1099 * config/arm/arm-tables.opt: Regenerate.
1100
1101 2011-09-20 Wei Guozhi <carrot@google.com>
1102
1103 PR rtl-optimization/49452
1104 * postreload.c (reload_combine): Invalidate use information when across
1105 volatile insn.
1106
1107 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
1108
1109 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1110 Remove maintenance overhead.
1111 (haifa_sched_init, sched_finish): Update.
1112
1113 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1114
1115 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1116 to calculate unit, prefix_rep and prefix_data16 attributes.
1117 (*mov<mode>_internal): Ditto for unit attribute.
1118 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1119 (*movv2sf_internal): Ditto.
1120 * config/i386/sse.md (VI1248_256): Remove mode iterator.
1121 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1122 (*avx2_eq<mode>3): Ditto.
1123 (avx2_gt<mode>3): Ditto.
1124
1125 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
1126
1127 * config/i386/i386.md (maxmin): New code iterator.
1128 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1129 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1130 code iterator.
1131 (*avx2_<maxmin:code><mode>3): Macroize isn from
1132 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1133 maxmin code iterator.
1134 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1135 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1136 <umaxmin:code>v16qi3.
1137
1138 2011-09-19 Alan Modra <amodra@gmail.com>
1139 Michael Meissner <meissner@linux.vnet.ibm.com>
1140
1141 PR target/50341
1142 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1143 split the load of the indirect function's TOC from the call to
1144 prevent the compiler from moving the load of the new TOC above
1145 code that references the current function's TOC.
1146 (call_indirect_aix<ptrsize>_internal): Ditto.
1147 (call_indirect_aix<ptrsize>_nor11): Ditto.
1148 (call_indirect_aix<ptrsize>_internal2): Ditto.
1149 (call_value_indirect_aix<ptrsize>): Ditto.
1150 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1151 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1152 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1153
1154 2011-09-19 Jakub Jelinek <jakub@redhat.com>
1155
1156 * config/i386/sse.md (*sse4_1_extractps): Change into
1157 define_insn_and_split, add =x 0 n and =x x n alternatives
1158 and split them after reload.
1159
1160 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1161
1162 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1163
1164 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
1165
1166 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1167
1168 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
1169
1170 PR tree-optimization/50413
1171 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1172 a basic block if one of its data-refs can't be analyzed.
1173
1174 2011-09-19 Paul Brook <paul@codesourcery.com>
1175
1176 * config/arm/predicates.md (shift_amount_operand): Check constant
1177 shift count is in range.
1178 (const_shift_operand): Remove.
1179
1180 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
1181 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1182
1183 PR target/50091
1184 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1185 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1186
1187 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
1188
1189 * config/i386/bmiintrin.h: Remove tmp.
1190 * config/i386/tbmintrin.h: Likewise.
1191
1192 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1193
1194 PR tree-optimization/50414
1195 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1196 MIN_EXPR.
1197
1198 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
1199
1200 PR tree-optimization/50412
1201 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1202 acceses that require epilogue loop if vectorizing outer loop.
1203
1204 2011-09-17 David S. Miller <davem@davemloft.net>
1205
1206 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1207 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1208 New unspecs.
1209 (define_attr type): New type 'edge'.
1210 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1211 edge32l_vis): New patterns.
1212 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1213 * config/sparc/ultra3.md: Likewise.
1214 * config/sparc/niagara.md: Likewise.
1215 * config/sparc/niagara2.md: Likewise.
1216 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1217 builtins for VIS edge instructions.
1218 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1219 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1220 intrinsics.
1221 (__v8qi, __v4qi): Make unsigned.
1222 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1223 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1224 __vis_fpack32): Fix types.
1225 * doc/extend.texi: Document new 'edge' VIS intrinsics.
1226
1227 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1228 divide costs.
1229 (niagara3_costs): New.
1230 (sparc_option_override): Use it.
1231 * gcc/config/sparc/niagara2.md: Adjust with more accurate
1232 Niagara-3 reservations.
1233
1234 2011-09-17 Jakub Jelinek <jakub@redhat.com>
1235
1236 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1237 (sse2_avx, sseinsnmode): Add V2TI.
1238 (REDUC_SMINMAX_MODE): New mode iterator.
1239 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1240 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1241 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1242 (sse2_lshrv1ti3): Rename to...
1243 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
1244 iterator. Move before umaxmin expanders.
1245 * config/i386/i386.h (VALID_AVX256_REG_MODE,
1246 SSE_REG_MODE_P): Accept V2TImode.
1247 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1248 V16HImode, V8SImode and V4DImode.
1249
1250 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1251 and V4DImode.
1252 (ix86_build_signbit_mask): Likewise.
1253 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
1254 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1255 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1256 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1257 (<code><mode>3) ... this.
1258 (avx2_<code><mode>3 smaxmin expand): Rename to...
1259 (<code><mode>3) ... this.
1260 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1261 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1262 VI8_AVX2 mode iterator.
1263 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1264 VI8_AVX2 mode iterator.
1265 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1266 New expanders.
1267
1268 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
1269
1270 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1271 throughout file.
1272
1273 2011-09-16 David S. Miller <davem@davemloft.net>
1274
1275 * config/sparc/visintrin.h: New file.
1276 * config.gcc: Add it to extra_headers on sparc.
1277
1278 2011-09-16 Jakub Jelinek <jakub@redhat.com>
1279
1280 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1281 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
1282 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1283 reduc_smin_v4sf): Adjust callers.
1284 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1285 New expanders.
1286
1287 * config/i386/sse.md (vec_extract_hi_<mode>,
1288 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1289 vextracti128 instead of vextractf128 for -mavx2 and
1290 integer vectors. For V4DFmode fix up mode attribute.
1291 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1292 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1293 instead of V8SF mode attribute.
1294 (avx2_extracti128): Change into define_expand.
1295 * config/i386/i386.c (ix86_expand_vector_extract): Handle
1296 32-byte vector modes if TARGET_AVX.
1297
1298 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1299
1300 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1301 (umulqi3_highpart, smulqi3_highpart): Ditto.
1302 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1303 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1304 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1305
1306 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
1307
1308 PR target/50358
1309 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1310 (*maddqi4, *maddqi4.const): New insns.
1311 (*msubqi4, *msubqi4.const): New insns.
1312 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1313 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
1314 HImode by 1 in the case of multiplying with a CONST_INT.
1315 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1316
1317 2011-09-15 Jan Hubicka <jh@suse.cz>
1318
1319 PR lto/50430
1320 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1321 error_mark_node in the DECL_INITIAL of vtable.
1322
1323 2011-09-15 Diego Novillo <dnovillo@google.com>
1324
1325 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1326 @SYSROOT_CFLAGS_FOR_TARGET@.
1327 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1328 * configure: Regenerate.
1329 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1330 Remove setting of GCC_UNDER_TEST.
1331
1332 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
1333
1334 * config/i386/i386.c (output_fp_compare): Return %v prefixed
1335 instruction mnemonics for TARGET_AVX.
1336
1337 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1338 "type" attribute calculation.
1339 (*movdf_internal): Ditto.
1340 (*movsf_internal): Ditto.
1341
1342 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
1343
1344 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1345
1346 2011-09-15 Jason Merrill <jason@redhat.com>
1347
1348 PR c++/50361
1349 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1350
1351 2011-09-15 Jan Hubicka <jh@suse.cz>
1352
1353 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1354 simplify obviously true clauses.
1355 (and_predicates, or_predicates): Add conditions parameter.
1356 (inline_duplication_hoook): Update.
1357 (mark_modified): New function.
1358 (unmodified_parm): New function.
1359 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1360 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1361 Use unmodified_parm.
1362 (estimate_function_body_sizes): Update.
1363 (remap_predicate): Update.
1364
1365 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
1366
1367 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1368 read-after-read dependencies in basic block SLP.
1369
1370 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1371
1372 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1373 throughout file.
1374
1375 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1376
1377 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1378 throughout file.
1379
1380 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1381
1382 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1383 throughout file.
1384
1385 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1386
1387 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1388 throughout file.
1389 * config/rs6000/constraints.md: Likewise.
1390
1391 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1392
1393 * config/microblaze/microblaze.md: Use match_test rather than
1394 eq/ne symbol_ref throughout file.
1395
1396 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
1397
1398 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1399 throughout file.
1400
1401 2011-09-14 Tom de Vries <tom@codesourcery.com>
1402
1403 PR middle-end/50251
1404 * explow.c (emit_stack_restore): Set crtl->need_drap if
1405 stack_restore is emitted.
1406
1407 2011-09-14 Julian Brown <julian@codesourcery.com>
1408
1409 * config/arm/arm.c (arm_override_options): Add unaligned_access
1410 support.
1411 (arm_file_start): Emit attribute for unaligned access as appropriate.
1412 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1413 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1414 (insv, extzv): Add unaligned-access support.
1415 (extv): Change to expander. Likewise.
1416 (extzv_t1, extv_regsi): Add helpers.
1417 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1418 (unaligned_storesi, unaligned_storehi): New.
1419 (*extv_reg): New (previous extv implementation).
1420 * config/arm/arm.opt (munaligned_access): Add option.
1421 * config/arm/constraints.md (Uw): New constraint.
1422 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1423 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1424 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1425 volatile accesses when -fstrict-volatile-bitfields is in effect.
1426 (extract_bit_field_1): Likewise.
1427
1428 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
1429
1430 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1431 a scalar integer before applying integer-only optimisations to
1432 inner arithmetic.
1433
1434 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
1435
1436 * config/mips/mips.c (mips_expand_epilogue): Generate a
1437 simple_return only if the return address is in r31.
1438
1439 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1440
1441 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1442 NULL for a jump that is a cc0 insn, pick the previous insn for
1443 move_before.
1444
1445 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1446
1447 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1448 throughout file.
1449
1450 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1451
1452 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1453 throughout file.
1454
1455 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1456
1457 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1458 symbol_ref throughout file.
1459
1460 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1461
1462 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1463 throughout file.
1464
1465 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1466
1467 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1468 throughout file.
1469
1470 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
1471
1472 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1473 throughout file.
1474 * config/arm/neon.md: Likewise.
1475 * config/arm/vfp.md: Likewise.
1476 * config/arm/thumb2.md: Likewise.
1477 * config/arm/cortex-m4.md: Likewise.
1478
1479 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1480
1481 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1482 define_insn patterns for combine.
1483
1484 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
1485
1486 * reorg.c: Always define make_return_insns.
1487
1488 2011-09-13 Jan Hubicka <jh@suse.cz>
1489
1490 PR other/49533
1491 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1492
1493 2011-09-13 Jan Hubicka <jh@suse.cz>
1494
1495 PR other/49533
1496 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1497
1498 2011-09-13 Paul Brook <paul@codesourcery.com>
1499
1500 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1501 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1502 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1503 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1504 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1505 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1506 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1507 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1508 enabling unwind tables.
1509 (c6x_debug_unwind_info): New function.
1510 (TARGET_ARM_EABI_UNWINDER): Define.
1511 (TARGET_DEBUG_UNWIND_INFO): Define.
1512 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1513 (TARGET_EXTRA_CFI_SECTION): Remove.
1514 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1515 * ginclude/unwind-arm-common.h: New file.
1516
1517 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
1518
1519 PR target/50358
1520 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1521 * config/avr/avr.md: (extend_s): New code attribute.
1522 (mul_r_d): New code attribute.
1523 (*maddqihi4, *umaddqihi4): New insns.
1524 (*msubqihi4, *umsubqihi4): New insns.
1525 (*usmaddqihi4, *sumaddqihi4): New insns.
1526 (*usmsubqihi4, *susubdqihi4): New insns.
1527 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1528 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1529 (*umsubqihi4.uconst.ashift): New insn-and-split.
1530 (*msubqihi4.sconst.ashift): New insn-and-split.
1531 (*sumaddqihi4.uconst): New insn-and-split.
1532 (*sumsubqihi4.uconst): New insn-and-split.
1533 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1534 PLUS:HI and MINUS:HI.
1535
1536 2011-09-13 Revital Eres <revital.eres@linaro.org>
1537
1538 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1539 (optimize_sc): Adjust call to remove_node_from_ps.
1540 (sms_schedule): Add print info.
1541
1542 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
1543
1544 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1545 flags specially.
1546
1547 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1548
1549 PR bootstrap/50010
1550 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1551 NOTE_INSN_CFI notes, with the exception of
1552 NOTE_INSN_SWITCH_TEXT_SECTIONS.
1553
1554 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
1555 Richard Sandiford <rdsandiford@googlemail.com>
1556
1557 * config/mips/mips.c (mips_epilogue): New structure.
1558 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1559 restoring registers.
1560 (mips_epilogue_emit_cfa_restores): New function.
1561 (mips_epilogue_set_cfa): Likewise.
1562 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
1563 the current CFA register from the stack, redefine the CFA in terms
1564 of the stack pointer.
1565 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
1566 to the epilogue instructions.
1567
1568 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
1569
1570 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1571 argument.
1572 (mips16e_build_save_restore): Update accordingly.
1573
1574 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1575
1576 PR rtl-optimization/50212
1577 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1578 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1579
1580 PR debug/50299
1581 * calls.c (load_register_parameters): Use use_reg_mode instead
1582 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1583 entry.
1584 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1585 for stack CALL_INSN_FUNCTION_USAGE uses.
1586 * expr.h (use_reg_mode): New prototype.
1587 (use_reg): Changed into inline around use_reg_mode.
1588 * expr.c (use_reg): Renamed to...
1589 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
1590 mode to that mode instead of VOIDmode.
1591 * var-tracking.c (prepare_call_arguments): Don't track parameters
1592 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1593 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
1594 EXPR_LIST mode.
1595
1596 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
1597
1598 PR target/43746
1599 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1600 (progmem_section): New Variable.
1601 (avr_asm_init_sections): Initialize it.
1602 (TARGET_ASM_SELECT_SECTION): Define to...
1603 (avr_asm_select_section): ... this new Function.
1604 (avr_replace_prefix): New Function.
1605 (avr_asm_function_rodata_section): Use it.
1606 (avr_insert_attributes): Don't add section attribute for PROGMEM.
1607 (avr_section_type_flags): Use avr_progmem_p instead of section
1608 name to detect if object is in PROGMEM.
1609 (avr_asm_named_section): Set section name prefix for objects in
1610 PROGMEM.
1611
1612 2011-09-12 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR bootstrap/50352
1615 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1616 sprintf format string.
1617
1618 2011-09-12 Richard Guenther <rguenther@suse.de>
1619
1620 PR tree-optimization/50343
1621 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1622 that the reduction is over an SSA name before checking its definition.
1623
1624 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1625
1626 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1627 throughout file.
1628
1629 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
1630
1631 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1632 throughout file.
1633 * config/mips/sb1.md: Likewise.
1634 * config/mips/predicates.md: Replace (match_test "!...")
1635 with (not (match_test "..."))
1636 * config/mips/constraints.md: Likewise.
1637
1638 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
1639
1640 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1641 * config/arm/arm-tables.opt: Regenerate.
1642 * config/arm/arm-tune.md: Regenerate.
1643 * config/arm/arm.c (arm_file_start): Output .arch directive when
1644 user passes -mcpu=generic-*.
1645 (arm_issue_rate): Add genericv7a support.
1646 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1647 (ASM_CPU_SPEC): New define.
1648 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1649 * config/arm/semi.h (ASM_SPEC): Likewise.
1650 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1651 and -mtune=generic-*.
1652
1653 2011-09-09 Richard Guenther <rguenther@suse.de>
1654
1655 PR tree-optimization/50328
1656 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1657 constant or default-def operand.
1658
1659 2011-09-09 Richard Guenther <rguenther@suse.de>
1660
1661 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1662 last statement.
1663
1664 2011-09-09 Richard Guenther <rguenther@suse.de>
1665
1666 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1667 instead of a statement.
1668 * gimple-fold.c (fold_stmt_inplace): Likewise.
1669 * sese.c (graphite_copy_stmts_from_block): Adjust.
1670 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1671 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1672 fold_stmt.
1673 (forward_propagate_addr_into_variable_array_index): Likewise.
1674 (forward_propagate_addr_expr_1): adjust.
1675 (associate_plusminus): Likewise.
1676 (ssa_forward_propagate_and_combine): Likewise.
1677 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1678 (execute_cse_reciprocals): Likewise.
1679 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1680
1681 2011-09-09 Nick Clifton <nickc@redhat.com>
1682
1683 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1684 Return a positive value to indicate that the bits at the
1685 bottom of the register should be cleared.
1686
1687 2011-09-09 Richard Guenther <rguenther@suse.de>
1688
1689 * tree-ssa-operands.c (swap_tree_operands): Always adjust
1690 existing operand positions.
1691
1692 2011-09-09 Richard Guenther <rguenther@suse.de>
1693
1694 PR middle-end/50333
1695 * tree-data-ref.c (split_constant_offset): Do not try to handle
1696 ternary ops.
1697
1698 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
1699
1700 PR tree-optimization/50318
1701 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1702 typo in use of mult_rhs1 and mult_rhs2.
1703
1704 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
1705
1706 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1707 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1708
1709 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
1710
1711 * config/arm/arm.md (push_multi): Emit predicates.
1712 (push_fp_multi): Likewise.
1713 * config/arm/arm.c (vfp_output_fstmd): Likewise.
1714
1715 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1716
1717 PR c++/33255 - Support -Wunused-local-typedefs warning
1718 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1719 (pushdecl): Use the new record_locally_defined_typedef.
1720 (store_parm_decls): Allocate cfun->language.
1721 (finish_function): Use the new maybe_warn_unused_local_typedefs,
1722 and free cfun->language.
1723 (c_push_function_context): Allocate cfun->language here only if needed.
1724 (c_pop_function_context): Likewise, mark cfun->language
1725 for collection only when it should be done.
1726 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1727 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1728 maybe_record_local_typedef_use.
1729 * doc/invoke.texi: Update documentation for
1730 -Wunused-local-typedefs.
1731
1732 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
1733
1734 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1735 (ix86_avoid_lea_for_add): Likewise.
1736 (ix86_avoid_lea_for_addr): Likewise.
1737 (ix86_split_lea_for_addr): Likewise.
1738
1739 * config/i386/i386.c (LEA_MAX_STALL): New.
1740 (increase_distance): Likewise.
1741 (insn_defines_reg): Likewise.
1742 (insn_uses_reg_mem): Likewise.
1743 (distance_non_agu_define_in_bb): Likewise.
1744 (distance_agu_use_in_bb): Likewise.
1745 (ix86_lea_outperforms): Likewise.
1746 (ix86_ok_to_clobber_flags): Likewise.
1747 (ix86_avoid_lea_for_add): Likewise.
1748 (ix86_avoid_lea_for_addr): Likewise.
1749 (ix86_split_lea_for_addr): Likewise.
1750 (distance_non_agu_define): Search in pred BBs added.
1751 (distance_agu_use): Search in succ BBs added.
1752 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1753 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1754 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1755
1756 * config/i386/i386.md: Split added to transform non destructive
1757 add into move and add.
1758 (lea_1): transformed into insn_and_split to avoid AGU stalls.
1759 (lea<mode>_2): Likewise.
1760
1761 2011-09-08 Martin Jambor <mjambor@suse.cz>
1762
1763 PR tree-optimization/50287
1764 * ipa-split.c (split_function): Do not create SSA names for
1765 non-gimple-registers.
1766
1767 2011-09-08 Richard Guenther <rguenther@suse.de>
1768
1769 PR tree-optimization/19831
1770 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1771 skip builtins with vdefs that do not really store something.
1772 (propagate_necessity): For calls to free that we can associate
1773 with an allocation function do not mark the freed pointer
1774 definition necessary.
1775 (eliminate_unnecessary_stmts): Remove a call to free if
1776 the associated call to an allocation function is not necessary.
1777
1778 2011-09-08 Richard Guenther <rguenther@suse.de>
1779
1780 PR tree-optimization/19831
1781 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1782 allocation functions as necessary.
1783
1784 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
1785
1786 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1787 cut from ...
1788 (darwin_default_min_version): Amended to provide defaults
1789 for the cross directory case.
1790 (darwin_driver_init): call darwin_default_min_version unconditionally.
1791 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1792 * config/darwin9.h: Likewise.
1793 * config/darwin10.h: Likewise.
1794 * config/rs6000/darwin7.h: Likewise.
1795
1796 2011-09-08 Jakub Jelinek <jakub@redhat.com>
1797
1798 PR target/50310
1799 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1800 code early if TARGET_AVX.
1801 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1802
1803 2011-09-07 Jakub Jelinek <jakub@redhat.com>
1804
1805 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1806 duplicates.
1807
1808 PR target/50310
1809 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1810 "mode" attribute computation.
1811
1812 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
1813
1814 * regrename.c (struct du_head): Make nregs signed.
1815 (closed_chains): Remove.
1816 (create_new_chain): Return the new chain.
1817 (chain_from_id): New static function.
1818 (dump_def_use_chain): Change argument to be an int, indicating
1819 the first ID to print. All callers changed.
1820 (merge_overlapping_regs): Use chain_from_id. Assert that
1821 chains don't conflict with themselves.
1822 (rename_chains): Take no argument. Iterate over id_to_chain
1823 rather to find chains to rename. Clear tick before the main loop.
1824 (struct incoming_reg_info): New struct.
1825 (struct bb_rename_info): New struct.
1826 (init_rename_info, set_incoming_from_chain, merge_chains): New
1827 static functions.
1828 (regrename_analyze): New static function, broken out of
1829 regrename_optimize. Record and make use of open chain information
1830 at basic block boundaries, and merge chains where possible.
1831 (scan_rtx_reg): Make this_nregs signed. Don't update
1832 closed_chains.
1833 (build_def_use): Return a bool to indicate success. All callers
1834 changed. Don't initialize global data here.
1835 (regrename_optimize): Move most code out of here into
1836 regrename_analyze.
1837 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1838 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1839 static inline functions.
1840 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1841
1842 * bb-reorder.c (insert_section_boundary_note): Don't check
1843 optimize_function_for_speed_p.
1844 (gate_handle_partition_blocks): Do it here instead.
1845 (gate_handle_reorder_blocks): Move preliminary checks here ...
1846 (rest_of_handle_reorder_blocks): ... from here.
1847
1848 2011-09-07 Martin Jambor <mjambor@suse.cz>
1849
1850 PR middle-end/50301
1851 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1852 function index bounds.
1853 (perhaps_add_new_callers): Likewise.
1854
1855 2011-09-07 Martin Jambor <mjambor@suse.cz>
1856
1857 PR tree-optimization/49911
1858 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1859 enumerations to the corresponding plain integer type.
1860
1861 2011-09-07 Richard Guenther <rguenther@suse.de>
1862
1863 PR tree-optimization/50319
1864 * tree-if-conv.c (set_bb_predicate): Assert we only set
1865 canonical predicates.
1866 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
1867 around canonical predicates.
1868 (predicate_bbs): Do not re-gimplify already canonical
1869 predicates. Properly unshare them though.
1870 (find_phi_replacement_condition): Simplify.
1871
1872 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
1873
1874 PR target/49030
1875 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
1876 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
1877 reusing the old code from get_arm_condition_code. Return ARM_NV
1878 for invalid comparison codes.
1879 (get_arm_condition_code): Redefine in terms of
1880 maybe_get_arm_condition_code.
1881 * config/arm/predicates.md (arm_comparison_operator): Use
1882 maybe_get_arm_condition_code.
1883
1884 2011-09-07 Richard Guenther <rguenther@suse.de>
1885
1886 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
1887 Canonicalize negated predicates by swapping edges.
1888 (forward_propagate_into_cond): Likewise.
1889
1890 2011-09-07 Richard Guenther <rguenther@suse.de>
1891
1892 PR tree-optimization/50213
1893 * tree-flow.h (simple_iv_increment_p): Declare.
1894 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
1895 POINTER_PLUS_EXPR.
1896 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
1897 not propagate simple IV counter increments.
1898
1899 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
1900 Iain Sandoe <iains@gcc.gnu.org>
1901
1902 * config/rs6000/rs6000.c (compute_save_world_info): Test
1903 cfun->has_nonlocal_label to determine if the out-of-line save
1904 world call may be used.
1905
1906 2011-09-07 Nick Clifton <nickc@redhat.com>
1907
1908 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
1909 label on the parallel part of the insn.
1910
1911 2011-09-07 Jakub Jelinek <jakub@redhat.com>
1912
1913 PR debug/50191
1914 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
1915 avoid_constant_pool_reference first instead of last.
1916
1917 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1918
1919 * doc/configfiles.texi (Configuration Files): Update documentation
1920 about tm_p.h and remove FIXME comment.
1921
1922 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
1923
1924 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
1925 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
1926
1927 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
1928
1929 * config/darwin10.h Remove duplicate LIB_SPEC.
1930
1931 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
1932
1933 PR middle-end/44382
1934 * target.def (reassociation_width): New hook.
1935
1936 * doc/tm.texi.in (reassociation_width): Likewise.
1937
1938 * doc/tm.texi (reassociation_width): Likewise.
1939
1940 * doc/invoke.texi (tree-reassoc-width): New param documented.
1941
1942 * hooks.h (hook_int_uint_mode_1): New default hook.
1943
1944 * hooks.c (hook_int_uint_mode_1): Likewise.
1945
1946 * config/i386/i386.h (ix86_tune_indices): Add
1947 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1948
1949 (TARGET_REASSOC_INT_TO_PARALLEL): New.
1950 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
1951
1952 * config/i386/i386.c (initial_ix86_tune_features): Add
1953 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1954
1955 (ix86_reassociation_width): New function.
1956
1957 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
1958
1959 * tree-ssa-reassoc.c (get_required_cycles): New function.
1960 (get_reassociation_width): Likewise.
1961 (swap_ops_for_binary_stmt): Likewise.
1962 (rewrite_expr_tree_parallel): Likewise.
1963
1964 (rewrite_expr_tree): Refactored. Part of code moved into
1965 swap_ops_for_binary_stmt.
1966
1967 (reassociate_bb): Now checks reassociation width to be used and
1968 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
1969
1970 2011-09-06 Richard Guenther <rguenther@suse.de>
1971
1972 PR tree-optimization/47025
1973 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
1974 uses nothing.
1975 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
1976 BUILT_IN_FREE.
1977 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
1978 definitely points to.
1979 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1980 BUILT_IN_VA_START doesn't let its va_list argument escape.
1981 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
1982 not make any previous stores necessary.
1983
1984 2011-09-06 Martin Jambor <mjambor@suse.cz>
1985
1986 * ipa-inline.h (struct inline_summary): Move versionable flag...
1987 * cgraph.h (struct cgraph_local_info): ...here
1988 * ipa-cp.c (determine_versionability): Use the new versionable flag.
1989 (determine_versionability): Likewise.
1990 (ipcp_versionable_function_p): Likewise.
1991 (ipcp_generate_summary): Likewise.
1992 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
1993 versionable flag.
1994 (compute_inline_parameters): Do not clear the versionable flag.
1995 (inline_read_section): Do not stream the versionable flag.
1996 (inline_write_summary): Likewise.
1997 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
1998 (input_overwrite_node): Likewise.
1999
2000 2011-09-06 Richard Guenther <rguenther@suse.de>
2001
2002 PR tree-optimization/48149
2003 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
2004 (vn_valueize): Move earlier.
2005 (valueize_expr): Use vn_valueize.
2006 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2007 operands.
2008 (simplify_unary_expression): Simplify.
2009
2010 2011-09-06 Richard Guenther <rguenther@suse.de>
2011
2012 PR tree-optimization/48317
2013 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2014 trailing array.
2015 (sizeof_vn_nary_op): New inline function.
2016 (vn_nary_op_lookup_pieces): Adjust.
2017 (vn_nary_op_insert_pieces): Likewise.
2018 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2019 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
2020 any number of operands.
2021 (vn_nary_length_from_stmt): New function.
2022 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2023 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2024 sized temporary.
2025 (vn_nary_op_lookup): Likewise.
2026 (vn_nary_op_lookup_stmt): Likewise.
2027 (vn_nary_op_insert_into): Likewise.
2028 (vn_nary_op_insert_stmt): Likewise.
2029 (visit_use): Handle CONSTRUCTOR as nary.
2030 * tree-ssa-pre.c (phi_translate_1): Adjust.
2031 (create_expression_by_pieces): Likewise.
2032 (compute_avail): Likewise.
2033
2034 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
2035
2036 * config/arm/arm.c (arm_preferred_simd_mode): Check
2037 TARGET_NEON_VECTORIZE_DOUBLE instead of
2038 TARGET_NEON_VECTORIZE_QUAD.
2039 (arm_autovectorize_vector_sizes): Likewise.
2040 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2041 mask of mvectorize-with-neon-double. Add RejectNegative.
2042 (mvectorize-with-neon-double): New.
2043
2044 2011-09-06 Richard Guenther <rguenther@suse.de>
2045
2046 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2047
2048 2011-09-06 Tom de Vries <tom@codesourcery.com>
2049
2050 * recog.c (asm_labels_ok): New function.
2051 (check_asm_operands): Use asm_labels_ok.
2052
2053 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2054
2055 PR target/49606
2056 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2057 (PMODE_INSN): New macro.
2058 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2059 (mips_got_load, mips_expand_synci_loop): Likewise.
2060 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2061 cprestore patterns.
2062 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
2063 copygp_mips16 patterns.
2064 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2065 and use_cprestore patterns.
2066 (mips_override_options): Check for incompatible -mabi and -mlong
2067 combinations.
2068 * config/mips/mips.md (unspec_got<mode>): Rename to...
2069 (unspec_got_<mode>): ...this.
2070 (copygp_mips16): Use the Pmode iterator.
2071 (potential_cprestore, cprestore, use_cprestore): Likewise.
2072 (clear_cache, indirect_jump): Use PMODE_INSN.
2073 (indirect_jump<mode>): Rename to...
2074 (indirect_jump_<mode>): ...this.
2075 (tablejump): Use PMODE_INSN.
2076 (tablejump<mode>): Rename to...
2077 (tablejump_<mode>): ...this.
2078 (exception_receiver): Handle restore_gp_si and restore_gp_di.
2079 (restore_gp): Use the Pmode iterator.
2080 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2081 PMODE_INSN.
2082
2083 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
2084
2085 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2086 Fix the type of the BIT_AND_EXPR.
2087
2088 2011-09-05 David S. Miller <davem@davemloft.net>
2089
2090 * config.host: Add driver-sparc.o and sparc/x-sparc on
2091 native sparc*-*-linux* builds.
2092 * config/sparc/driver-sparc.c: Correct Linux strings.
2093 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2094 * config/sparc/linux64.h: Likewise.
2095 * doc/invoke.texi: Document that Linux also supports
2096 -mcpu=native and -mtune=native on sparc.
2097
2098 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2099 PROCESSOR_NIAGARA4): New.
2100 * config/sparc/sparc.opt: Handle new processor types.
2101 * config/sparc/sparc.md: Add to "cpu" attribute.
2102 * config/sparc/sparc.h (TARGET_CPU_niagara3,
2103 TARGET_CPU_niagara4): New, treat as niagara2.
2104 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2105 * config/sparc/sol2.h: Likewise.
2106 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2107 * config/sparc/sparc.c (sparc_option_override): Add
2108 niagara3 and niagara4 handling.
2109 (sparc32_initialize_trampoline): Likewise.
2110 (sparc64_initialize_trampoline): Likewise.
2111 (sparc_use_sched_lookahead): Likewise.
2112 (sparc_issue_rate): Likewise.
2113 (sparc_register_move_cost): Likewise.
2114 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2115 and niagara4 as appropriate.
2116 * doc/invoke.texi: Document new processor types.
2117 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2118 and --with-tune options.
2119
2120 * config/sparc/sol2-64.h: Move ...
2121 * config/sparc/default-64.h: ... to here. Update comment.
2122 * config.gcc: Update Solaris sparc to use default-64.h, also
2123 prefix this header into the list on sparc64-*-linux.
2124 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2125 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
2126 to MASK_HARD_QUAD.
2127
2128 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2129
2130 PR target/50289
2131 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2132 that contain global register variable.
2133
2134 2011-09-05 Richard Guenther <rguenther@suse.de>
2135
2136 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2137
2138 2011-09-05 Richard Guenther <rguenther@suse.de>
2139
2140 * stor-layout.c (layout_type): Use size_binop for array size
2141 calculations.
2142
2143 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
2144
2145 * config/avr/avr.h (progmem_section): Remove Declaration.
2146 * config/avr/avr.c (progmem_section): Make static and rename to
2147 progmem_swtable_section.
2148 (avr_output_addr_vec_elt): No need to switch sections.
2149 (avr_asm_init_sections): Use output_section_asm_op as section
2150 callback for progmem_swtable_section.
2151 (avr_output_progmem_section_asm_op): Remove Function.
2152 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2153 (avr_asm_function_rodata_section): New static Function.
2154 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2155 alignment 2**1 for jump tables.
2156
2157 2011-09-04 Jan Hubicka <jh@suse.cz>
2158
2159 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2160 parameter is SSA name.
2161
2162 2011-09-04 Richard Guenther <rguenther@suse.de>
2163
2164 Revert
2165 2011-08-31 Richard Guenther <rguenther@suse.de>
2166
2167 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2168 special-casing.
2169
2170 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
2171
2172 PR debug/49901
2173 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2174
2175 2011-09-04 Jakub Jelinek <jakub@redhat.com>
2176 Ira Rosen <ira.rosen@linaro.org>
2177
2178 PR tree-optimization/50208
2179 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2180 argument. Check that def_stmt is inside the loop.
2181 (vect_recog_widen_mult_pattern): Update calls to
2182 vect_handle_widen_mult_by_cons.
2183 (vect_operation_fits_smaller_type): Check that def_stmt is
2184 inside the loop.
2185
2186 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
2187
2188 * tree-vectorizer.c (vect_print_dump_info): Print line
2189 number when dumping to a file.
2190 (vectorize_loops): Add new messages to dump file.
2191
2192 2011-09-03 Martin Jambor <mjambor@suse.cz>
2193
2194 * ipa-prop.h (ipa_jump_func_t): New typedef.
2195 (struct ipa_edge_args): Removed field argument_count, field
2196 jump_functions turned into a vector.
2197 (ipa_set_cs_argument_count): Removed.
2198 (ipa_get_cs_argument_count): Updated to work on vectors.
2199 (ipa_get_ith_jump_func): Likewise.
2200 * ipa-prop.c (ipa_count_arguments): Removed.
2201 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2202 jump functions. Update caller.
2203 (compute_pass_through_member_ptrs): Likewise.
2204 (compute_cst_member_ptr_arguments): Likewise.
2205 (ipa_compute_jump_functions_for_edge): Get number of arguments from
2206 the statement, allocate vector.
2207 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2208 (duplicate_ipa_jump_func_array): Removed.
2209 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2210 (ipa_read_node_info): Allocate vector.
2211
2212 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2213
2214 PR middle-end/50232
2215 * config/pa/pa.md (return): Define "return" insn pattern.
2216 (epilogue): Use it when no epilogue is needed.
2217 * config/pa/pa.c (pa_can_use_return_insn): New function.
2218 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2219
2220 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
2221
2222 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2223 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2224 Force at least BITS_PER_UNIT alignment on the new variable.
2225
2226 2011-09-02 Gary Funck <gary@intrepid.com>
2227
2228 * opts.c (print_specific_help): Fix off-by-one compare in
2229 assertion check.
2230 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2231 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2232 Increase by +5 to allow for more languages.
2233 * optc-gen.awk: Generate #if that ensures that the number of
2234 languages is within the implementation-defined limit.
2235
2236 2011-09-02 Michael Matz <matz@suse.de>
2237
2238 PR middle-end/50260
2239 * ipa-split.c (split_function): Call add_referenced_var.
2240
2241 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2242 (cond_if_else_store_replacement_1): Ditto.
2243 * tree-ssa-pre.c (get_representative_for): Ditto.
2244 (create_expression_by_pieces): Ditto.
2245 (insert_into_preds_of_block): Ditto.
2246 * tree-sra.c (create_access_replacement): Ditto.
2247 (get_replaced_param_substitute): Ditto.
2248
2249 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
2250
2251 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2252 automata_options.
2253 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2254 (l1w, s1w, l2w, s2w): Define in the main automaton.
2255 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2256 units.
2257 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2258 (c6x_unit_names): Add the new units.
2259 (c6x_unit_codes): New static array.
2260 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2261 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2262 UNIT_QID_SIDE_OFFSET): New macros.
2263 (RESERVATION_S2): Adjust value.
2264 (c6x_option_override): Compute c6x_unit_codes.
2265 (assign_reservations): Take the unit_mask of the last instruction
2266 into account. Detect floating point reservations by looking for
2267 the new units. Don't assign reservations if the field is already
2268 nonzero.
2269 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2270 (init_sched_state): Initialize it.
2271 (c6x_clear_sched_context): Free it.
2272 (insn_set_clock): Clear reservation.
2273 (prev_cycle_state): New static variable.
2274 (c6x_init_sched_context): Save it.
2275 (c6x_sched_init): Allocate space for it and clear it.
2276 (c6x_sched_dfa_pre_cycle_insn): New static function.
2277 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2278 (c6x_variable_issue): Only record units in the unit_mask that
2279 were not set at the start of the cycle.
2280 (c6x_variable_issue): Compute and store the unit_mask from the
2281 current state.
2282 (reorg_split_calls): Ensure the new information remains correct.
2283 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2284 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2285 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2286 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2287 Add special reservations.
2288 * config/c6x/c6x-sched.md: Regenerate.
2289
2290 2011-09-02 Martin Jambor <mjambor@suse.cz>
2291
2292 * ipa-prop.h (ipa_node_params): Removed fields
2293 called_with_var_arguments and node_versionable.
2294 (ipa_set_called_with_variable_arg): Removed.
2295 (ipa_is_called_with_var_arguments): Likewise.
2296 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2297 (determine_versionability): Do not check for type attributes and va
2298 builtins. Record versionability into inline summary.
2299 (initialize_node_lattices): Do not check
2300 ipa_is_called_with_var_arguments.
2301 (propagate_constants_accross_call): Likewise, ignore arguments we do
2302 not have PARM_DECLs for, set variable flag for parameters that were
2303 not passed a value.
2304 (create_specialized_node): Dump info that we cannot change signature.
2305 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2306 number of arguments.
2307 (ipa_make_edge_direct_to_target): Likewise.
2308 (ipa_update_after_lto_read): Likewise.
2309 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2310 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2311 they were remapped.
2312
2313 2011-09-02 Richard Guenther <rguenther@suse.de>
2314
2315 PR tree-optimization/27460
2316 PR middle-end/29269
2317 * doc/md.texi (vcond): Document.
2318 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2319 optab with two modes.
2320 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2321 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2322 (vcond_optab): Adjust.
2323 (vcondu_optab): Likewise.
2324 (expand_vec_cond_expr_p): Adjust prototype.
2325 * optabs.c (get_vcond_icode): Adjust.
2326 (expand_vec_cond_expr_p): Likewise.
2327 (expand_vec_cond_expr): Likewise.
2328 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2329 vector type.
2330 (vectorizable_condition): Allow differing types for comparison
2331 and result.
2332 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2333 for the comparison.
2334 * config/i386/sse.md (vcond<mode>): Split to
2335 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2336 vcond<V_128:mode><VI124_128:mode> and
2337 vcondu<V_128:mode><VI124_128:mode>.
2338 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2339 (vconduv2di): Likewise.
2340 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2341 (vcondu<mode>): Likewise.
2342 * config/ia64/vect.md (vcond<mode>): Likewise.
2343 (vcondu<mode>): Likewise.
2344 (vcondv2sf): Likewise.
2345 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2346 * config/rs6000/paired.md (vcondv2sf): Likewise.
2347 * config/rs6000/vector.md (vcond<mode>): Likewise.
2348 (vcondu<mode>): Likewise.
2349 * config/spu/spu.md (vcond<mode>): Likewise.
2350 (vcondu<mode>): Likewise.
2351
2352 2011-09-02 Richard Guenther <rguenther@suse.de>
2353
2354 * pretty-print.h (pp_unsigned_wide_integer): New.
2355 * tree-pretty-print.c (dump_generic_node): Print unsigned
2356 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2357
2358 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
2359
2360 PR target/49987
2361 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2362 valid CONST_VECTOR operands.
2363 (rs6000_expand_vector_init): Likewise.
2364
2365 2011-09-02 Martin Jambor <mjambor@suse.cz>
2366
2367 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2368 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2369 BINFO_VTABLE. Parameter delta removed, all callers updated.
2370 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2371 BINFO_VTABLE.
2372 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2373 all calls.
2374 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2375 handling of thunk_delta.
2376 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2377 (devirtualization_time_bonus): Do not handle thunk deltas.
2378 (ipcp_discover_new_direct_edges): Likewise.
2379 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2380 (try_make_edge_direct_simple_call): Likewise.
2381 (try_make_edge_direct_virtual_call): Likewise.
2382 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2383 parameter set as unused.
2384 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2385 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
2386 parameter set as unused.
2387 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
2388 (input_edge_opt_summary): Likewise.
2389 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2390 BINFO_VIRTUALS at all.
2391 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2392
2393 2011-09-02 Richard Guenther <rguenther@suse.de>
2394
2395 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2396 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2397
2398 2011-08-31 Richard Guenther <rguenther@suse.de>
2399
2400 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2401 handling here, from ...
2402 (expand_expr_real_1): ... here.
2403 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2404 and VEC_COND_EXPR.
2405 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2406 a GIMPLE_TERNARY_RHS.
2407 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2408 and VEC_COND_EXPR here ...
2409 (verify_gimple_assign_single): ... not here.
2410 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2411 * tree-object-size.c (cond_expr_object_size): Adjust.
2412 (collect_object_sizes_for): Likewise.
2413 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2414 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2415 (ssa_forward_propagate_and_combine): Adjust.
2416 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2417 as ternary.
2418 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2419 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2420 * tree-vect-stmt.c (vectorizable_condition): Likewise.
2421 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2422 (extract_range_from_assignment): Likewise.
2423
2424 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2425
2426 * config/i386/i386.md: Use (match_test ...) for attribute tests.
2427 * config/i386/mmx.md: Likewise.
2428 * config/i386/sse.md: Likewise.
2429 * config/i386/predicates.md (call_insn_operand): Use
2430 (not (match_test "...")) instead of (match_test "!...")
2431 * config/i386/constraints.md (w): Likewise.
2432
2433 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2434
2435 * doc/md.texi: Describe the use of match_tests in attribute tests.
2436 * rtl.def (MATCH_TEST): Update commentary.
2437 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2438 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2439
2440 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
2441
2442 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2443 (attr_string): Use copy_md_ptr_loc.
2444
2445 2011-08-31 Martin Jambor <mjambor@suse.cz>
2446
2447 PR middle-end/49886
2448 * ipa-inline-analysis.c (compute_inline_parameters): Set
2449 can_change_signature of noes with typde attributes.
2450 * ipa-split.c (split_function): Do not skip any arguments if
2451 can_change_signature is set.
2452
2453 2011-08-31 Martin Jambor <mjambor@suse.cz>
2454
2455 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2456 check removed.
2457
2458 2011-08-31 Richard Guenther <rguenther@suse.de>
2459
2460 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2461 special-casing.
2462
2463 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
2464
2465 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2466
2467 2011-08-31 Tom de Vries <tom@codesourcery.com>
2468
2469 PR middle-end/43513
2470 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2471 * tree-ssa-ccp.c (params.h): Include.
2472 (fold_builtin_alloca_for_var): New function.
2473 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2474
2475 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
2476
2477 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2478 Handle FMA option.
2479
2480 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2481
2482 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2483 b3 and b4 unsigned.
2484
2485 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
2486
2487 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2488 when code is SET.
2489
2490 2011-08-30 Richard Guenther <rguenther@suse.de>
2491
2492 PR middle-end/48571
2493 * gimple.h (maybe_fold_offset_to_address): Remove.
2494 (maybe_fold_offset_to_reference): Likewise.
2495 (maybe_fold_stmt_addition): Likewise.
2496 (may_propagate_address_into_dereference): Likewise.
2497 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2498 array references.
2499 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2500 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2501 addresses instead.
2502 (may_propagate_address_into_dereference): Remove.
2503 (maybe_fold_offset_to_array_ref): Likewise.
2504 (maybe_fold_offset_to_reference): Likewise.
2505 (maybe_fold_offset_to_address): Likewise.
2506 (maybe_fold_stmt_addition): Likewise.
2507 (fold_gimple_assign): Do not reconstruct array references but
2508 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2509 MEM_REF addresses.
2510 (gimple_fold_stmt_to_constant_1): Likewise.
2511 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2512 * gimplify.c (gimplify_conversion): Likewise.
2513 (gimplify_expr): Likewise.
2514
2515 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
2516
2517 * config/i386/fmaintrin.h: New.
2518 * config.gcc: Add fmaintrin.h.
2519 * config/i386/i386.c
2520 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2521 <IX86_BUILTIN_VFMADDSD3>: Likewise.
2522 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2523 (*fmai_fmadd_<mode>): Likewise.
2524 (*fmai_fmsub_<mode>): Likewise.
2525 (*fmai_fnmadd_<mode>): Likewise.
2526 (*fmai_fnmsub_<mode>): Likewise.
2527 * config/i386/immintrin.h: Add fmaintrin.h.
2528
2529 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
2530
2531 * genautomata.c (NO_COMB_OPTION): New macro.
2532 (no_comb_flag): New static variable.
2533 (gen_automata_option): Handle NO_COMB_OPTION.
2534 (comb_vect_p): False if no_comb_flag.
2535 (add_vect): Move computation of min/max values. Return early if
2536 no_comb_flag.
2537 * doc/md.texi (automata_option): Document no-comb-vect.
2538
2539 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2540 "__x86.get_pc_thunk".
2541
2542 * bb-reorder.c (insert_section_boundary_note): Only do it if
2543 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2544
2545 2011-08-30 Christian Bruel <christian.bruel@st.com>
2546
2547 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2548 flag_profile_use.
2549
2550 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2551
2552 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2553 to off. Document switch.
2554 * doc/invoke.texi (-msave-toc-indirect): Ditto.
2555
2556 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2557
2558 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2559 conditionals and comments inside macro arguments.
2560
2561 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2562 Richard Guenther <rguenther@suse.de>
2563
2564 * tree.h (constant_boolean_node): Adjust prototype.
2565 * fold-const.c (fold_convert_loc): Move aggregate conversion
2566 leeway down.
2567 (constant_boolean_node): Make value parameter boolean, add
2568 vector type handling.
2569 (fold_unary_loc): Use constant_boolean_node.
2570 (fold_binary_loc): Preserve types properly when folding
2571 COMPLEX_EXPR <__real x, __imag x>.
2572 * gimplify.c (gimplify_expr): Handle vector comparison.
2573 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2574 comparison.
2575 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2576 comparisons.
2577
2578 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2579
2580 PR middle-end/48722
2581 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2582 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2583 (verify_rtl_sharing): Likewise and verify_rtx_sharing
2584 in there too.
2585 (unshare_all_rtl_in_chain): For CALL_INSNs
2586 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2587
2588 2011-08-29 Richard Guenther <rguenther@suse.de>
2589
2590 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2591 on the built ADDR_EXPR.
2592
2593 2011-08-29 Jakub Jelinek <jakub@redhat.com>
2594
2595 PR debug/50215
2596 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2597 before adding ENTRY_VALUE to val->locs.
2598
2599 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
2600
2601 PR bootstrap/50218
2602 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2603 comp.
2604
2605 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
2606
2607 * doc/rtl.texi (simple_return): Document.
2608 (parallel, PATTERN): Here too.
2609 * doc/md.texi (return): Mention it's allowed to expand to simple_return
2610 in some cases.
2611 (simple_return): Document standard pattern.
2612 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2613 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2614 * reorg.c (function_return_label, function_simple_return_label):
2615 New static variables, replacing...
2616 (end_of_function_label): ... this.
2617 (simplejump_or_return_p): New static function.
2618 (optimize_skip, steal_delay_list_from_fallthrough,
2619 fill_slots_from_thread): Use it.
2620 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
2621 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2622 (find_end_label): Take a new arg which is one of the two return
2623 rtxs. Depending on which, set either function_return_label or
2624 function_simple_return_label. All callers changed.
2625 (make_return_insns): Make both kinds.
2626 (dbr_schedule): Adjust for two kinds of end labels.
2627 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2628 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2629 (gen_expand, gen_split): Use ANY_RETURN_P.
2630 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2631 * rtl.def (SIMPLE_RETURN): New code.
2632 * ifcvt.c (find_if_case_1): Be more careful about
2633 redirecting jumps to the EXIT_BLOCK.
2634 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2635 returnjump_p_1): Handle SIMPLE_RETURNs.
2636 * print-rtl.c (print_rtx): Likewise.
2637 * rtl.c (copy_rtx): Likewise.
2638 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2639 * combine.c (simplify_set): Likewise.
2640 * resource.c (find_dead_or_set_registers, mark_set_resources):
2641 Likewise.
2642 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2643 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2644 (init_emit_regs): Initialize simple_return_rtx.
2645 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2646 force_nonfallthru_and_redirect.
2647 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2648 (GR_SIMPLE_RETURN): New enum value.
2649 (simple_return_rtx): New macro.
2650 * basic-block.h (force_nonfallthru_and_redirect): Adjust
2651 declaration.
2652 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2653 argument. All callers changed. Be careful about what kinds of
2654 returnjumps to generate.
2655 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2656 ix86_pad_short_function): Likewise.
2657 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2658 of return.
2659 * config/mips/mips.md (any_return): New code_iterator.
2660 (optab): Add cases for return and simple_return.
2661 (return): Expand to a simple_return.
2662 (simple_return): New pattern.
2663 (*<optab>, *<optab>_internal for any_return): New patterns.
2664 (return_internal): Remove.
2665 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2666 a simple_return_internal.
2667
2668 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2669
2670 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2671 (vec_extract_lo_<mode>): Prevent both operands in memory.
2672 (vec_extract_lo_v16hi): Ditto.
2673 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2674
2675 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2676
2677 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2678 (*sse2_mulv4si3): Ditto.
2679 (mulv2di3): Ditto.
2680 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2681 notes to REG_EQUAL.
2682
2683 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
2684
2685 PR target/50202
2686 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2687 when all outputs are unused.
2688 (sse4_2_pcmpistr): Ditto.
2689
2690 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2691
2692 * config/i386/i386.md (round<mode>2): New expander.
2693 * config/i386/i386.c (enum ix86_builtins): Add
2694 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2695 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2696 descriptions.
2697 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2698 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2699
2700 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
2701
2702 PR middle-end/50083
2703 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2704 only when TARGET_C99_FUNCTIONS.
2705 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2706 <BUILT_IN_RINT{,F,L}>: Ditto.
2707
2708 2011-08-26 Michael Matz <matz@suse.de>
2709 Jakub Jelinek <jakub@redhat.com>
2710
2711 PR lto/50165
2712 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2713 don't call strlen twice, use memcpy.
2714
2715 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
2716
2717 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2718 * config/i386/bmiintrin.h: Likewise.
2719 * config/i386/lzcntintrin.h: Likewise.
2720
2721 * config/i386/immintrin.h: Include <lzcntintrin.h>,
2722 <bmiintrin.h> and <bmi2intrin.h>.
2723
2724 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2725
2726 PR target/50166
2727 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2728 * configure: Regenerate.
2729
2730 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2731
2732 PR c/50179
2733 * c-typeck.c (c_process_expr_stmt): Skip over nops and
2734 call mark_exp_read even if exprv is ADDR_EXPR.
2735
2736 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
2737
2738 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2739 to df_set_dead_notes_for_mw.
2740
2741 2011-08-26 Richard Guenther <rguenther@suse.de>
2742
2743 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2744
2745 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
2746 Tom de Vries <tom@codesourcery.com>
2747
2748 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2749 (struct ivopts_data): Add loop_single_exit_p field.
2750 (niter_for_exit): Change parameter desc_p into return value. Return
2751 desc if desc->may_be_zero. Free desc if unused.
2752 (niter_for_single_dom_exit): Change return type.
2753 (find_induction_variables): Handle changed return type of
2754 niter_for_single_dom_exit. Dump may_be_zero.
2755 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2756 (set_use_iv_cost): Add and handle comp parameter.
2757 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2758 comp argument to set_use_iv_cost.
2759 (strip_wrap_conserving_type_conversions, expr_equal_p)
2760 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2761 (may_eliminate_iv): Add comp parameter. Handle new return type of
2762 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
2763 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2764 and may_eliminate_iv.
2765 (rewrite_use_compare): Move call to iv_elimination_compare to ...
2766 (may_eliminate_iv): Here.
2767 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2768
2769 2011-08-26 Tom de Vries <tom@codesourcery.com>
2770
2771 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2772 accessing TREE_TYPE.
2773
2774 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
2775
2776 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2777 (*ior_scc_scc_cmp): Likewise
2778 (*and_scc_scc): Likewise.
2779 (*and_scc_scc_cmp): Likewise.
2780 (*and_scc_scc_nodom): Likewise.
2781 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2782
2783 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2784
2785 * rtlanal.c (nonzero_bits1): Handle CLRSB.
2786
2787 2011-08-26 Richard Guenther <rguenther@suse.de>
2788
2789 * expr.c (string_constant): Handle &MEM_REF.
2790
2791 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2792
2793 * config/arm/arm.c (struct four_ints): New type.
2794 (count_insns_for_constant): Delete function.
2795 (find_best_start): Delete function.
2796 (optimal_immediate_sequence): New function.
2797 (optimal_immediate_sequence_1): New function.
2798 (arm_gen_constant): Move constant splitting code to
2799 optimal_immediate_sequence.
2800 Rewrite constant negation/invertion code.
2801
2802 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
2803
2804 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2805 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2806 Remove prototype. Remove static function type.
2807 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2808 Add arch attribute.
2809 * config/arm/constraints.md (Pj, PJ): New constraints.
2810
2811 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2812
2813 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2814 ("cortex_a9_multiply_long"): New and use above. Handle all
2815 long multiply cases.
2816 ("cortex_a9_multiply"): Handle smmul and smmulr.
2817 ("cortex_a9_mac"): Handle smmla.
2818
2819 2011-08-25 Richard Henderson <rth@redhat.com>
2820
2821 PR 50132
2822 PR 49864
2823 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2824 non-constant stack adjutment.
2825 * expr.c (find_args_size_adjust): Break out from ...
2826 (fixup_args_size_notes): ... here.
2827 * rtl.h (find_args_size_adjust): Declare.
2828
2829 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
2830
2831 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2832 sse4 and sse4_noavx.
2833 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2834 (*pushdf_rex64): Change Y2 register constraint to x.
2835 (*movdf_internal_rex64): Ditto.
2836 (*zero_extendsidi2_rex64): Ditto.
2837 (*movdi_internal): Change Y2 register constraint to x
2838 and update "isa" attribute.
2839 (*pushdf): Ditto.
2840 (*movdf internal): Ditto.
2841 (zero_extendsidi2_1): Ditto.
2842 (*truncdfdf_mixed): Ditto.
2843 (*truncxfdf2_mixed): Ditto.
2844 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2845 register constraint to x.
2846 (*movv2sf_internal_rex64): Ditto.
2847 (*mov<mode>_internal): Change Y2 register constraint to x
2848 and add "isa" attribute.
2849 (*movv2sf_internal): Ditto.
2850 (*vec_extractv2si_1): Ditto.
2851 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2852 constraints to x and update "isa" attribute.
2853 (*vec_interleave_highv2df): Change Y3 registerconstraint
2854 to x and update "isa" attribute.
2855 (*vec_interleave_lowv2df): Ditto.
2856 (*vec_concatv2df): Change Y2 register constraint to x and
2857 update "isa" attribute.
2858 (sse2_loadld): Ditto.
2859 (*vec_extractv2di_1): Ditto.
2860 (*vec_dupv4si): Ditto.
2861 (*vec_dupv2di): Ditto.
2862 (*vec_concatv4si): Ditto.
2863 (vec_concatv2di): Ditto.
2864 * config/i386/constraints.md (Y2): Remove.
2865 (Y3): Ditto.
2866 (Y4): Ditto.
2867
2868 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
2869
2870 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
2871 dump_def_use_chain): Don't declare.
2872 (mark_conflict, create_new_chain): Move before users.
2873 (regrename_optimize): Move to near end of file.
2874
2875 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2876
2877 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
2878 (secondary_input_reload_class): Remove Prototype.
2879 * config/avr/avr.c (byte_immediate_operand): Remove Function.
2880 * config/avr/avr.md (setmemhi): Use u8_operand.
2881 (strlenhi): Use const0_rtx for comparison.
2882 * config/avr/avr.h (avr_reg_order): Remove Declaration.
2883
2884 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2885
2886 * config/avr/avr.c (reg_class_tab): Make local to
2887 avr_regno_reg_class. Return smallest register class available.
2888
2889 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2890
2891 * config/avr/avr.c (STR_PREFIX_P): New Define.
2892 (avr_asm_declare_function_name): Use it.
2893 (avr_asm_named_section): Use it.
2894 (avr_section_type_flags): Use it.
2895
2896 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
2897
2898 * doc/md.texi (automata_option): Document collapse-ndfa.
2899 * genautomata.c (COLLAPSE_OPTION): New macro.
2900 (collapse_flag): New static variable.
2901 (struct description): New member normal_decls_num.
2902 (struct automaton): New members advance_ainsn and collapse_ainsn.
2903 (gen_automata_option): Check for COLLAPSE_OPTION.
2904 (collapse_ndfa_insn_decl): New static variable.
2905 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
2906 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
2907 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
2908 necessary. Use normal_decls_num rather than decls_num, remove
2909 test for special decls.
2910 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
2911 (make_automaton); Likewise. Use the new advance_cycle_insn member
2912 of struct automaton.
2913 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
2914 is set.
2915 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
2916 transition. Create the necessary transitions for it.
2917 (create_ainsns): Return void. Take an automaton_t argument, and
2918 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
2919 callers changed.
2920 (COLLAPSE_NDFA_VALUE_NAME): New macro.
2921 (output_tables): Output code to define it.
2922 (output_internal_insn_code_evaluation): Output code to accept
2923 const0_rtx as collapse-ndfa transition.
2924 (output_default_latencies, output_print_reservation_func,
2925 output_print_description): Reorganize loops to use normal_decls_num
2926 as loop bound; remove special case for advance_cycle_insn_decl.
2927 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
2928 (check_automata_insn_issues): Check for collapse_ainsn.
2929 (expand_automate): Allocate sufficient space. Initialize
2930 normal_decls_num.
2931
2932 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
2933
2934 * config/avr/avr.md: Fix indentation from r177991.
2935
2936 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
2937
2938 * regrename.c (struct du_head): Remove member terminated.
2939 (create_new_chain): Don't initialize it.
2940 (scan_rtx_reg): Don't set or test it, test the open_chains_set
2941 bitmap instead.
2942 (tick, this_tick): New global variables, moved out of
2943 regrename_optimize.
2944 (current_id, open_chains, closed_chains, open_chains_set,
2945 live_in_chains, live_hard_regs): Reorder declarations.
2946 (dump_def_use_chain): Move function earlier in the file.
2947 (rename_chains): New static function, broken out of
2948 regrename_optimize.
2949 (regrename_optimize): Use it. Remove #if 0'ed code.
2950
2951 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2952
2953 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
2954
2955 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
2956
2957 PR target/50172
2958 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
2959
2960 2011-08-24 Richard Guenther <rguenther@suse.de>
2961
2962 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
2963 ref in the basic-block case. Move stripping array-refs
2964 to the place we create an access-function for it. Remove
2965 bogus stripping down a MEM_REF to its base.
2966
2967 2011-08-24 Richard Guenther <rguenther@suse.de>
2968
2969 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
2970 with -fno-strict-overflow.
2971
2972 2011-08-24 Richard Guenther <rguenther@suse.de>
2973
2974 * tree-vectorizer.c (vect_print_dump_info): Avoid the
2975 file and location clutter when dumping to dump files.
2976
2977 2011-08-24 Simon Baldwin <simonb@google.com>
2978
2979 * gengtype-state.c (write_state): Remove timestamped header line.
2980
2981 2011-08-24 Joseph Myers <joseph@codesourcery.com>
2982
2983 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
2984 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
2985 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
2986 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
2987 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
2988 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
2989 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
2990 rules.
2991 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
2992
2993 2011-08-24 Joseph Myers <joseph@codesourcery.com>
2994
2995 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
2996
2997 2011-08-24 Richard Guenther <rguenther@suse.de>
2998
2999 PR tree-optimization/50067
3000 * tree-data-ref.c (dr_analyze_indices): Do not add an access
3001 function for a MEM_REF base that has no evolution in the loop
3002 nest or that is not analyzable.
3003
3004 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
3005
3006 * ira.c (ira_init_register_move_cost): Check small subclasses
3007 through ira_reg_class_max_nregs and ira_available_class_regs.
3008
3009 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3010
3011 * config/i386/constraints.md (Yp): New register constraint.
3012 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3013 Yp register constraint.
3014 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3015 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3016 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3017
3018 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3019
3020 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3021
3022 2011-08-23 Mark Heffernan <meheff@google.com>
3023
3024 PR middle-end/38509
3025 * common.opt (Wfree-nonheap-object): New option.
3026 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3027 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3028 to warning.
3029 (expand_builtin): Make warning conditional.
3030
3031 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
3032
3033 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3034 (length_immediate): Handle imulx, ishiftx and rotatex.
3035 (imm_disp): Ditto.
3036 (isa): Add bmi2.
3037 (enabled): Handle bmi2.
3038 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3039 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
3040 (*bmi2_umulditi3_1): New insn pattern.
3041 (*bmi2_umulsidi3_1): Ditto.
3042 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3043 (*bmi2_ashl<mode>3_1): New insn pattern.
3044 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3045 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3046 (*bmi2_ashlsi3_1_zext): New insn pattern.
3047 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3048 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3049 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3050 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3051 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3052 flags dependency.
3053 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3054 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3055 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3056 flags dependency.
3057 (*bmi2_rorx<mode>3_1): New insn pattern.
3058 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3059 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3060 (*rotatert<mode>3_1 splitter): Ditto.
3061 (*bmi2_rorxsi3_1_zext): New insn pattern.
3062 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3063 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3064 (*rotatertsi3_1_zext splitter): Ditto.
3065
3066 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
3067
3068 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3069 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3070 (ix86_handle_option): Handle OPT_mbmi2 case.
3071 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3072 (x86_64-*-*): Likewise.
3073 * config/i386/bmi2intrin.h: New file.
3074 * config/i386/cpuid.h (bit_BMI2): New.
3075 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3076 BMI2 feature.
3077 * config/i386/i386-c.c (ix86_target_macros_internal):
3078 Conditionally define __BMI2__.
3079 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3080 Handle BMI2 option.
3081 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3082 (print_reg): New code.
3083 (ix86_print_operand): Likewise.
3084 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3085 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3086 IX86_BUILTIN_PEXT64.
3087 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3088 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3089 IX86_BUILTIN_PEXT64.
3090 * config/i386/i386.h (TARGET_BMI2): New.
3091 * config/i386/i386.md (UNSPEC_PDEP): New.
3092 (UNSPEC_PEXT): Likewise.
3093 (*bmi2_bzhi_<mode>3): Likewise.
3094 (*bmi2_pdep_<mode>3): Likewise.
3095 (*bmi2_pext_<mode>3): Likewise.
3096 * config/i386/i386.opt (mbmi2): New.
3097 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3098 is defined.
3099 * doc/extend.texi: Document BMI2 built-in functions.
3100 * doc/invoke.texi: Document -mbmi2.
3101
3102 2011-08-23 Jakub Jelinek <jakub@redhat.com>
3103
3104 PR middle-end/50161
3105 * simplify-rtx.c (simplify_const_unary_operation): If
3106 op is CONST_INT, don't look at op_mode, but use instead mode.
3107 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3108 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3109 operation and TRUNCATE/ZERO_EXTEND if needed.
3110 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3111 Document that operand mode must be same as operation mode,
3112 or VOIDmode.
3113 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3114 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3115 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3116 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3117 use the mode of operand for the operation and add truncate
3118 or zero_extend around if needed.
3119 * config/c6x/c6x.md (ctzdi2): Likewise.
3120 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3121
3122 2011-08-12 Michael Matz <matz@suse.de>
3123
3124 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3125 (gimple_expand_cfg): Merge alignment info for coalesced pointer
3126 SSA names.
3127
3128 2011-08-23 Richard Guenther <rguenther@suse.de>
3129
3130 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3131 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3132 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3133 from ...
3134 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3135 (mem_refs_may_alias_p): Adjust.
3136 * tree-data-ref.h (dr_may_alias_p): Adjust.
3137 * tree-data-ref.c: Include tree-affine.h.
3138 (dr_analyze_indices): Do nothing for the non-loop case.
3139 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
3140 more cases in the non-loop case.
3141 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3142 calls to dr_may_alias_p.
3143 (write_alias_graph_to_ascii_ecc): Likewise.
3144 (write_alias_graph_to_ascii_dot): Likewise.
3145 (build_alias_set_optimal_p): Likewise.
3146
3147 2011-08-23 Richard Guenther <rguenther@suse.de>
3148
3149 PR tree-optimization/50162
3150 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3151
3152 2011-08-23 Richard Guenther <rguenther@suse.de>
3153
3154 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3155 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3156 (create_data_ref): Also dump access functions for the created data-ref.
3157
3158 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
3159 Kirill Yukhin <kirill.yukhin@intel.com>
3160
3161 PR target/50155
3162 * config/i386/sse.md (VI_AVX2): New.
3163 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3164 (*<plusminus_insn><mode>3): Ditto.
3165 (<sse2_avx2>_andnot<mode>3): Ditto.
3166 (*andnot<mode>3): Fix order of cond operands.
3167 Add asserts for correct TARGET_xxx.
3168 (*<any_logic:code><mode>3): Ditto.
3169
3170 2011-08-22 Anatoly Sokolov <aesok@post.ru>
3171
3172 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3173 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3174 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3175 regclass argument type to reg_class_t. Change 'max' and 'v' vars
3176 and return types to unsigned char. Use reg_class_contents instead
3177 of class_contents.
3178 (TARGET_CLASS_MAX_NREGS): Define.
3179
3180 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
3181
3182 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3183 to make computed_jump_p return true.
3184
3185 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3186
3187 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3188 (PICFLAG_FOR_TARGET): Substitute.
3189 * aclocal.m4: Regenerate.
3190 * configure: Regenerate.
3191
3192 2011-08-22 Dodji Seketeli <dodji@redhat.com>
3193
3194 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3195 after reading in the pch.
3196
3197 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
3198
3199 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3200 * configure: Regenerated.
3201
3202 2011-08-22 Jakub Jelinek <jakub@redhat.com>
3203
3204 PR tree-optimization/50133
3205 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3206 from stmt instead of some statement around gsi.
3207
3208 PR middle-end/50141
3209 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3210 innerdecl is a VAR_DECL.
3211
3212 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3213
3214 * config/i386/avx2intrin.h: New file.
3215 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3216 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3217 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3218 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3219 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3220 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3221 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3222 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3223 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3224 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3225 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3226 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3227 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3228 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3229 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3230 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3231 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3232 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3233 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3234 VOID_FTYPE_PV8SI_V8SI_V8SI,
3235 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3236 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3237 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3238 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3239 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3240 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3241 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3242 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3243 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3244 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3245 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3246 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3247 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3248 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3249 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3250 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3251 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3252 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3253 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3254 V4DI_FTYPE_V4DI_INT_CONVERT,
3255 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3256 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3257 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3258 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3259 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3260 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3261 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3262 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3263 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3264 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3265 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3266 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3267 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3268 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3269 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3270 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3271 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3272 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3273 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3274 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3275 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3276 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3277 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3278 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3279 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3280 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3281 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3282 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3283 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3284 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3285 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3286 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3287 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3288 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3289 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3290 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3291 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3292 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3293 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3294 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3295 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3296 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3297 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3298 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3299 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3300 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3301 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3302 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3303 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3304 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3305 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3306 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3307 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3308 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3309 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3310 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3311 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3312 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3313 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3314 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3315 IX86_BUILTIN_VBROADCASTSS_PS256,
3316 IX86_BUILTIN_VBROADCASTSD_PD256,
3317 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3318 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3319 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3320 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3321 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3322 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3323 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3324 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3325 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3326 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3327 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3328 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3329 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3330 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3331 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3332 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3333 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3334 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3335 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3336 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3337 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3338 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3339 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3340 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3341 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3342 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3343 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3344 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3345 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3346 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3347 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3348 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
3349 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3350 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3351 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3352 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3353 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3354 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3355 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3356 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3357 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3358 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3359 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3360 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3361 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3362 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3363 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3364 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3365 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3366 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3367 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3368 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3369 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3370 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3371 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3372 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3373 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3374 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3375 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3376 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3377 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3378 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3379 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3380 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3381 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3382 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3383 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3384 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3385 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3386 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3387 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3388 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3389 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3390 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3391 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3392 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3393 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3394 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3395 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3396 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3397 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3398 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3399 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3400 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3401 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3402 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3403 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3404 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3405 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3406 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3407 IX86_BUILTIN_VBROADCASTSD_PD256,
3408 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3409 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3410 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3411 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3412 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3413 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3414 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3415 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3416 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3417 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3418 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3419 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3420 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3421 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3422 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3423 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3424 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3425 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3426 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3427 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3428 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3429 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3430 IX86_BUILTIN_GATHERDIV8SI.
3431 (ix86_preferred_simd_mode): Support AVX2 modes.
3432 (ix86_expand_args_builtin): Support AVX2 builtins.
3433 (ix86_expand_special_args_builtin): Likewise.
3434 (ix86_expand_builtin): Likewise.
3435 * config/i386/i386.md (UNSPEC_VPERMSI): New.
3436 (UNSPEC_VPERMDF): Likewise.
3437 (UNSPEC_VPERMSF): Likewise.
3438 (UNSPEC_VPERMDI): Likewise.
3439 (UNSPEC_VPERMTI): Likewise.
3440 (UNSPEC_GATHER): Likewise.
3441 (ssemodesuffix): Extend.
3442 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3443 is defined.
3444 * config/i386/predicates.md (const1248_operand): New.
3445 * config/i386/sse.md (VI1_AVX2): New mode iterator.
3446 (VI2_AVX2): Likewise.
3447 (VI4_AVX2): Likewise.
3448 (VI8_AVX2): Likewise.
3449 (VIMAX_AVX2): Likewise.
3450 (SSESCALARMODE): Likewise.
3451 (VI12_AVX2): Likewise.
3452 (VI24_AVX2): Likewise.
3453 (VI124_AVX2): Likewise.
3454 (VI248_AVX2): Likewise.
3455 (VI48_AVX2): Likewise.
3456 (VI4SD_AVX2): Likewise.
3457 (V48_AVX2): Likewise.
3458 (AVX256MODE2P): Likewise.
3459 (AVXMODE48P_DI): Likewise.
3460 (sse2_avx2): New mode attribute.
3461 (ssse3_avx2): Likewise.
3462 (sse4_1_avx2): Likewise.
3463 (avx_avx2): Likewise.
3464 (ssebytemode): Likewise.
3465 (AVXTOSSEMODE): Likewise.
3466 (AVXMODE48P_DI): Likewise.
3467 (gthrfirstp): Likewise.
3468 (gthrlastp): Likewise.
3469 (lshift): New code_iterator
3470 (lshift): New code attribute.
3471 (lshift): Likewise.
3472 (ssescalarmodesuffix): Update.
3473 (sseunpackmode): Likewise.
3474 (ssepackmode): Likewise.
3475 (avx2_vec_dupv4sf): New insn pattern.
3476 (avx2_vec_dupv8sf): Likewise.
3477 (avx2_interleave_highv4di): Likewise.
3478 (avx2_interleave_lowv4di): Likewise.
3479 (avx2_umulv4siv4di3): Likewise
3480 (*avx2_umulv4siv4di3): Likewise
3481 (avx2_pmaddwd): Likewise.
3482 (*avx2_pmaddwd): Likewise.
3483 (avx2_lshrqv4di3): Likewise.
3484 (avx2_lshlqv4di3): Likewise.
3485 (avx2_lshl<mode>3): Likewise.
3486 (avx2_<umaxmin:code><mode>3): Likewise.
3487 (*avx2_<umaxmin:code><mode>3): Likewise.
3488 (avx2_<smaxmin:code><mode>3): Likewise.
3489 (*avx2_<smaxmin:code><mode>3): Likewise.
3490 (avx2_eq<mode>3): Likewise.
3491 (*avx2_eq<mode>3): Likewise.
3492 (avx2_gt<mode>3): Likewise.
3493 (avx2_interleave_highv32qi): New.
3494 (avx2_interleave_lowv32qi): Likewise.
3495 (avx2_interleave_highv16hi): Likewise.
3496 (avx2_interleave_lowv16hi): Likewise.
3497 (avx2_interleave_highv8si): Likewise.
3498 (avx2_interleave_lowv8si): Likewise.
3499 (avx2_pshufd): Likewise.
3500 (avx2_pshufd_1): Likewise.
3501 (avx2_pshuflwv3): Likewise.
3502 (avx2_pshuflw_1): Likewise.
3503 (avx2_pshufhwv3): Likewise.
3504 (avx2_pshufhw_1): Likewise.
3505 (avx2_uavgv32qi3): Likewise.
3506 (*avx2_uavgv32qi3): Likewise.
3507 (avx2_uavgv16hi3): Likewise.
3508 (*avx2_uavgv16hi3): Likewise.
3509 (avx2_pmovmskb): Likewise.
3510 (avx2_phaddwv16hi3): Likewise.
3511 (avx2_phadddv8si3): Likewise.
3512 (avx2_phaddswv16hi3): Likewise.
3513 (avx2_phsubwv16hi3): Likewise.
3514 (avx2_phsubdv8si3): Likewise.
3515 (avx2_phsubswv16hi3): Likewise.
3516 (avx2_pmaddubsw256): Likewise.
3517 (avx2_umulhrswv16hi3): Likewise.
3518 (*avx2_umulhrswv16hi3): Likewise.
3519 (avx2_packusdw): Likewise.
3520 (avx2_pblendd<mode>): Likewise.
3521 (avx2_<code>v16qiv16hi2): Likewise.
3522 (avx2_<code>v8qiv8si2): Likewise.
3523 (avx2_<code>v8hiv8si2): Likewise.
3524 (avx2_<code>v4qiv4di2): Likewise.
3525 (avx2_<code>v4hiv4di2): Likewise.
3526 (avx2_<code>v4siv4di2): Likewise.
3527 (avx2_pbroadcast<mode>): Likewise.
3528 (avx2_permvarv8si): Likewise.
3529 (avx2_permv4df): Likewise.
3530 (avx2_permvarv8sf): Likewise.
3531 (avx2_permv4di): Likewise.
3532 (avx2_permv2ti): Likewise.
3533 (avx2_vec_dupv4df): Likewise.
3534 (avx2_vbroadcasti128_<mode>): Likewise.
3535 (avx2_vec_set_lo_v4di): Likewise.
3536 (avx2_vec_set_hi_v4di): Likewise.
3537 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3538 (avx2_extracti128): Likewise.
3539 (avx2_inserti128): Likewise.
3540 (avx2_ashrvv8si): Likewise.
3541 (avx2_ashrvv4si): Likewise.
3542 (avx2_<lshift>vv8si): Likewise.
3543 (avx2_<lshift>v<mode>): Likewise.
3544 (avx2_<lshift>vv2di): Likewise.
3545 (avx2_gathersi<mode>): Likewise.
3546 (*avx2_gathersi<mode>): Likewise.
3547 (avx2_gatherdi<mode>): Likewise.
3548 (*avx2_gatherdi<mode>): Likewise.
3549 (avx2_gatherdi<mode>256): Likewise.
3550 (*avx2_gatherdi<mode>256): Likewise.
3551 (<plusminus_insn><mode>3): Use VI mode iterator.
3552 (*<plusminus_insn><mode>3): Use VI mode iterator.
3553 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3554 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3555 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3556 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
3557 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
3558 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
3559 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3560 Use VI2_AVX2 mode iterator.
3561 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3562 Use VI2_AVX2 mode iterator.
3563 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
3564 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
3565 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3566 Use VI4_AVX2 mode iterator.
3567 (ashr<mode>3): Use VI24_AVX2 mode iterator.
3568 (lshr<mode>3): Use VI248_AVX2 mode iterator.
3569 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3570 Use VIMAX_AVX2 mode iterator.
3571 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3572 Use VI mode iterator.
3573 (*andnot<mode>3): Update for AVX2.
3574 (*<any_logic:code><mode>3): Likewise.
3575 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3576 Use VI1_AVX mode iterator.
3577 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
3578 Use VI2_AVX mode iterator.
3579 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3580 Use VI1_AVX mode iterator.
3581 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3582 Use VI8_AVX2 mode iterator.
3583 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3584 Use VI1_AVX2 mode iterator.
3585 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3586 Use VI124_AVX2 mode iterator.
3587 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3588 Use SSESCALARMODE mode iterator.
3589 (abs<mode>2): Use VI124_AVX2 mode iterator.
3590 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3591 Use VI8_AVX2 mode iterator.
3592 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3593 Use VI1_AVX2 mode iterator.
3594 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3595 Use VI1_AVX2 mode iterator.
3596 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3597 Use VI2_AVX2 mode iterator.
3598 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3599 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3600 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3601 avx_maskstore<ssemodesuffix><avxsizesuffix>.
3602 Use V48_AVX2 mode iterator.
3603 * doc/extend.texi: Document AVX2 built-in functions.
3604 * doc/invoke.texi: Document -mavx2.
3605
3606 2011-08-22 Matthias Klose <doko@debian.org>
3607
3608 Revert:
3609 2011-07-11 Arthur Loiret <aloiret@debian.org>
3610 Matthias Klose <doko@debian.org>
3611 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3612 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3613 convention.
3614 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3615
3616 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
3617
3618 PR bootstrap/50146
3619 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3620 to #ifndef HONOR_REG_ALLOC_ORDER block.
3621
3622 2011-08-21 Richard Henderson <rth@redhat.com>
3623
3624 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3625 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3626 * resource.c (next_insn_no_annul): Likewise.
3627 (mark_set_resources): Likewise.
3628 * reorg.c (delete_from_delay_slot): Likewise.
3629 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3630 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3631
3632 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
3633
3634 * config/i386/i386.md (any_div): Remove.
3635 (sgnprefix): Update for removal.
3636 (u): Ditto.
3637
3638 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
3639
3640 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3641 for ira_reg_class_max_nregs. Increase pressure by 1.
3642 (mark_pseudo_regno_subword_dead): Use allocno class
3643 for ira_reg_class_max_nregs.
3644
3645 2011-08-20 Richard Henderson <rth@redhat.com>
3646
3647 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3648 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3649 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3650 config/c6x/ltf.c: Adjust include path for soft-fp.
3651
3652 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
3653
3654 PR other/46770
3655 * config.gcc (tm_file): Add initfini-array.h if
3656 .init_arrary/.fini_array are supported.
3657
3658 * crtstuff.c: Don't generate .ctors nor .dtors sections if
3659 USE_INITFINI_ARRAY is defined.
3660
3661 * output.h (default_elf_init_array_asm_out_constructor): New.
3662 (default_elf_fini_array_asm_out_destructor): Likewise.
3663 * varasm.c (elf_init_array_section): Likewise.
3664 (elf_fini_array_section): Likewise.
3665 (get_elf_initfini_array_priority_section): Likewise.
3666 (default_elf_init_array_asm_out_constructor): Likewise.
3667 (default_elf_fini_array_asm_out_destructor): Likewise.
3668
3669 * config/initfini-array.h: New.
3670
3671 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3672
3673 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3674 OK for ST_REGS and FP_REGS before taking those classes into account.
3675
3676 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
3677
3678 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3679 before checking for annulled branches.
3680
3681 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3682
3683 * config/i386/i386.c (ix86_binary_operator_ok): Use
3684 satisfies_constraint_L.
3685
3686 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
3687 Michael Matz <matz@suse.de>
3688
3689 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3690 trunc (a + copysign (nextafter (0.5, 0.0), a)).
3691
3692 2011-08-20 Anatoly Sokolov <aesok@post.ru>
3693
3694 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3695 * doc/tm.texi: Regenerate.
3696 * targhooks.c (default_preferred_output_reload_class): Don't use
3697 PREFERRED_OUTPUT_RELOAD_CLASS macro.
3698 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3699
3700 2011-08-20 Jakub Jelinek <jakub@redhat.com>
3701
3702 PR tree-optimization/48739
3703 * tree-ssa.c: Include cfgloop.h.
3704 (execute_update_addresses_taken): When updating ssa, if in loop closed
3705 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3706 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3707
3708 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
3709
3710 PR rtl-optimization/49936
3711 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3712 for calculation of max register move costs.
3713
3714 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3715
3716 * c-parser.c (c_parser_postfix_expression): Convert operands of
3717 __builtin_complex to their semantic types.
3718
3719 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
3720
3721 PR middle-end/49721
3722 * explow.c (convert_memory_address_addr_space): Also permute the
3723 conversion and addition of constant for zero-extend.
3724
3725 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3726
3727 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3728 * doc/extend.texi (__builtin_complex): Document.
3729
3730 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3731
3732 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3733 beyond conversions.
3734 (convert_mult_to_widen): Convert constant inputs to the right type.
3735 (convert_plusminus_to_widen): Don't automatically reject inputs that
3736 are not an SSA_NAME.
3737 Convert constant inputs to the right type.
3738
3739 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3740
3741 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3742 to the correct type.
3743
3744 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3745
3746 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3747 unsigned inputs of different modes.
3748 (convert_plusminus_to_widen): Likewise.
3749
3750 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3751
3752 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3753 'type'.
3754 Use 'type' from caller, not inferred from 'rhs'.
3755 Don't reject non-conversion statements. Do return lhs in this case.
3756 (is_widening_mult_p): Add new argument 'type'.
3757 Use 'type' from caller, not inferred from 'stmt'.
3758 Pass type to is_widening_mult_rhs_p.
3759 (convert_mult_to_widen): Pass type to is_widening_mult_p.
3760 (convert_plusminus_to_widen): Likewise.
3761
3762 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3763
3764 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3765 Ensure the the larger type is the first operand.
3766
3767 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3768
3769 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3770 unsupported unsigned multiplies to signed.
3771 (convert_plusminus_to_widen): Likewise.
3772
3773 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3774
3775 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3776 conversion statement separating multiply-and-accumulate.
3777
3778 2011-08-19 Richard Guenther <rguenther@suse.de>
3779
3780 PR tree-optimization/50067
3781 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3782 offset only if we accounted for it.
3783
3784 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3785
3786 * config/arm/arm.md (maddhidi4): Remove '*' from name.
3787 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3788 * optabs.c (find_widening_optab_handler_and_mode): New function.
3789 (expand_widen_pattern_expr): Use find_widening_optab_handler.
3790 (expand_binop_directly): Likewise.
3791 (expand_binop): Likewise.
3792 * optabs.h (find_widening_optab_handler): New macro define.
3793 (find_widening_optab_handler_and_mode): New prototype.
3794 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3795 type precision rules.
3796 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3797 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3798 (is_widening_mult_rhs_p): Allow widening by more than one mode.
3799 Explicitly disallow mis-matched input types.
3800 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3801 input types to fit the new handler.
3802 (convert_plusminus_to_widen): Likewise.
3803
3804 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
3805
3806 * expr.c (expand_expr_real_2): Use widening_optab_handler.
3807 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3808 (gen_insn): $N now means $a must be wider than $b, not consecutive.
3809 * optabs.c (widened_mode): New function.
3810 (expand_widen_pattern_expr): Use widening_optab_handler.
3811 (expand_binop_directly): Likewise.
3812 (expand_binop): Likewise.
3813 * optabs.h (widening_optab_handlers): New struct.
3814 (optab_d): New member, 'widening'.
3815 (widening_optab_handler): New function.
3816 (set_widening_optab_handler): New function.
3817 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3818 widening_optab_handler.
3819 (convert_plusminus_to_widen): Likewise.
3820
3821 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3822
3823 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3824 pedantic.
3825 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3826 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3827
3828 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3829
3830 * opth-gen.awk: Do not declare target save/restore structures and
3831 functions if IN_RTS defined.
3832
3833 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3834
3835 PR target/49437
3836 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3837 when stack was realigned in interrupt handler prologue.
3838
3839 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3840
3841 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3842 (quals_from_declspecs): Assert _Noreturn not present.
3843 (grokdeclarator): Handle _Noreturn.
3844 (build_null_declspecs): Initialize noreturn_p.
3845 (declspecs_add_scspec): Handle RID_NORETURN.
3846 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3847 (c_parser_attributes): Handle RID_NORETURN.
3848 * c-tree.h (struct c_declspecs): Add noreturn_p.
3849 * ginclude/stdnoreturn.h: New.
3850 * Makefile.in (USER_H): Add stdnoreturn.h.
3851
3852 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
3853
3854 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3855 (OPTION_MASK_ISA_AVX_UNSET): Update.
3856 (OPTION_MASK_ISA_AVX2_UNSET): New.
3857 (ix86_handle_option): Handle OPT_mavx2 case.
3858 * config/i386/cpuid.h (bit_AVX2): New.
3859 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3860 AVX2 feature.
3861 * config/i386/i386-c.c (ix86_target_macros_internal):
3862 Conditionally define __AVX2__.
3863 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3864 Define "core-avx2" processor alias. Handle avx2 option.
3865 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
3866 * config/i386/i386.h (TARGET_AVX2): New.
3867 * config/i386/i386.opt (mavx2): New.
3868 * doc/invoke.texi: Document -mavx2.
3869
3870 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
3871
3872 PR rtl-optimization/49890
3873 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
3874 subclasses of class which is superset of a pressure class.
3875
3876 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
3877 Igor Zamyatin <igor.zamyatin@intel.com>
3878
3879 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
3880 with HOST_WIDE_INT for isa_flag.
3881 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
3882 isa variables.
3883
3884 * config/i386/i386.c (ix86_target_string): Replace int with
3885 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
3886 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
3887 (pta_flags): Removed.
3888 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
3889 (pta): Use HOST_WIDE_INT on flags.
3890 (builtin_isa): Use HOST_WIDE_INT on isa.
3891 (ix86_add_new_builtins): Likewise.
3892 (def_builtin): Use HOST_WIDE_INT on mask.
3893 (def_builtin_const): Likewise.
3894 (builtin_description): Likewise.
3895
3896 * config/i386/i386.opt (ix86_isa_flags): Replace int with
3897 HOST_WIDE_INT.
3898 (ix86_isa_flags_explicit): Likewise.
3899 (x_ix86_isa_flags_explicit): Likewise.
3900
3901 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
3902
3903 PR rtl-optimization/50107
3904 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
3905 (ira_hard_reg_in_set_p): New.
3906
3907 * ira-color.c (calculate_saved_nregs): New.
3908 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
3909 hard regs.
3910 (allocno_reload_assign, fast_allocation): Use
3911 ira_hard_reg_set_intersection_p instead of
3912 ira_hard_reg_not_in_set_p.
3913
3914 * ira.c (setup_reg_renumber): Use
3915 ira_hard_reg_set_intersection_p instead of
3916 ira_hard_reg_not_in_set_p.
3917 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
3918 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
3919
3920 * ira-costs.c (ira_tune_allocno_costs): Use
3921 ira_hard_reg_set_intersection_p instead of
3922 ira_hard_reg_not_in_set_p.
3923
3924 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
3925 Igor Zamyatin <igor.zamyatin@intel.com>
3926
3927 * hwint.h (HOST_WIDE_INT_1): New.
3928
3929 * opt-functions.awk (switch_bit_fields): Initialize the
3930 host_wide_int field.
3931 (host_wide_int_var_name): New.
3932 (var_type_struct): Check and return HOST_WIDE_INT.
3933
3934 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
3935
3936 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
3937
3938 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
3939 check masks for HOST_WIDE_INT.
3940
3941 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
3942 (option_enabled): Likewise.
3943 (get_option_state): Likewise.
3944
3945 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
3946 to HOST_WIDE_INT.
3947
3948 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3949 Marc Glisse <marc.glisse@normalesup.org>
3950
3951 PR libstdc++-v3/1773
3952 * target.def (decl_mangling_context): New C++ hook.
3953 * doc/tm.texi: Regenerate.
3954 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
3955 * config/sol2-protos.h: Group by source file.
3956 (solaris_cxx_decl_mangling_context): Declare.
3957 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
3958 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
3959 Use $<.
3960 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
3961 Add sol2-stubs.o to extra_objs.
3962
3963 2011-08-18 Jakub Jelinek <jakub@redhat.com>
3964
3965 PR target/50009
3966 * stor-layout.c (update_alignment_for_field): Don't ICE on
3967 packed flexible array members if ms_bitfield_layout_p.
3968
3969 PR target/50092
3970 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
3971 on the result before returning it.
3972
3973 PR debug/50017
3974 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
3975 is a debug stmt, use location of the first non-debug stmt after it.
3976
3977 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
3978
3979 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
3980 (arm_size_rtx_costs): Likewise.
3981
3982 2011-08-18 Richard Guenther <rguenther@suse.de>
3983
3984 * tree.h (tree_int_cst_msb): Remove.
3985 * tree.c (tree_int_cst_msb): Likewise.
3986 (tree_int_cst_sign_bit): Move from ...
3987 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
3988
3989 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
3990
3991 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
3992 * doc/tm.texi: Regenerate.
3993 * target.def (rtx_costs): Add an opno parameter.
3994 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3995 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3996 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3997 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3998 * cse.c (COST_IN): Add an opno parameter.
3999 (notreg_cost): Likewise. Update call to rtx_cost.
4000 (COST, fold_rtx): Update accordingly.
4001 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4002 * expmed.c (emit_store_flag): Likewise.
4003 * optabs.c (avoid_expensive_constant): Add an opno parameter.
4004 Update call to rtx_cost.
4005 (expand_binop_directly, expand_binop): Likewise.
4006 (expand_twoval_binop, prepare_cmp_insn): Likewise.
4007 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4008 (set_src_cost, get_full_set_src_cost): Update accordingly.
4009 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
4010 to target hook.
4011 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
4012 (default_adress_cost): Update calls to rtx_cost.
4013
4014 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4015 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4016 (arm_rtx_costs): Add an opno parameter.
4017 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4018 adjust any recursive rtx-cost calls.
4019 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4020 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4021 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4022 * config/cris/cris.c (cris_rtx_costs): Likewise.
4023 * config/frv/frv.c (frv_rtx_costs): Likewise.
4024 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4025 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4026 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4027 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4028 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4029 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4030 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4031 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4032 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4033 * config/mep/mep.c (mep_rtx_cost): Likewise.
4034 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4035 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4036 (mips_zero_extend_cost): Add an opno parameter.
4037 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4038 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4039 to rtx_cost.
4040 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4041 rtx-cost calls.
4042 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4043 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4044 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4045 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4046 (rs6000_debug_rtx_costs): Likewise.
4047 * config/s390/s390.c (s390_rtx_costs): Likewise.
4048 * config/score/score-protos.h (score_rtx_costs): Likewise.
4049 * config/score/score.c (score_rtx_costs): Likewise.
4050 * config/sh/sh.c (andcosts): Update call to rtx_cost.
4051 (sh_rtx_costs): Add an opno parameter.
4052 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4053 * config/spu/spu.c (spu_rtx_costs): Likewise.
4054 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4055 * config/v850/v850.c (v850_rtx_costs): Likewise.
4056 * config/vax/vax.c (vax_rtx_costs): Likewise.
4057 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4058
4059 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4060
4061 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4062 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4063 rtx_cost.
4064 * calls.c (precompute_register_parameters): Likewise.
4065 * combine.c (expand_compound_operation, make_extraction): Likewise.
4066 (force_to_mode, distribute_and_simplify_rtx): Likewise.
4067 * dse.c (find_shift_sequence): Likewise.
4068 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4069 * expr.c (compress_float_constant): Likewise.
4070 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4071 * gcse.c (want_to_gcse_p): Likewise.
4072 * ifcvt.c (noce_try_sign_mask): Likewise.
4073 * loop-doloop.c (doloop_optimize): Likewise.
4074 * loop-invariant.c (create_new_invariant): Likewise.
4075 * optabs.c (avoid_expensive_constant): Likewise.
4076 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4077 (try_replace_in_use, reload_cse_move2add): Likewise.
4078 * reload1.c (calculate_elim_costs_all_insns): Likewise.
4079 (note_reg_elim_costly): Likewise.
4080 * rtlanal.c (insn_rtx_cost): Likewise.
4081 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4082 * stmt.c (lshift_cheap_p): Likewise.
4083 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4084 * config/avr/avr.c (final_prescan_insn): Likewise.
4085 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4086 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4087
4088 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
4089
4090 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4091 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4092 * cfgloopanal.c (seq_cost): Likewise.
4093 * loop-invariant.c (create_new_invariant): Likewise.
4094 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4095 (reload_cse_move2add): Use get_full_set_rtx_cost.
4096
4097 2011-08-18 Richard Guenther <rguenther@suse.de>
4098
4099 * expr.c (get_inner_reference): Fix typo in last change.
4100
4101 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4102 Joseph Myers <joseph@codesourcery.com>
4103
4104 PR tree-optimization/49963
4105 * hwint.c (absu_hwi): Define.
4106 * hwint.h (absu_hwi): Declare.
4107 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4108 of abs_hwi.
4109 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4110 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4111
4112 2011-08-18 Richard Guenther <rguenther@suse.de>
4113
4114 * expr.c (get_inner_reference): Sign-extend the constant
4115 twos-complement offset before doing arbitrary precision
4116 arithmetic on it.
4117 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4118 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4119 to get_constraint_for_ptr_offset.
4120
4121 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
4122
4123 PR target/50068
4124 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4125
4126 2011-08-17 Richard Guenther <rguenther@suse.de>
4127
4128 * tree.h (convert_to_ptrofftype_loc): New function.
4129 (convert_to_ptrofftype): Define.
4130 * builtins.c (expand_builtin_bzero): Use size_type_node.
4131 (fold_builtin_bzero): Likewise.
4132 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4133 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4134 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4135 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4136 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4137 * fold-const.c (build_range_check): Negate using the original type.
4138 (fold_unary_loc): Use fold_build_pointer_plus_loc.
4139 * gimple-fold.c (gimple_adjust_this_by_delta): Use
4140 convert_to_ptrofftype.
4141 * gimplify.c (gimplify_self_mod_expr): Likewise.
4142 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4143 (graphite_create_new_loop_guard): Likewise.
4144 * graphite-sese-to-poly.c (my_long_long): Remove.
4145 (scop_ivs_can_be_represented): Adjust.
4146 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4147 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4148 * tree-loop-distribution.c (build_size_arg_loc): Use
4149 size_type_node.
4150 (generate_memset_zero): Simplify.
4151 * tree-mudflap.c: Use fold_convert, not convert.
4152 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4153 its own type.
4154 (determine_offset): Likewise for DR_STEP.
4155 (valid_initializer_p): Likewise.
4156 * tree-profile.c (prepare_instrumented_value): Convert the pointer
4157 to an integer type of same size.
4158 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4159 to sizetype without need.
4160 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4161 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4162 * tree-ssa-loop-manip.c (create_iv): Likewise.
4163 (determine_exit_conditions): Adjust comment.
4164 * tree-ssa-pre.c (create_expression_by_pieces): Use
4165 convert_to_ptrofftype.
4166 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4167 * varasm.c (array_size_for_constructor): Compute using double_ints.
4168
4169 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4170
4171 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4172 when generating an integer result where possible. Short-cut
4173 comparison against 0 also for QImode.
4174
4175 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4176
4177 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4178 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4179 prototype.
4180 * config/spu/spu.c (spu_legitimize_reload_address): New function.
4181 (spu_legitimate_address_p): Do not check displacement if the base
4182 is an eliminable stack register.
4183
4184 2011-08-16 Anatoly Sokolov <aesok@post.ru>
4185
4186 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4187 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4188 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4189 m32c_preferred_output_reload_class): Remove.
4190 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4191 Change rclass argument and return types to reg_class_t. Use
4192 reg_class_subset_p instead of class_sizes.
4193 (m32c_preferred_output_reload_class): Make static. Change rclass
4194 argument and return types to reg_class_t.
4195 (TARGET_PREFERRED_RELOAD_CLASS,
4196 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4197
4198 2011-08-16 Kai Tietz <ktietz@redhat.com>
4199
4200 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4201
4202 2011-08-16 Richard GUenther <rguenther@suse.de>
4203
4204 PR tree-optimization/50082
4205 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4206 warnings here, instead of ...
4207 (ssa_forward_propagate_and_combine): ... here.
4208 (forward_propagate_into_comparison_1): Adjust.
4209 (forward_propagate_into_comparison): Likewise.
4210 (forward_propagate_into_gimple_cond): Likewise.
4211 (forward_propagate_into_cond): Likewise.
4212
4213 2011-08-16 Andreas Schwab <schwab@redhat.com>
4214
4215 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4216 instead of ggc_alloc_zone_vec_rtvec_def.
4217
4218 2011-08-16 Richard Guenther <rguenther@suse.de>
4219
4220 * tree.h (ptrofftype_p): New helper function.
4221 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4222 offset verification.
4223 (verify_gimple_assign_binary): Likewise.
4224 * tree.c (build2_stat): Likewise.
4225 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4226 (reset_evolution_in_loop): Likewise.
4227 * tree-chrec.h (build_polynomial_chrec): Likewise.
4228
4229 2011-08-16 Liang Wang <lwang1@marvell.com>
4230
4231 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4232 ggc_alloc_zone_vec_rtvec_def.
4233
4234 2011-08-16 Richard Guenther <rguenther@suse.de>
4235
4236 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4237 helper factored out from ...
4238 (extract_range_from_binary_expr_1): ... here. Re-structure
4239 to not glob handling too different tree codes.
4240
4241 2011-08-15 Richard Henderson <rth@redhat.com>
4242
4243 PR middle-end/50006
4244 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4245 setting out to include allocate_stack named pattern as well.
4246 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4247 * stmt.c (expand_stack_restore): Likewise.
4248
4249 2011-08-15 Richard Guenther <rguenther@suse.de>
4250
4251 PR middle-end/50082
4252 * fold-const.c (maybe_canonicalize_comparison_1): Properly
4253 convert the modified operand to the other operand type.
4254 (fold_comparison): Call maybe_canonicalize_comparison_1 with
4255 useless conversions stripped from comparison operands.
4256
4257 2011-08-15 Richard Guenther <rguenther@suse.de>
4258
4259 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4260 (extract_range_from_unary_expr_1): Restructure.
4261
4262 2011-08-15 Richard Guenther <rguenther@suse.de>
4263
4264 PR tree-optimization/50058
4265 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4266 copy matching.
4267
4268 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4269
4270 PR target/50022
4271 * config/arm/arm.c (output_move_double): Add 2 parameters
4272 to count the number of insns emitted and whether to emit or not.
4273 Use the flag to decide when to emit and count number of instructions
4274 that will be emitted.
4275 Handle case where output_move_double might be called for calculating
4276 lengths with an invalid constant.
4277 (arm_count_output_move_double_insns): Define.
4278 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4279 (output_move_double): Adjust prototype.
4280 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4281 output_move_double.
4282 ("*movdi_vfp_cortexa8"): Likewise and add attribute
4283 for ce_count.
4284 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4285 ("*movdf_soft_insn"): Likewise.
4286 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4287 ("*cirrus_thumb2_movdi"): Likewise.
4288 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4289 ("*cirrus_movdf_hard_insn"): Likewise.
4290 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4291 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4292 ("mov<mode>_internal VMMX"): Likewise.
4293 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4294
4295 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
4296
4297 * config/i386/i386.c (ix86_expand_round_sse4): New function.
4298 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4299 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4300 for TARGET_ROUND.
4301
4302 (rint<mode>2): Simplify TARGET_ROUND check.
4303 (floor<mode>2): Ditto.
4304 (ceil<mode>2): Ditto.
4305 (btrunc<mode>2): Ditto.
4306
4307 2011-08-14 Anatoly Sokolov <aesok@post.ru>
4308
4309 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4310 as mmix_preferred_output_reload_class.
4311
4312 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
4313
4314 * PR target/49903
4315 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4316 (branch_unspec): New insn.
4317 (branch): Beauty farm.
4318 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
4319 to be IF_THEN_ELSE.
4320 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4321 New static functions.
4322 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
4323 Use CONST_INT_P. Beauty.
4324
4325 2011-08-12 Richard Henderson <rth@redhat.com>
4326
4327 PR rtl-opt/49994
4328 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4329 * sched-deps.c (init_deps): Clear it.
4330 (deps_analyze_insn): Consume it.
4331 (sched_analyze_insn): Fill it.
4332
4333 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4334
4335 PR target/48328
4336 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4337 for tbh instructions.
4338
4339 2011-08-12 Diego Novillo <dnovillo@google.com>
4340
4341 * data-streamer.h (streamer_write_zero): Rename from output_zero.
4342 (streamer_write_uhwi): Rename from lto_output_uleb128.
4343 (streamer_write_hwi): Rename from output_sleb128.
4344 (streamer_write_string): Rename from lto_output_string.
4345 (streamer_string_index): Rename from lto_string_index.
4346 (streamer_write_string_with_length): Rename from
4347 lto_output_string_with_length.
4348 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4349 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4350 (streamer_read_string): Rename from lto_input_string.
4351 (streamer_read_indexed_string): Rename from input_string_internal.
4352 (streamer_read_uhwi): Rename from lto_input_uleb128.
4353 (streamer_read_hwi): Rename from lto_input_sleb128.
4354 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4355 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4356 (streamer_write_enum): Rename from lto_output_enum.
4357 (streamer_read_enum): Rename from lto_input_enum.
4358 (streamer_write_record_start): Rename from output_record_start.
4359 (streamer_read_record_start): Rename from input_record_start.
4360 (streamer_write_bitpack): Rename from lto_output_bitpack.
4361 (streamer_read_bitpack): Rename from lto_input_bitpack.
4362 (streamer_write_char_stream): Rename from lto_output_1_stream.
4363 (streamer_read_uchar): Rename from lto_input_1_unsigned.
4364 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4365 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4366 (streamer_read_string_cst): Rename from input_string_cst.
4367 (streamer_read_chain): Rename from lto_input_chain.
4368 (streamer_alloc_tree): Rename from lto_materialize_tree.
4369 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4370 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4371 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4372 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4373 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4374 (streamer_write_chain): Rename from lto_output_chain.
4375 (streamer_write_tree_header): Rename from lto_output_tree_header.
4376 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4377 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4378 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4379 (streamer_write_builtin): Rename from lto_output_builtin_tree.
4380 (streamer_check_handled_ts_structures): Rename from
4381 check_handled_ts_structures.
4382 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4383 (streamer_tree_cache_insert_at): Rename from
4384 lto_streamer_cache_insert_at.
4385 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4386 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4387 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4388 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4389 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4390 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4391 (write_identifier): Rename from output_identifier.
4392 (write_ts_common_tree_pointers): Rename from
4393 lto_output_ts_common_tree_pointers.
4394 (write_ts_vector_tree_pointers): Rename from
4395 lto_output_ts_vector_tree_pointers.
4396 (write_ts_complex_tree_pointers): Rename from
4397 lto_output_ts_complex_tree_pointers.
4398 (write_ts_decl_minimal_tree_pointers): Rename from
4399 lto_output_ts_decl_minimal_tree_pointers.
4400 (write_ts_decl_common_tree_pointers): Rename from
4401 lto_output_ts_decl_common_tree_pointers.
4402 (write_ts_decl_non_common_tree_pointers): Rename from
4403 lto_output_ts_decl_non_common_tree_pointers.
4404 (write_ts_decl_with_vis_tree_pointers): Rename from
4405 lto_output_ts_decl_with_vis_tree_pointers.
4406 (write_ts_field_decl_tree_pointers): Rename from
4407 lto_output_ts_field_decl_tree_pointers.
4408 (write_ts_function_decl_tree_pointers): Rename from
4409 lto_output_ts_function_decl_tree_pointers.
4410 (write_ts_type_common_tree_pointers): Rename from
4411 lto_output_ts_type_common_tree_pointers.
4412 (write_ts_type_non_common_tree_pointers): Rename from
4413 lto_output_ts_type_non_common_tree_pointers.
4414 (write_ts_list_tree_pointers): Rename from
4415 lto_output_ts_list_tree_pointers.
4416 (write_ts_vec_tree_pointers): Rename from
4417 lto_output_ts_vec_tree_pointers.
4418 (write_ts_exp_tree_pointers): Rename from
4419 lto_output_ts_exp_tree_pointers.
4420 (write_ts_block_tree_pointers): Rename from
4421 lto_output_ts_block_tree_pointers.
4422 (write_ts_binfo_tree_pointers): Rename from
4423 lto_output_ts_binfo_tree_pointers.
4424 (write_ts_constructor_tree_pointers): Rename from
4425 lto_output_ts_constructor_tree_pointers.
4426 (write_ts_target_option): Rename from lto_output_ts_target_option.
4427 (write_ts_translation_unit_decl_tree_pointers): Rename from
4428 lto_output_ts_translation_unit_decl_tree_pointers.
4429 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4430 Rename from lto_streamer_cache_add_to_node_array.
4431 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4432 (record_common_node): Rename from lto_record_common_node.
4433
4434 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4435 declarations.
4436 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4437 function.
4438 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4439 unused function.
4440 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4441 (ipa-reference.o): Likewise.
4442 * lto-section-out.c: Include data-streamer.h.
4443 * ipa-reference.c: Include data-streamer.h.
4444
4445 2011-08-12 Nick Clifton <nickc@redhat.com>
4446
4447 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4448 * doc/md.texi (cmpstrn): Note that the comparison stops if both
4449 fetched bytes are zero.
4450 (cmpstr): Likewise.
4451 (cmpmem): Note that the comparison does not stop if both of the
4452 fetched bytes are zero.
4453
4454 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
4455
4456 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4457 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4458 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4459 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4460 to integer_type_node.
4461 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4462 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4463 * builtins.c (expand_builtin_in): Ditto.
4464 (mathfn_built_in_1): Ditto.
4465 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4466 BUILT_IN_IFLOOR.
4467 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4468 BUILT_IN_IROUND.
4469 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4470 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4471 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4472
4473 2011-08-12 Richard Guenther <rguenther@suse.de>
4474
4475 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4476
4477 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
4478
4479 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4480
4481 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
4482
4483 * config/arm/arm.c (get_label_padding): New function.
4484 (create_fix_barrier, arm_reorg): Use it.
4485
4486 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
4487
4488 PR target/49781
4489 * config/i386/i386.md (*lea_5_zext): New.
4490 (*lea_6_zext): Ditto.
4491 * config/i386/predicates.md (const_32bit_mask): New predicate.
4492 (lea_address_operand): Reject AND.
4493 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4494 const_32bit_mask immediate.
4495 (ix86_print_operand_address): Handle AND.
4496 (memory_address_length): Ditto.
4497
4498 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
4499 Brian Hackett <bhackett1024@gmail.com>
4500
4501 * plugin.def: Add event for finish_decl.
4502 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4503 * c-decl.c (finish_decl): Invoke callbacks on above event.
4504 * doc/plugins.texi: Document above event.
4505
4506 2011-08-11 Richard Guenther <rguenther@suse.de>
4507
4508 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4509 lookups, make looking through aggregate copies stronger.
4510
4511 2011-08-11 Richard Henderson <rth@redhat.com>
4512
4513 PR bootstrap/50018
4514 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4515
4516 2011-08-11 Richard Guenther <rguenther@suse.de>
4517
4518 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4519 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4520 (vrp_visit_stmt): Likewise.
4521
4522 2011-08-11 Richard Guenther <rguenther@suse.de>
4523
4524 PR middle-end/50040
4525 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4526 load of the other piece with TREE_NO_WARNING.
4527 * tree-flow.h (warn_uninit): Adjust prototype.
4528 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4529 the base variable and the expression that is used separately.
4530 Properly query all TREE_NO_WARNING flags.
4531 (struct walk_data): Remove.
4532 (warn_uninitialized_var): Likewise.
4533 (warn_uninitialized_vars): Do not walk gimple pieces but simply
4534 look at all SSA uses of the statement. Handle unused memory
4535 separately.
4536 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4537
4538 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
4539
4540 * config/rx/rx.md (movsicc): Allow register to register transfers.
4541 (*movsicc): Likewise.
4542 (*stcc): Restrict this pattern to EQ and NE compares.
4543 (*stcc_reg): New pattern. Works for any comparison but only for
4544 register transfers.
4545
4546 2011-08-11 Diego Novillo <dnovillo@google.com>
4547
4548 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4549 Call stream_write_tree instead of output_record_start.
4550 (lto_output_ts_binfo_tree_pointers): Likewise.
4551
4552 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4553 Convert it to a macro.
4554 (stream_read_tree): Likewise.
4555
4556 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4557 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4558
4559 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4560 and tree_read_bitfields.
4561 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4562 (lto_write_tree): Call it.
4563 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4564 * streamer-hooks.h (struct streamer_hooks): Remove fields
4565 name, is_streamable and alloc_tree. Update all users.
4566 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4567 (lto_materialize_tree): ... here.
4568 Handle CALL_EXPR codes.
4569 Remove call to lto_streamer_cache_append.
4570 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4571 * tree-streamer.h (tree_read_bitfields): Declare.
4572
4573 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4574 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4575 * tree-streamer.h (stream_read_tree): New. Replace all calls
4576 to lto_input_tree with it.
4577 (stream_write_tree): New. Replace all calls to lto_output_tree,
4578 lto_output_tree_ref and lto_output_tree_or_ref with it.
4579 * lto-streamer-in.c (lto_read_tree): Inline code from
4580 lto_streamer_read_tree.
4581 (lto_input_tree): Move from tree-streamer-in.c.
4582 * lto-streamer-out.c (lto_output_tree_ref): Make static.
4583 Remove handling of NULL values for EXPR.
4584 Do not handle EXPRs that are not indexable.
4585 (lto_write_tree): Move from tree-streamer-out.c.
4586 Inline lto_streamer_write_tree.
4587 (lto_output_tree): Move from tree-streamer-out.c.
4588 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4589 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4590 (lto_preload_common_nodes): Likewise.
4591 Remove assertions and adjustments for nodes
4592 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4593 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4594 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4595 * lto-streamer.h (lto_input_tree): Declare.
4596 (lto_output_tree_ref): Remove.
4597 * streamer-hooks.h (struct streamer_hooks): Remove fields
4598 preload_common_nodes, indexable_with_decls_p,
4599 pack_value_fields, unpack_value_fields and output_tree_header.
4600 Update all users.
4601 * tree-streamer-in.c (lto_materialize_tree): Make extern.
4602 (lto_input_tree_pointers): Likewise.
4603 (lto_read_tree): Move to lto-streamer-in.c.
4604 (lto_input_integer_cst): Make extern.
4605 (lto_get_pickled_tree): Likewise.
4606 (lto_get_builtin_tree): Likewise.
4607 (lto_input_tree): Move to lto-streamer-in.c.
4608 * tree-streamer-out.c (pack_value_fields): Make extern.
4609 (lto_output_tree_or_ref): Remove. Replace all callers with
4610 calls to stream_write_tree.
4611 (lto_output_builtin_tree): Make extern.
4612 (lto_streamer_write_tree): Inline into lto_write_tree.
4613 (lto_output_tree_pointers): Make extern.
4614 (lto_output_tree_header): Likewise.
4615 (lto_output_integer_cst): Likewise.
4616 (lto_write_tree): Move to lto-streamer-out.c.
4617 (lto_output_tree): Likewise.
4618 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4619 (preload_common_nodes): Likewise.
4620 (lto_streamer_cache_create): Call it.
4621 * tree-streamer.h: Include streamer-hooks.h.
4622 (stream_write_tree): New.
4623 (stream_read_tree): New.
4624 (lto_input_tree): Remove.
4625 (lto_materialize_tree): Declare.
4626 (lto_input_tree_pointers): Declare.
4627 (lto_get_pickled_tree): Declare.
4628 (lto_get_builtin_tree): Declare.
4629 (lto_input_integer_cst): Declare.
4630 (lto_output_tree_header): Declare.
4631 (pack_value_fields): Declare.
4632 (lto_output_tree_pointers): Declare.
4633 (lto_output_integer_cst): Declare.
4634 (lto_output_builtin_tree): Declare.
4635
4636 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4637
4638 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4639 only if producer writes to the register given by regno.
4640
4641 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4642 Alexander Monakov <amonakov@ispras.ru>
4643
4644 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4645 (sched_get_condition_with_rev_uncached): ... this. Factor out
4646 condition caching logic into ...
4647 (sched_get_condition_with_rev): ... this. Reimplement. Do not
4648 attempt to use cache for instructions with zero luid.
4649 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4650 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4651
4652 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4653
4654 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4655 get_seqno_for_a_jump. Update the caller.
4656 (get_seqno_by_succs): New. Use it ...
4657 (get_seqno_for_a_jump): ... here to find a seqno if looking at
4658 predecessors was not sufficient.
4659 (get_seqno_by_preds): Include head in iteration range, exclude insn.
4660
4661 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4662
4663 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4664
4665 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4666
4667 * sel-sched-ir.h (register_unavailable_p): Declare.
4668 * sel-sched-ir.c (register_unavailable_p): New. Use it...
4669 (set_unavailable_target_for_expr): ... here to properly test
4670 availability of a register.
4671 (speculate_expr): Ditto.
4672 * sel-sched.c (substitute_reg_in_expr): Ditto.
4673 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4674
4675 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
4676
4677 * sel-sched.c (verify_target_availability): Fix usage of
4678 hard_regno_nregs.
4679
4680 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4681
4682 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4683 recognized by cannot_copy_insn_p hook and volatile instructions.
4684
4685 2011-08-11 Dmitry Melnik <dm@ispras.ru>
4686
4687 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4688
4689 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
4690
4691 * doc/md.texi (define_bypass): Say that the instruction names can
4692 be filename-style globs.
4693 * Makefile.in (FNMATCH_H): Define.
4694 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4695 * genattrtab.c: Include fnmatch.h.
4696 (bypass_list): Change field name from "insn" to "pattern".
4697 (gen_bypass_1): Update accordingly.
4698 (process_bypasses): Use fnmatch to check for matches between
4699 insn reservations and define_bypasses.
4700 * genautomata.c: Include fnmatch.h.
4701 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4702 and out_pattern respectively.
4703 (gen_bypass, insert_bypass): Update accordingly.
4704 (for_each_matching_insn, process_bypass_2, process_bypass_1)
4705 (process_bypass): New functions.
4706 (process_decls): Use process_bypass. Update after field name changes.
4707
4708 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
4709
4710 PR target/49687
4711 * config/avr/avr.md (smulqi3_highpart): New insn.
4712 (umulqi3_highpart): New insn.
4713 (*subqi3.ashiftrt7): New insn.
4714 (smulhi3_highpart): New expander.
4715 (umulhi3_highpart): Nex expander.
4716 (*smulhi3_highpart_call): New insn.
4717 (*umulhi3_highpart_call): New insn.
4718 (extend_u): New code attribute.
4719 (extend_prefix): Rename code attribute to extend_su.
4720 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4721 widening QI/HI multiply.
4722
4723 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
4724
4725 PR tree-optimization/50039
4726 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4727 that DEF_STMT has a stmt_vec_info.
4728
4729 2011-08-10 Richard Guenther <rguenther@suse.de>
4730
4731 * tree.h (can_trust_pointer_alignment): Remove.
4732 * builtins.c (can_trust_pointer_alignment): Remove.
4733
4734 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4735
4736 * c-typeck.c (scalar_to_vector): New function. Try scalar to
4737 vector conversion.
4738 (stv_conv): New enum for scalar_to_vector return type.
4739 (build_binary_op): Adjust.
4740 * doc/extend.texi: Description of scalar to vector expansion.
4741
4742 2011-08-10 Richard Guenther <rguenther@suse.de>
4743
4744 * tree.h (get_pointer_alignment): Remove max-align argument.
4745 (get_object_alignment): Likewise.
4746 * builtins.c (get_object_alignment_1): Adjust.
4747 (get_object_alignment): Remove max-align argument.
4748 (get_pointer_alignment): Likewise.
4749 (expand_builtin_strlen): Adjust.
4750 (expand_builtin_memcpy): Likewise.
4751 (expand_builtin_mempcpy_args): Likewise.
4752 (expand_builtin_strncpy): Likewise.
4753 (expand_builtin_memset_args): Likewise.
4754 (expand_builtin_memcmp): Likewise.
4755 (expand_builtin_strcmp): Likewise.
4756 (expand_builtin_strncmp): Likewise.
4757 (get_builtin_sync_mem): Likewise.
4758 (fold_builtin_memset): Likewise.
4759 (fold_builtin_memory_op): Likewise.
4760 (expand_builtin_memory_chk): Likewise.
4761 * emit-rtl.c (get_mem_align_offset): Likewise.
4762 (set_mem_attributes_minus_bitpos): Likewise.
4763 * expr.c (expand_assignment): Likewise.
4764 (expand_expr_real_1): Likewise.
4765 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4766 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4767 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4768 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4769 * value-prof.c (gimple_stringops_transform): Likewise.
4770
4771 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
4772
4773 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4774 * doc/tm.texi: Regenerate.
4775
4776 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
4777
4778 PR target/29560
4779 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4780 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4781 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4782 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4783 shift target is unused.
4784
4785 2011-08-10 Richard Guenther <rguenther@suse.de>
4786
4787 PR tree-optimization/49937
4788 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4789 using get_object_alignment_1.
4790
4791 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4792
4793 * config/i386/i386.c (ix86_emit_i387_round): New function.
4794 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4795 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4796 Use ix86_emit_i387_round to expand round function for i387 math.
4797 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4798 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4799
4800 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4801
4802 * config/sync.c: Move to ../libgcc.
4803 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4804 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4805 Remove.
4806
4807 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4808
4809 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4810 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4811 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4812 Change 'from' and 'to' arguments type to reg_class_t.
4813 (TARGET_REGISTER_MOVE_COST): Define.
4814
4815 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
4816
4817 PR target/50026
4818 Revert:
4819 PR rtl-optimization/49990
4820 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4821 ignore classes which can not change mode.
4822 (find_costs_and_classes): Ditto.
4823
4824 2011-08-09 Richard Guenther <rguenther@suse.de>
4825
4826 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4827 information for ranges with only negative values.
4828 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4829 BIT_AND_EXPR handling to handle ranges with negative values.
4830
4831 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
4832
4833 * config/i386/i386.c: Remove traling spaces.
4834 * config/i386/sse.md: Likewise.
4835 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4836 (*fma_fmsub_<mode>): Likewise.
4837 (*fma_fnmadd_<mode>): Likewise.
4838 (*fma_fnmsub_<mode>): Likewise.
4839
4840 2011-08-09 Nick Clifton <nickc@redhat.com>
4841
4842 * config/rx/rx.md: Disable extender peepholes at -O3.
4843
4844 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
4845
4846 PR target/49781
4847 * config/i386/i386.md (reload_noff_load): New.
4848 (reload_noff_store): Ditto.
4849 * config/i386/i386.c (ix86_secondary_reload): Use
4850 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4851 double-word moves from/to non-offsetable addresses instead of
4852 generating XMM temporary.
4853
4854 2011-08-09 Anatoly Sokolov <aesok@post.ru>
4855
4856 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4857
4858 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
4859
4860 PR tree-optimization/50014
4861 * tree-vect-loop.c (vectorizable_reduction): Get def type before
4862 calling vect_get_vec_def_for_stmt_copy ().
4863
4864 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
4865
4866 PR rtl-optimization/49990
4867 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4868 ignore classes which can not change mode.
4869 (find_costs_and_classes): Ditto.
4870
4871 2011-08-08 Richard Henderson <rth@redhat.com>
4872
4873 PR middle-end/49990
4874 * config/i386/i386.c (ix86_expand_prologue): Call
4875 for SEH target gen_prologue_use instead of gen_blockage
4876 at prologue's end.
4877
4878 2011-08-08 Martin Jambor <mjambor@suse.cz>
4879
4880 PR middle-end/49923
4881 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
4882 memory alignment.
4883
4884 2011-08-08 Diego Novillo <dnovillo@google.com>
4885
4886 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
4887 (DATA_STREAMER_H): New.
4888 (GIMPLE_STREAMER_H): New.
4889 (TREE_STREAMER_H): New.
4890 (STREAMER_HOOKS_H): New.
4891 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
4892 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
4893 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
4894 (data-streamer.o): New.
4895 (data-streamer-in.o): New.
4896 (data-streamer-out.o): New.
4897 (gimple-streamer-in.o): New.
4898 (gimple-streamer-out.o): New.
4899 (streamer-hooks.o): New.
4900 (tree-streamer.o): New.
4901 (tree-streamer-in.o): New.
4902 (tree-streamer-out.o): New.
4903 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4904 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
4905 GIMPLE_STREAMER_H and TREE_STREAMER_H.
4906 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
4907 GIMPLE_STREAMER_H and TREE_STREAMER_H.
4908 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
4909 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4910 (ipa-inline-analysis.o): Likewise.
4911 (ipa-pure-const.o): Likewise.
4912 * data-streamer-in.c: New.
4913 * data-streamer-out.c: New.
4914 * data-streamer.c: New.
4915 * data-streamer.h: New.
4916 * gimple-streamer-in.c: New.
4917 * gimple-streamer-out.c: New.
4918 * gimple-streamer.h: New.
4919 * ipa-inline-analysis.c: Include data-streamer.h.
4920 * ipa-prop.c: Include data-streamer.h.
4921 * ipa-pure-const.c: Include data-streamer.h.
4922 * lto-cgraph.c: Include data-streamer.h.
4923 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
4924 (lto_input_widest_uint_uleb128): Likewise.
4925 (lto_input_sleb128): Likewise.
4926 (bp_unpack_var_len_unsigned): Likewise.
4927 (bp_unpack_var_len_int): Likewise.
4928 * lto-section-out.c (lto_output_uleb128_stream): Move to
4929 data-streamer-out.c.
4930 (lto_output_widest_uint_uleb128_stream): Likewise.
4931 (lto_output_sleb128_stream): Likewise.
4932 (bp_pack_var_len_unsigned): Likewise.
4933 (bp_pack_var_len_int): Likewise.
4934 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
4935 (struct string_slot): Remove. Update all users.
4936 (lto_tag_check_set): Make extern.
4937 (lto_tag_check_range): Move to lto-streamer.h.
4938 (lto_tag_check): Likewise.
4939 (hash_string_slot_node): Remove. Update all users.
4940 (eq_string_slot_node): Remove. Update all users.
4941 (string_for_index): Move to data-streamer-in.c
4942 (input_string_internal): Likewise.
4943 (input_string_cst): Move to tree-streamer-in.c.
4944 (input_identifier): Likewise.
4945 (lto_input_string): Move to data-streamer-in.c
4946 (input_record_start): Move to data-streamer.h
4947 (canon_file_name): Use new definition of struct string_slot
4948 from data-streamer.h. Set S_SLOT.LEN.
4949 (lto_input_location): Make extern.
4950 (lto_input_chain): Move to tree-streamer-in.c.
4951 (lto_init_eh): Make extern.
4952 (input_phi): Move to gimple-streamer-in.c.
4953 (input_gimple_stmt): Likewise.
4954 (input_bb): Likewise.
4955 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
4956 (unpack_ts_real_cst_value_fields): Likewise.
4957 (unpack_ts_fixed_cst_value_fields): Likewise.
4958 (unpack_ts_decl_common_value_fields): Likewise.
4959 (unpack_ts_decl_wrtl_value_fields): Likewise.
4960 (unpack_ts_decl_with_vis_value_fields): Likewise.
4961 (unpack_ts_function_decl_value_fields): Likewise.
4962 (unpack_ts_type_common_value_fields): Likewise.
4963 (unpack_ts_block_value_fields): Likewise.
4964 (unpack_ts_translation_unit_decl_value_fields): Likewise.
4965 (unpack_value_fields): Likewise.
4966 (lto_materialize_tree): Likewise.
4967 (lto_input_ts_common_tree_pointers): Likewise.
4968 (lto_input_ts_vector_tree_pointers): Likewise.
4969 (lto_input_ts_complex_tree_pointers): Likewise.
4970 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
4971 (lto_input_ts_decl_common_tree_pointers): Likewise.
4972 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
4973 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
4974 (lto_input_ts_field_decl_tree_pointers): Likewise.
4975 (lto_input_ts_function_decl_tree_pointers): Likewise.
4976 (lto_input_ts_type_common_tree_pointers): Likewise.
4977 (lto_input_ts_type_non_common_tree_pointers): Likewise.
4978 (lto_input_ts_list_tree_pointers): Likewise.
4979 (lto_input_ts_vec_tree_pointers): Likewise.
4980 (lto_input_ts_exp_tree_pointers): Likewise.
4981 (lto_input_ts_block_tree_pointers): Likewise.
4982 (lto_input_ts_binfo_tree_pointers): Likewise.
4983 (lto_input_ts_constructor_tree_pointers): Likewise.
4984 (lto_input_ts_target_option): Likewise.
4985 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
4986 (lto_input_tree_pointers): Likewise.
4987 (lto_get_pickled_tree): Likewise.
4988 (lto_get_builtin_tree): Likewise.
4989 (lto_read_tree): Likewise.
4990 (lto_input_integer_cst): Likewise.
4991 (lto_input_tree): Likewise.
4992 * lto-streamer-out.c: Include data-streamer.h,
4993 gimple-streamer.h and streamer-hooks.h.
4994 (struct string_slot): Move to data-streamer.h.
4995 (hash_string_slot_node): Likewise.
4996 (eq_string_slot_node): Likewise.
4997 (lto_string_index): Move to data-streamer-out.c.
4998 (lto_output_string_with_length): Likewise.
4999 (lto_output_string): Likewise.
5000 (output_string_cst): Move to tree-streamer-out.c.
5001 (output_identifier): Likewise.
5002 (output_zero): Move to data-streamer-out.c
5003 (output_uleb128): Likewise.
5004 (output_sleb128): Likewise.
5005 (output_record_start): Move to data-streamer.h
5006 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5007 (pack_ts_real_cst_value_fields): Likewise.
5008 (pack_ts_fixed_cst_value_fields): Likewise.
5009 (pack_ts_decl_common_value_fields): Likewise.
5010 (pack_ts_decl_wrtl_value_fields): Likewise.
5011 (pack_ts_decl_with_vis_value_fields): Likewise.
5012 (pack_ts_function_decl_value_fields): Likewise.
5013 (pack_ts_type_common_value_fields): Likewise.
5014 (pack_ts_block_value_fields): Likewise.
5015 (pack_ts_translation_unit_decl_value_fields): Likewise.
5016 (pack_value_fields): Likewise.
5017 (lto_output_chain): Likewise.
5018 (lto_output_ts_common_tree_pointers): Likewise.
5019 (lto_output_ts_vector_tree_pointers): Likewise.
5020 (lto_output_ts_complex_tree_pointers): Likewise.
5021 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5022 (lto_output_ts_decl_common_tree_pointers): Likewise.
5023 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5024 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5025 (lto_output_ts_field_decl_tree_pointers): Likewise.
5026 (lto_output_ts_function_decl_tree_pointers): Likewise.
5027 (lto_output_ts_type_common_tree_pointers): Likewise.
5028 (lto_output_ts_type_non_common_tree_pointers): Likewise.
5029 (lto_output_ts_list_tree_pointers): Likewise.
5030 (lto_output_ts_vec_tree_pointers): Likewise.
5031 (lto_output_ts_exp_tree_pointers): Likewise.
5032 (lto_output_ts_block_tree_pointers): Likewise.
5033 (lto_output_ts_binfo_tree_pointers): Likewise.
5034 (lto_output_ts_constructor_tree_pointers): Likewise.
5035 (lto_output_ts_target_option): Likewise.
5036 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5037 (lto_output_tree_pointers): Likewise.
5038 (lto_output_tree_header): Likewise.
5039 (lto_output_builtin_tree): Likewise.
5040 (lto_write_tree): Likewise.
5041 (lto_output_integer_cst): Likewise.
5042 (lto_output_tree): Likewise.
5043 (output_phi): Move to gimple-streamer-out.c.
5044 (output_gimple_stmt): Likewise.
5045 (output_bb): Likewise.
5046 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5047 (streamer_hooks): Move to streamer-hooks.c.
5048 (check_handled_ts_structures): Move to tree-streamer.c
5049 (lto_streamer_cache_add_to_node_array): Likewise.
5050 (lto_streamer_cache_insert_1): Likewise.
5051 (lto_streamer_cache_insert): Likewise.
5052 (lto_streamer_cache_insert_at): Likewise.
5053 (lto_streamer_cache_append): Likewise.
5054 (lto_streamer_cache_lookup): Likewise.
5055 (lto_streamer_cache_get): Likewise.
5056 (lto_record_common_node): Likewise.
5057 (lto_preload_common_nodes): Likewise.
5058 (lto_streamer_cache_create): Likewise.
5059 (lto_streamer_cache_delete): Likewise.
5060 (streamer_hooks_init): Move to streamer-hooks.c.
5061 * lto-streamer.h: Include diagnostic.h
5062 (struct output_block, struct lto_input_block,
5063 struct data_in, struct bitpack_d): Remove forward declarations.
5064 (struct bitpack_d): Move to data-streamer.h.
5065 (struct lto_streamer_cache_d): Move to tree-streamer.h.
5066 (struct streamer_hooks): Move to streamer-hooks.h.
5067 (bp_pack_var_len_unsigned): Move to data-streamer.h.
5068 (bp_pack_var_len_int): Likewise.
5069 (bp_unpack_var_len_unsigned): Likewise.
5070 (bp_unpack_var_len_int): Likewise.
5071 (lto_input_location): Declare.
5072 (lto_tag_check_set): Declare.
5073 (lto_init_eh): Declare.
5074 (lto_output_tree_ref): Declare.
5075 (lto_output_location): Declare.
5076 (bitpack_create): Move to data-streamer.h.
5077 (bp_pack_value): Likewise.
5078 (lto_output_bitpack): Likewise.
5079 (lto_input_bitpack): Likewise.
5080 (bp_unpack_value): Likewise.
5081 (lto_output_1_stream): Likewise.
5082 (lto_input_1_unsigned): Likewise.
5083 (lto_output_int_in_range): Likewise.
5084 (lto_input_int_in_range): Likewise.
5085 (bp_pack_int_in_range): Likewise.
5086 (bp_unpack_int_in_range): Likewise.
5087 (lto_output_enum): Likewise.
5088 (lto_input_enum): Likewise.
5089 (bp_pack_enum): Likewise.
5090 (bp_unpack_enum): Likewise.
5091 * streamer-hooks.c: New.
5092 * streamer-hooks.h: New.
5093 * tree-streamer-in.c: New.
5094 * tree-streamer-out.c: New.
5095 * tree-streamer.c: New.
5096 * tree-streamer.h: New.
5097
5098 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5099
5100 * gthr-posix95.h: Remove.
5101 * gthr.h [_PTHREADS95]: Remove.
5102 * configure.ac (enable_threads): Remove posix95.
5103 * configure: Regenerate.
5104 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5105
5106 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
5107
5108 PR target/49781
5109 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5110 SImode addresses.
5111 (ix86_print_operand_address): Handle zero-extended addresses.
5112 (memory_address_length): Add length of addr32 prefix for
5113 zero-extended addresses.
5114 (ix86_secondary_reload): Handle moves to/from double-word general
5115 registers from/to zero-extended addresses.
5116 * config/i386/predicates.md (lea_address_operand): Reject
5117 zero-extended operands.
5118
5119 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
5120
5121 PR other/48007
5122 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5123
5124 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5125 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5126
5127 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5128 (_Unwind_Context_Reg_Val): Likewise.
5129 (_Unwind_Get_Unwind_Word): Likewise.
5130 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5131 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5132 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5133 for EXTENDED_CONTEXT_BIT.
5134 (__frame_state_for): Likewise.
5135 (uw_init_context_1): Likewise.
5136 (_Unwind_GetGR): Updated.
5137 (_Unwind_SetGR): Likewise.
5138 (_Unwind_GetGRPtr): Likewise.
5139 (_Unwind_SetGRPtr): Likewise.
5140 (_Unwind_SetGRValue): Likewise.
5141 (_Unwind_GRByValue): Likewise.
5142 (uw_install_context_1): Likewise.
5143
5144 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5145 ASSUME_EXTENDED_UNWIND_CONTEXT.
5146 * doc/tm.texi: Regenerated.
5147
5148 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5149
5150 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5151
5152 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5153
5154 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5155 Linux/GNU-specific.
5156 (DEC Alpha Options, -mtune): Likewise.
5157 (MIPS Options, -march): native is supported on IRIX.
5158
5159 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5160
5161 * config/sparc/driver-sparc.c: New file.
5162 * config/sparc/x-sparc: New file.
5163 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5164 * config/sparc/sparc.opt (native): New value for enum processor_type.
5165 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5166 * config/sparc/sparc.c (sparc_option_override): Abort if
5167 PROCESSOR_NATIVE gets here.
5168 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5169 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5170 DRIVER_SELF_SPECS): Define.
5171 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5172 (SPARC Options, -mtune): Likewise.
5173 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5174 Substitute result.
5175 * configure: Regenerate.
5176 * Makefile.in (EXTRA_GCC_LIBS): Set.
5177 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5178 (cpp$(exeext)): Likewise.
5179
5180 2011-08-08 Richard Guenther <rguenther@suse.de>
5181
5182 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5183 split out from ...
5184 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
5185 by composition.
5186
5187 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
5188
5189 PR tree-optimization/50005
5190 * ipa-inline-analysis (remap_predicate): Add cast to
5191 silence signed/unsigned comparison warning.
5192
5193 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5194
5195 * modulo-sched.c (get_sched_window): Use a table for the debug output.
5196 Print the current ii.
5197 (sms_schedule_by_order): Reduce whitespace in dump line.
5198
5199 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
5200
5201 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5202 and one loop for successors. Fix upper bound of memory range.
5203
5204 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5205
5206 PR target/50001
5207 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5208 (TARGET_INSTANTIATE_DECLS): New define.
5209
5210 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
5211 Mikael Morin <mikael.morin@sfr.fr>
5212
5213 * Makefile.in (INCLUDES_FOR_TARGET): New.
5214 (LIBGCC2_CFLAGS): Use it.
5215 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5216
5217 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5218
5219 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5220 frame->save_regs_using_mov calculation.
5221
5222 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
5223
5224 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5225 * config/i386/sse.md (castmode): New mode attribute.
5226 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5227 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5228
5229 2011-08-05 Jan Hubicka <jh@suse.cz>
5230
5231 PR middle-end/49494
5232 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5233
5234 2011-08-05 Jan Hubicka <jh@suse.cz>
5235
5236 PR middle-end/49500
5237 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5238 handle aliases.
5239 (create_emultls_var):New function.
5240 (ipa_lower_emutls): Handle aliases correctly.
5241
5242 2011-08-05 Jan Hubicka <jh@suse.cz>
5243
5244 PR middle-end/49735
5245 * ipa-inline.c (recursive_inlining): Look through aliases.
5246
5247 2011-08-05 Jason Merrill <jason@redhat.com>
5248
5249 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5250 declarations to beginning of function.
5251
5252 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
5253
5254 PR rtl-optimization/49900
5255 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5256 ensure basic blocks stay in the same order.
5257
5258 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
5259
5260 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5261 store_bit_field.
5262 (s390_expand_atomic): Same.
5263
5264 2011-08-05 Richard Henderson <rth@redhat.com>
5265
5266 PR rtl-opt/49977
5267 * dwarf2cfi.c (scan_insn_after): Split out of ...
5268 (scan_trace): ... here. Correctly place notes wrt sequences.
5269
5270 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
5271 Richard Henderson <rth@redhat.com>
5272
5273 PR rtl-opt/49982
5274 * expr.c (fixup_args_size_notes): Look through no-op moves.
5275
5276 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5277
5278 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5279 of "m" for operand 0. Add type and mode attribute.
5280 (*pushxf_nointeger"): Use "<" constraint for operand 0.
5281 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
5282 constraint instead of "o" for opreand 1.
5283 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
5284 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5285 operand 0, alternative 4.
5286 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5287
5288 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5289
5290 * config/i386/predicates.md (lea_address_operand): Rename from
5291 no_seg_address_operand.
5292 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5293 (*lea_1_zext): Ditto.
5294 (*lea_2): Ditto.
5295 (*lea_2_zext): Ditto.
5296
5297 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
5298
5299 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5300 parts.base and parts.index.
5301 * config/i386/predicates.md (aligned_operand): Ditto.
5302 (cmpxchg8b_pic_memory_operand): Ditto.
5303
5304 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5305
5306 * config/soft-fp: Move to ../libgcc.
5307 * Makefile.in (SFP_MACHINE): Remove.
5308 (libgcc-support): Remove $(SFP_MACHINE) dependency.
5309 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5310 * config/arm/t-arm-softfp: Move to
5311 ../libgcc/config/arm/t-softfp.
5312 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5313 * config/c6x/t-c6x-softfp: Remove.
5314 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5315 * config/i386/t-fprules-softfp: Move to
5316 ../libgcc/config/t-softfp-tf.
5317 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5318 * config/ia64/t-fprules-softfp: Remove.
5319 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5320 * config/lm32/t-fprules-softfp: Remove.
5321 * config/moxie/sfp-machine.h: Remove.
5322 * config/moxie/t-moxie-softfp: Remove.
5323 * config/rs6000/darwin-ldouble-format: Move to
5324 ../libgcc/config/rs6000/ibm-ldouble-format.
5325 * config/rs6000/darwin-ldouble.c: Move to
5326 ../libgcc/config/rs6000/ibm-ldouble.c
5327 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5328 * config/rs6000/libgcc-ppc64.ver: Likewise.
5329 * config/rs6000/sfp-machine.h: Likewise.
5330 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5331 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5332 (LIB2FUNCS_EXTRA): Remove.
5333 (TARGET_LIBGCC2_CFLAGS): Remove.
5334 * config/rs6000/t-aix52: Likewise
5335 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5336 $(srcdir)/config/rs6000/darwin-ldouble.c.
5337 (SHLIB_MAPFILES): Remove.
5338 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5339 $(srcdir)/config/rs6000/darwin-ldouble.c.
5340 * config/rs6000/t-fprules-softfp: Move to
5341 ../libgcc/config/t-softfp-sfdf.
5342 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5343 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5344 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5345 $(srcdir)/config/rs6000/darwin-ldouble.c.
5346 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5347 * config/score/t-score-softfp: Remove.
5348 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5349 soft-fp/t-softfp from tmake_file.
5350 (arm*-*-uclinux*): Likewise.
5351 (arm*-*-ecos-elf): Likewise.
5352 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5353 (arm*-*-rtems*): Likewise.
5354 (arm*-*-elf): Likewise.
5355 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5356 tmake_file.
5357 (moxie-*-uclinux*): Likewise.
5358 (moxie-*-rtems*): Likewise.
5359 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5360 tmake_file.
5361 (lm32-*-rtems*): Likewise.
5362 (lm32-*-uclinux*): Likewise.
5363 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5364 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5365 (powerpc-*-linux*, powerpc64-*-linux*): Remove
5366 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5367 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5368 tmake_file.
5369 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5370 tmake_file.
5371 (tic6x-*-uclinux): Likewise.
5372 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5373 soft-fp/t-softfp from tmake_file.
5374 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5375 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5376 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5377 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5378 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5379
5380 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5381
5382 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5383 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5384 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5385 TPBIT, TPBIT_FUNCS.
5386 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5387 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5388 Remove.
5389 * config/arm/t-vxworks: Likewise.
5390 * config/arm/t-wince-pe: Likewise.
5391 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5392 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5393 * config/bfin/t-bfin-elf: Likewise.
5394 * config/bfin/t-bfin-linux: Likewise.
5395 * config/bfin/t-bfin-uclinux: Likewise.
5396 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5397 Remove.
5398 * config/fr30/t-fr30: Likewise.
5399 * config/frv/t-frv: Likewise.
5400 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5401 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5402 * config/m32c/t-m32c: Likewise.
5403 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5404 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5405 * config/mcore/t-mcore: Likewise.
5406 * config/mep/t-mep: Likewise.
5407 * config/microblaze/t-microblaze: Likewise.
5408 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5409 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5410 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5411 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5412 * config/mn10300/t-linux: Remove.
5413 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5414 * config/pdp11/t-pdp11: Likewise.
5415 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5416 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5417 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5418 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5419 * config/rs6000/t-aix52: Likewise.
5420 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5421 $(srcdir)/config/rs6000/ppc64-fp.c.
5422 * config/rs6000/t-fprules-fpbit: Remove.
5423 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5424 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5425 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5426 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5427 * config/sparc/t-elf: Likewise.
5428 * config/sparc/t-leon: Likewise.
5429 * config/sparc/t-leon3: Likewise.
5430 * config/spu/t-spu-elf: Likewise.
5431 (DPBIT_FUNCS): Remove.
5432 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5433 * config/v850/t-v850: Likewise.
5434 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5435 (avr-*-*): Likewise.
5436 (h8300-*-rtems*): Set libgcc_tm_file.
5437 (h8300-*-elf*): Likewise.
5438 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5439 tmake_file.
5440 (powerpc-*-eabisim*): Likewise.
5441 (powerpc-*-elf*): Likewise.
5442 (powerpc-*-eabialtivec*): Likewise.
5443 (powerpc-xilinx-eabi*): Likewise.
5444 (powerpc-*-eabi*): Likewise.
5445 (powerpc-*-rtems*): Likewise.
5446 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5447 (powerpcle-*-elf*): Likewise.
5448 (powerpcle-*-eabisim*): Likewise.
5449 (powerpcle-*-eabi*): Likewise.
5450 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5451 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5452 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5453 Remove.
5454
5455 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5456
5457 * Makefile.in (UNWIND_H): Remove.
5458 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5459 ../libgcc/Makefile.in.
5460 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5461 (LIBUNWINDDEP): Remove.
5462 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5463 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5464 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5465 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5466 Don't copy $(UNWIND_H).
5467 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5468 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5469 * aclocal.m4: Regenerate.
5470 * configure: Regenerate.
5471 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5472 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5473 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5474 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5475 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5476 * config/arm/libunwind.S, config/arm/pr-support.c,
5477 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5478 ../libgcc/config/arm.
5479 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5480 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5481 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5482 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5483 ($(T)frvend$(objext)): Likewise.
5484 * config/ia64/t-glibc (LIB2ADDEH): Remove.
5485 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5486 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5487 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5488 ../libgcc/config/ia64.
5489 * config/ia64/t-hpux (LIB2ADDEH): Remove.
5490 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5491 * config/ia64/t-vms (LIB2ADDEH): Remove.
5492 * config/ia64/vms.h (UNW_IVMS_MODE,
5493 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5494 * config/picochip/t-picochip (LIB2ADDEH): Remove.
5495 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5496 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5497 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5498 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5499 $(srcdir)/../libgcc to refer to unwinder sources.
5500 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5501 * config/t-darwin (LIB2ADDEH): Remove.
5502 * config/t-freebsd (LIB2ADDEH): Remove.
5503 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5504 * config/t-libunwind-elf: Move to ../libgcc/config.
5505 * config/t-linux (LIB2ADDEH): Remove.
5506 * config/t-sol2 (LIB2ADDEH): Remove.
5507 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5508 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5509
5510 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
5511
5512 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5513
5514 * doc/invoke.texi: Document core-avx-i.
5515
5516 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5517
5518 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5519
5520 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
5521
5522 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5523 result of multiple results reduction when extracting the final
5524 value using scalar code.
5525
5526 2011-08-05 Richard Guenther <rguenther@suse.de>
5527
5528 PR tree-optimization/49984
5529 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5530
5531 2011-08-05 Richard Guenther <rguenther@suse.de>
5532
5533 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5534 return true for constant integer ranges.
5535 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5536 BIT_IOR_EXPR handling.
5537
5538 2011-08-04 Kai Tietz <ktietz@redhat.com>
5539
5540 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5541 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5542
5543 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
5544
5545 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5546 pattern def statement, and its access macro.
5547 (NUM_PATTERNS): Set to 5.
5548 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5549 pattern def statement.
5550 (vect_transform_loop): Likewise.
5551 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5552 function vect_recog_over_widening_pattern ().
5553 (vect_operation_fits_smaller_type): New function.
5554 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5555 Likewise.
5556 (vect_pattern_recog_1): Move the code that marks pattern
5557 statements to vect_mark_pattern_stmts (), and call it. Update
5558 documentation.
5559 * tree-vect-stmts.c (vect_supportable_shift): New function.
5560 (vect_analyze_stmt): Handle pattern def statement.
5561 (new_stmt_vec_info): Initialize pattern def statement.
5562
5563 2011-08-04 Richard Henderson <rth@redhat.com>
5564
5565 PR target/49964
5566 * config/i386/i386.c (ix86_expand_call): Don't create nested
5567 PARALLELs for TARGET_VZEROUPPER.
5568 (ix86_split_call_vzeroupper): Fix extraction of the original call.
5569 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5570 recognize nested PARALLELs.
5571 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5572 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5573 *sibcall_value_pop_vzeroupper): Likewise.
5574
5575 2011-08-04 Richard Henderson <rth@redhat.com>
5576
5577 PR middle-end/49968
5578 * calls.c (expand_call): Use fixup_args_size_notes for
5579 emit_stack_restore.
5580 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5581 in non-standard modes.
5582
5583 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5584
5585 * gcc.c (self_spec): New variable.
5586 (static_specs): Add self_spec.
5587 (main): Call do_self_spec on "self_spec" specs after reading
5588 user specs files. Move compare_debug handling right after that.
5589
5590 2011-08-04 Richard Guenther <rguenther@suse.de>
5591
5592 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5593 (value_range_nonnegative_p): New function.
5594 (ssa_name_nonnegative_p): Use it.
5595 (value_range_constant_singleton): New function.
5596 (op_with_constant_singleton_value_range): Use it.
5597 (extract_range_from_binary_expr_1): New function, split out from ...
5598 (extract_range_from_binary_expr): ... this. Remove fallback
5599 constant folding done here.
5600
5601 2011-08-04 Richard Guenther <rguenther@suse.de>
5602
5603 PR tree-optimization/49806
5604 * tree-vrp.c (op_with_boolean_value_range_p): New function.
5605 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
5606 a new statement for a final conversion to bool.
5607
5608 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
5609
5610 * gengtype-state.c: Include "bconfig.h" if
5611 GENERATOR_FILE is defined, "config.h" otherwise.
5612 * gengtype.c: Likewise.
5613 * gengtype-lex.l: Likewise.
5614 * gengtype-parse.c: Likewise.
5615 * Makefile.in (gengtype-lex.o-warn): New variable.
5616 (plugin_resourcesdir): Likewise.
5617 (plugin_bindir): Likewise.
5618 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5619 (MOSTLYCLEANFILES): Add gengtype$(exeext).
5620 (native): Depend on gengtype$(exeext) is $enable_plugin
5621 is set to "yes".
5622 (gtype.state): Depend on s-gtype. Use temporary file.
5623 (gengtype-lex.o): New rule.
5624 (gengtype-parse.o): Likewise.
5625 (gengtype-state.o): Likewise.
5626 (gengtype$(exeext)): Likewise.
5627 (install-gengtype): Likewise.
5628 (gengtype.o): Likewise.
5629 (build/gengtype.o): Depend on version.h.
5630 (build/gengtype-state): Depend on double-int.h, version.h,
5631 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5632 (install-plugin): Depend on install-gengtype.
5633
5634 2011-08-04 Jakub Jelinek <jakub@redhat.com>
5635
5636 PR middle-end/49905
5637 * tree.h (init_attributes): New prototype.
5638 * attribs.c (init_attributes): No longer static.
5639
5640 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5641
5642 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5643 maybe_suffix.
5644
5645 2011-08-03 David Li <davidxl@google.com>
5646
5647 * tree-optimize.c (execute_fixup_cfg): Fix up entry
5648 outgoing edge counts after inlining.
5649
5650 2011-08-03 David Li <davidxl@google.com>
5651
5652 * profile.c (compute_branch_probabilities): Compute
5653 function frequency after profile annotation.
5654
5655 2011-08-04 Alan Modra <amodra@gmail.com>
5656
5657 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5658 use_backchain_to_restore_sp initialisation.
5659 (rs6000_legitimate_offset_address_p): Simplify offset test.
5660
5661 2011-08-03 Richard Henderson <rth@redhat.com>
5662
5663 * config/spu/spu.md: Use define_c_enum instead of define_constants.
5664 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5665 (UNSPECV_NOP): New.
5666
5667 2011-08-03 Richard Henderson <rth@redhat.com>
5668
5669 PR target/34888
5670 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5671
5672 2011-08-03 Jakub Jelinek <jakub@redhat.com>
5673
5674 PR tree-optimization/49948
5675 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5676
5677 2011-08-03 Anatoly Sokolov <aesok@post.ru>
5678
5679 * config/m32c/m32c.c (class_sizes): Remove.
5680 (reduce_class): Change arguments and return type to reg_class_t.
5681 Change type cc var to HARD_REG_SET. Change type best var to
5682 reg_class_t. Change type best_size var to unsigned int. Remove
5683 initialization class_sizes var. Use reg_class_size array instead
5684 of class_sizes. Use reg_class_contents array instead
5685 of class_contents.
5686
5687 2011-08-03 Richard Guenther <rguenther@suse.de>
5688
5689 PR middle-end/49958
5690 * fold-const.c (fold_binary_loc): Only associate
5691 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5692 overflow wraps.
5693
5694 2011-08-03 Alan Modra <amodra@gmail.com>
5695
5696 PR rtl-optimization/49941
5697 * jump.c (mark_jump_label): Comment.
5698 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5699 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5700 (mark_used_flags): Don't mark RETURN.
5701
5702 2011-08-03 Richard Guenther <rguenther@suse.de>
5703
5704 PR tree-optimization/49938
5705 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5706 deal with a POLYNOMIAL_CHREC.
5707
5708 2011-08-03 Revital Eres <revital.eres@linaro.org>
5709
5710 * modulo-sched.c (calculate_stage_count,
5711 calculate_must_precede_follow, get_sched_window,
5712 try_scheduling_node_in_cycle, remove_node_from_ps): Add
5713 declaration.
5714 (update_node_sched_params, set_must_precede_follow, optimize_sc):
5715 New functions.
5716 (reset_sched_times): Call update_node_sched_params.
5717 (sms_schedule): Call optimize_sc.
5718 (get_sched_window): Change function arguments.
5719 (sms_schedule_by_order): Update call to get_sched_window.
5720 Call set_must_precede_follow.
5721 (calculate_stage_count): Add function argument.
5722
5723 2011-08-02 Richard Henderson <rth@redhat.com>
5724
5725 PR target/49864
5726 PR target/49879
5727 * reg-notes.def (REG_ARGS_SIZE): New.
5728 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5729 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5730 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5731 different stack levels.
5732 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5733 (maybe_move_args_size_note): New.
5734 (combine_stack_adjustments_for_block): Use it.
5735 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5736 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5737 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5738 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5739 (cur_cfa): New.
5740 (queued_args_size): Remove.
5741 (add_cfi_args_size): Assert size is non-negative.
5742 (stack_adjust_offset, dwarf2out_args_size): Remove.
5743 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5744 (notice_args_size, notice_eh_throw): New.
5745 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5746 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5747 (dwarf2out_frame_debug_cfa_offset): Likewise.
5748 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
5749 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5750 (change_cfi_row): Don't emit args_size.
5751 (maybe_record_trace_start_abnormal): Split out from ...
5752 (maybe_record_trace_start): Here. Set args_size_undefined.
5753 (create_trace_edges): Update to match.
5754 (scan_trace): Handle REG_ARGS_SIZE.
5755 (connect_traces): Connect args_size between EH insns.
5756 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5757 * explow.c (suppress_reg_args_size): New.
5758 (adjust_stack_1): Split out from ...
5759 (adjust_stack): ... here.
5760 (anti_adjust_stack): Use it.
5761 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5762 * expr.c (mem_autoinc_base): New.
5763 (fixup_args_size_notes): New.
5764 (emit_single_push_insn_1): Rename from emit_single_push_insn.
5765 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
5766 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5767 * reload1.c (reload_as_needed): Likewise.
5768 * rtl.h (fixup_args_size_notes): Declare.
5769
5770 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
5771
5772 PR bootstrap/49914
5773 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5774 of abs.
5775 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5776 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5777
5778 2011-08-02 Richard Henderson <rth@redhat.com>
5779
5780 * config/h8300/h8300.c (push, pop): Return the insn.
5781 (h8300_swap_into_er6): Generate correct unwind info.
5782 (h8300_swap_out_of_er6): Likewise.
5783 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5784 complex cfa expression.
5785 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5786
5787 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
5788
5789 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5790
5791 2011-08-02 Richard Henderson <rth@redhat.com>
5792
5793 PR target/49878
5794 * config/h8300/h8300.c (h8300_move_ok): New.
5795 * config/h8300/h8300-protos.h: Declare it.
5796 * config/h8300/h8300.md (P): New mode iterator.
5797 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5798 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5799 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5800 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5801 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5802 and pushqi1_h8300hs_normal; use PRE_MODIFY and
5803 register_no_sp_elim_operand.
5804 (*pushhi1_h8300hs_<P>): Similarly.
5805 (pushqi1, pushhi1, pushhi1_h8300): Remove.
5806 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5807
5808 2011-08-02 Richard Henderson <rth@redhat.com>
5809
5810 PR target/49881
5811 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5812
5813 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5814
5815 * c-parser.c (enum c_parser_prec): New enum, moved from within
5816 c_parser_binary_expression.
5817 (c_parser_binary_expression): Add PREC argument. Stop parsing
5818 if operator has lower or equal precedence than PREC.
5819 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5820 callers.
5821 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5822 Adjust c_finish_omp_atomic caller.
5823 (c_parser_omp_taskyield): New function.
5824 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5825 (c_parser_omp_clause_name): Handle final and mergeable clauses.
5826 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5827 functions.
5828 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5829 and PRAGMA_OMP_CLAUSE_MERGEABLE.
5830 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5831 (c_parser_omp_clause_reduction): Handle min and max.
5832 * c-typeck.c (c_finish_omp_clauses): Don't complain about
5833 const qualified predetermined vars in firstprivate clause.
5834 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5835 Handle MIN_EXPR and MAX_EXPR.
5836 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5837 and OMP_CLAUSE_MERGEABLE.
5838 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5839 and OMP_ATOMIC_CAPTURE_NEW.
5840 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5841 OMP_CLAUSE_MERGEABLE.
5842 (omp_clause_code_name): Likewise.
5843 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5844 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5845 and OMP_CLAUSE_MERGEABLE.
5846 (OMP_CLAUSE_FINAL_EXPR): Define.
5847 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5848 OMP_CLAUSE_MERGEABLE.
5849 (expand_task_call): Likewise.
5850 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5851 (expand_omp_atomic_fetch_op): Handle cases where old or new
5852 value is needed afterwards.
5853 (expand_omp_atomic): Call expand_omp_atomic_load resp.
5854 expand_omp_atomic_store.
5855 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5856 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5857 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5858 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5859 * tree-nested.c (convert_nonlocal_omp_clauses,
5860 convert_local_omp_clauses): Likewise.
5861 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5862 OMP_ATOMIC_CAPTURE_NEW): New.
5863 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5864 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5865 New inlines.
5866 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
5867 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
5868 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5869
5870 2011-08-02 Kai Tietz <ktietz@redhat.com>
5871
5872 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
5873 boolean-type.
5874 (ssa_forward_propagate_and_combine): Interprete result of
5875 forward_propagate_comparison.
5876 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
5877 boolean-typed operands for comparisons.
5878
5879 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
5880
5881 * config/avr/libgcc.S: Gather related function in the
5882 same input section.
5883 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
5884 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
5885 references.
5886 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
5887 __udivmodsi4, __divmodsi4, __prologue_saves__,
5888 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
5889 __do_copy_data, __do_clear_bss, __do_global_ctors,
5890 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
5891
5892 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
5893
5894 PR target/47766
5895 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
5896 (stack_protect_test): The pattern compares ptr_mode value.
5897
5898 2011-08-02 Alan Modra <amodra@gmail.com>
5899
5900 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
5901 note for save_LR_around_toc_setup sequence.
5902
5903 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
5904
5905 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
5906
5907 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
5908 Joseph Myers <joseph@codesourcery.com>
5909
5910 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
5911 * hwint.c: Include diagnostic-core.h.
5912 (abs_hwi): New.
5913 (gcd): Moved here...
5914 (pos_mul_hwi): New.
5915 (mul_hwi): New.
5916 (least_common_multiple): Moved here...
5917 * hwint.h (gcd): ... from here.
5918 (least_common_multiple): ... from here.
5919 (HOST_WIDE_INT_MIN): New.
5920 (HOST_WIDE_INT_MAX): New.
5921 (abs_hwi): Declared.
5922 (gcd): Declared.
5923 (pos_mul_hwi): Declared.
5924 (mul_hwi): Declared.
5925 (least_common_multiple): Declared.
5926 * omega.c (check_pos_mul): Removed.
5927 (check_mul): Removed.
5928 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
5929 mul_hwi instead of check_mul.
5930
5931 2011-08-01 Richard Henderson <rth@redhat.com>
5932
5933 PR target/49881
5934 * config/avr/avr.h (PUSH_ROUNDING): New.
5935 * config/avr/avr.md (pushqi1): Rename from *pushqi.
5936 (*pushhi, *pushsi, *pushsf): Remove.
5937 (MPUSH): New mode iterator.
5938 (push<MPUSH>1): New expander.
5939
5940 2011-08-01 Anatoly Sokolov <aesok@post.ru>
5941
5942 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
5943 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5944 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
5945 mmix_preferred_output_reload_class): Remove.
5946 * config/mmix/mmix.c (mmix_preferred_reload_class,
5947 mmix_preferred_output_reload_class): Make static. Change rclass
5948 argument and return type to reg_class_t.
5949 (TARGET_PREFERRED_RELOAD_CLASS,
5950 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5951
5952 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
5953
5954 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
5955 handling.
5956
5957 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
5958
5959 PR target/47766
5960 * config/i386/i386.md (PTR): New.
5961 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
5962 (stack_protect_test): Likewise.
5963 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
5964 (stack_tls_protect_set_<mode>): Likewise.
5965 (stack_tls_protect_test_<mode>): Likewise.
5966
5967 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
5968
5969 PR target/49927
5970 * config/i386/i386.c (ix86_address_subreg_operand): New.
5971 (ix86_decompose_address): Use ix86_address_subreg_operand.
5972 (ix86_legitimate_address_p): Do not assert that subregs satisfy
5973 register_no_elim_operand in DImode.
5974
5975 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
5976
5977 PR tree-optimization/49926
5978 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
5979 in a chain doesn't have uses both inside and outside the loop.
5980
5981 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
5982
5983 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
5984 * config/avr/avr-devices.c (avr_mcu_types): Use it.
5985 * config/avr/avr-mcus.def (AVR_MCU): Use it.
5986 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
5987 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
5988 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
5989 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
5990 to detect if XJMP must not be skipped.
5991
5992 2011-08-02 Alan Modra <amodra@gmail.com>
5993
5994 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
5995 Delete.
5996 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
5997 (rs6000_emit_prologue): Don't prematurely return when
5998 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
5999 save_toc_in_prologue case.
6000 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6001 calls_alloca.
6002
6003 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
6004
6005 * config/avr/avr-devices.c: Delete SVN property svn:executable.
6006 * config/avr/predicates.md: Ditto.
6007 * config/avr/driver-avr.c: Ditto.
6008 * config/avr/genopt.sh: Set SVN property svn:executable to *.
6009
6010 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
6011
6012 * calls.c (emit_library_call_value_1): Declare size only if
6013 BLOCK_REG_PADDING is defined.
6014
6015 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
6016
6017 PR target/49547
6018 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6019 (x86_64-*-*): Likewise.
6020 * config/i386/i386.opt (mlzcnt): New.
6021 * config/i386/abmintrin.h: File removed.
6022 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6023 * config/i386/lzcntintrin.h: ... here. New file.
6024 (__lzcnt): Rename to ...
6025 (__lzcnt32): ... this.
6026 * config/i386/bmiintrin.h (head): Update copyright year.
6027 (__lzcnt_u16): Removed.
6028 (__lzcnt_u32): Likewise.
6029 (__lzcnt_u64): Likewise.
6030 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6031 is defined, remove abmintrin.h.
6032 * config/i386/cpuid.h (bit_LZCNT): New.
6033 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6034 LZCNT feature.
6035 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6036 __LZCNT__ if needed.
6037 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6038 (ix86_option_override_internal): Handle LZCNT option.
6039 (ix86_valid_target_attribute_inner_p): Likewise.
6040 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6041 * config/i386/i386.h (TARGET_LZCNT): New.
6042 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6043 * config/i386/i386.md (clz<mode>2): Update insn constraint.
6044 (clz<mode>2_lzcnt): Likewise.
6045 * doc/invoke.texi: Mention -mlzcnt option.
6046 * doc/extend.texi: Likewise.
6047
6048 2011-08-01 Julian Brown <julian@codesourcery.com>
6049
6050 * configure.ac (fixed-point): Add ARM support.
6051 * configure: Regenerate.
6052 * config/arm/arm.c (arm_fixed_mode_set): New struct.
6053 (arm_set_fixed_optab_libfunc): New.
6054 (arm_set_fixed_conv_libfunc): New.
6055 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6056 ARM-specific names.
6057 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6058 return values in SImode.
6059 (arm_return_in_msb): Return fixed-point types in the msb.
6060 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6061 upwards.
6062 (arm_scalar_mode_supported_p): Support fixed-point modes.
6063 (arm_vector_mode_supported_p): Support vector fixed-point modes.
6064 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6065 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6066 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6067 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6068 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6069 New mode iterators.
6070 (qaddsub_suf): New mode attribute.
6071 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6072 vector modes.
6073 * config/arm/predicates.md (sat_shift_operator): New predicate.
6074 * config/arm/arm-fixed.md: New.
6075 * config/arm/arm.md: Include arm-fixed.md.
6076 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6077
6078 2011-08-01 Julian Brown <julian@codesourcery.com>
6079
6080 * calls.c (emit_library_call_value_1): Support padding for libcall
6081 arguments and return values.
6082 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6083 downwards in big-endian mode.
6084
6085 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6086
6087 PR debug/49887
6088 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6089 * config/sol2-protos.h: Likewise.
6090 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6091 solaris_code_end.
6092 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6093 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6094 solaris_file_end.
6095 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6096
6097 2011-08-01 Julian Brown <julian@codesourcery.com>
6098
6099 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6100
6101 2011-08-01 Julian Brown <julian@codesourcery.com>
6102
6103 * final.c (output_addr_const): Print fixed-point constants as
6104 decimal not hex.
6105
6106 2011-08-01 Richard Guenther <rguenther@suse.de>
6107
6108 * stor-layout.c (initialize_sizetypes): Properly sign-extend
6109 bitsiztype TYPE_MAX_VALUE.
6110
6111 2011-08-01 Julian Brown <julian@codesourcery.com>
6112
6113 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6114 comparison helpers.
6115
6116 2011-07-31 Richard Henderson <rth@redhat.com>
6117
6118 * config/h8300/crti.asm: Add flags to .section directive.
6119 * config/h8300/crtn.asm: Likewise.
6120
6121 2011-07-31 Richard Henderson <rth@redhat.com>
6122
6123 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6124 * tree.c (build_common_tree_nodes): Likewise.
6125
6126 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6127
6128 PR target/49880
6129 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6130 (divsi3_i1): Likewise.
6131
6132 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6133
6134 PR tree-optimization/49749
6135 * tree-ssa-reassoc.c (get_rank): New forward declaration.
6136 (PHI_LOOP_BIAS): New macro.
6137 (phi_rank): New function.
6138 (loop_carried_phi): Likewise.
6139 (propagate_rank): Likewise.
6140 (get_rank): Add calls to phi_rank and propagate_rank.
6141
6142 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
6143
6144 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6145 of TARGET_64BIT.
6146 (PTRDIFF_TYPE): Likewise.
6147
6148 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
6149
6150 PR target/49920
6151 * config/i386/i386.md (strset): Do not expand strset_singleop
6152 when %eax or $edi are fixed.
6153 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6154 (*strsetsi_1): Ditto.
6155 (*strsethi_1): Ditto.
6156 (*strsetqi_1): Ditto.
6157 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6158 (*rep_stossi): Ditto.
6159 (*rep_stosqi): Ditto.
6160 (*strlenqi_1): Ditto.
6161 (cmpstrnsi): Also fail when %ecx is fixed.
6162 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6163 (*cmpstrnqi_1): Ditto.
6164 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6165 (*strmovsi_1): Ditto.
6166 (*strmovhi_1): Ditto.
6167 (*strmovqi_1): Ditto.
6168 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6169 (*rep_movsi): Ditto.
6170 (*rep_movqi): Ditto.
6171
6172 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
6173
6174 PR target/47908
6175 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6176 Disable instruction scheduling for non-ColdFire targets.
6177 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6178
6179 2011-07-31 Revital Eres <revital.eres@linaro.org>
6180
6181 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6182 of anti-dep edge from a branch.
6183 (add_cross_iteration_register_deps): Create anti-dep edge from
6184 a branch.
6185
6186 2011-07-31 Revital Eres <revital.eres@linaro.org>
6187
6188 * modulo-sched.c: Change comment.
6189 (reset_sched_times): Fix print message.
6190 (print_partial_schedule): Add print info.
6191
6192 2011-07-31 Tom de Vries <tom@codesourcery.com>
6193
6194 PR middle-end/43513
6195 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6196 get_object_alignment and TYPE_ALIGN.
6197
6198 2011-07-30 Tom de Vries <tom@codesourcery.com>
6199
6200 PR middle-end/43513
6201 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6202 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6203
6204 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6205
6206 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6207 <sys/sbd.h>.
6208 (cpu_types): New array.
6209 (cputype): New function.
6210 (host_detect_local_cpu): Only define buf, f if !__sgi__.
6211 Use scaninvent instead of /proc/cpuinfo if __sgi__.
6212 * config.host: Also use driver-native.o, mips/x-native on
6213 mips-sgi-irix*.
6214 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6215 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6216 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6217
6218 2011-07-29 Jakub Jelinek <jakub@redhat.com>
6219
6220 PR middle-end/49897
6221 PR middle-end/49898
6222 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6223 in nested parallel and outer is a gimple_reg, mark it as addressable
6224 and set its bit in task_shared_vars bitmap too.
6225
6226 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6227
6228 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6229
6230 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6231
6232 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6233 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6234 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6235 AMASK_LOCKPFTCHOK): Define.
6236 (host_detect_local_cpu): Remove buf, f, cpu_names.
6237 Define cpu_types, implver, amask.
6238 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6239 native CPU.
6240 * config.host: Also use driver-alpha.o, alpha/x-alpha on
6241 alpha*-dec-osf*.
6242 * config/alpha/osf5.h [__alpha__ || __alpha]
6243 (host_detect_local_cpu): Declare.
6244 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6245 (DRIVER_SELF_SPECS): Define.
6246
6247 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
6248
6249 PR target/47715
6250 * config/i386/i386.md (*load_tp_x32): New.
6251 (*load_tp_x32_zext): Ditto.
6252 (*add_tp_x32): Ditto.
6253 (*add_tp_x32_zext): Ditto.
6254 (*load_tp_<mode>): Disable for TARGET_X32 targets.
6255 (*add_tp_<mode>): Ditto.
6256 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6257 ptr_mode and convert to Pmode if needed.
6258
6259 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6260
6261 PR target/49687
6262 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6263 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6264 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6265 Add X to register footprint: Clobber r26/r27.
6266
6267 2011-07-29 Richard Guenther <rguenther@suse.de>
6268
6269 * builtins.c (fold_builtin_signbit): Build the comparison
6270 with a proper type.
6271
6272 2011-07-29 Richard Guenther <rguenther@suse.de>
6273
6274 PR tree-optimization/49893
6275 * tree-predcom.c (suitable_reference_p): Volatile references
6276 are not suitable.
6277
6278 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
6279
6280 PR target/49313
6281 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6282 (__ctzsi2): Result for 0 may be undefined.
6283 (__ctzhi2): Result for 0 may be undefined.
6284 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6285 (__popcountsi2): Ditto. And don't clobber r26.
6286 (__popcountdi2): Ditto. And don't clobber r27.
6287 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6288 (parityhi2): New expand.
6289 (paritysi2): New expand.
6290 (popcounthi2): New expand.
6291 (popcountsi2): New expand.
6292 (clzhi2): New expand.
6293 (clzsi2): New expand.
6294 (ctzhi2): New expand.
6295 (ctzsi2): New expand.
6296 (ffshi2): New expand.
6297 (ffssi2): New expand.
6298 (copysignsf3): New insn.
6299 (bswapsi2): New expand.
6300 (*parityhi2.libgcc): New insn.
6301 (*parityqihi2.libgcc): New insn.
6302 (*paritysihi2.libgcc): New insn.
6303 (*popcounthi2.libgcc): New insn.
6304 (*popcountsi2.libgcc): New insn.
6305 (*popcountqi2.libgcc): New insn.
6306 (*popcountqihi2.libgcc): New insn-and-split.
6307 (*clzhi2.libgcc): New insn.
6308 (*clzsihi2.libgcc): New insn.
6309 (*ctzhi2.libgcc): New insn.
6310 (*ctzsihi2.libgcc): New insn.
6311 (*ffshi2.libgcc): New insn.
6312 (*ffssihi2.libgcc): New insn.
6313 (*bswapsi2.libgcc): New insn.
6314
6315 2011-07-29 Richard Guenther <rguenther@suse.de>
6316
6317 * tree-vrp.c (get_value_range): Only set parameter default
6318 definitions to varying, leave others at undefined.
6319 (extract_range_from_binary_expr): Fix undefined handling.
6320 (vrp_visit_phi_node): Handle merged undefined state.
6321
6322 2011-07-29 Wei Guozhi <carrot@google.com>
6323
6324 PR rtl-optimization/49799
6325 * combine.c (make_compound_operation): Check if the bit field is valid
6326 before change it to bit field extraction.
6327
6328 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
6329
6330 PR rtl-optimization/49891
6331 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6332 newly created returnjumps.
6333
6334 2011-07-28 DJ Delorie <dj@redhat.com>
6335
6336 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6337 local frame in a naked function, and produce a suitable error for
6338 that specific case.
6339
6340 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6341 registers to be reloaded in HI classes when the target is HI.
6342
6343 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6344
6345 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6346 bound_one, bound_two.
6347
6348 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6349
6350 PR middle-end/48648
6351 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6352 CLAST assignments.
6353 (translate_clast): Same.
6354 (translate_clast_assignment): New.
6355
6356 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
6357
6358 PR tree-optimization/49876
6359 * sese.c (rename_uses): Do not return false on gloog_error: set
6360 the new_expr to integer_zero_node and continue code generation.
6361 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6362
6363 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6364
6365 PR debug/49846
6366 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6367 arguments also check if they aren't initialized with a MODE_INT
6368 mode of the same size.
6369
6370 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
6371
6372 * expr.c (get_bit_range): Handle *MEM_REF's.
6373
6374 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
6375
6376 * rtlanal.c (tablejump_p): False for returns.
6377 * reorg.c (first_active_target_insn): New static function.
6378 (find_end_label): Set JUMP_LABEL for a new returnjump.
6379 (optimize_skip, get_jump_flags, rare_destination,
6380 mostly_true_jump, get_branch_condition,
6381 steal_delay_list_from_target, own_thread_p,
6382 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6383 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6384 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6385 * jump.c (delete_related_insns): Likewise.
6386 (jump_to_label_p): New function.
6387 (redirect_target): New static function.
6388 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
6389 (redirect_jump_1): Assert that the new label is nonnull.
6390 (redirect_jump): Likewise.
6391 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6392 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6393 exit block.
6394 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
6395 changed. Ensure that the right label is passed to redirect_jump.
6396 * function.c (emit_return_into_block,
6397 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6398 ret_rtx in their JUMP_LABEL.
6399 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6400 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6401 pass ret_rtx as label.
6402 * cfglayout.c (fixup_reorder_chain): Use
6403 force_nonfallthru_and_redirect rather than force_nonfallthru.
6404 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6405 * rtl.h (ANY_RETURN_P): New macro.
6406 (jump_to_label_p): Declare.
6407 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6408 JUMP_LABELs.
6409 (mark_target_live_regs): Likewise.
6410 * basic-block.h (force_nonfallthru_and_redirect): Declare.
6411 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6412 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6413 alpha_tablejump_best_label): Remove functions.
6414 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6415 alpha_tablejump_best_label): Remove declarations.
6416 * config/sh/sh.c (barrier_align, split_branches): Adjust for
6417 ret_rtx in JUMP_LABELs.
6418 * config/arm/arm.c (is_jump_table): Likewise.
6419
6420 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6421
6422 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6423 special predicate. Remove explicit mode checks.
6424
6425 2011-07-28 Jakub Jelinek <jakub@redhat.com>
6426
6427 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6428 DW_AT_data_member_location containing just DW_OP_plus_uconst.
6429
6430 PR debug/49871
6431 * dwarf2out.c (size_of_die, value_format, output_die): Use
6432 DW_FORM_udata instead of DW_FORM_data[48] for
6433 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6434
6435 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6436
6437 * config/i386/i386.md (*tls_global_dynamic_64): Update
6438 length attribute.
6439
6440 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6441
6442 PR target/47715
6443 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6444 tls_symbolic_operand check. Update code sequence for TARGET_X32.
6445 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6446 (tls_dynamic_gnu2_64): Ditto.
6447 (*tls_dynamic_gnu2_lea_64): Ditto.
6448 (*tls_dynamic_gnu2_call_64): Ditto.
6449 (*tls_dynamic_gnu2_combine_64): Ditto.
6450
6451 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6452
6453 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6454
6455 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
6456
6457 PR target/47364
6458 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6459
6460 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6461
6462 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6463 before the core constraints. Adjust attributes.
6464 ("*thumb2_movdf_vfp"): Likewise.
6465
6466 2011-07-28 Kai Tietz <ktietz@redhat.com>
6467
6468 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6469 (simplify_truth_ops_using_ranges): Likewise.
6470 (build_assert_expr_for): Likewise.
6471 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6472 and handle BIT_NOT_EXPR for truth-operation.
6473
6474 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6475
6476 PR target/49313
6477 Undo r176835 from trunk
6478 2011-07-27 Georg-Johann Lay
6479
6480 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
6481
6482 PR target/49687
6483 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6484 Add _muluhisi3, _mulshisi3, _usmulhisi3.
6485 * config/avr/libgcc.S (__mulsi3): Rewrite.
6486 (__mulhisi3): Rewrite.
6487 (__umulhisi3): Rewrite.
6488 (__usmulhisi3): New.
6489 (__muluhisi3): New.
6490 (__mulshisi3): New.
6491 (__mulohisi3): New.
6492 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6493 declare.
6494 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6495 (pseudo_register_or_const_int_operand): New.
6496 (combine_pseudo_register_operand): New.
6497 (u16_operand): New.
6498 (s16_operand): New.
6499 (o16_operand): New.
6500 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6501 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6502 (any_extend, any_extend2): New code iterators.
6503 (extend_prefix): New code attribute.
6504 (mulsi3): Rewrite. Turn insn to expander.
6505 (mulhisi3): Ditto.
6506 (umulhisi3): Ditto.
6507 (usmulhisi3): New expander.
6508 (*mulsi3): New insn-and-split.
6509 (mulu<mode>si3): New insn-and-split.
6510 (muls<mode>si3): New insn-and-split.
6511 (mulohisi3): New insn-and-split.
6512 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6513 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6514 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6515 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6516 insn-and-split.
6517 (*mulsi3_call): Rewrite.
6518 (*mulhisi3_call): Rewrite.
6519 (*umulhisi3_call): Rewrite.
6520 (*usmulhisi3_call): New insn.
6521 (*muluhisi3_call): New insn.
6522 (*mulshisi3_call): New insn.
6523 (*mulohisi3_call): New insn.
6524 (extendqihi2): Use combine_pseudo_register_operand as predicate
6525 for operand 1.
6526 (extendqisi2): Ditto.
6527 (zero_extendqihi2): Ditto.
6528 (zero_extendqisi2): Ditto.
6529 (zero_extendhisi2): Ditto.
6530 (extendhisi2): Ditto. Don't early-clobber operand 0.
6531
6532 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
6533
6534 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6535
6536 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6537
6538 PR tree-optimization/49471
6539 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6540 iv only when the largest type is unsigned. Do not call
6541 lang_hooks.types.type_for_size.
6542
6543 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6544
6545 PR middle-end/45450
6546 * graphite-poly.c (apply_poly_transforms): Disable legality check
6547 after an openscop read.
6548
6549 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
6550
6551 PR middle-end/47691
6552 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6553 copy_bb_and_scalar_dependences.
6554 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
6555 (graphite_copy_stmts_from_block): Update call to rename_uses.
6556 (copy_bb_and_scalar_dependences): Update call to
6557 graphite_copy_stmts_from_block.
6558 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6559
6560 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
6561
6562 PR target/49313
6563 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6564 (__ctzsi2): Result for 0 may be undefined.
6565 (__ctzhi2): Result for 0 may be undefined.
6566 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6567 (__popcountsi2): Ditto. And don't clobber r26.
6568 (__popcountdi2): Ditto. And don't clobber r27.
6569 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6570 (parityhi2): New expand.
6571 (paritysi2): New expand.
6572 (popcounthi2): New expand.
6573 (popcountsi2): New expand.
6574 (clzhi2): New expand.
6575 (clzsi2): New expand.
6576 (ctzhi2): New expand.
6577 (ctzsi2): New expand.
6578 (ffshi2): New expand.
6579 (ffssi2): New expand.
6580 (copysignsf3): New insn.
6581 (bswapsi2): New expand.
6582 (*parityhi2.libgcc): New insn.
6583 (*parityqihi2.libgcc): New insn.
6584 (*paritysihi2.libgcc): New insn.
6585 (*popcounthi2.libgcc): New insn.
6586 (*popcountsi2.libgcc): New insn.
6587 (*popcountqi2.libgcc): New insn.
6588 (*popcountqihi2.libgcc): New insn-and-split.
6589 (*clzhi2.libgcc): New insn.
6590 (*clzsihi2.libgcc): New insn.
6591 (*ctzhi2.libgcc): New insn.
6592 (*ctzsihi2.libgcc): New insn.
6593 (*ffshi2.libgcc): New insn.
6594 (*ffssihi2.libgcc): New insn.
6595 (*bswapsi2.libgcc): New insn.
6596
6597 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6598
6599 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6600 the mode of symbolic_opreand RTXes.
6601
6602 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
6603
6604 * config/i386/predicates.md (x86_64_movabs_operand): Return false
6605 for pic_32bit_operand RTXes.
6606 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6607 in DImode.
6608
6609 2011-07-27 Kai Tietz <ktietz@redhat.com>
6610
6611 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6612 for 32-bit, too.
6613 (ix86_handle_abi_attribute): Allow function attributes
6614 ms_abi/sysv_abi in 32-bit mode, too.
6615 * doc/extend.texi: Adjust attribute documentation.
6616
6617 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6618 expression handling.
6619 (and_var_with_comparison_1): Likewise.
6620
6621 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
6622
6623 * params.h (ALLOW_STORE_DATA_RACES): New.
6624 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6625 * Makefile.in (expr.o): Depend on PARAMS_H.
6626 * machmode.h (get_best_mode): Add argument.
6627 * fold-const.c (optimize_bit_field_compare): Add argument to
6628 get_best_mode.
6629 (fold_truthop): Same.
6630 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6631 * expr.c (emit_group_store): Same.
6632 (copy_blkmode_from_reg): Same.
6633 (write_complex_part): Same.
6634 (optimize_bitfield_assignment_op): Add argument.
6635 Add argument to get_best_mode.
6636 (get_bit_range): New.
6637 (expand_assignment): Calculate maxbits and pass it down accordingly.
6638 (store_field): New argument.
6639 (expand_expr_real_2): New argument to store_field. Include params.h.
6640 * expr.h (store_bit_field): New argument.
6641 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6642 into account maxbits.
6643 * calls.c (store_unaligned_arguments_into_pseudos): New argument
6644 to store_bit_field.
6645 * expmed.c (store_bit_field_1): New argument. Use it.
6646 (store_bit_field): Same.
6647 (store_fixed_bit_field): Same.
6648 (store_split_bit_field): Same.
6649 (extract_bit_field_1): Pass new argument to get_best_mode.
6650 (extract_bit_field): Same.
6651 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6652 * doc/invoke.texi: Document parameter allow-store-data-races.
6653
6654 2011-07-27 Jakub Jelinek <jakub@redhat.com>
6655
6656 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6657
6658 2011-07-27 Kai Tietz <ktietz@redhat.com>
6659
6660 * tree-vrp.c (extract_range_from_binary_expr): Remove
6661 TRUTH-binary cases and add new bitwise-cases.
6662 (extract_range_from_assignment): Likewise.
6663 (register_edge_assert_for_1): Likeiwise.
6664 (register_edge_assert_for): Likewise.
6665 (simplify_truth_ops_using_ranges): Likewise.
6666 (simplify_stmt_using_ranges): Likewise.
6667
6668 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
6669
6670 PR target/47372
6671 * config/i386/i386.c (ix86_delegitimize_address): Call
6672 simplify_gen_subreg for PIC with mode of x only if modes of
6673 x and orig_x are different.
6674
6675 2011-07-26 Jakub Jelinek <jakub@redhat.com>
6676
6677 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6678 to GC allocated copy of the string.
6679 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6680 before .debug_line, not after it.
6681
6682 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6683
6684 PR middle-end/47046
6685 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6686 evolution_function_is_affine_p on CHREC_RIGHT.
6687
6688 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6689
6690 * tree-data-ref.c (max_stmt_executions_tree): Do not call
6691 lang_hooks.types.type_for_size.
6692
6693 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6694
6695 PR middle-end/47653
6696 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6697 loops using wrapping semantics.
6698
6699 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
6700
6701 PR middle-end/48805
6702 * tree-scalar-evolution.c (instantiate_scev_r): Return
6703 chrec_dont_know for ADDR_EXPR.
6704
6705 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6706 H.J. Lu <hongjiu.lu@intel.com>
6707
6708 PR target/47369
6709 PR target/49853
6710 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6711 if legitimize_tls_address returned operand in wrong mode. Allow
6712 SImode and DImode symbolic operand for PIC. Call convert_to_mode
6713 if legitimize_pic_address returned operand in wrong mode.
6714
6715 2011-07-26 Martin Jambor <mjambor@suse.cz>
6716
6717 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6718 return false for invariants.
6719
6720 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6721
6722 * config/i386/i386.md (add->lea splitter): Implement using SWI
6723 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
6724 (add->lea zext splitter): Change operand 2 predicate to
6725 x86_64_nonmemory_operand.
6726
6727 2011-07-26 Richard Guenther <rguenther@suse.de>
6728
6729 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6730 frequency makes everything hot.
6731
6732 2011-07-26 Richard Guenther <rguenther@suse.de>
6733
6734 PR tree-optimization/49840
6735 * tree-vrp.c (range_fits_type_p): Properly handle full
6736 double-int precision.
6737
6738 2011-07-26 Martin Jambor <mjambor@suse.cz>
6739
6740 PR bootstrap/49786
6741 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6742 counts.
6743 (update_specialized_profile): Likewise.
6744
6745 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
6746 H.J. Lu <hongjiu.lu@intel.com>
6747
6748 PR target/47381
6749 PR target/49832
6750 PR target/49833
6751 * config/i386/i386.md (i): Change SImode attribute to "e".
6752 (g): Change SImode attribute to "rme".
6753 (di): Change SImode attribute to "nF".
6754 (general_operand): Change SImode attribute to x86_64_general_operand.
6755 (general_szext_operand): Change SImode attribute to
6756 x86_64_szext_general_operand.
6757 (immediate_operand): Change SImode attribute to
6758 x86_64_immediate_operand.
6759 (nonmemory_operand): Change SImode attribute to
6760 x86_64_nonmemory_operand.
6761 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6762 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
6763 (*lea_1): Use SWI48 mode iterator.
6764 (*lea_1_zext): New insn pattern.
6765 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6766 (*bt<mode>): Ditto.
6767 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6768 Update operand constraints.
6769 (addsi_1_zext): Ditto.
6770 (*add<mode>2): Ditto.
6771 (*addsi_3_zext): Ditto.
6772 (*subsi_1_zext): Ditto.
6773 (*subsi_2_zext): Ditto.
6774 (*subsi_3_zext): Ditto.
6775 (*addsi3_carry_zext): Ditto.
6776 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6777 (*mulsi3_1_zext): Ditto.
6778 (*andsi_1): Ditto.
6779 (*andsi_1_zext): Ditto.
6780 (*andsi_2_zext): Ditto.
6781 (*<any_or:code>si_1_zext): Ditto.
6782 (*<any_or:code>si_2_zext): Ditto.
6783 (*test<mode>_1): Use <general_operand> predicate for operand 1.
6784 (*and<mode>_2): Ditto.
6785 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
6786 (add->lea splitter): Check operand modes in insn constraint. Extend
6787 operands less than SImode wide to SImode.
6788 (add->lea zext splitter): Do not extend input operands to DImode.
6789 (*lea_general_1): Handle only QImode and HImode operands.
6790 (*lea_general_2): Ditto.
6791 (*lea_general_3): Ditto.
6792 (*lea_general_1_zext): Remove.
6793 (*lea_general_2_zext): Ditto.
6794 (*lea_general_3_zext): Ditto.
6795 (*lea_general_4): Check operand modes in insn constraint. Extend
6796 operands less than SImode wide to SImode.
6797 (ashift->lea splitter): Ditto.
6798 * config/i386/i386.c (ix86_print_operand_address): Print address
6799 registers with 'q' modifier on 64bit targets.
6800 * config/i386/predicates.md (pic_32bit_opreand): Define as special
6801 predicate. Reject non-SI and non-DI modes.
6802
6803 2011-07-25 Andrew Pinski <apinski@cavium.com>
6804
6805 PR tree-opt/49671
6806 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6807 TREE_THIS_NOTRAP into the inner most MEM_REF.
6808 Always copy TREE_THIS_VOLATILE.
6809 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6810 arguments are not volatile references.
6811
6812 2011-07-25 Richard Henderson <rth@redhat.com>
6813
6814 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6815 * final.c (final_scan_insn): Don't test for it.
6816 (rest_of_clean_state): Likewise.
6817
6818 2011-07-25 Richard Henderson <rth@redhat.com>
6819
6820 PR debug/49841
6821 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6822 (emit_frame_save): Likewise.
6823 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6824 insn onto a dummy blockage insn after the join label.
6825
6826 2011-07-25 Richard Henderson <rth@redhat.com>
6827
6828 * dwarf2cfi.c (dw_trace_info): Add ID member.
6829 (get_trace_index): Remove. Change users to use ID member.
6830 (before_next_cfi_note): New.
6831 (connect_traces): Remove unreachable traces before the main loop.
6832 Look across one trace and generate remember/restore_state if needed.
6833
6834 2011-07-25 Richard Henderson <rth@redhat.com>
6835
6836 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6837
6838 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
6839
6840 * genattr.c (write_upcase, gen_attr <enum definition writing>):
6841 Move to ...
6842 * genattr-common.c ... here.
6843 (main): Call gen_attr.
6844 * optc-gen.awk: Make generated program include insn-attr-common.h .
6845 * Makefile.in (oprions.o): Depend on insn-attr-common.h
6846
6847 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6848
6849 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6850 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6851 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6852 m32c_print_operand, m32c_print_operand_address): Remove.
6853 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6854 Change return type to bool. Change argument type to bool.
6855 (m32c_print_operand, m32c_print_operand_address): Make static.
6856 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6857 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6858
6859 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6860
6861 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6862 attributes): Document mmap.
6863
6864 2011-07-25 Anatoly Sokolov <aesok@post.ru>
6865
6866 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6867 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6868 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
6869 mmix_print_operand, mmix_print_operand_address): Remove.
6870 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
6871 Change return type to bool. Change argument type to bool.
6872 (mmix_print_operand, mmix_print_operand_address): Make static.
6873 (mmix_intval, mmix_output_condition): Change 'x' argument type
6874 to const_rtx.
6875 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6876 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6877
6878 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
6879
6880 PR target/39386
6881 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
6882 shift counter for x << x and x >> x shifts.
6883
6884 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6885
6886 PR target/47124
6887 * config.gcc: Reject *-*-solaris2 configuration.
6888
6889 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
6890
6891 PR tree-optimization/49809
6892 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
6893 gimple_get_lhs instead of gimple_assign_lhs.
6894
6895 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6896
6897 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
6898
6899 2011-07-25 Richard Guenther <rguenther@suse.de>
6900
6901 PR tree-optimization/49822
6902 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6903 more. Make sure to preserve stmts with side-effects. Properly
6904 handle virtual defs, follow a longer def chain.
6905
6906 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
6907
6908 PR plugins/45348
6909 PR plugins/48425
6910 PR plugins/46577
6911 * Makefile.in: Do not flatten c-family directory when installing
6912 plugin headers.
6913
6914 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
6915
6916 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
6917 original nodes if we are dealing with virtual clones.
6918
6919 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
6920
6921 * common/config/c6x/c6x-common.c: New file.
6922
6923 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
6924
6925 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
6926
6927 2011-07-25 Richard Guenther <rguenther@suse.de>
6928
6929 PR tree-optimization/49715
6930 * tree-vrp.c: Include expr.h and optabs.h.
6931 (range_fits_type_): New function.
6932 (simplify_float_conversion_using_ranges): Likewise.
6933 (simplify_stmt_using_ranges): Call it.
6934 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
6935 * optabs.c (can_float_p): Export.
6936 * optabs.h (can_float_p): Declare.
6937
6938 2011-07-25 Richard Guenther <rguenther@suse.de>
6939
6940 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
6941 (get_value_range): For out-of-range SSA names or names created
6942 after propagation return a read-only varying range.
6943 (dump_all_value_ranges): Adjust.
6944 (vrp_initialize): Likewise.
6945 (vrp_finalize): Likewise.
6946
6947 2011-07-24 Richard Henderson <rth@redhat.com>
6948
6949 PR debug/49831
6950 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
6951 them entirely.
6952
6953 2011-07-24 Richard Henderson <rth@redhat.com>
6954
6955 PR debug/49825
6956 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
6957 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
6958
6959 2011-07-24 Richard Henderson <rth@redhat.com>
6960
6961 PR debug/49827
6962 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
6963
6964 2011-07-24 Richard Henderson <rth@redhat.com>
6965
6966 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
6967 Zero args_size for abnormal edges. Adjust all callers.
6968
6969 2011-07-24 Richard Henderson <rth@redhat.com>
6970
6971 PR debug/49825
6972 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
6973
6974 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
6975
6976 PR bootstrap/49835
6977 * collect2.c (demangle_flag): Removed.
6978
6979 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
6980
6981 * configure.ac (demangler_in_ld): Default to yes.
6982 * configure: Regenerated.
6983 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
6984 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
6985 --no-demangle options straight through to ld. When
6986 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
6987 way that has the intended effect on Windows.
6988
6989 2011-07-23 Richard Henderson <rth@redhat.com>
6990
6991 * dwarf2cfi.c: Include basic-block.h.
6992 (dw_label_info): Remove.
6993 (trace_work_list, trace_index): New.
6994 (remember_row, emit_cfa_remember): Remove.
6995 (dw_trace_info_hash, dw_trace_info_eq): New.
6996 (get_trace_index, get_trace_info): New.
6997 (save_point_p): New.
6998 (free_cfi_row): Remove.
6999 (add_cfi): Do not emit DW_CFA_remember_state.
7000 (cfa_row_equal_p): New.
7001 (barrier_args_size): Remove.
7002 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7003 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7004 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7005 (dwarf2out_cfi_begin_epilogue): Remove.
7006 (dwarf2out_frame_debug_restore_state): Remove.
7007 (connect_traces, create_pseudo_cfg): New.
7008 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7009 * Makefile.in (dwarf2cfi.o): Update.
7010
7011 2011-07-23 Richard Henderson <rth@redhat.com>
7012
7013 * dwarf2cfi.c (dw_trace_info): New.
7014 (dw_label_info): New.
7015 (cie_return_save): New.
7016 (cur_trace): New.
7017 (queued_args_size): Rename from args_size. Update all users.
7018 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7019 (def_cfa_1): Use cur_trace instead of cfa_*.
7020 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7021 (clobbers_queued_reg_save, reg_saved_in): Likewise.
7022 (dwarf2out_frame_debug_expr): Likewise.
7023 (create_cie_data): Split out from ...
7024 (execute_dwarf2_frame): ... here. Initialize cur_trace.
7025
7026 2011-07-23 Richard Henderson <rth@redhat.com>
7027
7028 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7029 Update all users to match.
7030 (execute_dwarf2_frame): Free reg_saved_in_data.
7031
7032 2011-07-23 Richard Henderson <rth@redhat.com>
7033
7034 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
7035 (queued_reg_saves): Don't GTY. Change to a VEC.
7036 (queue_reg_save): Update to match.
7037 (dwarf2out_flush_queued_reg_saves): Likewise.
7038 (clobbers_queued_reg_save): Likewise.
7039 (reg_saved_in): Likewise.
7040 (execute_dwarf2_frame): Free queued_reg_saves.
7041
7042 2011-07-23 Richard Henderson <rth@redhat.com>
7043
7044 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
7045
7046 2011-07-23 Richard Henderson <rth@redhat.com>
7047
7048 * dwarf2cfi.c (add_cfi_args_size): Split out from...
7049 (dwarf2out_args_size): ... here.
7050 (add_cfi_restore): Split out from ...
7051 (dwarf2out_frame_debug_cfa_restore): ... here.
7052 (def_cfa_0): Split out from ...
7053 (def_cfa_1): ... here.
7054 (cfi_oprnd_equal_p, cfi_equal_p): New.
7055 (change_cfi_row): New.
7056 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7057 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7058 (output_cfis): Remove.
7059 * dwarf2out.c (output_fde): Simplify output_cfi loop.
7060 (dwarf2out_switch_text_section): Don't call output_cfis.
7061 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7062 * dwarf2out.h: Update decls.
7063 (enum dw_val_class): Add dw_val_class_none.
7064
7065 2011-07-23 Richard Henderson <rth@redhat.com>
7066
7067 * dwarf2cfi.c (update_row_reg_save): New.
7068 (dwarf2out_frame_debug_cfa_expression): Use it.
7069 (dwarf2out_frame_debug_cfa_restore): Likewise.
7070 (reg_save): Likewise. Do not emit DW_CFA_same_value.
7071
7072 2011-07-23 Richard Henderson <rth@redhat.com>
7073
7074 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
7075
7076 2011-07-23 Richard Henderson <rth@redhat.com>
7077
7078 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7079 (cie_cfi_row): New.
7080 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7081 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7082 (cur_row, remember_row): New.
7083 (def_cfa_1): Use cur_row instead of the old_* variables.
7084 (dwarf2out_frame_debug_restore_state): Similarly.
7085 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7086 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7087 (dwarf2out_frame_debug_adjust_cfa): Likewise.
7088 (dwarf2out_frame_debug_cfa_offset): Likewise.
7089 (dwarf2out_frame_debug_expr): Likewise.
7090 (execute_dwarf2_frame): Set up cur_row.
7091 * dwarf2out.h (struct cfa_loc): Mark for GTY.
7092
7093 2011-07-23 Richard Henderson <rth@redhat.com>
7094
7095 * basic-block.h (EDGE_PRESERVE): New.
7096 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7097 * bb-reorder.c: Include except.h.
7098 (fix_up_crossing_landing_pad): New.
7099 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7100 landing pads in the right partition. Duplicate as necessary.
7101 (partition_hot_cold_basic_blocks): Fix up DF info after
7102 duplicating landing pads.
7103 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7104 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7105 is set properly. Validate that EH edges are not CROSSING.
7106 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7107 (dw2_build_landing_pads): ... here.
7108 (convert_to_eh_region_ranges): Remove code to fixup crossing
7109 landing pads.
7110 * except.h (expand_dw2_landing_pad_for_region): Declare.
7111 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7112
7113 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
7114
7115 PR target/49816
7116 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7117
7118 2011-07-22 Jason Merrill <jason@redhat.com>
7119
7120 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7121
7122 2011-07-22 Richard Henderson <rth@redhat.com>
7123
7124 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7125
7126 2011-07-22 Richard Henderson <rth@redhat.com>
7127
7128 * jump.c (maybe_propagate_label_ref): Split out of...
7129 (mark_all_labels): ... here. Do not attempt label_ref
7130 propagation while in cfglayout mode.
7131
7132 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7133
7134 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7135 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7136 (dwarf_attr_name): Handle DW_AT_GNU_macros.
7137 (dwarf2out_define): If the vector is empty and
7138 lineno is 0, emit a dummy entry first.
7139 (dwarf2out_undef): Likewise. Remove redundant semicolon.
7140 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7141 optimize_macinfo_range): New functions.
7142 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
7143 mergeable, optimize longer strings using
7144 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7145 optimize longer sequences of define/undef ops from headers
7146 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
7147 emit a section headers.
7148 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7149 and macinfo_section_label to DEBUG_MACRO_SECTION
7150 resp. DEBUG_MACRO_SECTION_LABEL.
7151 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7152 instead of DW_AT_macro_info.
7153
7154 PR other/32998
7155 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7156 options.
7157 * dwarf2out.c: Include opts.h.
7158 (dchar_p): New typedef. Define heap VEC for it.
7159 (producer_string): New variable.
7160 (gen_producer_string): New function.
7161 (gen_compile_unit_die): Use it.
7162 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7163 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7164 * doc/invoke.texi: Document -grecord-gcc-switches and
7165 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7166 to -frecord-gcc-switches description.
7167
7168 2011-07-22 Jason Merrill <jason@redhat.com>
7169
7170 PR c++/30112
7171 * c-decl.c (c_linkage_bindings): Define.
7172
7173 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
7174
7175 PR debug/49815
7176 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7177
7178 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
7179
7180 * config/i386/i386.c (ix86_option_override_internal): Disallow
7181 MS ABI in x32 mode.
7182 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7183 only for TARGET_LP64.
7184 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7185
7186 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
7187
7188 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7189 avoid warnings when GCC is built with a C++ compiler.
7190
7191 2011-07-22 Martin Jambor <mjambor@suse.cz>
7192
7193 PR lto/49796
7194 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7195 if decl node is in another partition, call cgraph_get_node only once.
7196
7197 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
7198
7199 * config.gcc (x86_64-*-linux*): Set
7200 default_gnu_indirect_function to yes.
7201
7202 2011-07-22 Richard Guenther <rguenther@suse.de>
7203
7204 PR tree-optimization/45819
7205 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7206 preserve volatile and notrap flags.
7207
7208 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7209 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7210
7211 PR bootstrap/49794
7212 * configure.ac: Test AM_ICONV with CXX.
7213 * configure: Regenerate.
7214 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7215
7216 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7217
7218 PR bootstrap/49797
7219 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7220 (set_cloog_options): Use it.
7221
7222 2011-07-22 Jakub Jelinek <jakub@redhat.com>
7223
7224 PR c++/49756
7225 * gcc.c (main): Call stack_limit_increase (64MB).
7226 * toplev.c (toplev_main): Likewise.
7227
7228 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7229
7230 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7231 instead of force_reg.
7232
7233 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7234
7235 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7236 needed and use force_reg after convert.
7237 (ix86_expand_call): Likewise.
7238 (ix86_expand_special_args_builtin): Likewise.
7239 (ix86_expand_builtin): Likewise.
7240
7241 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7242
7243 PR middle-end/47654
7244 PR middle-end/49649
7245 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7246 in parameter. Initialize v1 and v2 based on the values returned
7247 by clast_name_to_lb_ub.
7248 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7249 values.
7250 (type_for_clast_bin): Same.
7251 (type_for_clast_expr): Same.
7252 (type_for_clast_eq): Update calls to type_for_clast_expr.
7253 (type_for_clast_for): Same.
7254 (build_iv_mapping): Same.
7255 * graphite-ppl.h (value_min): New.
7256
7257 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7258
7259 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7260 types whenever possible.
7261
7262 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7263
7264 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7265 and ub fields.
7266 (new_clast_name_index): Add lb and ub parameters.
7267 (free_clast_name_index): New.
7268 (clast_name_to_lb_ub): New.
7269 (save_clast_name_index): Add lb and ub parameters.
7270 (compute_bounds_for_param): New.
7271 (type_for_level): Removed.
7272 (type_for_clast_for): Removed level parameter. Do not call
7273 type_for_level.
7274 (graphite_create_new_loop): Store the lb and ub for the clast_name
7275 of the iterator of the loop that has been generated.
7276 (graphite_create_new_loop_guard): Remove parameter level.
7277 (create_params_index): Store the lb and ub of each parameter.
7278 (gloog): Use free_clast_name_index. Pass to create_params_index
7279 the current scop.
7280
7281 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7282
7283 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7284 (max_precision_type): Inline max_signed_precision_type.
7285 (type_for_clast_red): Use max_precision_type.
7286 (type_for_clast_bin): Same.
7287 (type_for_clast_for): Same.
7288
7289 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7290
7291 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7292 type_for_interval.
7293 (gcc_type_for_value): Renamed type_for_value.
7294 (gcc_type_for_clast_term): Renamed type_for_clast_term.
7295 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7296 (gcc_type_for_clast_red): Renamed type_for_clast_red.
7297 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7298 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7299 (graphite_translate_clast_equation): Update calls.
7300 (compute_type_for_level): Renamed type_for_level.
7301 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7302 (build_iv_mapping): Update calls.
7303 (graphite_create_new_loop_guard): Same.
7304
7305 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7306
7307 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7308 comment.
7309
7310 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7311
7312 * graphite-clast-to-gimple.c (struct ivs_params): New.
7313 (clast_name_to_gcc): Use ivs_params to pass around parameters.
7314 (clast_to_gcc_expression): Same.
7315 (clast_to_gcc_expression_red): Same.
7316 (gcc_type_for_clast_term): Same.
7317 (gcc_type_for_clast_expr): Same.
7318 (gcc_type_for_clast_red): Same.
7319 (gcc_type_for_clast_bin): Same.
7320 (gcc_type_for_clast_eq): Same.
7321 (graphite_translate_clast_equation): Same.
7322 (graphite_create_guard_cond_expr): Same.
7323 (graphite_create_new_guard): Same.
7324 (graphite_create_new_loop): Same.
7325 (build_iv_mapping): Same.
7326 (translate_clast_user): Same.
7327 (graphite_create_new_loop_guard): Same.
7328 (translate_clast): Same.
7329 (translate_clast_for_loop): Same.
7330 (translate_clast_for): Same.
7331 (translate_clast_guard): Same.
7332 (initialize_cloog_names): Fix typo.
7333 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7334
7335 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7336
7337 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7338 (new_clast_name_index): Add level parameter.
7339 (clast_name_to_level): New.
7340 (save_clast_name_index): Add level parameter.
7341 (newivs_to_depth_to_newiv): Removed.
7342 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7343 (graphite_create_new_loop): Add level parameter. Pass level to
7344 save_clast_name_index.
7345 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7346 (create_params_index): Pass level to save_clast_name_index.
7347
7348 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7349
7350 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7351 recompute type, lb, and ub. Get them from...
7352 (graphite_create_new_loop_guard): ...here. Pass in parameter
7353 pointers to type, lb, and ub.
7354 (translate_clast_for_loop): Update function calls.
7355 (translate_clast_for): Same.
7356
7357 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
7358
7359 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7360 psct_dynamic_dim.
7361 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7362 (gcc_type_for_iv_of_clast_loop): Update use of level.
7363 (gloog): Start counting nesting level from 0.
7364 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7365 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7366 psct_dynamic_dim on level.
7367
7368 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7369
7370 * config/i386/i386.c (ix86_legitimize_address): Convert to
7371 Pmode if needed.
7372
7373 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 * config/i386/i386.c (function_value_64): Always return pointers
7376 in Pmode.
7377 (ix86_promote_function_mode): New.
7378 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7379
7380 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7381
7382 PR tree-optimization/49749
7383 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7384 remove no-longer-used maxrank variable.
7385
7386 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7387
7388 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7389
7390 2011-07-21 Jason Merrill <jason@redhat.com>
7391
7392 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7393 * recog.h (struct insn_data_d): Check it instead of
7394 HAVE_DESIGNATED_INITIALIZERS.
7395 * genoutput.c (output_insn_data): Likewise.
7396
7397 2011-07-21 Richard Guenther <rguenther@suse.de>
7398
7399 PR tree-optimization/49770
7400 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7401 valueized any operand. Renamed from ...
7402 (valueize_refs): ... this. New wrapper around valueize_refs_1.
7403 (valueize_shared_reference_ops_from_ref): Return whether we
7404 valueized any operand.
7405 (vn_reference_lookup): Only when we valueized any operand
7406 use the valueized reference for alias analysis. Do not preserve
7407 the original reference tree in this case.
7408
7409 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
7410
7411 * config/i386/i386.c (ix86_decompose_address): Reject all but
7412 register operands and subregs of DImode hard registers in index.
7413
7414 2011-07-21 Kai Tietz <ktietz@redhat.com>
7415
7416 * fold-const.c (fold_unary_loc): Preserve indirect
7417 comparison cast to none-boolean type.
7418 * tree-ssa.c (useless_type_conversion_p): Preserve cast
7419 from/to boolean-type.
7420 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7421 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7422 * tree-cfg.c (verify_gimple_comparison): Check result
7423 type of comparison expression.
7424 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7425 of condition result and disallow type-cast sinking into comparison.
7426
7427 2011-07-21 Richard Guenther <rguenther@suse.de>
7428
7429 * tree-ssa-forwprop.c (combine_conversions): Return whether
7430 we have to run cfg-cleanup. Properly remove dead stmts.
7431 (ssa_forward_propagate_and_combine): Adjust.
7432
7433 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
7434
7435 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7436
7437 2011-07-21 Kai Tietz <ktietz@redhat.com>
7438
7439 * tree-ssa-propagate.c (substitute_and_fold): Use
7440 do_dce flag to deside, if BB's statements are scanned
7441 in last to first, or first to last order.
7442
7443 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
7444
7445 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7446
7447 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
7448 Uros Bizjak <ubizjak@gmail.com>
7449 Richard Henderson <rth@redhat.com>
7450
7451 * config/i386/constraints.md (w): New.
7452
7453 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7454 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7455
7456 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7457 instead of TARGET_64BIT.
7458
7459 * config/i386/i386.md (indirect_jump): Replace
7460 nonimmediate_operand with indirect_branch_operand.
7461 (*indirect_jump): Likewise. Replace constraint "m" with "w".
7462 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7463 Convert operand 0 to Pmode for x32 if not PIC.
7464 (*tablejump_1): Replace nonimmediate_operand with
7465 indirect_branch_operand. Replace constraint "m" with "w".
7466 (*call_vzeroupper): Replace constraint "m" with "w".
7467 (*call): Likewise.
7468 (*call_rex64_ms_sysv_vzeroupper): Likewise.
7469 (*call_rex64_ms_sysv): Likewise.
7470 (*call_value_vzeroupper): Likewise.
7471 (*call_value): Likewise.
7472 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7473 (*call_value_rex64_ms_sysv): Likewise.
7474 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7475
7476 * config/i386/predicates.md (indirect_branch_operand): New.
7477 (call_insn_operand): Support x32.
7478
7479 2011-07-20 Michael Eager <eager@eagercon.com>
7480
7481 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7482
7483 2011-07-20 Richard Henderson <rth@redhat.com>
7484
7485 * cfg.c (dump_bb_info): Dump basic_block->flags.
7486 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7487
7488 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7489
7490 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7491 of DImode hard registers in index.
7492 (ix86_legitimate_address_p): Allow subregs of base and index to span
7493 more than a word. Assert that subregs of base and index satisfy
7494 register_no_elim_operand predicates. Reject addresses where
7495 base and index have different modes.
7496
7497 2011-07-20 Robert Millan <rmh@gnu.org>
7498
7499 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7500
7501 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7502
7503 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7504 removing now-unnecessary assignment.
7505
7506 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7507
7508 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7509 memory address space to the type's address space.
7510
7511 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7512
7513 PR target/36467
7514 PR target/49687
7515 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7516 and expand appropriately if there is a CONST_INT in operand2.
7517 (usmulqihi3): New insn.
7518 (*sumulqihi3): New insn.
7519 (*osmulqihi3): New insn.
7520 (*oumulqihi3): New insn.
7521 (*muluqihi3.uconst): New insn_and_split.
7522 (*muluqihi3.sconst): New insn_and_split.
7523 (*mulsqihi3.sconst): New insn_and_split.
7524 (*mulsqihi3.uconst): New insn_and_split.
7525 (*mulsqihi3.oconst): New insn_and_split.
7526 (*ashifthi3.signx.const): New insn_and_split.
7527 (*ashifthi3.signx.const7): New insn_and_split.
7528 (*ashifthi3.zerox.const): New insn_and_split.
7529 (mulsqihi3): New insn.
7530 (muluqihi3): New insn.
7531 (muloqihi3): New insn.
7532 * config/avr/predicates.md (const_2_to_7_operand): New.
7533 (const_2_to_6_operand): New.
7534 (u8_operand): New.
7535 (s8_operand): New.
7536 (o8_operand): New.
7537 (s9_operand): New.
7538 (register_or_s9_operand): New.
7539
7540 2011-07-20 Kai Tietz <ktietz@redhat.com>
7541
7542 * builtins.c (fold_builtin_expect): See through the cast
7543 from truthvalue_type_node to long.
7544
7545 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7546
7547 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7548 where we can use them from the standard and altivec instruction
7549 sets, instead of always using the 3 operand VSX forms that require
7550 the destination to overlap one of the inputs.
7551 (vsx_fms*): Ditto.
7552 (vsx_fnma*): Ditto.
7553 (vsx_fnms*): Ditto.
7554
7555 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7556 for DF types.
7557 (fmsdf4_fpr): Ditto.
7558 (nfmadf4_fpr): Ditto.
7559 (nfmsdf4_fpr): Ditto.
7560
7561 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
7562
7563 * genrecog.c (make_insn_sequence): Correct position numbering
7564 when filtering out match_scratch and match_dup.
7565
7566 2011-07-20 Richard Guenther <rguenther@suse.de>
7567
7568 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7569 against already removed statements.
7570 (forward_propagate_into_comparison): Remove dead defining stmts.
7571 (forward_propagate_into_gimple_cond): Likewise.
7572 (forward_propagate_into_cond): Simplify.
7573 (ssa_forward_propagate_and_combine): Handle changed cfg from
7574 forward_propagate_into_comparison.
7575 * tree-ssa-phiopt.c (conditional_replacement): Use proper
7576 locations for newly built statements.
7577
7578 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
7579
7580 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7581
7582 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7583
7584 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7585 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7586
7587 2011-07-20 Richard Guenther <rguenther@suse.de>
7588
7589 PR middle-end/18908
7590 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7591 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7592 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
7593
7594 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
7595
7596 * config/frv/frv.c (frv_register_move_cost): Define explicitly
7597 costs for subclasses of GR_REGS.
7598
7599 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
7600
7601 PR target/49780
7602 * config/i386/predicates.md (no_seg_addres_operand): No more special.
7603 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7604 of DImode hard registers in base.
7605 (ix86_legitimate_address_p): Allow SImode and DImode base and index
7606 registers.
7607
7608 2011-07-20 Richard Guenther <rguenther@suse.de>
7609
7610 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7611 (unify_nodes): Deal with that.
7612 (solve_graph): Likewise.
7613
7614 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
7615
7616 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7617 canonicalize left operand from ZERO_EXTEND to AND.
7618
7619 2011-07-20 Anatoly Sokolov <aesok@post.ru>
7620
7621 * target.def (class_max_nregs): New hook.
7622 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7623 * doc/tm.texi: Regenerate.
7624 * targhooks.c (default_class_max_nregs): New function.
7625 * targhooks.h (default_class_max_nregs): Declare.
7626 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7627 x_ira_reg_class_min_nregs arrays to unsigned char.
7628 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7629 hook instead of CLASS_MAX_NREGS macro.
7630 * reginfo.c (restore_register_info): Ditto.
7631 * ira-conflicts.c (process_regs_for_copy): Use
7632 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7633 Change type rclass and aclass vars to reg_class_t.
7634 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7635 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7636 reg_class_t.
7637 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7638 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7639
7640 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7641 * config/i386/i386.c (ix86_class_max_nregs): New function.
7642 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7643 instead of CLASS_MAX_NREGS macro.
7644 (TARGET_CLASS_MAX_NREGS): Define.
7645 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7646 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7647 * config/avr/avr.c (class_max_nregs): Remove function.
7648 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7649 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7650 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7651 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7652 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7653 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7654 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7655 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7656 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7657 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7658 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7659 * config/score/score.h (CLASS_MAX_NREGS): Remove.
7660 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7661 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7662 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7663
7664 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
7665
7666 * cif-code.def (OVERWRITABLE): Fix typo and move around.
7667 (TARGET_OPTIMIZATION_MISMATCH): Delete.
7668 (EH_PERSONALITY): Fix typo.
7669 (NON_CALL_EXCEPTIONS): Fix message.
7670 (OPTIMIZATION_MISMATCH): Adjust message.
7671 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7672
7673 2011-07-19 Ian Lance Taylor <iant@google.com>
7674
7675 * doc/install.texi (Configuration): Document
7676 --enable-build-poststage1-with-cxx.
7677
7678 2011-07-19 Robert Millan <rmh@gnu.org>
7679
7680 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
7681 (GLIBC_DYNAMIC_LINKER): Remove.
7682
7683 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
7684 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7685 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7686 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7687 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7688 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7689
7690 * config/mips/linux.h: Remove everything except for ...
7691 (GLIBC_DYNAMIC_LINKER): ... this macro.
7692
7693 * config/mips/linux64.h: Remove everything except for ...
7694 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7695 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7696 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7697 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7698 (GNU_USER_LINK_EMULATIONN32): New macros.
7699
7700 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7701 Use the new headers.
7702
7703 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7704
7705 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7706 Add offset_known_p and size_known_p fields.
7707 (MEM_OFFSET_KNOWN_P): Update accordingly.
7708 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7709 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7710 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7711 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7712 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7713 (init_emit_regs): Likewise.
7714
7715 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7716
7717 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7718 (MEM_OFFSET): Change from returning an rtx to returning a
7719 HOST_WIDE_INT.
7720 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7721 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7722 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7723 (clear_mem_offset): Declare.
7724 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7725 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7726 MEM_OFFSET to get a HOST_WIDE_INT offset.
7727 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
7728 (adjust_offset_for_component_ref): Take a bool "known_p"
7729 parameter and a HOST_WIDE_INT "offset" parameter.
7730 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7731 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7732 than an rtx. Use clear_mem_offset to clear the offset.
7733 * cfgcleanup.c (merge_memattrs): Likewise.
7734 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7735 * function.c (assign_parm_find_stack_rtl): Likewise.
7736 (assign_parm_setup_stack): Likewise.
7737 * print-rtl.c (print_rtx): Likewise.
7738 * reload.c (find_reloads_subreg_address): Likewise.
7739 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7740 * var-tracking.c (INT_MEM_OFFSET): Likewise.
7741 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7742 (get_mem_align_offset): Likewise.
7743 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7744 (clear_mem_offset): New function.
7745 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7746 offset rather than an rtx. Assume both the expressio and offset
7747 are available.
7748 (r10k_needs_protection_p_1): Update accordingly, checking the
7749 expression and offset availability here instead.
7750
7751 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7752
7753 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7754 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7755 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7756 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7757 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7758 (clear_mem_size): Declare.
7759 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7760 (clear_mem_size): New function.
7761 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7762 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7763 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
7764 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
7765 to clear the size.
7766 (nonoverlapping_memrefs_p): Likewise.
7767 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7768 (expand_builtin_init_trampoline): Likewise.
7769 * calls.c (compute_argument_addresses): Likewise.
7770 * cfgcleanup.c (merge_memattrs): Likewise.
7771 * dce.c (find_call_stack_args): Likewise.
7772 * dse.c (record_store, scan_insn): Likewise.
7773 * dwarf2out.c (dw_sra_loc_expr): Likewise.
7774 * expr.c (emit_block_move_hints): Likewise.
7775 * function.c (assign_parm_find_stack_rtl): Likewise.
7776 * print-rtl.c (print_rtx): Likewise.
7777 * reload.c (find_reloads_subreg_address): Likewise.
7778 * rtlanal.c (may_trap_p_1): Likewise.
7779 * var-tracking.c (track_expr_p): Likewise.
7780 * varasm.c (assemble_trampoline_template): Likewise.
7781 * config/arm/arm.c (arm_print_operand): Likewise.
7782 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7783 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7784 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7785 (expand_constant_setmem_prologue): Likewise.
7786 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7787 * config/rs6000/rs6000.c (expand_block_move): Likewise.
7788 (adjacent_mem_locations): Likewise.
7789 * config/s390/s390.c (s390_expand_setmem): Likewise.
7790 (s390_expand_insv): Likewise.
7791 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7792 (*extendqi<mode>2_short_displ): Likewise.
7793 * config/sh/sh.c (expand_block_move): Likewise.
7794 * config/sh/sh.md (extv, extzv): Likewise.
7795
7796 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7797
7798 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7799 (mem_attrs_htab_eq): ...here.
7800 (find_mem_attrs): Replace with...
7801 (set_mem_attrs): ...this function. Take a mem_attrs structure
7802 rather than individual fields.
7803 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7804 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7805 (set_mem_size, change_address, adjust_address_1, offset_address)
7806 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7807 Update accordingly.
7808
7809 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
7810
7811 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7812 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7813 Provide a dummy definition of MEM_ADDR_SPACE for generators.
7814 (target_rtl): Add x_mode_mem_attrs.
7815 (mode_mem_attrs): New macro.
7816 (get_mem_attrs): New function.
7817 * emit-rtl.c (get_mem_attrs): Rename to...
7818 (find_mem_attrs): ...this.
7819 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7820 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7821 (set_mem_size, change_address, adjust_address_1, offset_address)
7822 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7823 Update accordingly.
7824 (init_emit_regs): Initialize mode_mem_attrs.
7825
7826 2011-07-19 Richard Guenther <rguenther@suse.de>
7827
7828 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7829 TRUTH_*_EXPR handling.
7830 * tree-ssa-operands.c (get_expr_operands): Likewise.
7831 * tree-ssa-pre.c (fully_constant_expression): Likewise.
7832 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7833 Likewise.
7834 (is_and_or_or): Likewise.
7835 (is_norm_cond_subset_of): Likewise.
7836
7837 2011-07-19 Richard Guenther <rguenther@suse.de>
7838
7839 * tree.h (fold_build_pointer_plus_loc): New helper function.
7840 (fold_build_pointer_plus_hwi_loc): Likewise.
7841 (fold_build_pointer_plus): Define.
7842 (fold_build_pointer_plus_hwi): Likewise.
7843 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7844 (fold_builtin_memory_op): Likewise.
7845 (fold_builtin_stpcpy): Likewise.
7846 (fold_builtin_memchr): Likewise.
7847 (fold_builtin_strstr): Likewise.
7848 (fold_builtin_strchr): Likewise.
7849 (fold_builtin_strrchr): Likewise.
7850 (fold_builtin_strpbrk): Likewise.
7851 (fold_builtin_strcat): Likewise.
7852 (expand_builtin_memory_chk): Likewise.
7853 (fold_builtin_memory_chk): Likewise.
7854 * c-typeck.c (build_unary_op): Likewise.
7855 * cgraphunit.c (thunk_adjust): Likewise.
7856 * fold-const.c (build_range_check): Likewise.
7857 (fold_binary_loc): Likewise.
7858 * omp-low.c (extract_omp_for_data): Likewise.
7859 (expand_omp_for_generic): Likewise.
7860 (expand_omp_for_static_nochunk): Likewise.
7861 (expand_omp_for_static_chunk): Likewise.
7862 * tree-affine.c (add_elt_to_tree): Likewise.
7863 * tree-data-ref.c (split_constant_offset_1): Likewise.
7864 * tree-loop-distribution.c (generate_memset_zero): Likewise.
7865 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
7866 * tree-predcom.c (ref_at_iteration): Likewise.
7867 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7868 (add_to_parts): Likewise.
7869 (create_mem_ref): Likewise.
7870 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7871 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
7872 (number_of_iterations_le): Likewise.
7873 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
7874 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7875 (vect_create_addr_base_for_vector_ref): Likewise.
7876 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
7877 (vect_create_cond_for_alias_checks): Likewise.
7878 * tree-vrp.c (extract_range_from_assert): Likewise.
7879 * config/alpha/alpha.c (alpha_va_start): Likewise.
7880 (alpha_gimplify_va_arg_1): Likewise.
7881 * config/i386/i386.c (ix86_va_start): Likewise.
7882 (ix86_gimplify_va_arg): Likewise.
7883 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7884 * config/mep/mep.c (mep_expand_va_start): Likewise.
7885 (mep_gimplify_va_arg_expr): Likewise.
7886 * config/mips/mips.c (mips_va_start): Likewise.
7887 (mips_gimplify_va_arg_expr): Likewise.
7888 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7889 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
7890 (rs6000_gimplify_va_arg): Likewise.
7891 * config/s390/s390.c (s390_va_start): Likewise.
7892 (s390_gimplify_va_arg): Likewise.
7893 * config/sh/sh.c (sh_va_start): Likewise.
7894 (sh_gimplify_va_arg_expr): Likewise.
7895 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7896 * config/spu/spu.c (spu_va_start): Likewise.
7897 (spu_gimplify_va_arg_expr): Likewise.
7898 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7899 Likewise.
7900 (xstormy16_gimplify_va_arg_expr): Likewise.
7901 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
7902 (xtensa_gimplify_va_arg_expr): Likewise.
7903
7904 2011-07-19 Richard Guenther <rguenther@suse.de>
7905
7906 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
7907 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
7908 handling.
7909
7910 PR middle-end/18908
7911 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
7912 result of BIT_*_EXPR to bitfield precision.
7913
7914 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
7915
7916 PR tree-optimization/49742
7917 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
7918 as a potential write.
7919
7920 2011-07-19 Richard Guenther <rguenther@suse.de>
7921
7922 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
7923 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
7924 (forward_propagate_comparison): Simplify, remove obsolete code.
7925
7926 2011-07-19 Richard Guenther <rguenther@suse.de>
7927
7928 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
7929 BIT_XOR_EXPR, same as the RTL expander does.
7930 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
7931 (verify_gimple_assign_unary): Likewise.
7932 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
7933 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
7934 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
7935
7936 2011-07-19 Jakub Jelinek <jakub@redhat.com>
7937
7938 PR tree-optimization/49768
7939 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
7940 if offset is smaller than bitoffset, but offset+size is bigger
7941 than bitoffset.
7942
7943 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
7944
7945 PR tree-optimization/49771
7946 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
7947 zero step, set segment length to the size of the data-ref's type.
7948
7949 2011-07-18 Martin Jambor <mjambor@suse.cz>
7950
7951 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
7952 comments.
7953 (ipcp_values_pool): Declare.
7954 (ipcp_sources_pool): Likewise.
7955 (ipcp_lattice): Changed to forward declaration.
7956 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
7957 cannot_devirtualize.
7958 (ipa_node_params): New fields descriptors, lattices, known_vals,
7959 clone_for_all_contexts and node dead, removed fields params and
7960 count_scale.
7961 (ipa_set_param_count): Removed.
7962 (ipa_get_param_count): Made to work with descriptors vector.
7963 (ipa_get_param): Updated.
7964 (ipa_param_cannot_devirtualize_p): Removed.
7965 (ipa_param_types_vec_empty): Likewise.
7966 (ipa_set_param_used): New function.
7967 (ipa_get_param_used): Updated to use descriptors vector.
7968 (ipa_func_list): Removed.
7969 (ipa_init_func_list): Removed declaration.
7970 (ipa_push_func_to_list_1): Likewise.
7971 (ipa_pop_func_from_list): Likewise.
7972 (ipa_push_func_to_list): Removed.
7973 (ipa_lattice_from_jfunc): Remove declaration.
7974 (ipa_get_jf_pass_through_result): Declare.
7975 (ipa_get_jf_ancestor_result): Likewise.
7976 (ipa_value_from_jfunc): Likewise.
7977 (ipa_get_lattice): Update.
7978 (ipa_lat_is_single_const): New function.
7979 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
7980 (ipa_init_func_list): Likewise.
7981 (ipa_pop_func_from_list): Likewise.
7982 (ipa_get_param_decl_index): Fix coding style.
7983 (count_formal_params): Removed.
7984 (count_formal_params_1): Renamed to count_formal_params.
7985 (ipa_populate_param_decls): Update to use descriptors vector.
7986 (ipa_initialize_node_params): Likewise.
7987 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
7988 (ipa_analyze_params_uses): Likewise.
7989 (ipa_free_node_params_substructures): Likewise and free also lattices
7990 and known values.
7991 (duplicate_array): Removed.
7992 (ipa_edge_duplication_hook): Add the new edge to the list of edge
7993 clones.
7994 (ipa_node_duplication_hook): Update to use new lattices.
7995 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
7996 (ipa_free_all_structures_after_iinln): Likewise.
7997 (ipa_write_node_info): Update to use new lattices.
7998 (ipa_read_node_info): Likewise.
7999 (ipa_get_jf_pass_through_result): New function.
8000 (ipa_get_jf_ancestor_result): Likewise.
8001 (ipa_value_from_jfunc): Likewise.
8002 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8003 * ipa-cp.c: Reimplemented.
8004 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8005 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8006 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8007 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8008 * doc/invoke.texi (devirt-type-list-size): Removed description.
8009 (ipa-cp-value-list-size): Added description.
8010
8011 2011-07-18 Richard Henderson <rth@redhat.com>
8012
8013 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8014 before calling create_basic_block.
8015
8016 2011-07-18 Jakub Jelinek <jakub@redhat.com>
8017
8018 PR middle-end/49675
8019 * tree.c (build_common_builtin_nodes): Register
8020 __builtin_return_address, __cyg_profile_func_enter
8021 and __cyg_profile_func_exit.
8022
8023 2011-07-18 Richard Henderson <rth@redhat.com>
8024
8025 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8026 (add_labels_and_missing_jumps): ... here.
8027 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8028
8029 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
8030
8031 PR target/47744
8032 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8033 of DImode hard registers in PLUS address chains.
8034
8035 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8036
8037 PR bootstrap/49769
8038 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8039 (alpha*-*-freebsd*): Likewise.
8040 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8041 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8042 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8043 crtprec80.o, crtfastmath.o to extra_parts for all targets.
8044 (ia64*-*-elf*): Remove extra_parts.
8045 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8046 (sparc64-*-linux*): Likewise.
8047 (sparc64-*-freebsd*): Likewise.
8048
8049 Revert:
8050 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8051 (ia64*-*-linux*): Likewise.
8052 (mips64*-*-linux*): Likewise.
8053 (mips*-*-linux*): Likewise.
8054
8055 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
8056
8057 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8058
8059 2011-07-18 Richard Guenther <rguenther@suse.de>
8060
8061 * gimplify.c (gimplify_expr): Use input_location, not saved_location
8062 when building new trees.
8063
8064 2011-07-18 Richard Guenther <rguenther@suse.de>
8065
8066 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8067 expansion result to bitfield precision if required.
8068
8069 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8070
8071 * config.gcc (i[3456x]86-*-netware*): Remove.
8072
8073 * gthr-nks.h: Remove.
8074 * configure.ac (enable_threads): Remove nks.
8075 * configure: Regenerate.
8076
8077 * config/i386/i386.c (ix86_encode_section_info): Remove netware
8078 reference.
8079 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8080 <netware.h> reference.
8081
8082 * config/i386/netware-libgcc.c,
8083 gcc/config/i386/netware-libgcc.def,
8084 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8085 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8086 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8087 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8088
8089 * doc/extend.texi (Function Attributes,
8090 callee_pop_aggregate_return): Remove i?86-netware reference.
8091 * doc/install.texi (Configuration, --enable-threads): Remove nks.
8092
8093 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8094
8095 PR target/49746
8096 Revert:
8097 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8098
8099 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8100 patterns.
8101
8102 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
8103
8104 PR middle-end/49732
8105 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8106
8107 2011-07-16 Matthias Klose <doko@ubuntu.com>
8108
8109 * doc/install.texi: Document --enable-static-libjava.
8110
8111 2011-07-15 Richard Henderson <rth@redhat.com>
8112
8113 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8114 Replace all three arguments by returning a VEC of edges.
8115 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8116 pointers and counts.
8117 (fix_edges_for_rarely_executed_code): Merge ...
8118 (rest_of_handle_partition_blocks): ... into...
8119 (partition_hot_cold_basic_blocks): ... here. Return todo items if
8120 any work was performed.
8121 (pass_partition_blocks): Clear todo_flags_finish.
8122
8123 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
8124 Jakub Jelinek <jakub@redhat.com>
8125 Jonathan Wakely <jwakely.gcc@gmail.com>
8126
8127 PR libstdc++/49745
8128 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8129 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8130
8131 2011-07-15 Jason Merrill <jason@redhat.com>
8132
8133 PR testsuite/49741
8134 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8135 rather than --tool_opts.
8136
8137 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
8138
8139 * doc/plugins.texi (Building GCC plugins): gengtype needs its
8140 corresponding gtype.state.
8141
8142 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8143
8144 PR target/49723
8145 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8146
8147 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
8148
8149 PR target/48220
8150 * doc/md.texi (Standard Names): Document window_save.
8151 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8152 expand_debug_expr and expand_debug_source_expr. If the target has
8153 a window_save instruction, adjust the ENTRY_VALUE_EXP.
8154 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8155 SSA_NAME_VAR is a parameter.
8156 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8157 * var-tracking.c (parm_reg_t): New type and associated vector type.
8158 (windowed_parm_regs): New variable.
8159 (adjust_insn): If the target has a window_save instruction and this
8160 is the instruction, make its effect on parameter registers explicit.
8161 (next_non_note_insn_var_location): New function.
8162 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8163 (vt_add_function_parameter): If the target has a window_save insn,
8164 adjust the incoming RTL and record that in windowed_parm_regs.
8165 (vt_finalize): Free windowed_parm_regs.
8166
8167 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
8168
8169 * doc/invoke.texi (C6X Options): New section.
8170 * doc/md.texi (TI C6X family): New section.
8171 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8172 tic6x-*-uclinux.
8173 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8174 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8175 Provide C6X definitions.
8176 * config/c6x/c6x.md: New file.
8177 * config/c6x/constraints.md: New file.
8178 * config/c6x/predicates.md: New file.
8179 * config/c6x/c6x-sched.md.in: New file.
8180 * config/c6x/c6x-sched.md: New file.
8181 * config/c6x/gensched.sh: New file.
8182 * config/c6x/c6x-mult.md.in: New file.
8183 * config/c6x/genmult.sh: New file.
8184 * config/c6x/c6x-mult.md: New file.
8185 * config/c6x/sync.md: New file.
8186 * config/c6x/c6x-protos.h: New file.
8187 * config/c6x/sfp-machine.h: New file.
8188 * config/c6x/c6x.c: New file.
8189 * config/c6x/c6x.h: New file.
8190 * config/c6x/crti.s: New file.
8191 * config/c6x/crtn.s: New file.
8192 * config/c6x/lib1funcs.asm: New file.
8193 * config/c6x/c6x-modes.def: New file.
8194 * config/c6x/genopt.sh: New file.
8195 * config/c6x/c6x.opt: New file.
8196 * config/c6x/c6x-tables.opt: New file.
8197 * config/c6x/c6x-opts.h: New file.
8198 * config/c6x/c6x-isas.def: New file.
8199 * config/c6x/elf.h: New file.
8200 * config/c6x/elf-common.h: New file.
8201 * config/c6x/uclinux-elf.h: New file.
8202 * config/c6x/t-c6x: New file.
8203 * config/c6x/t-c6x-elf: New file.
8204 * config/c6x/t-c6x-uclinux: New file.
8205 * config/c6x/t-c6x-softfp: New file.
8206 * config/c6x/gtd.c: New file.
8207 * config/c6x/gtf.c: New file.
8208 * config/c6x/ltd.c: New file.
8209 * config/c6x/ltf.c: New file.
8210 * config/c6x/ged.c: New file.
8211 * config/c6x/gef.c: New file.
8212 * config/c6x/led.c: New file.
8213 * config/c6x/lef.c: New file.
8214 * config/c6x/eqd.c: New file.
8215 * config/c6x/eqf.c: New file.
8216 * config/c6x/libgcc-c6xeabi.ver: New file.
8217
8218 Revert
8219 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8220 PR rtl-optimization/11320
8221 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8222 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8223 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8224 current_sched_info->compute_jump_reg_dependencies. Record which
8225 registers are used and which registers are set by the jump.
8226 Clear deps->reg_conditional_sets after a barrier.
8227 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8228 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8229 (init_deps): Initialize reg_conditional_sets.
8230 (free_deps): Clear reg_conditional_sets.
8231 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8232 Mark registers live on entry of the fallthrough block and conditionally
8233 set as set by the jump. Mark registers live on entry of non-fallthrough
8234 blocks as used by the jump.
8235 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8236 Mark new parameters as unused.
8237
8238 2011-07-14 Andrew Pinski <pinskia@gmail.com>
8239
8240 PR tree-opt/49309
8241 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8242 Use fold_build2_loc instead of build2.
8243 Use the correct type for the new tree.
8244
8245 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8246
8247 PR rtl-optimization/11320
8248 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8249 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8250
8251 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8252
8253 PR target/49487
8254 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8255 of REG.
8256 (*rotw<mode>): Use const_int_operand for operand2.
8257 Use match_scatch for operand3.
8258 (*rotb<mode>): Ditto
8259 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8260
8261 2011-07-14 Richard Guenther <rguenther@suse.de>
8262
8263 PR tree-optimization/49651
8264 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8265 handle dereferences with subvariables.
8266
8267 2011-07-14 Richard Guenther <rguenther@suse.de>
8268
8269 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8270 (fold_stmt_1): Do it here directly on gimple and as a first thing.
8271
8272 2011-07-14 Richard Guenther <rguenther@suse.de>
8273
8274 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8275 not bool_var when folding bool_var != 1 or bool_var == 0.
8276
8277 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8278
8279 * haifa-sched.c (schedule_insns): Remove outdated comment.
8280 (schedule_block): When computing a known value for TODO_SPEC,
8281 just set it rather than using logical operations.
8282 (try_ready): Likewise. Use a local variable rather than a
8283 pointer to TODO_SPEC. Reorder an if statement to move the
8284 easy case to the then block.
8285 * sched-deps.c (dep_spec_p): New static function.
8286 (update_dep): Use it to decide whether to call
8287 change_spec_dep_to_hard.
8288 (get_back_and_forw_lists): Use it.
8289 (sd_resolve_dep): Likewise.
8290 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8291 (haifa_note_mem_dep): Likewise.
8292 (check_dep): Likewise.
8293 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8294 (sched_free_deps): Free in two passes.
8295
8296 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
8297
8298 PR middle-end/49736
8299 * expr.c (all_zeros_p): Undo bogus part of last change.
8300
8301 2011-07-14 Matthias Klose <doko@ubuntu.com>
8302
8303 * doc/extend.texi (optimize attribute): Fix typo.
8304
8305 2011-07-14 Richard Guenther <rguenther@suse.de>
8306
8307 * gimplify.c (gimplify_expr): Only do required conversions.
8308
8309 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
8310
8311 PR target/43746
8312 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8313 i.e. use default_elf_select_section.
8314 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8315 (READONLY_DATA_SECTION_ASM_OP): Remove.
8316 (TARGET_ASM_NAMED_SECTION): Move from here...
8317 * config/avr/avr.c: ...to here.
8318 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8319 (avr_asm_named_section): Make static.
8320
8321 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8322
8323 PR bootstrap/49739
8324 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8325 and crtfastmath.o for Linux/x86.
8326
8327 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
8328
8329 * haifa-sched.c: Include "hashtab.h"
8330 (sched_no_dce): New global variable.
8331 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8332 SHADOW_P): New macros.
8333 (last_clock_var, cycle_issued_insns): Move declarations.
8334 (must_backtrack): New static variable.
8335 (struct delay_pair): New structure.
8336 (delay_htab, delay_htab_i2): New static variables.
8337 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8338 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8339 functions.
8340 (dep_cost_1): If delay pairs exist, try to look up the insns and
8341 use the correct pair delay if we find them.
8342 (rank-for_schedule): Tweak priority for insns that must be scheduled
8343 soon to avoid backtracking.
8344 (queue_insn): Detect conditions which force backtracking.
8345 (ready_add): Likewise.
8346 (struct sched_block_state): Add member shadows_only_p.
8347 (struct haifa_save_data): New structure.
8348 (backtrack_queue): New static variable.
8349 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8350 unschedule_insns_until, restore_last_backtrack_point,
8351 free_topmost_backtrack_point, free_backtrack_queue,
8352 estimate_insn_tick, estimate_shadow_tick): New functions.
8353 (prune_ready_list): New arg shadows_only_p. All callers changed.
8354 If true, remove everything that isn't SHADOW_P. Look up delay
8355 pairs and estimate ticks to avoid scheduling the first insn too early.
8356 (verify_shadows): New function.
8357 (schedule_block): Add machinery to enable backtracking.
8358 (sched_init): Take sched_no_dce into account when setting
8359 DF_LR_RUN_DCE.
8360 (free_delay_pairs): New function.
8361 (init_h_i_d): Initialize INSN_EXACT_TICK.
8362 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8363 * sched-deps.c (sd_unresolve_dep): New function.
8364 * sched-int. (struct haifa_sched_info): New fields save_state
8365 and restore_state.
8366 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8367 feeds_backtrack_insn and shadow_p.
8368 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8369 (sched_no_dce): Declare variable.
8370 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8371 sd_unresolve_dep): Declare functions.
8372 * modulo-sched.c (sms_sched_info): Clear the two new fields.
8373 * sched-rgn.c (rgn_const_sched_info): Likewise.
8374 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8375 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8376 (ebb_sched_info): Add them for the two new fields.
8377 (add_deps_for_risky_insns): Call add_delay_dependencies.
8378
8379 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8380
8381 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8382 Rename -mr11.
8383 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8384 (rs6000_call_indirect_aix): Ditto.
8385 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8386 (call_indirect_aix<ptrsize>_internal): Ditto.
8387 (call_indirect_aix<ptrsize>_nor11): Ditto.
8388 (call_indirect_aix<ptrsize>_internal2): Ditto.
8389 (call_value_indirect_aix<ptrsize>): Ditto.
8390 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8391 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8392 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8393 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8394
8395 2011-07-13 Jason Merrill <jason@redhat.com>
8396
8397 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8398
8399 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8400
8401 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8402 * config/spu/spu.md ("clrsb<mode>2"): New expander.
8403
8404 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
8405
8406 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8407 * configure: Regenerate.
8408
8409 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8410
8411 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8412 (asm_file_start): Remove.
8413 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8414 free_bb_for_insn around code that modifies insns before
8415 restarting df analysis.
8416
8417 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8418
8419 PR target/49541
8420 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
8421 (LINK_SPEC): ... here.
8422
8423 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8424
8425 * haifa-sched.c (struct sched_block_state): New.
8426 (schedule_block): Move some local variables into such a structure.
8427
8428 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8429
8430 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8431 * config/i386/t-crtpc: Remove.
8432 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8433 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8434 tmake_file.
8435 (x86_64-*-darwin*): Likewise.
8436 (i[34567]86-*-linux*): Likewise.
8437 (x86_64-*-linux*): Likewise.
8438
8439 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8440 Handle -mpc32, -mpc64, -mpc80.
8441
8442 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8443
8444 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8445 * config/alpha/t-crtfm: Remove.
8446 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8447 * config/i386/t-crtfm: Remove.
8448 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8449 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8450 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8451 * config/sparc/t-crtfm: Remove.
8452
8453 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8454 (alpha*-*-freebsd*): Likewise.
8455 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8456 (x86_64-*-darwin*): Likewise.
8457 (i[34567]86-*-linux*): Likewise.
8458 (x86_64-*-linux*): Likewise.
8459 (x86_64-*-mingw*): Likewise.
8460 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8461 (ia64*-*-freebsd*): Likewise.
8462 (ia64*-*-linux*): Likewise.
8463 (mips64*-*-linux*): Likewise.
8464 (mips*-*-linux*): Likewise.
8465 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8466 (sparc64-*-linux*): Likewise.
8467 (sparc64-*-freebsd*): Likewise.
8468
8469 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8470
8471 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8472 * config/darwin-crt3.c: Move to ../libgcc/config.
8473 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8474 ($(T)crt3$(objext)): Remove.
8475 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8476 ($(T)crt2$(objext)): Remove.
8477 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8478 (powerpc64-*-darwin*): Likewise.
8479
8480 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8481
8482 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8483
8484 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8485 (addsi_1_zext): This.
8486
8487 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8488
8489 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8490 * doc/tm.texi: Regenerate.
8491 * target.def (mergeable_rodata_prefix): New defhookpod.
8492 * varasm.c (mergeable_string_section, mergeable_constant_section):
8493 Use it. Allocate name with alloca.
8494
8495 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
8496
8497 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8498
8499 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8500
8501 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8502 overlap check.
8503
8504 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
8505
8506 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
8507 (count_type_elements): Delete.
8508 (complete_ctor_at_level_p): Declare.
8509 * expr.c (flexible_array_member_p): New function, split out from...
8510 (count_type_elements): ...here. Make static. Replace allow_flexarr
8511 parameter with for_ctor_p. When for_ctor_p is true, return the
8512 number of elements that should appear in the top-level constructor,
8513 otherwise return an estimate of the number of scalars.
8514 (categorize_ctor_elements): Replace p_must_clear with p_complete.
8515 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
8516 (complete_ctor_at_level_p): New function, borrowing union logic
8517 from old categorize_ctor_elements_1.
8518 (mostly_zeros_p): Return true if the constructor is not complete.
8519 (all_zeros_p): Update call to categorize_ctor_elements.
8520 * gimplify.c (gimplify_init_constructor): Update call to
8521 categorize_ctor_elements. Don't call count_type_elements.
8522 Unconditionally prevent clearing for variable-sized types,
8523 otherwise rely on categorize_ctor_elements to detect
8524 incomplete initializers.
8525
8526 2011-07-13 Richard Guenther <rguenther@suse.de>
8527
8528 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8529 the final type is integral.
8530
8531 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
8532
8533 * sched-int.h (struct _dep): Add member cost.
8534 (DEP_COST, UNKNOWN_DEP_COST): New macros.
8535 * sched-deps.c (init_dep_1): Initialize DEP_COST.
8536 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8537 (sched_change_pattern): Reset it for dependent insns.
8538
8539 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8540
8541 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8542 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8543 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8544 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8545 (CRT0_S, MCRT0_S): Remove.
8546 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8547 Remove.
8548 (s-crt0): Remove.
8549 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8550
8551 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8552
8553 * cse.c (insert_with_costs): Put semi-colon after empty loop body
8554 on the next line.
8555 * emit-rtl.c (push_to_sequence): Likewise.
8556 * haifa-sched.c (max_issue): Likewise.
8557 * matrix-reorg.c (add_allocation_site): Likewise.
8558 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8559 * reload.c (alternative_allows_const_pool_ref): Likewise.
8560 * sched-rgn.c (rgn_add_block): Likewise.
8561 (rgn_fix_recovery_cfg): Likewise.
8562 * tree.c (attribute_list_contained): Likewise.
8563
8564 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
8565
8566 * config/i386/i386.c: Tidy processor feature bitmasks.
8567 (m_P4_NOCONA): New.
8568
8569 2011-07-12 Andrew Pinski <pinskia@gmail.com>
8570
8571 PR rtl-opt/49474
8572 * cprop.c (find_implicit_sets): Correct the condition.
8573
8574 2011-07-12 Richard Henderson <rth@redhat.com>
8575
8576 PR target/49713
8577 * dwarf2out.h (dwarf_frame_regnum): Remove.
8578 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
8579 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
8580 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8581 (execute_dwarf2_frame): Initialize them.
8582 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8583 users of the macros with the variables.
8584 (expand_builtin_dwarf_sp_column): Revert last change.
8585 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
8586 result of DWARF_FRAME_REGNUM into a local variable.
8587
8588 2011-07-12 Richard Henderson <rth@redhat.com>
8589
8590 PR target/49714
8591 * config/i386/i386.c (x86_output_mi_thunk): Use
8592 machopic_indirect_call_target instead of machopic_indirection_name
8593 directly.
8594
8595 2011-07-12 Laurent GUERBY <laurent@guerby.net>
8596 Eric Botcazou <ebotcazou@adacore.com>
8597
8598 * prefix.h: Wrap up in extern "C" block.
8599
8600 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
8601
8602 AMD bdver2 Enablement
8603 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8604 (case ${target}): Add bdver2.
8605 * config/i386/driver-i386.c (host_detect_local_cpu): Let
8606 -march=native recognize bdver2 processors.
8607 * config/i386/i386-c.c (ix86_target_macros_internal): Add
8608 bdver2 def_and_undef
8609 * config/i386/i386.c (struct processor_costs bdver2_cost): New
8610 bdver2 cost table.
8611 (m_BDVER2): New definition.
8612 (m_AMD_MULTIPLE): Includes m_BDVER2.
8613 (initial_ix86_tune_features): Add bdver2 tuning.
8614 (processor_target_table): Add bdver2 entry.
8615 (static const char *const cpu_names): Add bdver2 entry.
8616 (ix86_option_override_internal): Add bdver2 instruction sets.
8617 (ix86_issue_rate): Add bdver2.
8618 (ix86_adjust_cost): Add bdver2.
8619 (has_dispatch): Add bdver2.
8620 * config/i386/i386.h (TARGET_BDVER2): New definition.
8621 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8622 (enum processor_type): Add PROCESSOR_BDVER2.
8623 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8624 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8625 description.
8626
8627 2011-07-12 Richard Henderson <rth@redhat.com>
8628
8629 PR target/49714
8630 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8631 destination address in memory on some paths.
8632
8633 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
8634
8635 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8636 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8637 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8638 * function.c (locate_and_pad_parm): Take it into account.
8639 * target.def (function_arg_round_boundary): New hook.
8640 * targhooks.c (default_function_arg_round_boundary): New function.
8641 * targhooks.h (default_function_arg_round_boundary): Declare.
8642 * doc/tm.texi: Regenerate.
8643
8644 2011-07-12 Richard Guenther <rguenther@suse.de>
8645
8646 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8647 Do not perform no-op changes.
8648
8649 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
8650
8651 * config/arm/predicates.md (neon_struct_operand): Make a normal
8652 predicate.
8653 (neon_struct_or_register_operand): New predicate.
8654 * config/arm/neon.md (movmisalign<mode>): Replace predicates
8655 with neon_struct_or_register_operand.
8656 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8657 neon_struct_operand instead of memory_operand.
8658
8659 2011-07-12 Martin Jambor <mjambor@suse.cz>
8660
8661 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8662 * cgraph.c (cgraph_get_node_or_alias): Removed.
8663 (change_decl_assembler_name): Changed all calls to
8664 cgraph_get_node_or_alias to a call to cgraph_get_node.
8665 (cgraph_make_decl_local): Likewise.
8666 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8667 * varasm.c (default_binds_local_p_1): Likewise.
8668 (decl_binds_to_current_def_p): Likewise.
8669
8670 2011-07-12 Jakub Jelinek <jakub@redhat.com>
8671
8672 PR tree-optimization/49712
8673 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8674
8675 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
8676
8677 * genautomata.c (add_arc): Return void. All callers changed.
8678 (make_automaton): Remove dead code.
8679
8680 2011-07-11 Richard Henderson <rth@redhat.com>
8681
8682 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8683 (DW_FRAME_POINTER_REGNUM): New.
8684 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8685 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8686 (dwf_regno): New.
8687 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8688 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8689 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8690 Use it.
8691 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8692 * dwarf2out.h (dwarf_frame_regnum): New.
8693 (struct cfa_loc): Document the domain of the reg member.
8694
8695 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
8696
8697 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8698 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
8699
8700 2011-07-11 Jakub Jelinek <jakub@redhat.com>
8701
8702 PR debug/49676
8703 * dwarf2out.c (int_shift_loc_descriptor): New function.
8704 (int_loc_descriptor): If shorter, emit i as
8705 (i >> shift), shift, DW_OP_shl for suitable shift value.
8706 Similarly, try to optimize large negative values using
8707 DW_OP_neg of a positive value if shorter.
8708 (size_of_int_shift_loc_descriptor): New function.
8709 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8710 changes.
8711 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8712 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8713 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8714 is shorter.
8715 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8716 addend as added DW_OP_plus if it is shorter.
8717
8718 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8719
8720 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8721 (DTORS_SECTION_ASM_OP): Define.
8722
8723 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8724
8725 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8726 * config/t-dfprules: Move to ../libgcc/config.
8727 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8728 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8729 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8730 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8731 Likewise.
8732 (i[34567]86-*-cygwin*): Likewise.
8733 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
8734 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8735 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8736 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8737 D64PBIT_FUNCS, D128PBIT_FUNCS.
8738
8739 2011-07-11 Richard Guenther <rguenther@suse.de>
8740
8741 * tree-vrp.c (simplify_conversion_using_ranges): Manually
8742 translate the source value-range through the conversion chain.
8743
8744 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
8745
8746 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8747
8748 2011-07-11 Arthur Loiret <aloiret@debian.org>
8749
8750 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8751 a bi-arch compiler defaulting to 31-bit. In this case:
8752 (tmake_file): Add s390/t-linux64.
8753 * doc/install.texi: Add s390-linux to the list of targets supporting
8754 --enable-targets=all.
8755
8756 2011-07-11 Arthur Loiret <aloiret@debian.org>
8757 Matthias Klose <doko@debian.org>
8758
8759 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8760 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8761 (tm_file): Add mips/linux64.h.
8762 (tmake_file): Add mips/t-linux64.
8763 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8764 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8765 instead of hardcoded mabi=n32.
8766 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8767 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8768 convention.
8769
8770 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8771
8772 * passes.c (init_optimization_passes): Add invariant motion pass
8773 after induction variable optimization.
8774
8775 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
8776
8777 PR target/39633
8778 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8779 offsets 1..5 set cc0 in a usable way.
8780
8781 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
8782
8783 * tree.h (call_expr_arg): Remove.
8784 (call_expr_argp): Likewise.
8785
8786 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
8787
8788 * config/sparc/sparc.md (save_register_window_1): Rename to...
8789 (window_save): ...this.
8790 * config/sparc/sparc.c (emit_save_register_window): Rename to...
8791 (emit_window_save): ...this.
8792 (sparc_expand_prologue): Adjust to above renaming.
8793
8794 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8795
8796 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8797 of movabs for x32.
8798
8799 2011-07-10 Richard Henderson <rth@redhat.com>
8800
8801 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8802 run final, instead of emitting text directly.
8803
8804 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
8805
8806 * config/i386/i386.c (ix86_option_override_internal): Turn on
8807 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
8808 small PIC models for TARGET_X32.
8809
8810 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
8811
8812 PR target/49684
8813 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8814 $(LIBGCC2_CFLAGS).
8815
8816 PR bootstrap/49680
8817 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8818 stray notes and debug insns by using prev_nonnote_nondebug_insn
8819 instead of PREV_INSN.
8820
8821 2011-07-09 Richard Henderson <rth@redhat.com>
8822
8823 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8824 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8825 * dwarf2out.c: ... here.
8826 (output_all_cfis): Remove.
8827 (dwarf2out_switch_text_section): Use output_cfis directly.
8828 (size_of_locs): Export.
8829 (output_loc_sequence, output_loc_sequence_raw): Export.
8830 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8831 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8832 output_cfa_loc_raw): Move to ...
8833 * dwarfcfi.c: ... here.
8834 * dwarf2out.h: Update decls.
8835
8836 2011-07-09 Richard Henderson <rth@redhat.com>
8837
8838 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8839 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8840 * dwarf2cfi.c: ... here.
8841 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8842 (DWARF_ROUND, DWARF_CIE_ID): Remove.
8843 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8844 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8845 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8846
8847 2011-07-09 Richard Henderson <rth@redhat.com>
8848
8849 * dwarf2cfi.c (cie_return_save): New.
8850 (queue_reg_save): Use compare_reg_or_pc.
8851 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8852 (dwarf2out_frame_debug_expr): Likewise.
8853 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8854 (initial_return_save): Likewise.
8855 (execute_dwarf2_frame): Save and restore initial return save from
8856 the cie to the fde.
8857 * config/mips/mips.c (mips_frame_set): Remove special case for
8858 DWARF_FRAME_RETURN_COLUMN.
8859
8860 2011-07-09 Richard Henderson <rth@redhat.com>
8861
8862 * dwarf2cfi.c (lookup_cfa): Remove.
8863 (execute_dwarf2_frame): Assert queues are empty on entry.
8864 Setup initial cfa directly, not via lookup_cfa.
8865 Don't clear args_size state here.
8866
8867 2011-07-09 Richard Henderson <rth@redhat.com>
8868
8869 * dwarf2cfi.c (add_cfi_vec): New.
8870 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
8871 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
8872 (execute_dwarf2_frame): Set add_cfi_vec.
8873
8874 2011-07-09 Richard Henderson <rth@redhat.com>
8875
8876 * defaults.h (ASM_COMMENT_START): Move here...
8877 * dwarf2asm.c: ... from here.
8878 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
8879 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
8880 * varasm.c: Likewise.
8881
8882 2011-07-09 Richard Henderson <rth@redhat.com>
8883
8884 PR debug/49686
8885 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
8886 (create_cfi_notes): ... do it here instead.
8887
8888 2011-07-09 Jakub Jelinek <jakub@redhat.com>
8889
8890 PR debug/49676
8891 * dwarf2out.c (size_of_int_loc_descriptor): New function.
8892 (address_of_int_loc_descriptor): Use it.
8893 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
8894
8895 2011-07-09 Richard Henderson <rth@redhat.com>
8896
8897 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
8898 (prologue, epilogue): New.
8899 (return, *rts): New.
8900 (blockage, setd, seti): New.
8901 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8902 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
8903 (pdp11_saved_regno): New.
8904 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
8905 generate rtl instead of text.
8906 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
8907 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
8908 * config/pdp11/pdp11-protos.h: Update.
8909
8910 2011-07-09 Richard Henderson <rth@redhat.com>
8911
8912 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8913 try to insert an rtl prologue here.
8914 (rs6000_output_function_epilogue): Similarly.
8915 * config/rs6000/rs6000.md (prologue): Emit a barrier to
8916 satisfy !TARGET_SCHED_PROLOG.
8917 (epilogue, sibcall_epilogue): Likewise.
8918
8919 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
8920
8921 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
8922 (FP_REG_P): Delete.
8923 (IN_OR_GLOBAL_P): Likewise.
8924
8925 2011-07-08 Jason Merrill <jason@redhat.com>
8926
8927 PR c++/45437
8928 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
8929 compound assignment.
8930
8931 * cgraph.c (cgraph_add_to_same_comdat_group): New.
8932 * cgraph.h: Declare it.
8933 * ipa.c (function_and_variable_visibility): Make sure thunks
8934 have the right visibility.
8935
8936 2011-07-08 Richard Henderson <rth@redhat.com>
8937
8938 PR bootstrap/49680
8939 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
8940 any tablejump vector.
8941
8942 PR bootstrap/49680
8943 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
8944 end of the prologue.
8945
8946 2011-07-08 Jakub Jelinek <jakub@redhat.com>
8947
8948 PR target/49621
8949 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
8950 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
8951 * config/rs6000/vector.md (vector_select_<mode>,
8952 vector_select_<mode>_uns): Change second operand of NE to
8953 CONST0_RTX (<MODE>mode) instead of const0_rtx.
8954 * config/rs6000/altivec.md (*altivec_vsel<mode>,
8955 *altivec_vsel<mode>_uns): Expect second operand of NE to be
8956 zero_constant of the corresponding vector mode.
8957 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
8958 Likewise.
8959
8960 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
8961
8962 * graphite-dependences.c (build_alias_set_powerset): Remove
8963 continue from loop, add one more assert.
8964
8965 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
8966
8967 PR target/46779
8968 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
8969 In particular, allow 8-bit values in r28 and r29.
8970 (avr_hard_regno_scratch_ok): Disallow any register that might be
8971 part of the frame pointer.
8972 (avr_hard_regno_rename_ok): Same.
8973 (avr_legitimate_address_p): Don't allow SUBREGs.
8974
8975 2011-07-08 Julian Brown <julian@codesourcery.com>
8976
8977 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
8978 big-endian mode.
8979 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
8980 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
8981 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
8982 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
8983 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
8984 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
8985 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
8986 registers in big-endian mode.
8987
8988 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
8989
8990 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
8991 in terms of another.
8992 (write_attr_value): Write a cast if necessary.
8993
8994 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
8995 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
8996 (REG_WORDS_BIG_ENDIAN): Document.
8997 * doc/tm.texi: Regenerate.
8998 * reload.c (operands_match_p): Take it into account.
8999 (reload_adjust_reg_for_mode): Likewise.
9000 * rtlanal.c (subreg_get_info): Likewise.
9001
9002 2011-07-08 Richard Guenther <rguenther@suse.de>
9003
9004 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9005 folding.
9006
9007 2011-07-08 Kai Tietz <ktietz@redhat.com>
9008
9009 * fold-const.c (fold_truth_andor): Factored out truth_andor
9010 label from fold_binary as function.
9011 (fold_binary_loc): Replace truth_andor lable
9012 by function fold_truth_andor.
9013
9014 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
9015
9016 PR middle-end/49519
9017 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9018 check if address is stored in register. If so - give up.
9019 (check_sibcall_argument_overlap_1): Do not perform check of
9020 overlapping when it is call to address.
9021
9022 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
9023
9024 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9025 of magic '31'.
9026
9027 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
9028
9029 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9030 GET_MODE_BITSIZE where appropriate.
9031 (widen_leading, expand_parity, expand_ctz, expand_ffs,
9032 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9033 expand_float, expand_fix): Likewise.
9034 * expr.c (convert_move, convert_modes, expand_expr_real_2,
9035 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9036 * stor-layout.c (get_mode_bounds): Likewise.
9037 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9038 Likewise.
9039 * convert.c (convert_to_integer): Likewise.
9040 * expmed.c (expand_shift_1): Likewise.
9041
9042 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9043 a bitsize.
9044
9045 * optabs.c (expand_binop): Tighten conditions for doubleword
9046 expansions.
9047 (widen_bswap): Assert that mode bitsize and precision are the same.
9048 * stor-layout.c (get_best_mode): Skip modes that have lower
9049 precision than bitsize.
9050 * recog.c (simplify_while_replacing): Assert that bitsize and
9051 precision are the same.
9052
9053 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9054
9055 * Makefile.in (LIBGCOV): Remove.
9056 (libgcc.mvars): Remove LIBGCOV.
9057 * libgov.c: Move to ../libgcc.
9058
9059 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9060
9061 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9062
9063 2011-07-08 Martin Jambor <mjambor@suse.cz>
9064
9065 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9066 is too big for total scalarization.
9067
9068 2011-07-07 Richard Henderson <rth@redhat.com>
9069
9070 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9071 (DBX_DEBUGGING_INFO): Undef.
9072
9073 2011-07-07 Richard Henderson <rth@redhat.com>
9074
9075 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
9076 Handle some opcodes specially for debugging.
9077 * print-rtl.c: Include dwarf2out.h
9078 (print_rtx): Handle NOTE_INSN_CFI.
9079 * Makefile.in (print-rtl.o): Update.
9080
9081 2011-07-07 Richard Henderson <rth@redhat.com>
9082
9083 * tree-pass.h (pass_dwarf2_frame): Declare.
9084 * passes.c (init_optimization_passes): Add it.
9085 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9086 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9087 make static, do not call add_cfis_to_fde.
9088 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9089 dwarf2out_frame_init): Merge into...
9090 (execute_dwarf2_frame): ... here. New function.
9091 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
9092 saved_do_cfi_asm to a tri-state variable.
9093 (gate_dwarf2_frame, pass_dwarf2_frame): New.
9094 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9095 if it has yet to be done. Don't call dwarf2cfi_function_init.
9096 * dwarf2out.h, debug.h: Update decls.
9097 * final.c (final_start_function): Don't call
9098 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9099 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9100 * toplev.c (lang_dependent_init): Likewise.
9101
9102 2011-07-07 Richard Henderson <rth@redhat.com>
9103
9104 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9105 FDE_TABLE_INCREMENT): Replace with...
9106 (fde_vec): ... this, a new vector.
9107 (current_fde): Remove. Replace all users with cfun->fde.
9108 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9109 (size_of_aranges, dwarf2out_finish): Likewise.
9110 (dwarf2out_alloc_current_fde): Break out from ...
9111 (dwarf2out_begin_prologue): ... here.
9112 (dwarf2out_frame_init): Remove.
9113 * dwarf2cfi.c: Update all users of current_fde.
9114 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9115 * dwarf2out.h: Update decls.
9116 (dw_fde_node): Add fde_index member.
9117 * function.h (struct function): Add fde member.
9118
9119 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9120 Richard Henderson <rth@redhat.com>
9121
9122 * dwarf2cfi.c (add_cfi): Remove.
9123 (dwarf2out_cfi_label): Remove force argument. Only generate the
9124 label name.
9125 (add_fde_cfi): Simplify the different code paths.
9126 (add_cie_cfi): New.
9127 (old_cfa, old_cfa_remember): New.
9128 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9129 (last_reg_save_label): Remove.
9130 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9131 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9132 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9133 dwarf2out_frame_debug_cfa_expression,
9134 dwarf2out_frame_debug_cfa_restore,
9135 dwarf2out_frame_debug_cfa_window_save,
9136 dwarf2out_frame_debug_expr): Remove label parameter.
9137 (cfi_label_required_p, add_cfis_to_fde): New.
9138 (dwarf2out_frame_debug_after_prologue): New.
9139 (dwarf2cfi_frame_init): Initialize old_cfa.
9140 (dwarf2out_frame_debug_restore_state): Likewise.
9141 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9142 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9143 * final.c (final_start_function): Call
9144 dwarf2out_frame_debug_after_prologue.
9145
9146 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9147 Richard Henderson <rth@redhat.com>
9148
9149 * dwarf2cfi.c (cfi_insn): New.
9150 (dwarf2out_cfi_label): Don't emit cfi label here.
9151 (add_fde_cfi): Create a NOTE_INSN_CFI.
9152 (dwarf2out_frame_debug): Setup cfi_insn.
9153 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9154 (dwarf2out_cfi_begin_epilogue): Make static.
9155 (dwarf2out_frame_debug_restore_state): Make static.
9156 * dwarf2out.c (output_cfi_directive): Make static.
9157 (dwarf2out_emit_cfi): New.
9158 * dwarf2out.h: Update.
9159 * final.c (final): Remove CFI notes.
9160 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9161 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9162 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9163 * insn-notes.def (NOTE_INSN_CFI): New.
9164 (NOTE_INSN_CFI_LABEL): New.
9165 * rtl.h (union rtunion_def): Add rt_cfi member.
9166 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9167
9168 2011-07-07 Richard Henderson <rth@redhat.com>
9169
9170 * dwarf2cfi.c: New file.
9171 * Makefile.in (OBJS): Add it.
9172 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9173 * gengtype.c (open_base_files): Include dwarf2out.h.
9174 * coretypes.h (enum var_init_status): Move from ...
9175 * rtl.h: ... here.
9176 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9177 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9178 expand_builtin_dwarf_sp_column, init_return_column_size,
9179 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9180 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9181 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9182 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9183 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9184 compute_barrier_args_size, dwarf2out_args_size,
9185 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9186 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9187 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9188 queue_reg_save, dwarf2out_flush_queued_reg_saves,
9189 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9190 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9191 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9192 dwarf2out_frame_debug_cfa_expression,
9193 dwarf2out_frame_debug_cfa_restore,
9194 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9195 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9196 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9197 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9198 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9199 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9200 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9201 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9202 dw_loc_descr_node): Move to dwarf2out.h.
9203 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9204 mem_loc_descriptor): Export.
9205 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
9206 (dwarf2out_frame_init): Extract CIE generation code to
9207 dwarf2cfi_frame_init.
9208
9209 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
9210
9211 PR target/49660
9212 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9213 MASK_V8PLUS, remove commented out flag and reorder.
9214
9215 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9216
9217 PR c/49644
9218 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9219 one non-complex and one complex argument, call c_save_expr on both
9220 operands.
9221
9222 2011-07-07 Martin Jambor <mjambor@suse.cz>
9223
9224 PR middle-end/49495
9225 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9226 (verify_cgraph_node): Some functinality moved to
9227 verify_edge_corresponds_to_fndecl, call it.
9228
9229 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9230
9231 * config.gcc (*local*): Remove.
9232 * doc/install-old.texi: Don't mention local configurations.
9233
9234 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9235
9236 PR debug/49522
9237 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9238 referencing debug insns that have been reset.
9239 (dead_debug_insert_before): Don't assert reg is non-NULL,
9240 instead return immediately if it is NULL.
9241
9242 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9243
9244 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9245
9246 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9247
9248 * hw-doloop.c: New file.
9249 * hw-doloop.h: New file.
9250 * Makefile.in (OBJS): Add hw-doloop.o.
9251 (hw-doloop.o): New rule.
9252 ($(obj_out_file)): Add hw-doloop.h dependency.
9253 * config/bfin/bfin.c: Include "hw-doloop.h".
9254 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9255 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9256 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
9257 type changed to hwloop_info. Return bool, true if the loop was
9258 successfully optimized. Remove code that was moved to
9259 hw-doloop.c, and adjust other parts.
9260 (hwloop_fail): New static function, containing parts that used
9261 to be in bfin_optimize_loop.
9262 (bfin_discover_loop, bfin_discover_loops, free_loops,
9263 bfin_reorder_loops): Remove.
9264 (hwloop_pattern_reg): New static function.
9265 (bfin_doloop_hooks): New variable.
9266 (bfin_reorg_loops): Remove most code, call reorg_loops.
9267 * config/bfin/bfin.md (doloop_end splitter): Also enable if
9268 loop counter is a memory_operand.
9269
9270 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
9271
9272 * config.gcc: Support --with-multilib-list for x86 Linux targets.
9273
9274 * configure.ac: Mention x86-64 for --with-multilib-list.
9275 * configure: Regenerated.
9276
9277 * config/i386/gnu-user64.h (SPEC_64): Support x32.
9278 (SPEC_32): Likewise.
9279 (ASM_SPEC): Likewise.
9280 (LINK_SPEC): Likewise.
9281 (TARGET_THREAD_SSP_OFFSET): Likewise.
9282 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9283 (SPEC_X32): New.
9284
9285 * config/i386/i386.h (TARGET_X32): New.
9286 (TARGET_LP64): New.
9287 (LONG_TYPE_SIZE): Likewise.
9288 (POINTER_SIZE): Likewise.
9289 (POINTERS_EXTEND_UNSIGNED): Likewise.
9290 (OPT_ARCH64): Support x32.
9291 (OPT_ARCH32): Likewise.
9292
9293 * config/i386/i386.opt (mx32): New.
9294
9295 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9296 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9297 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9298 (GLIBC_DYNAMIC_LINKERX32): Likewise.
9299
9300 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9301 (BIONIC_DYNAMIC_LINKERX32): Likewise.
9302 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9303
9304 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9305
9306 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9307
9308 * doc/invoke.texi: Document -mx32.
9309
9310 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9311
9312 * doc/invoke.texi (mwords-little-endian): Deprecate.
9313 * config/arm/arm.opt (mwords-little-endian): Likewise.
9314 * config/arm/arm.c (arm_option_override): Warn about the deprecation
9315 of -mwords-little-endian.
9316
9317 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
9318
9319 * reload1.c (choose_reload_regs): Use mode sizes to check whether
9320 an old reload register completely defines the required value.
9321
9322 2011-07-07 Richard Guenther <rguenther@suse.de>
9323
9324 * fold-const.c (fold_unary_loc): Do not strip sign-changes
9325 for NEGATE_EXPR.
9326
9327 2011-07-07 Richard Guenther <rguenther@suse.de>
9328
9329 * tree-vrp.c (simplify_conversion_using_ranges): New function.
9330 (simplify_stmt_using_ranges): Call it.
9331
9332 2011-07-07 Kai Tietz <ktietz@redhat.com>
9333
9334 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9335 (lookup_logical_inverted_value): Likewise.
9336 (simplify_bitwise_binary_1): Likewise.
9337 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9338
9339 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9340
9341 * gcc.c (%[Spec]): Don't document.
9342 (struct spec_list): Update comment.
9343 (do_spec_1): Don't handle %[Spec].
9344 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9345
9346 2011-07-07 Joseph Myers <joseph@codesourcery.com>
9347
9348 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9349 default based on TARGET_ASM_NAMED_SECTION.
9350 * common/common-target.def (have_named_sections): Default to true.
9351 * common/config/default-common.c: Don't include tm.h.
9352 * common/config/picochip/picochip-common.c
9353 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9354 * common/config/m32c/m32c-common.c: Remove.
9355 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9356 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9357 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9358 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9359 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9360 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9361 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9362
9363 2011-07-07 Jakub Jelinek <jakub@redhat.com>
9364
9365 PR middle-end/49640
9366 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9367 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9368
9369 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9370
9371 PR libmudflap/49550
9372 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9373
9374 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9375
9376 PR target/39150
9377 * configure.ac (gcc_cv_as_hidden): Also accept
9378 x86_64-*-solaris2.1[0-9]*.
9379 (gcc_cv_as_cfi_directive): Likewise.
9380 (gcc_cv_as_comdat_group_group): Likewise.
9381 (set_have_as_tls): Likewise.
9382 * configure: Regenerate.
9383 * config.gcc (i[34567]86-*-solaris2*): Also handle
9384 x86_64-*-solaris2.1[0-9]*.
9385 * config.host (i[34567]86-*-solaris2*): Likewise.
9386 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9387 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9388 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9389 (TARGET_LD_EMULATION): Use it.
9390 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9391 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9392 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9393 (ASM_CPU64_DEFAULT_SPEC): Define.
9394 (ASM_CPU_SPEC): Use %(asm_cpu_default).
9395 (ASM_SPEC): Redefine.
9396 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9397 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9398 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9399 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9400 configuration.
9401 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9402
9403 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9404
9405 * config/sol2.h (ASM_SPEC): Split into ...
9406 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9407 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9408 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9409 (ASM_SPEC): Use ASM_SPEC_BASE.
9410 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9411
9412 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
9413
9414 * config/avr/avr.md (*reload_insi): Change predicate #1 to
9415 const_int_operand. Ditto for peep2 producing this insn.
9416 Add argument to output_reload_insisf call.
9417 (*movsi,*movsf): Add argument to output_movsisf call.
9418 (*reload_insf): New insn and new peep2 to produce it.
9419 * config/avr/avr-protos.h (output_movsisf): Change prototype.
9420 (output_reload_insisf): Change prototype.
9421 * config/avr/avr.c (avr_asm_len): New function.
9422 (output_reload_insisf): Rewrite.
9423 (output_movsisf): Change prototype. output_reload_insisf for
9424 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
9425 (adjust_insn_length): Add argument to output_movsisf and
9426 output_reload_insisf call.
9427
9428 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
9429
9430 * emit-rtl.c (paradoxical_subreg_p): New function.
9431 * rtl.h (paradoxical_subreg_p): Declare.
9432 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9433 apply_distributive_law, simplify_comparison, simplify_set): Use it.
9434 * cse.c (record_jump_cond, cse_insn): Likewise.
9435 * expr.c (force_operand): Likewise.
9436 * rtlanal.c (num_sign_bit_copies1): Likewise.
9437 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9438 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9439 (push_reload): Use precision to check for paradoxical subregs.
9440 * expmed.c (extract_bit_field_1): Likewise.
9441
9442 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9443 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9444 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9445 simplify_set, simplify_logical, expand_compound_operation,
9446 make_extraction, force_to_mode, if_then_else_cond, extended_count,
9447 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9448 record_value_for_reg): Likewise.
9449 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9450 * simplify-rtx. c (simplify_unary_operation_1,
9451 simplify_binary_operation_1, simplify_const_relational_operation):
9452 Likewise.
9453
9454 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9455 instead of GET_MODE_BITSIZE where appropriate.
9456 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9457 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9458 init_num_sign_bit_copies_in_rep): Likewise.
9459 * cse.c (fold_rtx, cse_insn): Likewise.
9460 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9461 * simplify-rtx.c (simplify_unary_operation_1,
9462 simplify_const_unary_operation, simplify_binary_operation_1,
9463 simplify_const_binary_operation, simplify_ternary_operation,
9464 simplify_const_relational_operation, simplify_subreg): Likewise.
9465 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9466 simplify_if_then_else, simplify_set, expand_compound_operation,
9467 expand_field_assignment, make_extraction, if_then_else_cond,
9468 make_compound_operation, force_to_mode, make_field_assignment,
9469 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9470 extended_count, try_widen_shift_mode, simplify_shift_const_1,
9471 simplify_comparison, record_promoted_value, simplify_compare_const,
9472 record_dead_and_set_regs_1): Likewise.
9473
9474 Revert:
9475 * simplify-rtx.c (simplify_const_binary_operation): Use the
9476 shift_truncation_mask hook instead of performing modulo by width.
9477 Compare against mode precision, not bitsize.
9478 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9479 Use shift_truncation_mask instead of constructing the value manually.
9480
9481 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9482
9483 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9484 declaration.
9485 (rs6000_save_toc_in_prologue_p): Ditto.
9486
9487 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9488 up the static chain (r11) during indirect function calls.
9489 (-msave-toc-indirect): New undocumented debug switch.
9490
9491 * config/rs6000/rs6000.c (struct machine_function): Add
9492 save_toc_in_prologue field to note whether the prologue needs to
9493 save the TOC value in the reserved stack location.
9494 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
9495 to save the TOC in the prologue, do so.
9496 (rs6000_trampoline_init): Don't allow creating AIX style
9497 trampolines if -mno-r11 is in effect.
9498 (rs6000_call_indirect_aix): New function to create AIX style
9499 indirect calls, adding support for -mno-r11 to suppress loading
9500 the static chain, and saving the TOC in the prologue instead of
9501 the call body.
9502 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9503 TOC in the prologue.
9504
9505 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9506 register numbers.
9507 (TOC_REGNUM): Ditto.
9508 (STATIC_CHAIN_REGNUM): Ditto.
9509 (ARG_POINTER_REGNUM): Ditto.
9510 (SFP_REGNO): Delete, unused.
9511 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9512 function descriptor offsets.
9513 (TOC_SAVE_OFFSET_64BIT): Ditto.
9514 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9515 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9516 (AIX_FUNC_DESC_SC_32BIT): Ditto.
9517 (AIX_FUNC_DESC_SC_64BIT): Ditto.
9518 (ptrload): New mode attribute for the appropriate load of a pointer.
9519 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9520 (call_indirect_aix64): Ditto.
9521 (call_value_indirect_aix32): Ditto.
9522 (call_value_indirect_aix64): Ditto.
9523 (call_indirect_nonlocal_aix32_internal): Ditto.
9524 (call_indirect_nonlocal_aix32): Ditto.
9525 (call_indirect_nonlocal_aix64_internal): Ditto.
9526 (call_indirect_nonlocal_aix64): Ditto.
9527 (call): Rewrite AIX indirect function calls. Add support for
9528 eliminating the static chain, and for moving the save of the TOC
9529 to the function prologue.
9530 (call_value): Ditto.
9531 (call_indirect_aix<ptrsize>): Ditto.
9532 (call_indirect_aix<ptrsize>_internal): Ditto.
9533 (call_indirect_aix<ptrsize>_internal2): Ditto.
9534 (call_indirect_aix<ptrsize>_nor11): Ditto.
9535 (call_value_indirect_aix<ptrsize>): Ditto.
9536 (call_value_indirect_aix<ptrsize>_internal): Ditto.
9537 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9538 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9539 (call_nonlocal_aix32): Relocate in the rs6000.md file.
9540 (call_nonlocal_aix64): Ditto.
9541
9542 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9543 -mno-r11 documentation.
9544
9545 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9546
9547 PR other/49658
9548 * doc/extend.texi (Compound Literals): Fix typo.
9549
9550 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
9551
9552 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9553
9554 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
9555
9556 * configure.ac (plugin-version.h): Generate
9557 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9558 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9559 macros.
9560
9561 * configure: Regenerate.
9562
9563 * doc/plugins.texi (Building GCC plugins): Mention
9564 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9565
9566 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9567
9568 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9569 * combine.c (make_extraction, gen_lowpart_or_truncate,
9570 apply_distributive_law, simplify_comparison,
9571 reg_truncated_to_mode, record_truncated_value): Use it.
9572 * cse.c (notreg_cost): Likewise.
9573 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9574 * expr.c (convert_move, convert_modes): Likewise.
9575 * optabs.c (expand_binop, expand_unop): Likewise.
9576 * postreload.c (move2add_last_label): Likewise.
9577 * regmove.c (optimize_reg_copy_3): Likewise.
9578 * rtlhooks.c (gen_lowpart_general): Likewise.
9579 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9580
9581 2011-07-06 Joseph Myers <joseph@codesourcery.com>
9582
9583 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9584
9585 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9586
9587 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9588 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9589 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9590 (simplify_const_unary_operation, simplify_binary_operation_1,
9591 simplify_const_binary_operation, simplify_const_relational_operation):
9592 Use them. Use GET_MODE_MASK for masking and sign-extensions.
9593 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9594 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9595 simplify_shift_const_1, simplify_comparison): Likewise.
9596 * expr.c (convert_modes): Likewise.
9597 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9598 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9599 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9600
9601 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9602
9603 2011-07-06 Richard Guenther <rguenther@suse.de>
9604
9605 PR tree-optimization/49645
9606 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9607 register variables.
9608 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9609 in type qualification here ...
9610 (copy_reference_ops_from_ref): ... not here.
9611 (vn_reference_lookup_3): ... or here.
9612 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9613 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9614
9615 2011-07-06 Ian Lance Taylor <iant@google.com>
9616
9617 * doc/install.texi (Configuration): It's
9618 --enable-gnu-indirect-function, not --enable-indirect-function.
9619
9620 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
9621
9622 * simplify-rtx.c (simplify_const_binary_operation): Use the
9623 shift_truncation_mask hook instead of performing modulo by width.
9624 Compare against mode precision, not bitsize.
9625 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9626 Use shift_truncation_mask instead of constructing the value manually.
9627
9628 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
9629
9630 PR middle-end/47383
9631 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9632 address computation and convert to address_mode if needed.
9633
9634 2011-07-06 Richard Guenther <rguenther@suse.de>
9635
9636 * tree.c (build_common_tree_nodes_2): Merge with
9637 build_common_tree_nodes.
9638 * tree.h (build_common_tree_nodes): Adjust prototype.
9639 (build_common_tree_nodes_2): Remove.
9640 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9641 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9642
9643 2011-07-05 Jakub Jelinek <jakub@redhat.com>
9644
9645 PR tree-optimization/49618
9646 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9647 t recurse on the decl.
9648 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9649 return true if expr isn't known to be defined in current
9650 TU or some other LTO partition.
9651
9652 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9653
9654 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9655 override CASE_VALUES_THRESHOLD.
9656
9657 * stmt.c (toplevel): Include params.h.
9658 (case_values_threshold): Use the --param case-values-threshold
9659 value if non-zero, otherwise use machine dependent value.
9660 (expand_case): Use case_values_threshold.
9661
9662 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9663
9664 * doc/invoke.texi (--param case-values-threshold): Document.
9665
9666 2011-07-05 Richard Henderson <rth@redhat.com>
9667
9668 * dwarf2out.c (dwarf2out_cfi_label): Make static.
9669 (dwarf2out_flush_queued_reg_saves): Make static.
9670 (dwarf2out_reg_save): Remove.
9671 (dwarf2out_return_save): Remove.
9672 (dwarf2out_return_reg): Remove.
9673 (dwarf2out_reg_save_reg): Remove.
9674 (dwarf2out_def_cfa): Merge into ...
9675 (dwarf2out_frame_init): ... here.
9676 * dwarf2out.h, tree.h: Remove declarations as necessary.
9677
9678 2011-07-05 Richard Henderson <rth@redhat.com>
9679
9680 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9681 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9682 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9683 the alloc insn.
9684
9685 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9686 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9687 (process_epilogue): Don't call dwarf2out_def_cfa.
9688
9689 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9690 indicate the return address save.
9691 (process_cfa_register): Likewise.
9692
9693 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9694 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9695
9696 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9697 for ar.pfs save at alloc insn.
9698
9699 2011-07-05 Richard Henderson <rth@redhat.com>
9700
9701 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9702 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9703 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9704 stack pointer save.
9705 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9706 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
9707 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9708 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9709
9710 2011-07-05 Richard Henderson <rth@redhat.com>
9711
9712 * config/vax/vax.md (define_c_enum unspecv): New. Define the
9713 VUNSPEC_* constants here instead of via define_constants.
9714 (VUNSPEC_PEM): New constant.
9715 (procedure_entry_mask): New insn.
9716 (prologue): New expander.
9717 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9718 (vax_expand_prologue): Rename from vax_output_function_prologue;
9719 emit rtl instead of text.
9720 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9721 (print_operand): Add 'x' prefix.
9722
9723 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9724
9725 PR middle-end/47715
9726 * calls.c (precompute_register_parameters): Promote the function
9727 argument before checking non-legitimate constant.
9728
9729 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9730
9731 PR tree-optimization/47654
9732 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9733 (lst_do_strip_mine_loop): Return an int.
9734 (lst_do_strip_mine): Same.
9735 (scop_do_strip_mine): Same.
9736 (scop_do_block): Loop blocking should strip-mine at least two loops.
9737 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9738 (scop_do_interchange): Same.
9739 * graphite-poly.h (scop_do_interchange): Update declaration.
9740 (scop_do_strip_mine): Same.
9741
9742 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9743
9744 * graphite-clast-to-gimple.c (precision_for_value): Removed.
9745 (precision_for_interval): Removed.
9746 (gcc_type_for_interval): Use mpz_sizeinbase.
9747
9748 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9749
9750 * graphite-ppl.h (value_max): Correct computation of max.
9751
9752 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
9753
9754 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9755
9756 2011-07-05 Richard Guenther <rguenther@suse.de>
9757
9758 * c-decl.c (c_init_decl_processing): Defer building common
9759 tree nodes to c_common_nodes_and_builtins.
9760
9761 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
9762
9763 PR tree-optimization/49580
9764 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9765 the loop's number of iterations.
9766 * tree-parloops.c (transform_to_exit_first_loop): Add the
9767 handling of the loop's number of iterations before the call
9768 to gimple_duplicate_sese_tail.
9769 Insert the stmt caclculating the new rhs of the loop's
9770 condition stmt to the preheader instead of iters_bb.
9771
9772 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
9773
9774 PR rtl-optimization/47449
9775 * fwprop.c (forward_propagate_subreg): Don't propagate hard
9776 register nor zero/sign extended hard register.
9777
9778 2011-07-05 Richard Guenther <rguenther@suse.de>
9779
9780 PR tree-optimization/49518
9781 PR tree-optimization/49628
9782 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9783 irrelevant and invariant data-references.
9784 (vect_analyze_data_ref_access): For invariant loads clear the
9785 group association.
9786
9787 2011-07-04 Jakub Jelinek <jakub@redhat.com>
9788
9789 PR rtl-optimization/49619
9790 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9791 pass VOIDmode as op0_mode to recursive call, and return temp even
9792 when different from tor, just if it is not IOR of the original
9793 PLUS arguments.
9794
9795 PR rtl-optimization/49472
9796 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9797 negating MULT, negate the second operand instead of first.
9798 (simplify_binary_operation_1) <case MULT>: If one operand is
9799 a NEG and the other is MULT, don't attempt to optimize by negation
9800 of the MULT operand if it only moves the NEG operation around.
9801
9802 PR debug/49602
9803 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9804 get_current_def return value if it can't be trusted to be
9805 the current value of the variable in the current bb.
9806
9807 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
9808
9809 PR target/49600
9810 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9811 general register to memory for !TARGET_INTER_UNIT_MOVES.
9812
9813 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9814
9815 PR target/44643
9816 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9817 instead of TREE_READONLY.
9818
9819 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9820
9821 * doc/extend.texi (AVR Built-in Functions): Update documentation
9822 of __builtin_avr_fmul*.
9823 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9824 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9825 * config/avr/avr.md (fmul): Rename to fmul_insn.
9826 (fmuls): Rename to fmuls_insn.
9827 (fmulsu): Rename to fmulsu_insn.
9828 (fmul,fmuls,fmulsu): New expander.
9829 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9830 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9831 * config/avr/libgcc.S (__fmul): New function.
9832 (__fmuls): New function.
9833 (__fmulsu,__fmulsu_exit): New function.
9834
9835 2011-07-04 Richard Guenther <rguenther@suse.de>
9836
9837 PR tree-optimization/49615
9838 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9839 basic-block index check.
9840
9841 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
9842
9843 * longlong.h (count_leading_zeros, count_trailing_zeros,
9844 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9845 resp. 64.
9846
9847 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
9848
9849 PR tree-optimization/49610
9850 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9851 a basic block.
9852
9853 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
9854 Olivier Hainque <hainque@adacore.com>
9855 Nicolas Setton <setton@adacore.com>
9856
9857 * tree.h (TYPE_ARTIFICIAL): New flag.
9858 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9859 the DIE of the type if it is artificial.
9860 (gen_array_type_die): Likewise.
9861 (gen_enumeration_type_die): Likewise.
9862 (gen_struct_or_union_type_die): Likewise.
9863 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9864 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9865
9866 2011-07-01 Jakub Jelinek <jakub@redhat.com>
9867
9868 * tree-object-size.c (pass_through_call): Handle
9869 BUILT_IN_ASSUME_ALIGNED.
9870
9871 2011-07-01 Martin Jambor <mjambor@suse.cz>
9872
9873 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
9874
9875 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
9876
9877 PR middle-end/48016
9878 * explow.c (update_nonlocal_goto_save_area): Use proper mode
9879 for stack save area.
9880 * function.c (expand_function_start): Likewise.
9881
9882 2011-07-01 Richard Guenther <rguenther@suse.de>
9883
9884 PR middle-end/49596
9885 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
9886 may have unknown refs.
9887
9888 2011-07-01 Kai Tietz <ktietz@redhat.com>
9889
9890 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
9891
9892 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9893
9894 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
9895 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
9896 (Specific, mips-sgi-irix6): Likewise.
9897
9898 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9899
9900 PR libmudflap/49549
9901 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
9902
9903 2011-07-01 Jakub Jelinek <jakub@redhat.com>
9904
9905 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
9906 [idx]= and [idx1 ... idx2]= before initializers if needed for
9907 array initializers.
9908
9909 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
9910
9911 * config.gcc (score-*-elf): Remove score7.o.
9912 * config/score/t-score-elf: Likewise.
9913 * config/score/score.c: Merge score7 to score.c and
9914 remove forwarding functions.
9915 * config/score/score7.c: Deleted.
9916 * config/score/score7.h: Deleted.
9917
9918 2011-07-01 Richard Guenther <rguenther@suse.de>
9919
9920 PR tree-optimization/49603
9921 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
9922
9923 2011-06-30 Martin Jambor <mjambor@suse.cz>
9924
9925 * tree-sra.c (struct access): Rename total_scalarization to
9926 grp_total_scalarization
9927 (completely_scalarize_var): New function.
9928 (sort_and_splice_var_accesses): Set total_scalarization in the
9929 representative access.
9930 (analyze_access_subtree): Propagate total scalarization accross the
9931 tree, no holes in totally scalarized trees, simplify coverage
9932 computation.
9933 (analyze_all_variable_accesses): Call completely_scalarize_var instead
9934 of completely_scalarize_record.
9935
9936 2011-06-30 Richard Henderson <rth@redhat.com>
9937
9938 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
9939 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
9940 * config/i386/i386.c: Don't include dwarf2out.h.
9941 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
9942 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
9943 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
9944 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
9945 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
9946
9947 2011-06-30 Richard Henderson <rth@redhat.com>
9948
9949 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
9950 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9951 * final.c (final_scan_insn): Look for it, and invoke
9952 dwarf2out_frame_debug before the insn if found.
9953
9954 2011-06-30 Richard Henderson <rth@redhat.com>
9955
9956 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
9957 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
9958
9959 2011-06-30 Richard Henderson <rth@redhat.com>
9960
9961 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
9962 Define a vector of this type.
9963 (regs_saved_in_regs): Use a VEC.
9964 (num_regs_saved_in_regs): Remove.
9965 (compare_reg_or_pc): New.
9966 (record_reg_saved_in_reg): Split out from...
9967 (dwarf2out_flush_queued_reg_saves): ... here.
9968 (clobbers_queued_reg_save): Update for VEC.
9969 (reg_saved_in): Likewise.
9970 (dwarf2out_frame_debug_init): Likewise.
9971 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
9972 (dwarf2out_frame_debug_cfa_register): Likewise.
9973
9974 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
9975
9976 PR tree-optimization/49572
9977 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
9978 type of the RHS instead of that of the LHS for the expression type.
9979
9980 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
9981
9982 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
9983 unconditionally.
9984
9985 2011-06-30 Richard Guenther <rguenther@suse.de>
9986
9987 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
9988 * tree-ssa-structalias.c (create_variable_info_for): Do not
9989 add initial constraints for non-var-decls. Properly handle
9990 globals in other ltrans partitions.
9991 (intra_create_variable_infos): Manually create constraints for
9992 the fake no-alias parameter.
9993 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
9994 and assert there are no clones.
9995
9996 2011-06-30 Richard Guenther <rguenther@suse.de>
9997
9998 PR tree-optimization/46787
9999 * tree-data-ref.c (dr_address_invariant_p): Remove.
10000 (find_data_references_in_stmt): Invariant accesses are ok now.
10001 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10002 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10003 invariant loads.
10004
10005 2011-06-30 Martin Jambor <mjambor@suse.cz>
10006
10007 PR tree-optimization/49094
10008 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10009 (build_accesses_from_assign): Use it.
10010
10011 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10012
10013 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10014 handling of BUILT_IN_ASSUME_ALIGNED.
10015
10016 PR debug/49364
10017 * dwarf2out.c (output_abbrev_section): Don't return early
10018 if abbrev_die_table_in_use is 1.
10019 (dwarf2out_finish): Instead don't call output_abbrev_section
10020 nor emit abbrev_section_label in that case.
10021
10022 2011-06-30 Nick Clifton <nickc@redhat.com>
10023
10024 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10025 for the V850E.
10026
10027 2011-06-30 Jakub Jelinek <jakub@redhat.com>
10028
10029 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10030 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10031
10032 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
10033
10034 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10035 both pattern and original statements if necessary.
10036 (vect_transform_loop): Likewise.
10037 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10038 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10039 Mark the pattern statement only if the original statement doesn't
10040 have its own uses.
10041 (process_use): Call vect_mark_relevant with additional parameter.
10042 (vect_mark_stmts_to_be_vectorized): Likewise.
10043 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10044 (vect_analyze_stmt): Handle both pattern and original statements
10045 if necessary.
10046 (vect_transform_stmt): Don't store vectorized pattern statement
10047 in the original statement.
10048 (vect_is_simple_use_1): Use related pattern statement only if the
10049 original statement is irrelevant.
10050 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10051
10052 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
10053
10054 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10055 option.
10056 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10057 entry.
10058 (TARGET_AVX128_OPTIMAL): New definition.
10059 * config/i386/i386.c (initial_ix86_tune_features): Initialize
10060 X86_TUNE_AVX128_OPTIMAL entry.
10061 (ix86_option_override_internal): Enable the generation
10062 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10063 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10064 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10065
10066 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
10067
10068 PR tree-optimization/49539
10069 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10070 names by means of stmt_references_abnormal_ssa_name.
10071 (associate_plusminus): Call can_propagate_from before propagating
10072 from definition statements.
10073 (ssa_forward_propagate_and_combine): Remove superfluous newline.
10074
10075 2011-06-29 Richard Guenther <rguenther@suse.de>
10076
10077 * doc/invoke.texi: Document -scev dump modifier.
10078 * tree-pass.h (TDF_SCEV): New dump flag.
10079 * tree-dump.c (dump_option_value_in): Add scev.
10080 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10081 * tree-scalar-evolution.c: Likewise.
10082
10083 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
10084
10085 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10086 (cxa_type_match): Correct declaration.
10087 (__gnu_unwind_pr_common): Reconstruct additional indirection
10088 when __cxa_type_match returns succeeded_with_ptr_to_base.
10089
10090 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10091
10092 PR rtl-optimization/49114
10093 * reload.c (struct replacement): Remove SUBREG_LOC member.
10094 (push_reload): Do not set it.
10095 (push_replacement): Likewise.
10096 (subst_reload): Remove dead code.
10097 (copy_replacements): Remove assertion.
10098 (copy_replacements_1): Do not handle SUBREG_LOC.
10099 (move_replacements): Likewise.
10100 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
10101 Detect subregs via recursive descent instead of via SUBREG_LOC.
10102
10103 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10104
10105 * config/avr/avr.c (avr_encode_section_info): Dispatch to
10106 default_encode_section_info.
10107
10108 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
10109
10110 PR tree-optimization/49545
10111 * builtins.c (get_object_alignment_1): Update function comment.
10112 Do not use DECL_ALIGN for functions, but test
10113 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10114 * fold-const.c (get_pointer_modulus_and_residue): Don't check
10115 for functions here.
10116 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10117
10118 2011-06-29 Jakub Jelinek <jakub@redhat.com>
10119
10120 PR debug/49567
10121 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10122 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10123
10124 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10125
10126 PR target/34734
10127 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10128 about uninitialized data attributed 'progmem' from here...
10129 (avr_encode_section_info): ...to this new function.
10130 (TARGET_ENCODE_SECTION_INFO): New define.
10131 (avr_section_type_flags): For data in ".progmem.data", remove
10132 section flag SECTION_WRITE.
10133
10134 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
10135
10136 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10137 _xmulhisi3_exit.
10138 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10139 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
10140 (__umulhisi3): Ditto.
10141 * config/avr/avr.md (mulhisi3): New insn expender.
10142 (umulhisi3): New insn expender.
10143 (*mulhisi3_call): New insn.
10144 (*umulhisi3_call): New insn.
10145
10146 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10147
10148 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10149
10150 2011-06-28 Richard Henderson <rth@redhat.com>
10151
10152 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
10153 all code and arguments that handled pushes. Update all callers.
10154
10155 2011-06-28 Richard Henderson <rth@redhat.com>
10156
10157 * config/arm/arm.c (arm_output_function_prologue): Don't call
10158 thumb1_output_function_prologue.
10159 (arm_expand_prologue): Avoid dead store.
10160 (number_of_first_bit_set): Use ctz_hwi.
10161 (thumb1_emit_multi_reg_push): New.
10162 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10163 to emit the entire prologue as rtl.
10164 (thumb1_output_interwork): Split out from
10165 thumb1_output_function_prologue.
10166 (thumb1_output_function_prologue): Remove.
10167 (arm_attr_length_push_multi): Handle thumb1.
10168 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10169 (prologue_thumb1_interwork): New.
10170 (*push_multi): Allow thumb1; use push_mult_memory_operand.
10171 * config/arm/predicates.md (push_mult_memory_operand): New.
10172
10173 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10174
10175 * config/sparc/sync.md (*stbar): Delete.
10176 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10177
10178 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
10179
10180 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10181
10182 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10183
10184 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10185 (TARGET_64BIT_DEFAULT): Define.
10186 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10187 of tm_file.
10188 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10189
10190 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10191
10192 * common.opt (in_lto_p): New Variable entry.
10193 * flags.h (in_lto_p): Move to common.opt.
10194 * gcc.c: Include params.h.
10195 (set_option_handlers): Also use common_handle_option and
10196 target_handle_option.
10197 (main): Call global_init_params, finish_params and init_options_struct.
10198 * opts.c (debug_type_names): Move from toplev.c.
10199 (print_filtered_help): Access quiet_flag through opts pointer.
10200 (common_handle_option): Return early in the driver for some options.
10201 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10202 opts pointer.
10203 * toplev.c (in_lto_p): Move to common.opt.
10204 (debug_type_names): Move to opts.c.
10205 * Makefile.in (OBJS): Remove opts.o.
10206 (OBJS-libcommon-target): Add opts.o.
10207 (gcc.o): Update dependencies.
10208
10209 2011-06-28 Kai Tietz <ktietz@redhat.com>
10210
10211 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10212
10213 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10214
10215 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10216 with '=' constraint modifier.
10217 (*divdf3_vfp): Likewise.
10218 ("*mulsf3_vfp"): Likewise.
10219 ("*muldf3_vfp"): Likewise.
10220 ("*mulsf3negsf_vfp"): Likewise.
10221 ("*muldf3negdf_vfp"): Likewise.
10222
10223 2011-06-28 Nick Clifton <nickc@redhat.com>
10224
10225 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10226 relaxation when performing an incremental link.
10227
10228 2011-06-28 Kai Tietz <ktietz@redhat.com>
10229
10230 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10231 within BB from last to first.
10232
10233 2011-06-28 Joseph Myers <joseph@codesourcery.com>
10234
10235 * genattr-common.c: New. Based on genattr.c.
10236 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10237 (MOSTLYCLEANFILES): Add insn-attr-common.h.
10238 (opts.o): Update dependencies.
10239 (.PRECIOUS): Add insn-attr-common.h.
10240 (simple_rtl_generated_h): Add insn-attr-common.h.
10241 (build/genattr-common.o): New.
10242 (genprogrtl): Add attr-common.
10243 * genattr.c (main): Include insn-attr-common.h. Don't generate
10244 definitions of DELAY_SLOTS or INSN_SCHEDULING.
10245 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10246
10247 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
10248
10249 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10250 avr-*-* and avr-*-rtems* targets.
10251
10252 * config/avr/elf.h: New file.
10253 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10254 (TARGET_ASM_SELECT_SECTION): Define.
10255 (INIT_SECTION_ASM_OP): Undefine.
10256 (FINI_SECTION_ASM_OP): Undefine.
10257 (READONLY_DATA_SECTION_ASM_OP): Undefine.
10258 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10259 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10260 * config/avr/avr.h:
10261 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10262 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10263 (MAX_OFILE_ALIGNMENT): Move to elf.h.
10264 (STRING_LIMIT): Move to elf.h.
10265 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10266 (ASM_DECLARE_OBJECT_NAME): Remove.
10267 (ESCAPES): Remove.
10268 (ASM_OUTPUT_SKIP): Remove.
10269 (DWARF2_DEBUGGING_INFO): Remove.
10270 (OBJECT_FORMAT_ELF): Remove.
10271 (USER_LABEL_PREFIX): Remove.
10272 (ASM_OUTPUT_EXTERNAL): Remove.
10273 (ASM_OUTPUT_ASCII): Remove.
10274 (TYPE_ASM_OP): Remove.
10275 (SIZE_ASM_OP): Remove.
10276 (WEAK_ASM_OP): Remove.
10277 (STRING_ASM_OP): Remove.
10278 (SET_ASM_OP): Remove.
10279 (ASM_WEAKEN_LABEL): Remove.
10280 (TYPE_OPERAND_FMT): Remove.
10281 (ASM_DECLARE_FUNCTION_SIZE): Remove.
10282 (ASM_FINISH_DECLARE_OBJECT): Remove.
10283 (NO_DOLLAR_IN_LABEL): Remove.
10284 (ASM_GENERATE_INTERNAL_LABEL): Remove.
10285 (ASM_OUTPUT_CASE_LABEL): Remove.
10286 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10287 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10288 (gas_output_ascii): Remove.
10289 (gas_output_limited_string): Remove.
10290 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10291 * config/avr/avr-protos.h
10292 (gas_output_ascii): Remove prototye.
10293 (gas_output_limited_string): Remove prototype.
10294
10295 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
10296
10297 PR target/48637
10298 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
10299 asm operands.
10300
10301 2011-06-27 Jan Hubicka <jh@suse.cz>
10302
10303 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10304 node instead of references in node.
10305
10306 2011-06-27 Richard Henderson <rth@redhat.com>
10307
10308 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10309 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10310 inside ifdef.
10311
10312 2011-06-27 Jakub Jelinek <jakub@redhat.com>
10313
10314 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10315
10316 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10317 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10318 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10319 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10320 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10321 (evaluate_stmt, execute_fold_all_builtins): Handle
10322 BUILT_IN_ASSUME_ALIGNED.
10323 * tree-ssa-dce.c (propagate_necessity): Likewise.
10324 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10325 call_may_clobber_ref_p_1): Likewise.
10326 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10327 (expand_builtin_assume_aligned): New function.
10328 * doc/extend.texi (__builtin_assume_aligned): Document.
10329
10330 PR debug/49544
10331 * cselib.c (promote_debug_loc): If cselib_preserve_constants
10332 and l has two DEBUG_INSN owned locs instead of just one, adjust
10333 the second location's setting_insn too.
10334
10335 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10336
10337 PR libmudflap/38738
10338 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10339
10340 2011-06-27 Nick Clifton <nickc@redhat.com>
10341
10342 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10343 bit position of highest bit set into a count of the high zero bits.
10344
10345 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10346
10347 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10348
10349 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10350
10351 PR lto/48492
10352 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10353 to a NULL parent.
10354
10355 2011-06-27 Richard Guenther <rguenther@suse.de>
10356
10357 PR tree-optimization/49394
10358 * passes.c (execute_one_pass): Restore current_pass after
10359 applying IPA transforms.
10360
10361 2011-06-27 Kai Tietz <ktietz@redhat.com>
10362
10363 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10364 out of type precision after operation.
10365 (find_bswap): Take for limit value the integer auto-promotion
10366 into account.
10367
10368 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10369
10370 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10371 forward scan as well.
10372
10373 2011-06-27 Tristan Gingold <gingold@adacore.com>
10374
10375 PR target/44241
10376 * config/vms/vms-protos.h: New file.
10377 * config/vms/vms-crtlmap.map: New file.
10378 * config/vms/vms.c: New file.
10379 * config/vms/make-crtlmap.awk: New file.
10380 * config/vms/vms-crtl.h: File removed.
10381 * config/vms/vms-crtl-64.h: File removed.
10382 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10383 * config/alpha/vms64.h: Do not include vms-crtl-64.h
10384 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10385 clear some builtins on VMS. Calls vms_patch_builtins.
10386 (avms_asm_output_external): Remove.
10387 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10388 (struct crtl_name_spec): Remove
10389 (DO_CTRL_NAMES): Remove.
10390 * config/ia64/vms.h (struct crtl_name_spec): Remove
10391 (DO_CTRL_NAMES): Remove.
10392 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10393 clear some builtins on VMS. Calls vms_patch_builtins.
10394 (ia64_asm_output_external): Remove DO_CRTL_NAME.
10395 * config/ia64/vms64.h: Do not include vms-crtl-64.h
10396 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10397
10398 2011-06-27 Tristan Gingold <gingold@adacore.com>
10399
10400 * config/alpha/alpha.c (alpha_end_function): Always generate .end
10401 directive on VMS.
10402
10403 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
10404
10405 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10406 the function receives nonlocal gotos.
10407
10408 2011-06-27 Richard Guenther <rguenther@suse.de>
10409
10410 PR tree-optimization/49536
10411 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10412 For non-scalar inner types use a scalar type according to
10413 the scalar inner mode.
10414
10415 2011-06-27 Richard Guenther <rguenther@suse.de>
10416
10417 PR tree-optimization/49365
10418 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10419
10420 2011-06-27 Richard Guenther <rguenther@suse.de>
10421
10422 PR tree-optimization/49169
10423 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10424 the alignment of function decls.
10425
10426 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
10427
10428 PR target/47997
10429 * config/darwin.c (darwin_mergeable_string_section): Place string
10430 constants in '.cstring' rather than '.const' when CF/NSStrings are
10431 active.
10432
10433 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
10434
10435 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10436 (emit_save_register_window): Likewise.
10437 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10438 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
10439 Swap back %o7/%i7 in register naming.
10440
10441 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
10442
10443 PR driver/49371
10444 * config/darwin.c (darwin_override_options): Improve warning when
10445 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10446 is given with fpie/fPIE.
10447 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10448 * config/darwin9.h (PIE_SPEC): New.
10449
10450 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
10451
10452 * timevar.c (timevar_print): Increase width for display of timevar
10453 name.
10454
10455 2011-06-24 Jakub Jelinek <jakub@redhat.com>
10456
10457 PR c++/46400
10458 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10459 instead of TYPE_CHAIN for chain_next for types.
10460
10461 2011-06-24 Richard Henderson <rth@redhat.com>
10462
10463 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10464 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10465 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10466 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10467 (sparc_flat_expand_prologue): Emit individual instructions
10468 instead of one of the above.
10469
10470 2011-06-24 Easwaran Raman <eraman@google.com>
10471
10472 PR rtl-optimization/49429
10473 PR target/49454
10474 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
10475 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10476 used to copy y into x.
10477 * calls.c (initialize_argument_information): Mark
10478 an argument addressable if it is passed by invisible reference.
10479 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
10480 if it is passed by reference.
10481
10482 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
10483
10484 PR rtl-optimization/49504
10485 * rtlanal.c (nonzero_bits1): Properly handle addition or
10486 subtraction of a pointer in Pmode if pointers extend unsigned.
10487 (num_sign_bit_copies1): Likewise.
10488
10489 2011-06-24 Martin Jambor <mjambor@suse.cz>
10490
10491 PR tree-optimizations/49516
10492 * tree-sra.c (sra_modify_assign): Choose the safe path for
10493 aggregate copies if we also did scalar replacements.
10494
10495 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10496
10497 PR target/49335
10498 * config/arm/predicates.md (add_operator): New.
10499 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10500
10501 2011-06-24 Andi Kleen <ak@linux.intel.com>
10502
10503 * tree-sra.c (type_internals_preclude_sra_p): Add msg
10504 parameter. Split up ifs and report reason in *msg.
10505 (reject): Add.
10506 (find_var_candiate): Add msg variable.
10507 Split up ifs and report reason to reject.
10508 (find_param_candidates): Add msg variable.
10509 Pass msg to type_internals_preclude_sra_p.
10510
10511 2011-06-23 Jeff Law <law@redhat.com>
10512
10513 PR middle-end/48770
10514 * reload.h (reload): Change to return a bool.
10515 * ira.c (ira): If requested by reload, run a fast DCE pass after
10516 reload has completed. Fix comment typo.
10517 * reload1.c (need_dce): New file scoped static.
10518 (reload): Set reload_completed here. Return whether or not a DCE
10519 pass after reload is needed.
10520 (delete_dead_insn): Set need_dce as needed.
10521
10522 PR middle-end/49465
10523 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10524 to detect threading through joiner block. If there was already
10525 an edge to the new target, then do not change the PHI nodes.
10526
10527 2011-06-23 Jakub Jelinek <jakub@redhat.com>
10528
10529 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10530 get_pointer_alignment to see if base isn't sufficiently aligned.
10531
10532 2011-06-23 Jan Hubicka <jh@suse.cz>
10533
10534 PR tree-optimize/49373
10535 * tree-pass.h (all_late_ipa_passes): Declare.
10536 * cgraphunit.c (init_lowered_empty_function): Fix properties.
10537 (cgraph_optimize): Execute late passes; remove unreachable funcions
10538 after materialization.
10539 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10540 LTOing.
10541 * passes.c (all_late_ipa_passes): Declare.
10542 (dump_passes, register_pass): Handle late ipa passes.
10543 (init_optimization_passes): Move ipa_pta to late passes; schedule
10544 fixup_cfg at beggining of all_passes.
10545 (apply_ipa_transforms): New function.
10546 (execute_one_pass): When doing simple ipa pass, apply all transforms.
10547
10548 2011-06-23 Joseph Myers <joseph@codesourcery.com>
10549
10550 * params.c: Include common/common-target.h. Don't include tm.h.
10551 (lang_independent_params): Move from toplev.c.
10552 (global_init_params): New.
10553 * params.h (global_init_params): Declare.
10554 * target.def (default_params): Move to common-target.def.
10555 * toplev.c (lang_independent_options): Remove.
10556 (lang_independent_params): Move to params.c.
10557 (general_init): Use global_init_params.
10558 * common/common-target.def (option_default_params): Move from
10559 target.def.
10560 * common/config/ia64/ia64-common.c: Include params.h.
10561 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10562 from ia64.c.
10563 * common/config/rs6000/rs6000-common.c: Include params.h.
10564 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10565 from rs6000.c.
10566 * common/config/sh/sh-common.c: Include params.h.
10567 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10568 from sh.c.
10569 * common/config/spu/spu-common.c: Include params.h.
10570 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10571 from spu.c.
10572 * config/ia64/ia64.c (ia64_option_default_params,
10573 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10574 * config/rs6000/rs6000.c (rs6000_option_default_params,
10575 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10576 * config/sh/sh.c (sh_option_default_params,
10577 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10578 * config/spu/spu.c (spu_option_default_params,
10579 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10580 * Makefile.in (OBJS): Remove params.o.
10581 (OBJS-libcommon-target): Add params.o.
10582 (params.o, $(common_out_object_file)): Update dependencies.
10583 * doc/tm.texi: Regenerate.
10584
10585 2011-06-23 Alan Modra <amodra@gmail.com>
10586
10587 PR bootstrap/49383
10588 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10589 invocation for 2011-06-09 changes.
10590
10591 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10592
10593 PR libgomp/49490
10594 * omp-low.c (expand_omp_for_static_nochunk): Only
10595 use n ceil/ nthreads size for the first n % nthreads threads in the
10596 team instead of all threads except for the last few ones which
10597 get less work or none at all.
10598
10599 PR debug/49496
10600 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10601 uses.
10602
10603 2011-06-22 Richard Guenther <rguenther@suse.de>
10604
10605 PR tree-optimization/49493
10606 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10607 Refer to the alias target of variables.
10608 (associate_varinfo_to_alias_1): Remove.
10609 (ipa_pta_execute): Do not associate aliases with anything.
10610 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10611 (cgraph_function_node): Likewise.
10612 (cgraph_function_or_thunk_node): Likewise.
10613 (varpool_variable_node): Likewise.
10614
10615 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10616
10617 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10618 * config.gcc (arm*-*-linux*): Default to gnu tls.
10619 (arm*-*-*): Add --with-tls option.
10620 (all_defaults): Add 'tls'.
10621
10622 2011-06-22 Richard Henderson <rth@redhat.com>
10623
10624 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10625 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10626 (dwarf2out_frame_debug_cfa_window_save): Rename from
10627 dwarf2out_window_save; make static.
10628 * tree.h (dwarf2out_window_save): Don't declare.
10629
10630 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10631 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10632 (emit_save_register_window): Rename from gen_save_register_window;
10633 emit the insn and add REG_CFA_* notes.
10634 (sparc_expand_prologue): Update to match.
10635 * config/sparc/sparc.md (save_register_window_1): Simplify from
10636 save_register_window<P:mode>.
10637
10638 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
10639
10640 PR target/49497
10641 * config/i386/i386.md (*lea_general_2): Always allow SImode.
10642 (*lea_general_2_zext): Likewise.
10643 (imul to lea peepholes): Use const359_operand and check
10644 TARGET_PARTIAL_REG_STALL.
10645
10646 * config/i386/predicates.md (const359_operand): New.
10647
10648 2011-06-22 Michael Matz <matz@suse.de>
10649
10650 * cgraphunit.c (assemble_thunk): Use correct return type.
10651
10652 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
10653 Dmitry Melnik <dm@ispras.ru>
10654
10655 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10656 (neon_output_shift_immediate): Ditto.
10657 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10658 prototype.
10659 (neon_output_shift_immediate): Ditto.
10660 * config/arm/neon.md (vashl<mode>3): Modified constraint.
10661 (vashr<mode>3_imm): New insn pattern.
10662 (vlshr<mode>3_imm): Ditto.
10663 (vashr<mode>3): Modified constraint.
10664 (vlshr<mode>3): Ditto.
10665 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10666 predicate.
10667 (imm_for_neon_rshift_operand): Ditto.
10668 (imm_lshift_or_reg_neon): Ditto.
10669 (imm_rshift_or_reg_neon): Ditto.
10670
10671 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10672
10673 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10674
10675 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10676 builtin calls even if likelyvalue is not CONSTANT.
10677 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10678 Return get_value_for_expr of first operand
10679 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10680 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10681 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10682 their non-checking counterparts.
10683 (call_may_clobber_ref_p_1): Likewise.
10684 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10685 like their non-checking counterparts.
10686 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10687 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10688 like their non-checking counterparts.
10689 (find_func_clobbers): Likewise.
10690 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10691 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10692
10693 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10694 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10695 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10696 of base type reference as argument.
10697 (resolve_addr_in_expr): Likewise. Fix keep computation.
10698 (convert_descriptor_to_signed): Renamed to...
10699 (convert_descriptor_to_mode): ... this. For wider types convert to
10700 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10701 (typed_binop): New function.
10702 (scompare_loc_descriptor, ucompare_loc_descriptor,
10703 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10704 default to unsigned type instead of signed.
10705
10706 PR debug/47858
10707 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10708 (gimple_build_debug_source_bind_stat): New prototype.
10709 (gimple_build_debug_source_bind): Define.
10710 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10711 gimple_debug_source_bind_get_value,
10712 gimple_debug_source_bind_get_value_ptr,
10713 gimple_debug_source_bind_set_var,
10714 gimple_debug_source_bind_set_value): New inlines.
10715 * gimple.c (gimple_build_debug_source_bind_stat): New function.
10716 * gimple-pretty-print.c (dump_gimple_debug): Handle
10717 GIMPLE_DEBUG_SOURCE_BIND.
10718 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10719 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10720 * tree-parloops.c (eliminate_local_variables,
10721 separate_decls_in_region): Likewise.
10722 (separate_decls_in_region_debug): Renamed from
10723 separate_decls_in_region_debug_bind. Handle
10724 gimple_debug_source_bind_p.
10725 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10726 prototypes.
10727 (DECL_HAS_DEBUG_ARGS_P): Define.
10728 (struct tree_function_decl): Add has_debug_args_flag field.
10729 * tree.c (debug_args_for_decl): New variable.
10730 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10731 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10732 (rewrite_debug_stmt_uses): New function.
10733 (rewrite_stmt): Use it to rewrite debug stmt uses.
10734 * rtl.def (DEBUG_PARAMETER_REF): New.
10735 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10736 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10737 DEBUG_PARAMETER_REF.
10738 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10739 * print-rtl.c (print_rtx): Likewise.
10740 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10741 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10742 debug stmts in the first bb.
10743 * tree-inline.c (remap_ssa_name): If remapping default def
10744 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10745 a source bind debug stmt.
10746 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10747 (maybe_move_debug_stmts_to_successors): Likewise.
10748 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
10749 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10750 debug args vector from old_decl to new_decl.
10751 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10752 or modified parameters, add debug bind stmts before call
10753 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10754 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10755 on DECL_DEBUG_EXPRs from debug args vector.
10756 (expand_debug_source_expr): New function.
10757 (expand_debug_locations): Use it for source bind insns.
10758 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10759 * var-tracking.c (prepare_call_arguments): Add debug args
10760 to call_arguments if any.
10761 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10762 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10763 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10764 (get_ref_die_offset, parameter_ref_descriptor): New functions.
10765 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10766 (gen_subprogram_die): Handle parameters identified by
10767 DEBUG_PARAMETER_REF.
10768
10769 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
10770
10771 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10772 * doc/install.texi (Configuration): Document --with-tls.
10773 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10774 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10775 (arm_tls_descseq_addr): New.
10776 (legitimize_tls_address): Add tlsdesc support.
10777 (arm_cannot_copy_insn_p): Check for tlscall.
10778 (arm_emit_tls_decoration): Likewise.
10779 * config/arm/arm.h (TARGET_GNU2_TLS): New.
10780 (OPTION_DEFAULT_SPECS): Add with-tls support.
10781 * config/arm/arm.md (R1_REGNUM): Define.
10782 (tlscall): New.
10783 * config/arm/arm.opt (tls_type): New enumeration type and values.
10784 (mtls-dialect): New switch.
10785 * config/arm/arm-opts.h (enum tls_type): New.
10786
10787 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
10788
10789 * attribs.c (register_attribute): Added assert to check that all
10790 attribute specs are registered with a name that is not empty and
10791 does not start with '_'.
10792 (decl_attributes): Avoid the lookup of the "naked" attribute spec
10793 if the function has no attributes.
10794 * tree.c (is_attribute_with_length_p): Removed.
10795 (is_attribute_p): Removed.
10796 (private_is_attribute_p): New.
10797 (private_lookup_attribute): New.
10798 (lookup_attribute): Removed.
10799 (lookup_ident_attribute): New.
10800 (remove_attribute): Require the first argument to be in the form
10801 'text', not '__text__'. Updated asserts.
10802 (merge_attributes): Use lookup_ident_attributes instead of
10803 lookup_attribute.
10804 (merge_dllimport_decl_attributes): Use remove_attribute.
10805 (attribute_list_contained): Likewise.
10806 (attribute_list_equal): Immediately return 1 if the arguments are
10807 identical pointers.
10808 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
10809 'int'. Require the first argument to be in the form 'text', not
10810 '__text__'. Require the second argument to be an identifier.
10811 (lookup_attribute): Made inline. Require the first argument to be
10812 in the form 'text', not '__text__'.
10813 (private_is_attribute_p, private_lookup_attribute): New.
10814 Updated comments.
10815
10816 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
10817
10818 * builtins.c: Add sync_ or SYNC__ to builtin names.
10819 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10820 * omp-low.c: Add sync_ or SYNC__ to builtin names.
10821
10822 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10823
10824 PR target/33049
10825 * config/avr/avr.md (extzv): New expander.
10826 (*extzv): New insn.
10827 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10828 * config/avr/constraints.md (C04): New constraint.
10829 * doc/md.texi (Machine Constraints): Document it.
10830
10831 2011-06-21 Jakub Jelinek <jakub@redhat.com>
10832
10833 PR middle-end/49489
10834 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10835 unsignedp argument instead of 1 for clrsb_optab.
10836 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10837 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
10838 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10839 * optabs.c (widen_leading): Call widen_operand and expand_unop
10840 with 0 as unsignedp argument instead of 1 for clrsb_optab.
10841 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10842
10843 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
10844
10845 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10846
10847 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
10848
10849 * gensupport.c (add_define_attr): New static function.
10850 (is_predicable): Allow multi-alternative lists for the "predicable"
10851 attribute.
10852 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10853 (process_one_cond_exec): Call alter_attrs_for_insn.
10854 * doc/md.texi (Defining Attributes): Mention some standard names.
10855 (Conditional Execution): Update documentation for "predicable".
10856
10857 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10858 __builtin_clrsbll): Document.
10859 * doc/rtl.texi (clrsb): New entry.
10860 * optabs.c (widen_leading): Renamed from widen_clz. New argument
10861 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
10862 (expand_unop): Handle clrsb_optab.
10863 (init_optabs): Initialize it.
10864 * optabs.h (enum optab_index): New entry OTI_clrsb.
10865 (clrsb_optab): Define.
10866 * genopinit.c (optabs): Add an entry for it.
10867 * builtins.c (expand_builtin): Handle clrsb builtin functions.
10868 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
10869 BUILT_IN_CLRSBLL): New.
10870 * rtl.def (CLRSB): New code.
10871 * dwarf2out.c (mem_loc_descriptor): Handle it.
10872 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10873 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
10874 and popcount.
10875 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
10876 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
10877 (__ctzDI2): Move declaration.
10878 * config/bfin/bfin.md (clrsbsi2): New expander.
10879 (signbitssi2): Use the CLRSB rtx.
10880 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
10881 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
10882
10883 2011-06-21 Richard Guenther <rguenther@suse.de>
10884
10885 * ipa-inline-transform.c (inline_transform): Fix previous change.
10886
10887 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
10888
10889 PR tree-optimization/49478
10890 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
10891 with constant operand.
10892
10893 2011-06-21 Richard Guenther <rguenther@suse.de>
10894
10895 * ipa-inline-transform.c (inline_transform): Fix typo.
10896
10897 2011-06-21 Richard Guenther <rguenther@suse.de>
10898
10899 PR tree-optimization/49483
10900 * tree-vect-stmts.c (vectorizable_assignment): Also handle
10901 VIEW_CONVERT_EXPR conversions.
10902
10903 2011-06-21 Joseph Myers <joseph@codesourcery.com>
10904
10905 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10906 * config/avr/avr-tables.opt: New file (generated).
10907 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
10908 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
10909 avr-mcus.def.
10910 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
10911 (avr_option_override): Don't process -mmcu= argument here. Set
10912 avr_current_device using avr_mcu_index.
10913 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
10914 * config/avr/avr.opt (mmcu=): Use Enum.
10915 * config/avr/t-avr (avr-devices.o): Update dependencies.
10916 ($(srcdir)/config/avr/avr-tables.opt): New.
10917 * target.def (help): Remove.
10918 * doc/tm.texi.in (TARGET_HELP): Remove.
10919 * doc/tm.texi: Regenerate.
10920 * opts.c: Don't include target.h.
10921 (common_handle_option): Don't call targetm.help.
10922 * system.h (TARGET_HELP): Poison.
10923 * Makefile.in (opts.o): Update dependencies.
10924
10925 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10926
10927 * config/usegld.h: New file.
10928 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
10929 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
10930 (LIB_SPEC): Likewise. Search /lib.
10931 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
10932 (RDYNAMIC_SPEC): Handle GNU ld.
10933 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
10934 Define.
10935 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
10936 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
10937 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
10938 (STACK_CHECK_STATIC_BUILTIN): Define.
10939 * config/sol2.opt (compat-bsd): Remove.
10940 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
10941 * config/sol2-bi.h: New file.
10942 * config/sol2-gld.h: Remove.
10943 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
10944 (NO_DBX_BNSYM_ENSYM): Remove.
10945 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10946 (STACK_CHECK_STATIC_BUILTIN): Remove.
10947 Test USE_GLD instead of TARGET_GNU_LD.
10948 * config/i386/sol2-10.h: Rename to ...
10949 * config/i386/sol2-bi.h .. this.
10950 (SUBTARGET_EXTRA_SPECS): Redefine.
10951 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
10952 (MULTILIB_DEFAULTS): Remove.
10953 (DEFAULT_ARCH32_P): Define.
10954 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
10955 (ARCH64_SUBDIR): Define.
10956 Test USE_GLD instead of TARGET_GNU_LD.
10957 (I386_EMULATION): Rename to ...
10958 (ARCH32_EMULATION): ... this.
10959 (X86_64_EMULATION): Rename to ...
10960 (ARCH64_EMULATION): ... this.
10961 (TARGET_LD_EMULATION): Remove.
10962 (LINK_ARCH_SPEC): Remove.
10963 * config/i386/sol2-gas.h: Remove.
10964 * config/i386/t-sol2-10: Rename to ...
10965 * config/i386/t-sol2-64: ... this.
10966 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
10967 (AS_SPARC64_FLAG): Define.
10968 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
10969 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
10970 depending on TARGET_CPU_DEFAULT.
10971 (CPP_CPU_SPEC): Redefine.
10972 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
10973 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
10974 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
10975 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
10976 ASM_ARCH_DEFAULT_SPEC): Redefine.
10977 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10978 LINK_ARCH_DEFAULT_SPEC.
10979 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
10980 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
10981 (ARCH64_SUBDIR): Define.
10982 (LINK_ARCH64_SPEC): Redefine.
10983 (CC1_SPEC): Redefine.
10984 (OPTION_DEFAULT_SPECS): Redefine.
10985 (MULTILIB_DEFAULTS): Define.
10986 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
10987 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
10988 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
10989 (NO_DBX_BNSYM_ENSYM): Remove.
10990 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10991 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
10992 (TARGET_ASM_NAMED_SECTION): Likewise.
10993 (STACK_CHECK_STATIC_BUILTIN): Remove.
10994 * config/sparc/sol2-bi.h: Remove.
10995 * config/sparc/sol2-gas-bi.h: Remove.
10996 * config/sparc/sol2-gas.h: Remove.
10997 * config/sparc/sol2-gld-bi.h: Remove.
10998 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
10999 common parts ...
11000 (*-*-solaris2*): ... here.
11001
11002 2011-06-21 Christian Bruel <christian.bruel@st.com>
11003
11004 PR other/43564
11005 * ipa-inline.c (can_inline_edge_p): Check
11006 !DECL_DISREGARD_INLINE_LIMITS.
11007
11008 2011-06-21 Christian Bruel <christian.bruel@st.com>
11009
11010 PR middle-end/49139
11011 * cgraphunit.c (process_function_and_variable_attributes): warn when
11012 always_inline functions that are not inline.
11013 * ipa-inline-transform.c (inline_transform): Always call
11014 optimize_inline.
11015 * tree-inline.c (tree_inlinable_function_p): Use error instead
11016 of sorry.
11017 (expand_call_inline): Likewise.
11018
11019 2011-06-21 Jakub Jelinek <jakub@redhat.com>
11020
11021 * Makefile.in (dg_target_exps): Set.
11022 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11023 instead of 7, try to divide it more evenly.
11024
11025 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
11026
11027 PR target/49089
11028 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11029 (avx256_split_unaligned_store): New definition.
11030 (ix86_option_override_internal): Enable avx256 unaligned load/store
11031 splitting only when avx256_split_unaligned_load/store is set.
11032
11033 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11034
11035 * regrename.c (scan_rtx_reg): Handle the case where we write to an
11036 open chain in a smaller mode without failing the entire block.
11037
11038 2011-06-21 Alan Modra <amodra@gmail.com>
11039
11040 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11041 CONST high part large-toc address.
11042 (rs6000_tls_referenced_p): Make static.
11043 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11044
11045 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11046
11047 PR target/49385
11048 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11049 one of the operands is a register.
11050
11051 2011-06-20 Kai Tietz <ktietz@redhat.com>
11052
11053 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11054 operations in combination with binary and.
11055
11056 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
11057
11058 * regrename.c (do_replace): Don't update notes.
11059
11060 2011-06-20 Alan Modra <amodra@gmail.com>
11061
11062 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11063 of toc-relative address in CONST.
11064 (rs6000_delegitimize_address): Recognize changed address.
11065 (rs6000_legitimize_reload_address): Likewise.
11066 (rs6000_emit_move): Don't force these constants to memory.
11067 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11068 toc-relative address in CONST.
11069 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11070 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11071
11072 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11073
11074 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11075 (count_trailing_zeros): Likewise.
11076
11077 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
11078
11079 PR other/49325
11080 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11081 .init_array can be used with .ctors on targets.
11082 * configure: Regenerated.
11083
11084 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
11085
11086 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11087 if the element type is volatile.
11088
11089 2011-06-18 Jan Hubicka <jh@suse.cz>
11090
11091 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11092 extra name aliases.
11093 (lto_symtab_resolve_can_prevail_p): Likewise.
11094 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11095 * cgraphbuild.c (record_reference): Remove extra body alias code.
11096 (mark_load): Likewise.
11097 (mark_store): Likewise.
11098 * cgraph.h (varpool_node): Remove extra_name filed;
11099 add alias_of and extraname_alias.
11100 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11101 (varpool_alias_aliased_node): New inline function.
11102 (varpool_variable_node): New function.
11103 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11104 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11105 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11106 (input_varpool_node): Likewise.
11107 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11108 (varpool_externally_visible_p): Remove extra body alias code.
11109 (function_and_variable_visibility): Likewise.
11110 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11111 (ipa_pta_execute): Use it.
11112 * varpool.c (varpool_remove_node): Remove extra name alias code.
11113 (varpool_mark_needed_node): Likewise.
11114 (varpool_analyze_pending_decls): Analyze aliases.
11115 (assemble_aliases): New functoin.
11116 (varpool_assemble_decl): Use it.
11117 (varpool_create_variable_alias): New function.
11118 (varpool_extra_name_alias): Rewrite.
11119 (varpool_for_node_and_aliases): New function.
11120
11121 2011-06-18 Jakub Jelinek <jakub@redhat.com>
11122
11123 PR target/49411
11124 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11125 last_arg_constant and last argument doesn't match its predicate,
11126 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11127 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11128 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11129 spelling of error message.
11130 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11131 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11132 const_0_to_255_operand instead of const_int_operand.
11133
11134 Revert:
11135 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
11136
11137 * config/i386/sse.md (blendbits): Remove mode attribute.
11138 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11139 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11140 Check integer value of operand 3 in insn constraint.
11141
11142 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
11143
11144 PR rtl-optimization/48542
11145 * reload.c (find_equiv_reg): Stop looking when finding a
11146 setjmp-type call.
11147 * reload1.c (reload_as_needed): Invalidate all reload
11148 registers when crossing a setjmp-type call.
11149
11150 2011-06-16 Jeff Law <law@redhat.com>
11151
11152 * tree-ssa-threadupdate.c (struct redirection_data): New field
11153 intermediate_edge.
11154 (THREAD_TARGET2): Define.
11155 (redirection_data_eq): Also check that the intermediate edge is equal.
11156 (lookup_redirection_data): Drop useless argument. Extract the
11157 outgoing_edge and intermediate edge from E. Callers updated.
11158 (copy_phi_args, update_destination_phis): New functions.
11159 (fix_duplicate_block_edges): Likewise.
11160 (create_edge_and_update_destination_phis): Duplicate all the edges
11161 hung off e->aux. Use copy_phi_args.
11162 (create_duplicates): Use fix_duplicate_block_edges.
11163 (fixup_template_block): Likewise.
11164 (redirect_edges): If necessary, redirect the joiner block's incoming
11165 edge to the duplicate of the joiner block.
11166 (thread_block): Don't muck up loops when threading through a joiner
11167 block.
11168 (thread_through_loop_header): Handle threading through a joiner block.
11169 (mark_threaded_blocks, register_jump_thread): Likewise.
11170 * tree-flow.h (register_jump_thread): Add new argument. Callers
11171 updated.
11172 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11173 (thread_across_edge): Handle threading through a joiner block.
11174
11175 2011-06-16 Martin Jambor <mjambor@suse.cz>
11176
11177 PR tree-optimization/49343
11178 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11179 calculate offset, provide 2nd operand for the new COMPONENT_REF.
11180
11181 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
11182
11183 * config/darwin-protos.h (machopic_select_rtx_section): Move to
11184 inside RTX_CODE ifdef.
11185
11186 2011-06-16 Tom de Vries <tom@codesourcery.com>
11187
11188 PR target/45098
11189 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11190 Disallow NULL pointer for pointer arithmetic.
11191
11192 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11193
11194 PR target/49398
11195 Revert.
11196 2011-06-10 Wei Guozhi <carrot@google.com>
11197
11198 PR target/45335
11199 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11200 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11201 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11202 related peephole2.
11203 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11204 related peephole2.
11205 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11206 (arm_legitimate_ldrd_p): New prototype.
11207 (arm_output_ldrd): New prototype.
11208 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11209 (arm_legitimate_ldrd_p): New function.
11210 (arm_output_ldrd): New function.
11211
11212 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
11213
11214 PR middle-end/46500
11215 * doc/tm.texi.in: Update Copyright date.
11216 * doc/tm.texi: Regenerate.
11217 * targhooks.c (default_setup_incoming_varargs): Replace
11218 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11219 (default_pretend_outgoing_varargs_named): Likewise.
11220 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11221 (hook_callee_copies_named): Likewise.
11222 (default_function_arg_advance): Likewise.
11223 (default_function_arg): Likewise.
11224 (default_function_incoming_arg): Likewise.
11225 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11226 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11227 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11228 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11229 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11230 * targhooks.h (default_setup_incoming_varargs): Likewise.
11231 (default_pretend_outgoing_varargs_named): Likewise.
11232 (hook_pass_by_reference_must_pass_in_stack): Likewise.
11233 (hook_callee_copies_named): Likewise.
11234 (default_function_arg_advance): Likewise.
11235 (default_function_arg): Likewise.
11236 (default_function_incoming_arg): Likewise.
11237 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11238 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11239 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11240 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11241 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11242 * target.def (pass_by_reference): Likewise.
11243 (setup_incoming_varargs, strict_argument_naming): Likewise.
11244 (pretend_outgoing_varargs_named, callee_copies): Likewise.
11245 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11246 (function_incoming_arg): Likewise.
11247 * target.h: Don't include "tm.h" .
11248 (cumulative_args_t): New typedef.
11249 [GCC_TM_H] (get_cumulative_args): New static inline function.
11250 [GCC_TM_H] (pack_cumulative_args): Likewise.
11251 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11252 argument type with cumulative_args_t.
11253 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11254 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11255 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11256 (frv_arg_partial_bytes, frv_function_arg): Likewise.
11257 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11258 (frv_function_arg_1): Likewise.
11259 * config/s390/s390.c (s390_pass_by_reference): Likewise.
11260 (s390_function_arg_advance, s390_function_arg): Likewise.
11261 * config/m32c/m32c.c (m32c_function_arg): Likewise.
11262 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11263 (m32c_strict_argument_naming): Likewise.
11264 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11265 (spu_function_arg_advance): Likewise.
11266 (spu_setup_incoming_varargs): Likewise. Make static.
11267 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11268 Remove prototype.
11269 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11270 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11271 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11272 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11273 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11274 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11275 (mep_pass_by_reference, mep_function_arg): Likewise.
11276 (mep_function_arg_advance): Likewise.
11277 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11278 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11279 (m32r_function_arg, m32r_function_arg_advance): Likewise.
11280 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11281 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11282 (ix86_function_arg, ix86_pass_by_reference): Likewise.
11283 (ix86_setup_incoming_varargs): Likewise.
11284 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11285 (sh_strict_argument_naming): Likewise.
11286 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11287 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11288 (sh_function_arg_advance, sh_function_arg): Likewise.
11289 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11290 (pdp11_function_arg_advance): Likewise.
11291 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11292 Likewise.
11293 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11294 * config/avr/avr.c (avr_function_arg): Likewise.
11295 (avr_function_arg_advance): Likewise.
11296 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11297 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11298 (xtensa_function_arg_1): Likewise.
11299 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11300 Likewise.
11301 (xstormy16_function_arg): Likewise.
11302 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11303 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11304 (fr30_function_arg_advance): Likewise.
11305 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11306 (lm32_function_arg, lm32_function_arg_advance): Likewise.
11307 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11308 (moxie_function_arg, moxie_function_arg_advance): Likewise.
11309 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11310 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11311 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11312 (cris_function_arg, cris_function_incoming_arg): Likewise.
11313 (cris_function_arg_advance, cris_function_arg_1): Likewise.
11314 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11315 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11316 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11317 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11318 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11319 (mn10300_arg_partial_bytes): Likewise.
11320 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11321 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11322 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11323 (ia64_function_arg_1): Likewise.
11324 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11325 (m68k_function_arg): Likewise.
11326 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11327 (rs6000_function_arg, setup_incoming_varargs): Likewise.
11328 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11329 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11330 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11331 (picochip_arg_advance): Likewise.
11332 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11333 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11334 (mcore_function_arg_advance): Likewise.
11335 * config/score/score.c (score_pass_by_reference): Likewise.
11336 (score_function_arg_advance): Likewise.
11337 (score_arg_partial_bytes): Likewise. Make static.
11338 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11339 * config/arm/arm.c (arm_arg_partial_bytes): Replace
11340 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11341 (arm_function_arg, arm_function_arg_advance): Likewise.
11342 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11343 * config/pa/pa.c (pa_pass_by_reference): Likewise.
11344 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11345 (pa_function_arg): Likewise.
11346 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11347 (mips_function_arg, mips_function_arg_advance): Likewise.
11348 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11349 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11350 * config/vax/vax.c (vax_function_arg): Likewise.
11351 (vax_function_arg_advance): Likewise.
11352 * config/h8300/h8300.c (h8300_function_arg): Likewise.
11353 (h8300_function_arg_advance): Likewise.
11354 * config/v850/v850.c (v850_pass_by_reference): Likewise.
11355 (v850_strict_argument_naming, v850_function_arg): Likewise.
11356 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11357 (v850_setup_incoming_varargs): Likewise.
11358 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11359 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11360 (mmix_function_arg, mmix_pass_by_reference): Likewise.
11361 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11362 with const void *.
11363 * config/bfin/bfin.c (setup_incoming_varargs): Replace
11364 CUMULATIVE_ARGS* argument type with cumulative_args_t.
11365 (bfin_function_arg_advance, bfin_function_arg): Likewise.
11366 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11367 * calls.c (emit_call_1): Change type of args_so_far to
11368 cumulative_args_t. Changed all callers.
11369 (initialize_argument_information): Likewise.
11370 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11371 * dse.c (get_call_args): Likewise.
11372 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11373 * function.c (pass_by_reference, reference_callee_copied): Likewise.
11374 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11375 New member args_so_far_v. Changed all users.
11376 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11377 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11378 * config/mips/mips.c (mips_output_args_xfer): Likewise.
11379 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11380 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11381 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11382 Likewise.
11383 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11384 m32r_pass_by_reference.
11385
11386 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
11387
11388 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11389 argument to be a VEC of statements.
11390 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11391 assert that pattern statements have to have their vector type set.
11392 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11393 Change the first argument to be a VEC of statements. Update
11394 documentation.
11395 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11396 (vect_handle_widen_mult_by_const): New function.
11397 (vect_recog_widen_mult_pattern): Change the first argument to be a
11398 VEC of statements. Update documentation. Check that the constant is
11399 INTEGER_CST. Support multiplication by a constant that fits an
11400 intermediate type - call vect_handle_widen_mult_by_const.
11401 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11402 call. Handle additional pattern statements if necessary.
11403
11404 2011-06-16 Nick Clifton <nickc@redhat.com>
11405
11406 PR target/49427
11407 * config.gcc: Set cpu_type to v850 for any V850 architecture.
11408 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11409 md_file, extra_modes, out_file and extra_options are these are all
11410 deduced from cpu_type.
11411
11412 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11413
11414 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11415 truncation mask to 63.
11416
11417 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
11418
11419 PR target/49313
11420 PR target/29524
11421 * longlong.h: Add AVR support:
11422 (count_leading_zeros): New macro.
11423 (count_trailing_zeros): New macro.
11424 (COUNT_LEADING_ZEROS_0): New macro.
11425 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11426 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11427 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11428 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11429 (LIB2FUNCS_EXCLUDE): Add _clz.
11430 * config/avr/libgcc.S (XCALL): Move up in file.
11431 (XJMP): New C Macro.
11432 (DEFUN): New asm macro.
11433 (ENDF): New asm macro.
11434 (__ffssi2): New function.
11435 (__ffshi2): New function.
11436 (__loop_ffsqi2): New function.
11437 (__ctzsi2): New function.
11438 (__ctzhi2): New function.
11439 (__clzdi2): New function.
11440 (__clzsi2): New function.
11441 (__clzhi2): New function.
11442 (__paritydi2): New function.
11443 (__paritysi2): New function.
11444 (__parityhi2): New function.
11445 (__parityqi2): New function.
11446 (__popcounthi2): New function.
11447 (__popcountsi2): New function.
11448 (__popcountdi2): New function.
11449 (__popcountqi2): New function.
11450 (__bswapsi2): New function.
11451 (__bswapdi2): New function.
11452 (__ashldi3): New function.
11453 (__ashrdi3): New function.
11454 (__lshrdi3): New function.
11455 Fix suspicous lines.
11456
11457 2011-06-16 Richard Guenther <rguenther@suse.de>
11458
11459 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11460 the same as x != 0.
11461 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11462 to (bool) X & 1.
11463 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11464 equality compares against zero for the lower bit.
11465
11466 2011-06-16 Jakub Jelinek <jakub@redhat.com>
11467
11468 PR tree-optimization/49419
11469 * tree-vrp.c (execute_vrp): Call init_range_assertions
11470 before estimate_numbers_of_iterations, call
11471 free_number_of_iterations_estimates before calling
11472 remove_range_assertions.
11473
11474 2011-06-16 Revital Eres <revital.eres@linaro.org>
11475
11476 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11477 (struct partial_schedule): Add rows_length field.
11478 (verify_partial_schedule): Check rows_length.
11479 (ps_insert_empty_row): Handle rows_length.
11480 (create_partial_schedule): Likewise.
11481 (free_partial_schedule): Likewise.
11482 (reset_partial_schedule): Likewise.
11483 (create_ps_insn): Remove rest_count argument.
11484 (remove_node_from_ps): Update rows_length.
11485 (add_node_to_ps): Update rows_length and call create_ps_insn
11486 without passing row_rest_count.
11487 (rotate_partial_schedule): Update rows_length.
11488
11489 2011-06-16 Revital Eres <revital.eres@linaro.org>
11490
11491 * ddg.c (add_intra_loop_mem_dep): New function.
11492 (build_intra_loop_deps): Call it.
11493
11494 2011-06-13 Jeff Law <law@redhat.com>
11495
11496 * df-problems.c (df_lr_local_compute): Manually CSE
11497 PIC_OFFSET_TABLE_REGNUM.
11498 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11499 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11500
11501 2011-06-13 Jan Hubicka <jh@suse.cz>
11502
11503 * cgraphunit.c (handle_alias_pairs): New function.
11504 (cgraph_finalize_compilation_unit): Use it.
11505 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11506 as externally visible.
11507
11508 2011-06-15 Richard Guenther <rguenther@suse.de>
11509
11510 * expr.c (expand_expr_real_2): Reduce all integral types to
11511 bitfield precision.
11512 (expand_expr_real_1): Likewise.
11513
11514 2011-06-15 Martin Jambor <mjambor@suse.cz>
11515
11516 PR tree-optimization/48613
11517 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11518 ipa_node_params_vector is NULL.
11519
11520 2011-06-15 Jakub Jelinek <jakub@redhat.com>
11521
11522 PR debug/49382
11523 * dwarf2out.c (dw_loc_list_node): Add force field.
11524 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11525 location in the list, even if it is modified before first real insn.
11526 (output_loc_list): Emit empty ranges with force flag set.
11527 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11528
11529 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
11530
11531 PR target/49349
11532 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11533 (fence_to_rewind). Use it to notice when bookkeeping will be placed
11534 above a fence. Update comments.
11535 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11536 placed just above it. Do not allow NULL place_to_insert.
11537
11538 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
11539
11540 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11541 (slpeel_tree_peel_loop_to_edge): Don't call
11542 remove_dead_stmts_from_loop.
11543 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11544 remove irrelevant pattern statements. For irrelevant statements
11545 check if it is the last statement of a detected pattern, use
11546 corresponding pattern statement instead.
11547 (destroy_loop_vec_info): No need to remove pattern statements,
11548 only free stmt_vec_info.
11549 (vect_transform_loop): For irrelevant statements check if it is
11550 the last statement of a detected pattern, use corresponding
11551 pattern statement instead.
11552 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11553 pattern statements. Set basic block for the new statement.
11554 (vect_pattern_recog): Update documentation.
11555 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11556 operands of pattern statements.
11557 (vectorizable_call): Fix printing. In case of a pattern statement
11558 use the lhs of the original statement when creating a dummy
11559 statement to replace the original call.
11560 (vect_analyze_stmt): For irrelevant statements check if it is
11561 the last statement of a detected pattern, use corresponding
11562 pattern statement instead.
11563 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11564 statements use gsi of the original statement.
11565
11566 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11567
11568 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11569 common/common-target-def.h.
11570 * target.def (default_target_flags, handle_option,
11571 supports_split_stack, optimization_table, init_struct,
11572 except_unwind_info, unwind_tables_default, have_named_sections):
11573 Move to common/common-target.def.
11574 * target.h (enum opt_levels, struct default_options): Move to
11575 common/common-target.h.
11576 * targhooks.c (default_except_unwind_info,
11577 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11578 default_target_handle_option, empty_optimization_table): Move to
11579 common/common-targhooks.c.
11580 * targhooks.h (default_except_unwind_info,
11581 dwarf2_except_unwind_info, sjlj_except_unwind_info,
11582 default_target_handle_option, empty_optimization_table): Move to
11583 common/common-targhooks.h.
11584 * common/common-target-def.h: Include common/common-targhooks.h.
11585 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11586 defined.
11587 * common/common-target.def (handle_option, option_init_struct,
11588 option_optimization_table, default_target_flags,
11589 except_unwind_info, supports_split_stack, unwind_tables_default,
11590 have_named_sections): Move from target.def.
11591 (HOOK_PREFIX): Undefine at end of file.
11592 * common/common-target.h: Include input.h.
11593 (enum opt_levels, struct default_options): Move from target.h.
11594 * common/common-targhooks.c, common/common-targhooks.h: New.
11595 * config.gcc (target_has_targetm_common): Default to yes.
11596 (moxie*): Set target_has_targetm_common=no.
11597 (hppa*-*-*): Don't set target_has_targetm_common=yes.
11598 * doc/tm.texi: Regenerate.
11599 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11600 (C_TARGET_DEF_H): Add common/common-targhooks.h.
11601 (GCC_OBJS): Remove vec.o.
11602 (OBJS): Remove hooks.o and vec.o.
11603 (OBJS-libcommon-target): Add vec.o, hooks.o and
11604 common/common-targhooks.o.
11605 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11606 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11607 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11608 cfglayout.o, $(out_object_file), $(common_out_object_file)):
11609 Update dependencies.
11610 (common/common-targhooks.o): New.
11611 * common/config/default-common.c: Include tm.h. Add FIXME comment.
11612 * common/config/pa/pa-common.c: Include more headers. Take
11613 copyright dates from pa.c.
11614 (pa_option_optimization_table, pa_handle_option,
11615 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11616 TARGET_HANDLE_OPTION): Move from pa.c.
11617 * common/config/alpha/alpha-common.c,
11618 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11619 common/config/bfin/bfin-common.c,
11620 common/config/cris/cris-common.c,
11621 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11622 common/config/h8300/h8300-common.c,
11623 common/config/i386/i386-common.c,
11624 common/config/ia64/ia64-common.c,
11625 common/config/iq2000/iq2000-common.c,
11626 common/config/lm32/lm32-common.c,
11627 common/config/m32c/m32c-common.c,
11628 common/config/m32r/m32r-common.c,
11629 common/config/m68k/m68k-common.c,
11630 common/config/mcore/mcore-common.c,
11631 common/config/mep/mep-common.c,
11632 common/config/microblaze/microblaze-common.c,
11633 common/config/mips/mips-common.c,
11634 common/config/mmix/mmix-common.c,
11635 common/config/mn10300/mn10300-common.c,
11636 common/config/pdp11/pdp11-common.c,
11637 common/config/picochip/picochip-common.c,
11638 common/config/rs6000/rs6000-common.c,
11639 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11640 common/config/score/score-common.c, common/config/sh/sh-common.c,
11641 common/config/sparc/sparc-common.c,
11642 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11643 common/config/vax/vax-common.c,
11644 common/config/xstormy16/xstormy16-common.c,
11645 common/config/xtensa/xtensa-common.c: New.
11646 * config/alpha/alpha.c: Include common/common-target.h.
11647 (alpha_option_optimization_table, alpha_handle_option,
11648 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11649 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11650 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11651 * config/arm/arm.c (arm_option_optimization_table,
11652 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11653 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11654 arm-common.c.
11655 * config/avr/avr.c (avr_option_optimization_table,
11656 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11657 to avr-common.c.
11658 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11659 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11660 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11661 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11662 * config/cris/cris.c (cris_option_optimization_table,
11663 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11664 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11665 cris-common.c.
11666 * config/fr30/fr30.c (fr30_option_optimization_table,
11667 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11668 to fr30-common.c.
11669 * config/frv/frv.c (frv_option_optimization_table,
11670 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11671 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11672 * config/h8300/h8300.c (h8300_option_optimization_table,
11673 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11674 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11675 * config/i386/i386-protos.h (ix86_handle_option): Declare.
11676 * config/i386/i386.c: Include common/common-target.h.
11677 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11678 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11679 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11680 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11681 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11682 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11683 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11684 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11685 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11686 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11687 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11688 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11689 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11690 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11691 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11692 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11693 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11694 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11695 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11696 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11697 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11698 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11699 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11700 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11701 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11702 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11703 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11704 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11705 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11706 ix86_option_optimization_table, ix86_option_init_struct,
11707 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11708 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11709 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11710 i386-common.c.
11711 * config/i386/t-i386 (i386.o): Update dependencies.
11712 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11713 * config/ia64/ia64.c (ia64_option_optimization_table,
11714 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11715 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11716 ia64_handle_option): Move to ia64-common.c.
11717 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11718 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11719 * config/lm32/lm32.c (lm32_option_optimization_table,
11720 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11721 to lm32-common.c.
11722 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11723 m32c-common.c.
11724 * config/m32r/m32r.c (m32r_option_optimization_table,
11725 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11726 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11727 m32r_handle_option): Move to m32r-common.c.
11728 (m32r_memory_move_cost): Remove comment referring to
11729 TARGET_HANDLE_OPTION.
11730 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11731 Move to m68k-common.c.
11732 * config/mcore/mcore.c (mcore_option_optimization_table,
11733 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11734 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11735 * config/mep/mep.c (mep_option_optimization_table,
11736 mep_handle_option, TARGET_HANDLE_OPTION,
11737 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11738 Move to mep-common.c.
11739 * config/microblaze/microblaze.c
11740 (microblaze_option_optimization_table,
11741 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11742 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11743 * config/mips/mips.c (mips_handle_option,
11744 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11745 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11746 mips-common.c.
11747 * config/mmix/mmix.c (mmix_option_optimization_table,
11748 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11749 Move to mmix-common.c.
11750 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11751 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11752 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11753 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11754 * config/pa/pa.c: Include common/common-target.h.
11755 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11756 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11757 pa_handle_option): Move to pa-common.c.
11758 (pa_option_override): Use targetm_common.except_unwind_info.
11759 (pa_asm_output_mi_thunk, pa_function_section): Use
11760 targetm_common.have_named_sections.
11761 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11762 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11763 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11764 pdp11_handle_option, pdp11_option_init_struct): Move to
11765 pdp11-common.c.
11766 * config/picochip/picochip.c (picochip_option_optimization_table,
11767 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11768 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11769 * config/rs6000/rs6000.c: Include common/common-target.h.
11770 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11771 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11772 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11773 rs6000_handle_option): Move to rs6000-common.c.
11774 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11775 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11776 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11777 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11778 * config/s390/s390.c (processor_flags_table,
11779 s390_option_optimization_table, s390_option_init_struct,
11780 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11781 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11782 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11783 * config/s390/s390.h (processor_flags_table): Declare.
11784 * config/score/score.c (score_option_optimization_table,
11785 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11786 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11787 score_handle_option): Move to score-common.c.
11788 * config/sh/sh.c (sh_option_optimization_table,
11789 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11790 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11791 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11792 * config/sparc/sparc.c: Include common/common-target.h.
11793 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11794 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11795 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11796 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11797 spu_option_init_struct): Move to spu-common.c.
11798 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11799 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11800 * config/v850/v850.c (small_memory_physical_max,
11801 v850_handle_memory_optionn v850_handle_option,
11802 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11803 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11804 v850-common.c.
11805 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11806 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11807 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11808 Move to xtensa-common.c.
11809 * cfglayout.c: Include common/common-target.h.
11810 (fixup_reorder_chain): Use targetm_common.have_named_sections.
11811 * cfgrtl.c: Include common/common-target.h.
11812 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11813 targetm_common.have_named_sections.
11814 * dbxout.c: Include common/common-target.h.
11815 (dbxout_function_end): Use targetm_common.have_named_sections.
11816 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11817 targetm_common.except_unwind_info.
11818 * dwarf2out.c: Include common/common-target.h.
11819 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11820 dwarf2out_begin_prologue, dwarf2out_frame_init,
11821 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11822 targetm_common.except_unwind_info.
11823 * except.c: Include common/common-target.h.
11824 (init_eh, finish_eh_generation,
11825 output_one_function_exception_table): Use
11826 targetm_common.except_unwind_info.
11827 (switch_to_exception_section): Use targetm_common.have_named_sections.
11828 * explow.c: Include common/common-target.h.
11829 * expr.c: Include common/common-target.h.
11830 (build_personality_function): Use targetm_common.except_unwind_info.
11831 * function.c: Include common/common-target.h.
11832 (expand_function_end): Use targetm_common.except_unwind_info.
11833 * haifa-sched.c: Include common/common-target.h.
11834 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11835 * lto-opts.c: Include common/common-target.h instead of target.h.
11836 (lto_reissue_options): Use targetm_common.handle_option.
11837 * opts.c: Include common/common-target.h.
11838 (target_handle_option): Use targetm_common.handle_option.
11839 (init_options_struct): Update comment referring to
11840 targetm.target_option.optimization. Use
11841 targetm_common.default_target_flags,
11842 targetm_common.unwind_tables_default and
11843 targetm_common.option_init_struct.
11844 (default_options_optimization): Use
11845 targetm_common.option_optimization_table.
11846 (finish_options): Use targetm_common.except_unwind_info,
11847 targetm_common.unwind_tables_default,
11848 targetm_common.have_named_sections and
11849 targetm_common.supports_split_stack.
11850 * toplev.c: Include common/common-target.h.
11851 (process_options): Use targetm_common.have_named_sections.
11852 * tree-tailcall.c: Include common/common-target.h.
11853 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11854 * tree.c: Include common/common-target.h.
11855 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11856 * varasm.c: Include common/common-target.h.
11857 (resolve_unique_section, hot_function_section,
11858 default_function_section): Use targetm_common.have_named_sections.
11859
11860 2011-06-14 Easwaran Raman <eraman@google.com>
11861
11862 PR rtl-optimization/44194
11863 * dse.c: Include tree-flow.h
11864 (insn_info): Add new field non_frame_wild_read.
11865 (group_info): Add new fields escaped_n and escaped_p.
11866 (kill_on_calls): New variable.
11867 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
11868 (dse_step0): Initialize kill_on_calls.
11869 (can_escape): New function.
11870 (set_usage_bits): Add additional parameter; record information
11871 about escaped locations.
11872 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
11873 (dse_step2_nospill): Set kill_on_calls based on
11874 group->escaped_n and group->escaped_n.
11875 (add_wild_read): Refactor into...
11876 (reset_active_stores): ... New function, and
11877 (free_read_records): ... New function.
11878 (add_non_frame_wild_read): New function.
11879 (scan_insn): Call add_non_frame_wild_read on non-const calls.
11880 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
11881 (dse_step5_nospill): Call scan_reads_nospill for instructions
11882 marked as non_frame_wild_read.
11883 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
11884
11885 2011-06-14 Joseph Myers <joseph@codesourcery.com>
11886
11887 * common/common-target-def.h, common/common-target.def,
11888 common/common-target.h, common/config/default-common.c,
11889 common/config/pa/pa-common.c: New files.
11890 * Makefile.in (common_out_file, common_out_object_file,
11891 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
11892 (OBJS-libcommon-target): Include $(common_out_object_file).
11893 (prefix.o): Update dependencies.
11894 ($(common_out_object_file), common/common-target-hooks-def.h,
11895 s-common-target-hooks-def-h): New.
11896 (s-tm-texi): Also check timestamp on common-target.def.
11897 (build/genhooks.o): Update dependencies.
11898 * config.gcc (common_out_file, target_has_targetm_common): Define.
11899 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
11900 TARGET_ALWAYS_STRIP_DOTDOT.
11901 * configure.ac (common_out_object_file): Define.
11902 (common_out_file, common_out_object_file): Substitute.
11903 (common): Create directory.
11904 * configure: Regenerate.
11905 * doc/tm.texi.in (targetm_common): Document.
11906 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
11907 * doc/tm.texi: Regenerate.
11908 * genhooks.c (hook_array): Also include common/common-target.def.
11909 * prefix.c (tm.h): Don't include.
11910 (common/common-target.h): Include.
11911 (ALWAYS_STRIP_DOTDOT): Don't define.
11912 (update_path): Use targetm_common.always_strip_dotdot instead of
11913 ALWAYS_STRIP_DOTDOT.
11914 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
11915
11916 2011-06-14 David Li <davidxl@google.com>
11917
11918 * passes.c (execute_function_todo): Remove TODO_dump_func.
11919 (execute_one_pass): Remove TODO_dump_func.
11920 (execute_function_dump): New function.
11921 * tree-vrp.c: Remove TODO_dump_func.
11922 * regrename.c: Remove TODO_dump_func.
11923 * fwprop.c: Remove TODO_dump_func.
11924 * tree-into-ssa.c: Remove TODO_dump_func.
11925 * tree-complex.c: Remove TODO_dump_func.
11926 * tracer.c: Remove TODO_dump_func.
11927 * tree-loop-distribution.c: Remove TODO_dump_func.
11928 * postreload-gcse.c: Remove TODO_dump_func.
11929 * postreload.c: Remove TODO_dump_func.
11930 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
11931 * tree-tailcall.c: Remove TODO_dump_func.
11932 * ipa-cp.c: Remove TODO_dump_func.
11933 * final.c: Remove TODO_dump_func.
11934 * tree-emutls.c: Remove TODO_dump_func.
11935 * omp-low.c: Remove TODO_dump_func.
11936 * tree-ssa-dse.c: Remove TODO_dump_func.
11937 * tree-ssa-uncprop.c: Remove TODO_dump_func.
11938 * auto-inc-dec.c: Remove TODO_dump_func.
11939 * reorg.c: Remove TODO_dump_func.
11940 * tree-ssa-copyrename.c: Remove TODO_dump_func.
11941 * tree-ssa-ccp.c: Remove TODO_dump_func.
11942 * compare-elim.c: Remove TODO_dump_func.
11943 * mode-switching.c: Remove TODO_dump_func.
11944 * modulo-sched.c: Remove TODO_dump_func.
11945 * tree-call-cdce.c: Remove TODO_dump_func.
11946 * cse.c: Remove TODO_dump_func.
11947 * web.c: Remove TODO_dump_func.
11948 * tree-stdarg.c: Remove TODO_dump_func.
11949 * lto-streamer-out.c: Remove TODO_dump_func.
11950 * tree-ssa-math-opts.c: Remove TODO_dump_func.
11951 * tree-ssa-dom.c: Remove TODO_dump_func.
11952 * tree-nrv.c: Remove TODO_dump_func.
11953 * loop-init.c: Remove TODO_dump_func.
11954 * gimple-low.c: Remove TODO_dump_func.
11955 * ipa-inline.c: Remove TODO_dump_func.
11956 * tree-ssa-sink.c: Remove TODO_dump_func.
11957 * jump.c: Remove TODO_dump_func.
11958 * ifcvt.c: Remove TODO_dump_func.
11959 * tree-ssa-loop.c: Remove TODO_dump_func.
11960 * recog.c: Remove TODO_dump_func.
11961 * dse.c: Remove TODO_dump_func.
11962 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
11963 * matrix-reorg.c: Remove TODO_dump_func.
11964 * tree-eh.c: Remove TODO_dump_func.
11965 * regmove.c: Remove TODO_dump_func.
11966 * function.c: Remove TODO_dump_func.
11967 * tree-vectorizer.c: Remove TODO_dump_func.
11968 * ipa-split.c: Remove TODO_dump_func.
11969 * gcse.c: Remove TODO_dump_func.
11970 * tree-if-conv.c: Remove TODO_dump_func.
11971 * init-regs.c: Remove TODO_dump_func.
11972 * tree-ssa-phiopt.c: Remove TODO_dump_func.
11973 * implicit-zee.c: Remove TODO_dump_func.
11974 * lower-subreg.c: Remove TODO_dump_func.
11975 * bt-load.c: Remove TODO_dump_func.
11976 * tree-dfa.c: Remove TODO_dump_func.
11977 * except.c: Remove TODO_dump_func.
11978 * emit-rtl.c: Remove TODO_dump_func.
11979 * store-motion.c: Remove TODO_dump_func.
11980 * cfgexpand.c: Remove TODO_dump_func.
11981 * tree-cfgcleanup.c: Remove TODO_dump_func.
11982 * cfgcleanup.c: Remove TODO_dump_func.
11983 * tree-ssa-pre.c: Remove TODO_dump_func.
11984 * tree-sra.c: Remove TODO_dump_func.
11985 * tree-mudflap.c: Remove TODO_dump_func.
11986 * tree-ssa-copy.c: Remove TODO_dump_func.
11987 * cfglayout.c: Remove TODO_dump_func.
11988 * tree-ssa-forwprop.c: Remove TODO_dump_func.
11989 * tree-ssa-dce.c: Remove TODO_dump_func.
11990 * ira.c: Remove TODO_dump_func.
11991 * tree-ssa.c: Remove TODO_dump_func.
11992 * integrate.c: Remove TODO_dump_func.
11993 * tree-optimize.c: Remove TODO_dump_func.
11994 * tree-ssa-phiprop.c: Remove TODO_dump_func.
11995 * tree-object-size.c: Remove TODO_dump_func.
11996 * combine.c: Remove TODO_dump_func.
11997 * bb-reorder.c: Remove TODO_dump_func.
11998 * cprop.c: Remove TODO_dump_func.
11999 * var-tracking.c: Remove TODO_dump_func.
12000 * tree-profile.c: Remove TODO_dump_func.
12001 * tree-vect-generic.c: Remove TODO_dump_func.
12002 * reg-stack.c: Remove TODO_dump_func.
12003 * sched-rgn.c: Remove TODO_dump_func.
12004 * tree-ssa-structalias.c: Remove TODO_dump_func.
12005 * tree-switch-conversion.c: Remove TODO_dump_func.
12006 * tree-cfg.c: Remove TODO_dump_func.
12007 * tree-ssa-reassoc.c: Remove TODO_dump_func.
12008 * combine-stack-adj.c: Remove TODO_dump_func.
12009 * dce.c: Remove TODO_dump_func.
12010 * tree-ssanames.c: Remove TODO_dump_func.
12011 * regcprop.c: Remove TODO_dump_func.
12012
12013 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
12014
12015 PR middle-end/47364
12016 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12017 and properly handle result not in Pmode.
12018
12019 2011-06-14 Robert Millan <rmh@gnu.org>
12020
12021 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12022 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12023 `config/linux.h'.
12024
12025 * config/i386/kfreebsd-gnu64.h: New file.
12026 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12027 with `i386/kfreebsd-gnu64.h'.
12028
12029 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12030 (GNU_USER_LINK_EMULATION64): New macros.
12031 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12032 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12033 of hardcoding `elf_i386' and `elf_x86_64'.
12034
12035 2011-06-14 Nick Clifton <nickc@redhat.com>
12036
12037 PR target/49403
12038 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12039
12040 PR target/49402
12041 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12042
12043 2011-06-14 Jakub Jelinek <jakub@redhat.com>
12044
12045 PR fortran/49103
12046 * tree.h (DECL_NONSHAREABLE): Define.
12047 (struct tree_decl_common): Change decl_common_unused to
12048 decl_nonshareable_flag.
12049 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12050 Ignore vars with DECL_NONSHAREABLE bit set.
12051 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12052 on stores to automatic aggregate vars.
12053
12054 PR rtl-optimization/49390
12055 Revert:
12056 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
12057
12058 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12059 MEM_ALIAS_SET.
12060
12061 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
12062 Tom de Vries <tom@codesourcery.com>
12063
12064 PR target/45098
12065 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12066 Document changed semantics.
12067 (max_stmt_executions, max_stmt_executions_int): Declare.
12068 * tree-data-ref.c (estimated_loop_iterations)
12069 (estimated_loop_iterations_int): Move functions...
12070 * tree-ssa-loop-niter.c (estimated_loop_iterations)
12071 (estimated_loop_iterations_int): here.
12072 (record_estimate): Change nb_iterations_upper_bound and
12073 nb_iterations_estimate semantics.
12074 (max_stmt_executions, max_stmt_executions_int): New function.
12075 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12076 (max_stmt_executions_tree): this.
12077 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12078 estimated_loop_iterations_tree.
12079 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12080 max_stmt_executions_int instead of estimated_loop_iterations_int.
12081 * predict.c (predict_loops): Idem.
12082 * tree-parloops.c (parallelize_loops): Idem.
12083 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12084 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12085 (init_omega_for_ddr_1): Idem.
12086 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12087 (loop_prefetch_arrays): Idem
12088 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12089 max_stmt_executions instead of estimated_loop_iterations.
12090 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12091 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12092 instead of nb_iterations_upper_bound.
12093
12094 2011-06-13 Jan Hubicka <jh@suse.cz>
12095
12096 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12097
12098 2011-06-14 Richard Henderson <rth@redhat.com>
12099
12100 PR debug/48459
12101 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12102 (based_loc_descr): Assert it's true.
12103 (compute_frame_pointer_to_fb_displacement): Set it, rather than
12104 aborting immediately.
12105
12106 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
12107 Mingfeng Wu <mingfeng@faraday-tech.com>
12108
12109 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12110
12111 2011-06-13 Jan Hubicka <jh@suse.cz>
12112
12113 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12114
12115 2011-06-13 Jan Hubicka <jh@suse.cz>
12116
12117 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12118 similarly to DECL_COMDAT.
12119 * cgraphunit.c (cgraph_analyze_function): Likewise.
12120 * ipa.c (function_and_variable_visibility): Likewise.
12121
12122 2011-06-13 Jan Hubicka <jh@suse.cz>
12123
12124 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12125 BINFO_VIRTUALS when streaming for ltrans unit.
12126
12127 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
12128
12129 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12130 (movdi_internal64): Same.
12131
12132 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
12133
12134 PR target/44618
12135 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12136 a set of similar patterns, where the MATCH_OPERAND for the function
12137 argument is replaced with individual references to hardware registers.
12138 (save_fpregs_<mode>): Ditto
12139 (restore_gpregs_<mode>): Ditto
12140 (return_and_restore_gpregs_<mode>): Ditto
12141 (return_and_restore_fpregs_<mode>): Ditto
12142 (return_and_restore_fpregs_aix_<mode>): Ditto
12143
12144 2011-06-13 Jan Hubicka <jh@suse.cz>
12145
12146 * ipa-utils.c (postorder_stack): New structure.
12147 (ipa_reverse_postorder): Handle aliases.
12148
12149 2011-06-13 Jan Hubicka <jh@suse.cz>
12150
12151 * ipa-inline.c (reset_edge_caches): Walk aliases.
12152 (update_caller_keys): Do not test inlinability of aliases.
12153 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12154 (do_estimate_growth): Fix typo.
12155
12156 2011-06-13 Jan Hubicka <jh@suse.cz>
12157
12158 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12159 (can_remove_node_now_p): ... here; handle same comdat groups.
12160 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12161 (inline_call): Update use of can_remove_node_now_p.
12162
12163 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12164
12165 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12166 condition to disallow non-identical memory locations.
12167 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12168 preference to bit manipulation instructions.
12169
12170 2011-06-13 Jan Hubicka <jh@suse.cz>
12171
12172 * cgraph.c (cgraph_for_node_thunks_and_aliases,
12173 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12174 (nonremovable_p): New function.
12175 (cgraph_can_remove_if_no_direct_calls_p): New function.
12176 (used_from_object_file_p): New functoin.
12177 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12178 references from aliases.
12179 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12180 * ipa-inline.c (check_caller_edge): New function.
12181 (want_inline_function_called_once_p): Use it; accept aliases called
12182 once, too.
12183 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12184
12185 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12186
12187 PR target/48454
12188 * config/arm/neon.md (vec_pack_trunc): Set the lengths
12189 correctly for the case with Quad vectors.
12190
12191 2011-06-13 Jakub Jelinek <jakub@redhat.com>
12192 Ira Rosen <ira.rosen@linaro.org>
12193
12194 PR tree-optimization/49352
12195 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12196 all, make sure loop_use_stmt after the loop is a def stmt of a used
12197 SSA_NAME that is the only one defined inside of the loop. Don't
12198 check for COND_EXPR and GIMPLE_BINARY_RHS.
12199 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12200 check_reduction is true.
12201
12202 2011-06-11 Jan Hubicka <jh@suse.cz>
12203
12204 PR middle-end/49373
12205 * ipa.c (cgraph_externally_visible_p): Check resolution info.
12206
12207 2011-06-11 Jan Hubicka <jh@suse.cz>
12208
12209 PR middle-end/48836
12210 * ipa-inline-transform.c: Include tree-pass.h
12211 (inline_transform): Set TODO_update_ssa_only_virtuals.
12212 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12213
12214 2011-06-11 Jan Hubicka <jh@suse.cz>
12215
12216 PR middle-end/49378
12217 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12218 aliases and thunks.
12219
12220 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
12221
12222 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12223 Take number of iterations to peel into account for equally frequent
12224 misalignment values.
12225
12226 2011-06-11 Jan Hubicka <jh@suse.cz>
12227
12228 * lto-streamer-out.c (produce_symtab): Stream out the newly
12229 represented aliases.
12230
12231 2011-06-11 Jan Hubicka <jh@suse.cz>
12232
12233 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12234 varying args.
12235 (ipa_update_after_lto_read): Likewise.
12236 (ipa_write_node_info): Do not sream call_with_var_arguments.
12237 (ipa_read_node_info): Likewise.
12238
12239 2011-06-11 Jan Hubicka <jh@suse.cz>
12240
12241 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12242
12243 2011-06-11 Jan Hubicka <jh@suse.cz>
12244
12245 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12246 (lto_symtab_resolve_can_prevail_p): Likewise.
12247 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12248 * cgraph.c (same_body_aliases_done): New global var.
12249 (cgraph_same_body_alias_1): Rename to ...
12250 (cgraph_create_function_alias): ... this one; reorg to new
12251 representation.
12252 (cgraph_same_body_alias): Use cgraph_create_function_alias;
12253 record references when asked to.
12254 (cgraph_add_thunk): Fix formating.
12255 (cgraph_get_node): Kill same body alias code.
12256 (cgraph_node_for_asm): Likewise.
12257 (cgraph_remove_same_body_alias): Remove.
12258 (cgraph_remove_node): Kill same body alias code.
12259 (cgraph_mark_address_taken_node): Mark also the aliased function
12260 as having address taken.
12261 (dump_cgraph_node): Dump same body aliases.
12262 (cgraph_for_node_thunks_and_aliases): Update for new alias
12263 representation.
12264 (cgraph_for_node_and_aliases): Likewise.
12265 * cgraph.h (same_body): Kll pointer.
12266 (same_body_alias): Update comment.
12267 (same_body_aliases_done): Declare.
12268 (cgraph_remove_same_body_alias): Remove declaration.
12269 (cgraph_create_function_alias): Declare.
12270 (cgraph_process_same_body_aliases): Declare.
12271 (cgraph_function_with_gimple_body_p): Check for alias.
12272 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12273 (cgraph_alias_aliased_node): New function.
12274 (cgraph_function_node): Update for new aliases.
12275 (cgraph_function_or_thunk_node): Likewise.
12276 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12277 (inline_call): Remove dead aliases.
12278 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12279 name hack for same body aliases.
12280 (clone_of_p): Look through aliases.
12281 (verify_cgraph_node): Verify aliases.
12282 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12283 (cgraph_process_same_body_aliases): New function.
12284 (process_function_and_variable_attributes): Disable weakref warning on
12285 alias.
12286 (cgraph_analyze_functions): Handle aliases.
12287 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12288 (assemble_thunks): Rename to ...
12289 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12290 (cgraph_expand_function): Remove alias output code.
12291 (cgraph_output_in_order): Skip aliases.
12292 (cgraph_preserve_function_body_p): Aliases don't need preserving.
12293 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12294 (ipa_record_reference): Do not assert on alias references.
12295 (ipa_ref_has_aliases_p): New function.
12296 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12297 (ipa_ref_has_aliases_p): Declare.
12298 * lto-cgraph.c (lto_output_node): Handle aliases.
12299 (input_node): Likewise.
12300 * lto-streamer-out.c (lto_output): Skip aliases.
12301 (produce_symtab): Kill same_body_alias code.
12302 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12303 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12304 * ipa-inline.c (update_caller_keys): Walk aliases.
12305 (inline_small_functions): Fix thinko in previous patch.
12306 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12307 (function_and_variable_visibility): Do not walk same body aliases.
12308 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12309 (ipa_pta_execute): Use it.
12310
12311 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12312
12313 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12314 (*vec_dupv2df): Rename from vec_dupv2df.
12315 (vec_dupv2df): New expander.
12316
12317 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12318
12319 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12320
12321 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
12322
12323 * config/i386/i386.md: Use default value in "isa" attribute.
12324 * config/i386/sse.md: Ditto.
12325 * config/i386/mmx.md: Ditto.
12326
12327 2011-06-10 Wei Guozhi <carrot@google.com>
12328
12329 PR target/45335
12330 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12331 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12332 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12333 related peephole2.
12334 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12335 related peephole2.
12336 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12337 (arm_legitimate_ldrd_p): New prototype.
12338 (arm_output_ldrd): New prototype.
12339 * config/arm/arm.c (arm_check_ldrd_operands): New function.
12340 (arm_legitimate_ldrd_p): New function.
12341 (arm_output_ldrd): New function.
12342
12343 2011-06-10 David Li <davidxl@google.com>
12344
12345 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12346 * passes.c (passr_eq): New function.
12347 (create_pass_tab): New function.
12348 (pass_traverse): New function.
12349 (dump_one_pass): New function.
12350 (dump_pass_list): New function.
12351 (dump_passes): New function.
12352
12353 2011-06-10 Jan Hubicka <jh@suse.cz>
12354
12355 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12356 setting the nothrow flag.
12357 * ipa-reference.c (propagate): Skip aliases.
12358 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12359 (propagate_nothrow): Skip aliases; do not update cgraph.
12360 (local_pure_const): Do not update cgraph.
12361 * tree-profile.c (tree_profiling): Do fixup_cfg.
12362
12363 2011-06-10 Jan Hubicka <jh@suse.cz>
12364
12365 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12366 (cgraph_local_node_p): ... here; handle aliases.
12367 (has_addr_references_p): Break out from ...;
12368 (cgraph_remove_unreachable_nodes) ... here.
12369
12370 2011-06-10 Jan Hubicka <jh@suse.cz>
12371
12372 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12373 * common.opt (flag_inline_functions_called_once): Do not
12374 initialize to 1.
12375
12376 2011-06-10 Jan Hubicka <jh@suse.cz>
12377
12378 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12379 (ipcp_initialize_node_lattices): Do not deal with aliases;
12380 Do not try to propagate through thunks.
12381 (ipcp_change_tops_to_bottom): Do not deal with aliases.
12382
12383 2011-06-10 Jan Hubicka <jh@suse.cz>
12384
12385 * ipa-prop.c (ipa_write_node_info): Stream jump functions
12386 for indirect calls.
12387 (ipa_read_node_info): Likewise.
12388
12389 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12390
12391 PR lto/49302
12392 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12393 (build_and_insert_call): Likewise.
12394 (build_and_insert_ref): New.
12395 (gimple_expand_builtin_pow): Minor cleanup.
12396 (gimple_expand_builtin_cabs): New.
12397 (execute_cse_sincos): Add case for BUILT_IN_CABS.
12398
12399 2011-06-10 Jan Hubicka <jh@suse.cz>
12400
12401 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12402 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12403 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12404 (ipcp_propagate_stage): Skip aliases when propagating.
12405 (ipcp_need_redirect_p): Skip aliases.
12406 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12407 collect_callers_of_node.
12408 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12409 for aliases.
12410 (ipa_compute_jump_functions): Look through aliases.
12411
12412 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12413
12414 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12415
12416 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12417
12418 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12419 Adjust comments.
12420 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12421
12422 2011-06-10 Jan Hubicka <jh@suse.cz>
12423
12424 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12425 Update call of gimple_get_virt_method_for_binfo.
12426 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12427 refuse_thunks parameter.
12428 (gimple_fold_call): Update.
12429 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12430
12431 2011-06-10 Jan Hubicka <jh@suse.cz>
12432
12433 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12434 (not_all_callers_have_enough_arguments_p): ... this one; turn into
12435 worker for cgraph_for_node_and_aliases.
12436 (convert_callers_for_node): Break out from ...
12437 (convert_callers): ... here.
12438 (modify_function): Use collect_callers_of_node.
12439 (ipa_early_sra): Use cgraph_for_node_and_aliases.
12440
12441 2011-06-10 Richard Guenther <rguenther@suse.de>
12442
12443 PR tree-optimization/49361
12444 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12445 when not already in gimple form.
12446
12447 2011-06-10 Richard Guenther <rguenther@suse.de>
12448
12449 PR bootstrap/49344
12450 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12451 FOR_EACH_PHI_OR_STMT_USE.
12452
12453 2011-06-10 Jan Hubicka <jh@suse.cz>
12454
12455 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12456 (clone_inlined_nodes): ... here.
12457 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12458 to real destination prior inlining.
12459 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12460 can_early_inline_edge_p, want_early_inline_function_p,
12461 want_early_inline_function_p, want_inline_small_function_p,
12462 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12463 edge_badness, update_all_callee_keys, lookup_recursive_calls,
12464 add_new_edges_to_heap, inline_small_functions, flatten_function,
12465 inline_always_inline_functions, early_inline_small_functions): Use
12466 cgraph_function_or_thunk_node.
12467 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12468 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12469 (do_estimate_edge_growth_1): Break out from ...
12470 (do_estimate_growth) ... here; walk aliases.
12471 (inline_generate_summary): Skip aliases.
12472
12473 2011-06-10 Richard Guenther <rguenther@suse.de>
12474
12475 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12476 forward when combining, visit inserted stmts when a stmt was changed.
12477
12478 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
12479
12480 * tree.h (error_operand_p): Add.
12481 * dbxout.c (dbxout_type_fields): Use the latter.
12482 * c-decl.c (add_stmt): Likewise.
12483 * gimplify.c (omp_add_variable, omp_notice_variable,
12484 gimplify_scan_omp_clauses): Likewise.
12485
12486 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
12487
12488 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12489 when a value is actually passed in regs.
12490
12491 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
12492 Laurent Rougé <laurent.rouge@menta.fr>
12493
12494 * doc/invoke.texi (SPARC options): Add -mflat.
12495 * config/sparc/sparc.opt: Likewise.
12496 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12497 (sparc_flat_expand_prologue): Declare.
12498 (sparc_flat_expand_epilogue): Likewise.
12499 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12500 (CPP_ENDIAN_SPEC): Replace with...
12501 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
12502 (CPP_SPEC): Adjust to above change.
12503 (EXTRA_SPECS): Likewise.
12504 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12505 (INCOMING_REGNO): Likewise.
12506 (OUTGOING_REGNO): Likewise.
12507 (LOCAL_REGNO): Likewise.
12508 (SETUP_FRAME_ADDRESSES): Likewise.
12509 (FIXED_REGISTERS): Set 0 for %fp.
12510 (CALL_USED_REGISTERS): Likewise.
12511 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12512 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12513 (RETURN_ADDR_REGNUM): Define.
12514 (RETURN_ADDR_RTX): Use it.
12515 (INCOMING_RETURN_ADDR_REGNUM): Define.
12516 (INCOMING_RETURN_ADDR_RTX): Use it.
12517 (DWARF_FRAME_RETURN_COLUMN): Likewise.
12518 (EH_RETURN_REGNUM): Define.
12519 (EH_RETURN_STACKADJ_RTX): Use it.
12520 (EH_RETURN_HANDLER_RTX): Delete.
12521 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12522 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12523 Delete.
12524 (struct machine_function): Add frame_size, apparent_frame_size,
12525 frame_base_reg, frame_base_offset, n_global_fp_regs and
12526 save_local_in_regs_p fields.
12527 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12528 sparc_frame_base_offset, sparc_n_global_fp_regs,
12529 sparc_save_local_in_regs_p): New macros.
12530 (sparc_option_override): Error out if -fcall-saved-REG is specified
12531 for Out registers.
12532 (eligible_for_restore_insn): Fix formatting.
12533 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
12534 (eligible_for_sibcall_delay): Likewise.
12535 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12536 (sparc_legitimate_address_p): Adjust to above change.
12537 (save_global_or_fp_reg_p): New predicate.
12538 (return_addr_reg_needed_p): Likewise.
12539 (save_local_or_in_reg_p): Likewise.
12540 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
12541 (SORR_SAVE, SORR_RESTORE): Delete.
12542 (sorr_pred_t): New typedef.
12543 (sorr_act_t): New enum.
12544 (save_or_restore_regs): Rename to...
12545 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
12546 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12547 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
12548 mechanism. Add CFI information for double-word saves in 32-bit mode.
12549 (emit_adjust_base_to_offset): New function extracted from...
12550 (emit_save_or_restore_regs): ...this. Rename the rest to...
12551 (emit_save_or_restore_regs_global_fp_regs): ...this.
12552 (emit_save_or_restore_regs_local_in_regs): New function.
12553 (gen_create_flat_frame_[123]): New functions.
12554 (sparc_expand_prologue): Use SIZE local variable. Adjust.
12555 (sparc_flat_expand_prologue): New function.
12556 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12557 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
12558 (sparc_flat_expand_epilogue): New function.
12559 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12560 (output_return): Likewise.
12561 (output_sibcall): Likewise.
12562 (sparc_output_mi_thunk): Likewise.
12563 (sparc_frame_pointer_required): Likewise.
12564 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12565 function optimization.
12566 * config/sparc/sparc.md (flat): New attribute.
12567 (prologue): Add TARGET_FLAT handling.
12568 (save_register_window): Disable if TARGET_FLAT.
12569 (create_flat_frame_[123]): New patterns.
12570 (epilogue): Add TARGET_FLAT handling.
12571 (sibcall_epilogue): Likewise.
12572 (eh_return): New expander.
12573 (eh_return_internal): New insn and splitter.
12574 (return_internal): Add TARGET_FLAT handling.
12575 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12576 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12577 (nonlocal_goto): Add TARGET_FLAT handling.
12578 * config/sparc/t-elf: Add -mflat multilib.
12579 * config/sparc/t-leon: Likewise.
12580
12581 2011-06-10 Jan Hubicka <jh@suse.cz>
12582
12583 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12584 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12585 (self_recursive_p): Use cgraph_function_node.
12586 (propagate_pure_const): Likewise.
12587 (propagate_nothrow): Likewise.
12588 * ipa-reference.c (ipa_reference_get_not_read_global): Use
12589 cgraph_function_node.
12590 (propagate_bits): Likewise.
12591 (propagate): Likewise.
12592
12593 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12594 Richard Earnshaw <rearnsha@arm.com>
12595
12596 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12597 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12598 (*thumb2_movdi_vfp): Delete.
12599 (*arm_movdi_vfp_cortexa8): Delete.
12600 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12601 (*movdi_vfp_cortexa8): Likewise.
12602
12603 2011-06-10 Richard Guenther <rguenther@suse.de>
12604
12605 * stor-layout.c (initialize_sizetypes): Give names to all
12606 sizetype kinds.
12607
12608 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
12609
12610 PR tree-optimization/49318
12611 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12612 irrelevant pattern statements.
12613
12614 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12615
12616 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12617
12618 PR bootstrap/49354
12619 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12620 to last assignment.
12621
12622 2011-06-09 Jan Hubicka <jh@suse.cz>
12623
12624 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12625 do not recompute reachable flag.
12626 (cgraph_finalize_function, cgraph_analyze_functions): Set
12627 redefined_extern_inline here.
12628
12629 2011-06-09 Jan Hubicka <jh@suse.cz>
12630
12631 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12632 (cgraph_only_called_directly_p): ... this one; bring offline.
12633 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12634 varpool_used_from_object_file_p): Drop names from the declaratoin.
12635 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12636 collect_callers_of_node): New.
12637 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12638 (cgraph_edge_recursive_p): Use cgraph_function_node.
12639 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12640 (cgraph_node_cannot_be_local_p_1): Break out from ...
12641 (cgraph_node_can_be_local_p): ... here; walk aliases.
12642 (cgraph_for_node_thunks_and_aliases): New function.
12643 (cgraph_for_node_and_aliases): New function.
12644 (cgraph_make_node_local_1): Break out from ...
12645 (cgraph_make_node_local) ... here; use
12646 cgraph_for_node_thunks_and_aliases.
12647 (cgraph_set_nothrow_flag_1): Break out from ...
12648 (cgraph_set_nothrow_flag) ... here;
12649 use cgraph_for_node_thunks_and_aliases.
12650 (cgraph_set_const_flag_1): Break out from ...
12651 (cgraph_set_const_flag) ... here;
12652 use cgraph_for_node_thunks_and_aliases.
12653 (cgraph_set_pure_flag_1): Break out from ...
12654 (cgraph_set_pure_flag) ... here;
12655 use cgraph_for_node_thunks_and_aliases.
12656 (cgraph_propagate_frequency_1): Break out from ...
12657 (cgraph_propagate_frequency) ... here; use
12658 cgraph_for_node_thunks_and_aliases.
12659 (cgraph_used_from_object_file_p): Do not care about aliases.
12660 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12661 New functions.
12662 (collect_callers_of_node_1, collect_callers_of_node): New functions.
12663
12664 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12665
12666 PR rtl-optimization/49154
12667 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12668 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12669 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12670 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12671 * config/cris/cris.h (cris_register_move_cost): Remove
12672 !TARGET_V32 code. Tweak comments.
12673
12674 2011-06-09 Jan Hubicka <jh@suse.cz>
12675
12676 * cgraphbuild.c (record_eh_tables): Mark personality function as having
12677 address taken.
12678
12679 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
12680
12681 PR rtl-optimization/49154
12682 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12683 is a matching slot in the hashtable, assign it to classes_ptr.
12684
12685 PR rtl-optimization/49154
12686 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12687 register classes.
12688 * doc/tm.texi: Regenerate.
12689
12690 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
12691
12692 PR target/49307
12693 * config/sh/sh.md (UNSPEC_CHKADD): New.
12694 (chk_guard_add): New define_insn_and_split.
12695 (symGOT_load): Use chk_guard_add instead of blockage.
12696
12697 2011-06-09 Kai Tietz <ktietz@redhat.com>
12698
12699 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12700
12701 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
12702
12703 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12704
12705 2011-06-09 Wei Guozhi <carrot@google.com>
12706
12707 PR target/46975
12708 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12709 (peephole2 for conditional move): Generate 16 bit instructions.
12710
12711 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
12712
12713 * config/i386/i386.md (*movdi_internal_rex64): Merge
12714 alternatives 6 and 8.
12715
12716 2011-06-09 David Li <davidxl@google.com>
12717
12718 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12719 * passes.c (passr_eq): New function.
12720 (create_pass_tab): New function.
12721 (pass_traverse): New function.
12722 (dump_one_pass): New function.
12723 (dump_pass_list): New function.
12724 (dump_passes): New function.
12725
12726 2011-06-09 David Li <davidxl@google.com>
12727
12728 * tree-complex.c (tree_lower_complex): Gate cleanup.
12729 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12730 (execute_optimize_stdarg): Ditto.
12731 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12732 (execute_cleanup_eh_1): Ditto.
12733 (execute_cleanup_eh): Ditto.
12734 * gcse.c (gate_rtl_pre): Ditto.
12735 (execute_rtl_pre): Ditto.
12736 * except.c (finish_eh_generation): Ditto.
12737 (convert_to_eh_region_ranges): Ditto.
12738 * cprop.c (one_cprop_pass): Ditto.
12739
12740 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
12741
12742 PR target/48673
12743 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12744 in all basic blocks.
12745
12746 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12747
12748 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12749 (HAVE_ENABLE_EXECUTE_STACK): Define.
12750 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12751 (HAVE_ENABLE_EXECUTE_STACK): Define.
12752 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12753 (HAVE_ENABLE_EXECUTE_STACK): Define.
12754 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12755 (ENABLE_EXECUTE_STACK): Remove.
12756 (HAVE_ENABLE_EXECUTE_STACK): Define.
12757 [IN_LIBGCC2]: Don't include <windows.h>.
12758 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12759 (HAVE_ENABLE_EXECUTE_STACK): Define.
12760 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12761 (HAVE_ENABLE_EXECUTE_STACK): Define.
12762 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12763 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12764 (HAVE_ENABLE_EXECUTE_STACK): Define.
12765 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12766 (HAVE_ENABLE_EXECUTE_STACK): Define.
12767 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12768 (HAVE_ENABLE_EXECUTE_STACK): Define.
12769 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12770 (HAVE_ENABLE_EXECUTE_STACK): Define.
12771 * config/alpha/alpha.c (alpha_trampoline_init): Test
12772 HAVE_ENABLE_EXECUTE_STACK.
12773 * config/i386/i386.c (ix86_trampoline_init): Likewise.
12774 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12775 (sparc64_initialize_trampoline): Likewise.
12776 * libgcc2.c [L_enable_execute_stack]: Remove.
12777 * system.h (ENABLE_EXECUTE_STACK): Poison.
12778 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12779 * doc/tm.texi: Regenerate.
12780 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12781
12782 2011-06-09 Jakub Jelinek <jakub@redhat.com>
12783
12784 PR middle-end/49308
12785 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12786 variable. After resetting and rescanning insn continue with previous
12787 statement.
12788
12789 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12790
12791 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12792 (gcc_cv_ld_hidden): Likewise.
12793 * configure: Regenerate.
12794 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12795 (ix86_stack_protect_fail): Mark unused.
12796 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12797 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12798 [TARGET_MACHO]: Don't define.
12799 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12800 (TARGET_STACK_PROTECT_FAIL): Likewise.
12801 (rs6000_stack_protect_fail): Mark unused.
12802 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12803 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
12804
12805 2011-06-08 Andi Kleen <ak@linux.intel.com>
12806
12807 * varasm.c (get_section): Print location of other conflict
12808 for section conflicts.
12809
12810 2011-06-08 Andi Kleen <ak@linux.intel.com>
12811
12812 * config/i386/driver-i386.c (host_detect_local_cpu):
12813 Add model 0x2d Intel CPU.
12814
12815 2011-06-08 Andi Kleen <ak@linux.intel.com>
12816
12817 * reginfo.c (global_regs_decl): Add.
12818 (globalize_reg): Add decl parameter. Compute location. Pass location
12819 to warnings and add inform. Store decl in global_regs_decl.
12820 * rtl.h (globalize_reg): Update prototype.
12821 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12822
12823 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
12824
12825 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12826
12827 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12828
12829 PR target/49305
12830 * config/sh/predicates.md (general_movsrc_operand): Check
12831 mode for memory with indexed address for QI and HImode.
12832 (general_movdst_operand): Likewise.
12833
12834 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
12835
12836 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12837
12838 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
12839
12840 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12841 (num_ssa_operands): Likewise.
12842 (op_iter_init_phiuse): Forward-declare.
12843 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12844
12845 2011-06-08 Nick Clifton <nickc@redhat.com>
12846
12847 * doc/invoke.texi (ARM Options): Update description of
12848 -mthumb-interwork.
12849
12850 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
12851
12852 * config/i386/driver-i386.c (host_detect_local_cpu): Support
12853 unknown Intel family 0x6 CPUs.
12854
12855 2011-06-08 Martin Jambor <mjambor@suse.cz>
12856
12857 * tree-sra.c (mark_rw_status): Removed.
12858 (analyze_access_subtree): New parameter parent instead of
12859 mark_read and mark_write, propagate from that.
12860
12861 2011-06-08 Julian Brown <julian@codesourcery.com>
12862
12863 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12864 for double-precision helper functions in hard-float mode if only
12865 single-precision arithmetic is supported in hardware.
12866
12867 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
12868
12869 PR rtl-optimization/49303
12870 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
12871 code_motion_path_driver returned 0 or 1.
12872 (sel_region_finish): Clear h_d_i_d.
12873
12874 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
12875
12876 * config/sh/sh.c (prepare_move_operands): Set pic register
12877 appropriately for global and local dynamic tls models even
12878 if flag_pic is unset.
12879
12880 2011-06-07 Jason Merrill <jason@redhat.com>
12881
12882 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
12883
12884 2011-06-07 Xinliang David Li <davidxl@google.com>
12885 * passes.c (enable_disable_pass): Handle assembler name.
12886 (is_pass_explicitly_enabled_or_disabled): Ditto.
12887
12888 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12889
12890 PR tree-optimization/48497
12891 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
12892
12893 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12894
12895 PR tree-optimization/46728
12896 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
12897 to use gimple_val_nonnegative_real_p.
12898 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12899 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
12900
12901 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
12902
12903 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
12904
12905 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
12906
12907 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
12908 constant vectors.
12909
12910 2011-06-07 Richard Guenther <rguenther@suse.de>
12911
12912 * stor-layout.c (initialize_sizetypes): Initialize all
12913 sizetypes based on target definitions.
12914 (set_sizetype): Remove.
12915 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
12916 * tree.h (set_sizetype): Remove.
12917
12918 2011-06-07 Nick Clifton <nickc@redhat.com>
12919
12920 * config.gcc: Unify V850 architecture options and add support for
12921 newer V850 architectures.
12922 * config/v850/t-v850e: Delete.
12923
12924 2011-06-07 Richard Guenther <rguenther@suse.de>
12925
12926 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
12927 Call set_sizetype from here.
12928
12929 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
12930
12931 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
12932 (*maddhisi4tb, *maddhisi4tt): New define_insns.
12933
12934 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
12935 Andrew Stubbs <ams@codesourcery.com>
12936
12937 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
12938 multiplies.
12939 * doc/md.texi (Canonicalization of Instructions): Document widening
12940 multiply canonicalization.
12941
12942 2011-06-07 Jakub Jelinek <jakub@redhat.com>
12943
12944 PR gcov-profile/49299
12945 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
12946
12947 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
12948
12949 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
12950 a pointer.
12951 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
12952 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
12953 vect_recog_pow_pattern): Likewise.
12954 (vect_pattern_recog_1): Remove declaration.
12955 (widened_name_p): Remove declaration. Add new argument to specify
12956 whether to check that both types are either signed or unsigned.
12957 (vect_recog_widen_mult_pattern): Update documentation. Handle
12958 unsigned patterns and multiplication by constants.
12959 (vect_pattern_recog_1): Update vect_recog_func references. Use
12960 statement information from the statement returned from pattern
12961 detection functions.
12962 (vect_pattern_recog): Update vect_recog_func reference.
12963 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
12964 multiplication by a constant use the type of the other operand.
12965
12966 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12967
12968 PR rtl-optimization/49145
12969 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
12970
12971 2011-06-06 Jakub Jelinek <jakub@redhat.com>
12972
12973 PR debug/49262
12974 * dwarf2out.c (native_encode_initializer): Decrement count in each
12975 iteration.
12976
12977 PR debug/49294
12978 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
12979 non-MODE_INT modes.
12980
12981 PR c++/49264
12982 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
12983 if stmt folded into nothing.
12984 * tree-inline.c (fold_marked_statements): If a builtin at the end of
12985 a bb folded into nothing, just update cgraph edges and move to next bb.
12986 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
12987 to be NULL. Don't compute count and frequency if new_call is NULL.
12988
12989 2011-06-04 Diego Novillo <dnovillo@google.com>
12990
12991 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
12992 (cgraph.o): Likewise.
12993 (cgraphunit.o): Likewise.
12994 * cgraphunit.c: Include lto-streamer.h
12995 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
12996 if LTO is enabled.
12997 * lto-streamer-in.c (unpack_value_fields): Call
12998 streamer_hooks.unpack_value_fields if set.
12999 (lto_materialize_tree): For unhandled nodes, first try to
13000 call lto_streamer_hooks.alloc_tree, if it exists.
13001 (lto_input_ts_decl_common_tree_pointers): Move reading of
13002 DECL_INITIAL to lto_streamer_read_tree.
13003 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13004 (lto_streamer_read_tree): New.
13005 (lto_reader_init): Rename from lto_init_reader.
13006 Move initialization code to lto/lto.c.
13007 * lto-streamer-out.c (pack_value_fields): Call
13008 streamer_hooks.pack_value_fields if set.
13009 (lto_output_tree_ref): For tree nodes that are not normally indexable,
13010 call streamer_hooks.indexable_with_decls_p before giving up.
13011 (lto_output_ts_decl_common_tree_pointers): Move handling
13012 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13013 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13014 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
13015 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13016 (lto_streamer_write_tree): New.
13017 (lto_output): Call lto_streamer_init directly.
13018 (lto_writer_init): Remove.
13019 * lto-streamer.c (streamer_hooks): New.
13020 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13021 instead of lto_preload_common_nodes.
13022 (lto_is_streamable): Move from lto-streamer.h
13023 (lto_streamer_hooks_init): New.
13024 (streamer_hooks): New.
13025 (streamer_hooks_init): New.
13026 * lto-streamer.h (struct output_block): Forward declare.
13027 (struct lto_input_block): Likewise.
13028 (struct data_in): Likewise.
13029 (struct bitpack_d): Likewise.
13030 (struct streamer_hooks): Declare.
13031 (streamer_hooks): Declare.
13032 (lto_streamer_hooks_init): Declare.
13033 (lto_streamer_write_tree): Declare.
13034 (lto_streamer_read_tree): Declare.
13035 (streamer_hooks_init): Declare.
13036 (lto_is_streamable): Move to lto-streamer.c
13037
13038 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13039
13040 * longlong.h (smul_ppmm): The resulting register pair contains the
13041 higher order word first.
13042
13043 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13044
13045 PR tree-optimization/46728
13046 * builtins.c (powi_table): Remove.
13047 (powi_lookup_cost): Remove.
13048 (powi_cost): Remove.
13049 (expand_powi_1): Remove.
13050 (expand_powi): Remove.
13051 (expand_builtin_pow_root): Remove.
13052 (expand_builtin_pow): Remove.
13053 (expand_builtin_powi): Eliminate handling of constant exponent.
13054 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13055
13056 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13057
13058 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13059
13060 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13061
13062 * dce.c (reset_unmarked_insns_debug_uses): New.
13063 (delete_unmarked_insns): Skip debug insns.
13064 (prescan_insns_for_dce): Likewise.
13065 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13066 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13067 active reg can be found.
13068 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
13069 (convert_regs_1): Use it.
13070
13071 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13072
13073 * tree-pretty-print.c (dump_function_header): Add flags.
13074 Don't dump decl_uid with nouid.
13075 * tree-pretty-print.h (dump_function_header): Adjust.
13076 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13077 * passes.c (pass_init_dump_file): Pass dump_flags on.
13078 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13079
13080 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
13081
13082 PR bootstrap/49270
13083 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13084
13085 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
13086
13087 PR tree-optimization/49243
13088 * calls.c (setjmp_call_p): Also check if fndecl has the
13089 returns_twice attribute.
13090
13091 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13092
13093 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13094 -ffast-math etc.
13095
13096 2011-06-06 Richard Henderson <rth@redhat.com>
13097 Georg-Johann Lay <avr@gjlay.de>
13098
13099 PR target/42210
13100 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13101 New predicates.
13102 * config/avr/avr.md ("insv"): New insn expander.
13103 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13104 "*insv.not.io", "*insv.reg"): New insns.
13105
13106 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
13107
13108 PR target/49285
13109 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13110 to nonimmediate_operand from memory_operand for the operand that is to
13111 be forced to memory by the expander. Lose the constraints.
13112
13113 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
13114
13115 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13116 EH return when delayed branches are disabled.
13117
13118 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
13119
13120 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13121 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
13122 calculation.
13123 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13124 Simplify MODE_V1DF and MODE_V2SF handling.
13125 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13126 Simplify MODE_SF handling.
13127
13128 2011-06-04 Jan Hubicka <jh@suse.cz>
13129
13130 PR tree-optimization/48893
13131 PR tree-optimization/49091
13132 PR tree-optimization/49179
13133 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13134 Bounds check.
13135
13136 2011-06-04 Jan Hubicka <jh@suse.cz>
13137
13138 PR lto/48954
13139 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13140 bitmaps.
13141
13142 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
13143
13144 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13145
13146 2011-06-04 Jakub Jelinek <jakub@redhat.com>
13147
13148 PR target/49281
13149 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13150 to be strictly smaller than 1 << shiftcount.
13151
13152 2011-06-04 Jan Hubicka <jh@suse.cz>
13153
13154 PR tree-optimize/48929
13155 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13156 of empty predicate.
13157
13158 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
13159
13160 PR debug/48333
13161 * calls.c (emit_call_1): Prefer the __builtin declaration of
13162 builtin functions.
13163
13164 2011-06-03 Diego Novillo <dnovillo@google.com>
13165
13166 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13167 (lto_input_tree_pointers): Likewise.
13168 * lto-streamer-out.c (pack_value_fields): Likewise.
13169 (lto_output_tree_pointers): Likewise.
13170 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13171 and OPTIMIZATION_NODE.
13172
13173 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13174
13175 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13176 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13177 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13178 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13179 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13180 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13181 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13182 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13183 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13184 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13185 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13186 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13187 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13188 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13189 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13190 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13191 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13192 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13193 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13194 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13195 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13196 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13197 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13198 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13199 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13200 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13201 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13202 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13203 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13204 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13205 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13206 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13207 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13208 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13209 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13210 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13211 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13212 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13213 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13214 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13215 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13216 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13217 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13218 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13219 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13220 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13221 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13222 * system.h (MD_UNWIND_SUPPORT): Poison.
13223 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13224 * doc/tm.texi: Regenerate.
13225 * unwind-dw2.c: Include md-unwind-support.h instead of
13226 MD_UNWIND_SUPPORT.
13227 * config/ia64/unwind-ia64.c: Likewise.
13228 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13229
13230 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
13231
13232 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13233
13234 2011-06-03 Richard Henderson <rth@redhat.com>
13235 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13236
13237 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13238 (sigill_hdlr): Correct insn, insn size.
13239 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13240
13241 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13242
13243 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13244 t-slibgcc-dummy.
13245 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13246 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13247 * config/mips/t-iris: Remove.
13248 * config/mips/t-irix6: New file.
13249 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13250
13251 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13252
13253 * Makefile.in (LIB2ADDEHDEP): Remove.
13254 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13255 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13256 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13257 * config/t-darwin (LIB2ADDEHDEP): Remove.
13258 * config/t-freebsd (LIB2ADDEHDEP): Remove.
13259 * config/t-linux (LIB2ADDEHDEP): Remove.
13260
13261 2011-06-03 Diego Novillo <dnovillo@google.com>
13262
13263 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13264 (lto_register_var_decl_in_symtab): Likewise.
13265 (lto_register_function_decl_in_symtab): Likewise.
13266 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13267 logic to uniquify_nodes.
13268
13269 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13270
13271 * config/alpha/t-osf5: Remove.
13272 * config/alpha/t-osf-pthread: Remove.
13273 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13274 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13275
13276 2011-06-03 Julian Brown <julian@codesourcery.com>
13277
13278 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13279 (strongarm1110): Use strongarm tuning.
13280 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13281 * config/arm/arm.c (arm_strongarm_tune): New.
13282 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13283 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13284 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13285 setting, using previous defaults or 1 for Cortex-A5.
13286 (arm_option_override): Set max_insns_skipped from current tuning.
13287
13288 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
13289
13290 * doc/install.texi (Options specification): Document --with-specs.
13291
13292 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13293
13294 * config/arm/neon.md (orndi3_neon): Actually split it.
13295
13296 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13297
13298 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13299 * var-tracking.c (reverse_op): Limite recurse depth to 5.
13300
13301 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
13302
13303 PR debug/47590
13304 * target.def (delay_sched2, delay_vartrack): New.
13305 * doc/tm.texi.in: Update.
13306 * doc/tm.texi: Rebuild.
13307 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13308 * var-tracking.c (gate_handle_var_tracking): Likewise.
13309 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13310 (bfin_flag_var_tracking): Drop.
13311 (output_file_start): Don't save and override flag_var_tracking.
13312 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13313 (bfin_reorg): Test original variables.
13314 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13315 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13316 (ia64_flag_var_tracking): Drop.
13317 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13318 (ia64_file_start): Don't save and override flag_var_tracking.
13319 (ia64_override_options_after_change): Ditto
13320 flag_schedule_insns_after_reload.
13321 (ia64_reorg): Test original variables.
13322 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13323 (picochip_flag_var_tracking): Drop.
13324 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13325 (picochip_option_override): Don't save and override
13326 flag_schedule_insns_after_reload.
13327 (picochip_asm_file_start): Ditto flag_var_tracking.
13328 (picochip_reorg): Test original variables.
13329 * config/spu/spu.c (spu_flag_var_tracking): Drop.
13330 (TARGET_DELAY_VARTRACK): Define.
13331 (spu_var_tracking): New.
13332 (spu_machine_dependent_reorg): Call it.
13333 (asm_file_start): Don't save and override flag_var_tracking.
13334
13335 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
13336
13337 PR target/49163
13338 * config/sh/predicates.md (general_movsrc_operand): Return 0
13339 for memory and memory subreg of which address is an invalid
13340 indexed address for QI and HImode.
13341 (general_movdst_operand): Likewise.
13342
13343 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13344
13345 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13346 edges only, when there is a non-local label in the function.
13347 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13348
13349 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13350
13351 * config/i386/constraints.md (Y3): New register constraint.
13352 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13353 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13354 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13355 *sse2_interleave_lowv2df.
13356
13357 2011-06-02 Julian Brown <julian@codesourcery.com>
13358
13359 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13360 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13361 (arm_cortex_a5_tune): New.
13362
13363 2011-06-02 Julian Brown <julian@codesourcery.com>
13364
13365 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13366 * config/arm/arm.c (arm_default_branch_cost): New.
13367 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13368 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13369 (arm_fa726_tune): Set branch_cost field using
13370 arm_default_branch_cost.
13371 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13372 current_tune structure.
13373 * dojump.c (tm_p.h): Include file.
13374
13375 2011-06-02 Julian Brown <julian@codesourcery.com>
13376
13377 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13378 tuning.
13379 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13380 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13381 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13382 field.
13383 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13384 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13385 (arm_fa726te_tune): Add prefer_constant_pool setting.
13386 (arm_v6t2_tune, arm_cortex_tune): New.
13387 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13388 prefer_constant_pool setting.
13389
13390 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
13391
13392 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13393 switch statement.
13394 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13395 (*movdf_internal) <case 6,7,8>: Ditto.
13396
13397 * config/i386/constraints.md (Y4): New register constraint.
13398 * config/i386/sse.md (vec_set<mode>_0): Merge with
13399 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13400 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13401 *vec_extractv2di_1_sse.
13402 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13403 and *vec_concatv2di_rex64_sse.
13404
13405 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
13406
13407 PR target/48807
13408 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13409 of cgraph_local_info for null before attempting to use it.
13410
13411 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
13412
13413 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13414 (current_function_dynamic_alloc_count): Delete.
13415 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13416 (expand_builtin_nonlocal_goto): Remove obsolete comment.
13417 (expand_builtin_update_setjmp_buf): Remove dead code.
13418 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13419 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13420 support.
13421 * function.c (instantiate_virtual_regs): Likewise.
13422 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13423 for a block with a single abnormal incoming edge.
13424 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13425 (SETJMP_VIA_SAVE_AREA): Delete.
13426 * config/sparc/sparc-protos.h (load_got_register): Declare.
13427 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13428 (load_got_register): Make global.
13429 (sparc_frame_pointer_required): Add 'static'.
13430 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
13431 (sparc_builtin_setjmp_frame_value): New function.
13432 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13433 (save_stack_nonlocal): New expander.
13434 (restore_stack_nonlocal): Likewise.
13435 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13436 (nonlocal_goto_internal): New insn.
13437 (goto_handler_and_restore): Delete.
13438 (builtin_setjmp_setup): Likewise.
13439 (do_builtin_setjmp_setup): Likewise.
13440 (setjmp): Likewise.
13441 (builtin_setjmp_receiver): New expander.
13442
13443 2011-06-01 David Li <davidxl@google.com>
13444
13445 PR middle-end/49261
13446 * tree-pretty-print.c (dump_function_header): Format cleanup.
13447
13448 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
13449
13450 PR target/49238
13451 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13452 needed when original operands are used for msw_skip comparison.
13453
13454 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13455
13456 PR debug/49250
13457 * var-tracking.c (add_uses, add_stores): Don't call
13458 cselib_subst_to_values on ENTRY_VALUE.
13459
13460 2011-06-01 Diego Novillo <dnovillo@google.com>
13461
13462 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13463 output_record_start with LTO_null instead of output_zero.
13464 (lto_output_ts_binfo_tree_pointers): Likewise.
13465 (lto_output_tree): Likewise.
13466 (output_eh_try_list): Likewise.
13467 (output_eh_region): Likewise.
13468 (output_eh_lp): Likewise.
13469 (output_eh_regions): Likewise.
13470 (output_bb): Likewise.
13471 (output_function): Likewise.
13472 (output_unreferenced_globals): Likewise.
13473 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13474 instead of NUM_TREE_CODES.
13475 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13476 (lto_output_int_in_range): Change << to >> when shifting VAL.
13477
13478 2011-06-01 Diego Novillo <dnovillo@google.com>
13479
13480 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13481 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13482
13483 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13484
13485 PR target/45074
13486 * optabs.h (valid_multiword_target_p): Declare.
13487 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13488 doing multi-word operations.
13489 * optabs.c (expand_binop): Likewise.
13490 (expand_doubleword_bswap): Likewise.
13491 (expand_absneg_bit): Likewise.
13492 (expand_unop): Likewise.
13493 (expand_copysign_bit): Likewise.
13494 (multiword_target_p): New function.
13495
13496 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
13497
13498 PR rtl-optimization/48830
13499 PR rtl-optimization/48808
13500 PR rtl-optimization/48792
13501 * reload.c (push_reload): Check contains_reg_of_mode.
13502 * reload1.c (strip_paradoxical_subreg): New function.
13503 (gen_reload_chain_without_interm_reg_p): Use it to handle
13504 paradoxical subregs.
13505 (emit_output_reload_insns, gen_reload): Likewise.
13506
13507 2011-06-01 David Li <davidxl@google.com>
13508
13509 * predict.c : Change pass name
13510 * ipa.c: Ditto.
13511 * dce.c: Ditto.
13512 * tree-profile.c: Ditto.
13513 * except.c: Ditto.
13514
13515 2011-06-01 David Li <davidxl@google.com>
13516
13517 * tree-pretty-print.c (dump_function_header): New function.
13518 * final.c (rest_of_clean_state): Use header dumper.
13519 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13520 * passes.c (pass_init_dump_file): Use header dumper.
13521
13522 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13523
13524 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13525 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13526 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13527 New functions.
13528 (mem_loc_descriptor): Use them.
13529
13530 * var-tracking.c (create_entry_value): New function.
13531 (vt_add_function_parameter): Use it.
13532
13533 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13534
13535 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13536 Include <signal.h>, <ucontext.h>.
13537 (sigill_caught): Define.
13538 (sigill_hdlr): New function.
13539 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13540 insns can be executed.
13541 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13542 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13543
13544 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13545
13546 * config/t-slibgcc-darwin: Move to ...
13547 * config/t-slibgcc-dummy: ... this. Clarify comments.
13548 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13549 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13550 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13551 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
13552 Remove i386/t-crtstuff from tmake_file.
13553 (i[34567]86-*-solaris2*): Remove t-svr4,
13554 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13555 t-slibgcc-dummy.
13556 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13557 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13558 sparc/t-crtfm from tmake_file.
13559 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13560 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13561 Remove extra_parts.
13562 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13563 * config/i386/t-nwld (SHLIB_LINK): Remove.
13564 * config/i386/t-rtems-i386: Rename to ...
13565 * config/i386/t-rtems: ... this.
13566 ($(T)crti.o, $(T)crtn.o): Remove.
13567 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13568 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13569 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13570 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13571 EXTRA_MULTILIB_PARTS): Remove.
13572 * config/sparc/t-sol2-64: Likewise.
13573 * config/sparc/t-sol2: Remove.
13574 * config/sparc/t-crtin: Remove.
13575 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13576 * config/i386/gmon-sol2.c: Remove.
13577 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13578 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13579 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13580 * config/i386/sol2-gc1.asm: Remove.
13581 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13582 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13583 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13584 * config/t-slibgcc-sld: Remove.
13585
13586 2011-06-01 Jakub Jelinek <jakub@redhat.com>
13587
13588 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13589 base_type_for_mode with op_mode instead of mode.
13590
13591 2011-06-01 Paul Brook <paul@cpodesourcery.com>
13592
13593 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
13594 Cortex-A15.
13595 * config/arm/arm-tune.md: Regenerate.
13596 * config/arm/arm-tables.opt: Regenerate.
13597 * config/arm/arm.c (FL_DIV): Rename...
13598 (FL_THUMB_DIV): ... to this.
13599 (FL_ARM_DIV): Define.
13600 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13601 (arm_arch_hwdiv): Remove.
13602 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13603 (arm_issue_rate): Add cortexr5.
13604 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13605 __ARM_ARCH_EXT_IDIV__.
13606 (TARGET_IDIV): Define.
13607 (arm_arch_hwdiv): Remove.
13608 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13609 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13610 (divsi3, udivsi3): New patterns.
13611 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13612 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13613
13614 2011-06-01 Martin Jambor <mjambor@suse.cz>
13615
13616 * ipa-utils.c (ipa_dfs_info): New field scc_no.
13617 * ipa-utils.c (searchc): Set scc_no.
13618
13619 2011-06-01 Martin Jambor <mjambor@suse.cz>
13620
13621 * ipa-utils.c (searchc_env): New field allow_overwritable.
13622 (searchc): do not ignore edges to overwritable nodes if indicated
13623 by env->allow_overwritable.
13624 (ipa_reduced_postorder): Set env.allow_overwritable.
13625
13626 2011-06-01 Richard Guenther <rguenther@suse.de>
13627
13628 * tree.c (free_lang_data): Do not reset boolean_type_node nor
13629 char_type_node.
13630 * lto-streamer.c (lto_record_common_node): Take node pointer,
13631 do not register types.
13632 (lto_preload_common_nodes): Explicitly skip preloading nodes
13633 that differ between frontends.
13634
13635 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13636
13637 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13638 NON_FLOAT_REGS.
13639
13640 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
13641
13642 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13643 parameter value for dump. Dump cost on outermost call only.
13644 (rs6000_memory_move_cost): Dump cost on outermost call only.
13645
13646 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13647
13648 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13649 DW_OP_GNU_convert ops.
13650
13651 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13652 cselib_preserve_constants.
13653 (cselib_lookup_1): If cselib_preserve_constants,
13654 a new VALUE is being created for REG and there is a VALUE for the
13655 same register in wider mode, add another loc with lowpart SUBREG of
13656 the wider VALUE.
13657 (cselib_subst_to_values): Handle ENTRY_VALUE.
13658 * var-tracking.c (replace_expr_with_values): Return NULL for
13659 ENTRY_VALUE too.
13660 * dwarf2out.c (convert_descriptor_to_signed): New function.
13661 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13662 instead of two shifts.
13663 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13664 the right mode if needed.
13665 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13666 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13667 convert_descriptor_to_signed.
13668 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13669 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13670
13671 PR target/48688
13672 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13673
13674 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13675
13676 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13677 of X87MODEI12 and SWI48x instead of SSEMODEI24.
13678 (SWI248x): New mode iterator, rename from X87MODEI.
13679 (X87MODEI): Remove mode iterator.
13680 (X87MODEI12): Ditto.
13681 (SSEMODEI24): Ditto.
13682
13683 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13684
13685 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13686 * doc/invoke.texi: Document max-vartrack-expr-depth.
13687 * var-tracking.c (EXPR_DEPTH): New.
13688 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13689
13690 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13691
13692 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13693 * config/i386/sse.md: Add n to negated FMA pattern names.
13694
13695 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13696
13697 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13698
13699 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
13700
13701 * gengtype-state.c (read_state_params_structs): Initialize previous.
13702
13703 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13704
13705 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13706 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13707
13708 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
13709
13710 * config/i386/i386.md (*movtf_internal): Avoid allocating general
13711 registers. Penalize F*r->o alternative to prevent partial memory
13712 stalls. Slightly penalize *roF->*r alternative. Generate SSE
13713 CONST_DOUBLE immediates when optimizing function for size. Do not move
13714 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13715 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13716 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13717 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13718 alternatives.
13719 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13720
13721 (fp_register_operand splitters): Use fp_register_operand
13722 constraint. Do not use FP_REG_P in insn condition.
13723 (any_fp_register_operand splitters): Use any_fp_register_operand
13724 constraint. Do not use ANY_FP_REG_P in insn condition.
13725
13726 2011-05-31 Jan Hubicka <jh@suse.cz>
13727
13728 * cgraph.h (cgraph_inline_failed_t): Give enum a name
13729 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13730 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13731 (lto_output_edge): Use output_enum and var_len_unsigned.
13732 (lto_output_varpool_node): Likewise.
13733 (input_overwrite_node): Do not take resolution parameter;
13734 extract it from a bitpack.
13735 (input_node): Do not read resolution; use input_enum and
13736 var_len_unsigned.
13737 (input_varpool_node): Likewise.
13738 (input_edge): Likewise.
13739 (input_cgraph_1): Likewise.
13740
13741 2011-05-31 Richard Guenther <rguenther@suse.de>
13742
13743 * gimple.c (gimple_register_canonical_type): Do not register
13744 any types via gimple_register_type.
13745
13746 2011-05-31 Jan Hubicka <jh@suse.cz>
13747
13748 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13749 of thunks.
13750
13751 2011-05-31 Jakub Jelinek <jakub@redhat.com>
13752
13753 PR rtl-optimization/49235
13754 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13755 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13756
13757 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
13758
13759 PR tree-optimization/49093
13760 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13761 data references.
13762
13763 2011-05-31 Dodji Seketeli <dodji@redhat.com>
13764
13765 PR debug/49047
13766 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13767 for concrete functions containing the code of cloned functions.
13768
13769 2011-05-31 Richard Guenther <rguenther@suse.de>
13770
13771 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13772 to ...
13773 (forward_propagate_into_comparison_1): ... this.
13774 (forward_propagate_comparison): Rename to ...
13775 (forward_propagate_into_comparison): ... this. Split out
13776 real forward propagation code to ...
13777 (forward_propagate_comparison): ... this.
13778 (forward_propagate_into_gimple_cond): Remove looping.
13779 (forward_propagate_into_cond): Likewise.
13780 (simplify_not_neg_expr): Return whether we have done something.
13781 (simplify_gimple_switch): Likewise.
13782 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13783 (ssa_forward_propagate_and_combine): ... this. Re-structure
13784 to do a forward forward-propagation walk on BBs and a backward
13785 stmt combining walk on BBs. Consistently re-scan changed statements.
13786 (pass_forwprop): Adjust.
13787
13788 2011-05-30 Ian Lance Taylor <iant@google.com>
13789
13790 * godump.c (go_format_type): Correct length of name added to
13791 obstack for anonymous field.
13792
13793 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
13794
13795 PR target/49186
13796 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13797 part of the second operand is 0.
13798
13799 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
13800
13801 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13802 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
13803 to memory for !TARGET_MEMORY_MISMATCH_STALL.
13804 (*movdf_internal_rex64): Do not penalize F->r alternative.
13805 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13806 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
13807 when optimizing function for size. Do not move CONST_DOUBLEs
13808 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13809 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
13810 SUBREGs. Do not check for MEM_P operands in the insn condition,
13811 check for ANY_FP_REGNO_P instead.
13812 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13813 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13814 function for speed.
13815 * config/i386/i386.c (ix86_option_override_internal): Do not
13816 set TARGET_INTEGER_DFMODE_MOVES here.
13817
13818 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
13819
13820 PR target/49168
13821 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13822
13823 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13824
13825 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13826 DW_TAG_rvalue_reference_type even for
13827 -gdwarf-4 -fno-debug-types-section.
13828
13829 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13830
13831 PR tree-optimization/46728
13832 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13833 (build_and_insert_binop): New.
13834 (gimple_expand_builtin_pow): Reorder args for
13835 build_and_insert_call; use build_and_insert_binop; add more
13836 optimizations for fractional exponents.
13837
13838 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
13839
13840 PR bootstrap/49190
13841
13842 Revert:
13843 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13844
13845 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13846 tree_common.
13847 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13848 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13849 TS_BASE instead of TS_COMMON.
13850 * varasm.c (assemble_name): Remove assert.
13851
13852 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13853
13854 * config.gcc: Keep obselete list sorted.
13855
13856 2011-05-30 Jakub Jelinek <jakub@redhat.com>
13857 Eric Botcazou <ebotcazou@adacore.com>
13858
13859 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13860 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13861 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13862 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13863 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13864
13865 2011-05-30 Richard Guenther <rguenther@suse.de>
13866
13867 * gimple.c (gimple_types_compatible_p_1): Compare record
13868 and union type members properly.
13869
13870 2011-05-30 Richard Guenther <rguenther@suse.de>
13871
13872 PR tree-optimization/49210
13873 * ipa-split.c (split_function): Care for the case where the call
13874 result is not trivially convertible to the result holding variable.
13875
13876 2011-05-30 Richard Guenther <rguenther@suse.de>
13877
13878 PR tree-optimization/49218
13879 * tree-vrp.c (adjust_range_with_scev): Properly check whether
13880 overflow occured.
13881
13882 2011-05-30 Richard Guenther <rguenther@suse.de>
13883
13884 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
13885 New function split out from ...
13886 (forward_propagate_into_gimple_cond): ... here. Adjust.
13887 (forward_propagate_into_cond): Likewise.
13888 (forward_propagate_comparison): Also propagate into
13889 comparisons on assignment RHS. Change return value to
13890 behave similar to forward_propagate_into_cond.
13891 (tree_ssa_forward_propagate_single_use_vars): Handle
13892 strict-overflow warnings properly for forward_propagate_comparison.
13893
13894 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13895
13896 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
13897 from plugin linker.
13898 * configure: Regenerate.
13899
13900 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
13901
13902 PR tree-optimization/49199
13903 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
13904 non-reduction operands are either defined in the loop or by induction.
13905
13906 2011-05-29 Xinliang David Li <davidxl@google.com>
13907
13908 * opts-global.c (handle_common_deferred_options): Handle new options.
13909 * passes.c (register_one_dump_file): Call register_pass_name.
13910 (execute_one_pass): Check explicit enable/disable flag.
13911 (passr_hash): New function.
13912 (passr_eq): Ditto.
13913 (register_pass_name): Ditto.
13914 (get_pass_by_name): Ditto.
13915 (pass_hash): Ditto.
13916 (pass_eq): Ditto.
13917 (enable_pass): Ditto.
13918 (disable_pass): Ditto.
13919 (is_pass_explicitly_enabled_or_disabled): Ditto.
13920
13921 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
13922
13923 * config/i386/i386.md (*movoi_internal_avx): Use
13924 standard_sse_constant_opcode for alternative 0.
13925 (*movti_internal_sse): Ditto.
13926 (*movti_internal_rex64): Use standard_sse_constant_opcode for
13927 alternative 2.
13928 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
13929 sselog1 type moves.
13930 (*movsi_internal): Ditto.
13931 (*movdi_internal): Ditto. Add ssecvt type moves.
13932
13933 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
13934
13935 PR target/48830
13936 * rtlanal.c (simplify_subreg_regno): Adjust comment.
13937
13938 2011-05-29 Jakub Jelinek <jakub@redhat.com>
13939
13940 PR rtl-optimization/49095
13941 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
13942 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
13943
13944 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
13945
13946 PR target/43995
13947 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
13948 recurse_p argument. Only follow register copies if it is set,
13949 and prevent mips_find_pic_call_symbol from recursing.
13950 (mips_find_pic_call_symbol): Add a recurse_p argument.
13951 Pass it to mips_pic_call_symbol_from_set.
13952 (mips_annotate_pic_calls): Update accordingly.
13953
13954 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
13955
13956 * emit-rtl.c (try_split): Use a loop to search for
13957 NOTE_INSN_CALL_ARG_LOCATIONs.
13958
13959 2011-05-29 Richard Guenther <rguenther@suse.de>
13960
13961 PR tree-optimization/49217
13962 * ipa-pure-const.c (propagate_pure_const): Fix typos.
13963
13964 2011-05-28 Jan Hubicka <jh@suse.cz>
13965
13966 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
13967 length.
13968 (string_slot_free): Remove
13969 (create_output_block): Initialize obstack.
13970 (destroy_output_block): Free obstack.
13971 (lto_string_index): Add PERSISTENT parameter; do not duplicate
13972 the string unless it needs to be added into the hash.
13973 (lto_output_string_with_length): Add persistent attribute;
13974 handle NULL strings.
13975 (lto_output_string): Add PERSISTENT parameter.
13976 (output_string_cst, output_identifier): Simplify.
13977 (lto_output_location_bitpack): Update.
13978 (lto_output_builtin_tree): Update.
13979 * lto-streamer.h (struct output_block): Add obstack.
13980 (lto_output_string, lto_output_string_with_length): Remove
13981 declarations; functions are static now.
13982
13983 2011-05-28 Jan Hubicka <jh@suse.cz>
13984
13985 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
13986 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
13987 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
13988 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
13989 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
13990 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
13991 unpack_ts_decl_with_vis_value_fields,
13992 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
13993 lto_get_builtin_tree): Use enum and variable length i/o.
13994 * basic-block.h (profile_status_d): Add PROFILE_LAST.
13995 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
13996 New functions.
13997 (bp_pack_enum, bp_unpack_enum): New macros.
13998
13999 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14000
14001 * genrecog.c: Remove redundant forward declarations.
14002
14003 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14004
14005 * config.gcc: Deprecate mips*-*-openbsd*.
14006
14007 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14008
14009 PR bootstrap/49195
14010 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14011 for match_op_dup.
14012
14013 2011-05-27 Andrew Pinski <pinskia@gmail.com>
14014
14015 PR middle-end/48981
14016 * gengtype.c (vec_prefix_type): New function.
14017 (note_def_vec): Use vec_prefix_type and change the length
14018 attribute to be based on the prefix.
14019 * vec.c: Include coretypes.h before vec.h.
14020 (struct vec_prefix): Remove.
14021 (vec_gc_p_reserve): Change the offsetof to sizeof.
14022 (vec_gc_p_reserve_exact): Likewise.
14023 (vec_heap_p_reserve): Likewise.
14024 (vec_heap_p_reserve_exact): Likewise.
14025 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14026 (vec_stack_p_reserve): Change the offsetof to sizeof.
14027 (vec_stack_p_reserve_exact): Likewise.
14028 * vec.h (struct vec_prefix): New struct definition.
14029 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14030 (VEC_T_GTY(T,B)): Likewise.
14031 (DEF_VEC_FUNC_P(T)): Use prefix field.
14032 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14033 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14034
14035 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14036
14037 PR tree-optimization/46728
14038 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14039 (powi_as_mults): Add gimple_set_location.
14040 (build_and_insert_call): New.
14041 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14042 0.5, 0.25, 0.75, 1./3., or 1./6.
14043
14044 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
14045
14046 * doc/contrib.texi: Update copyright years.
14047 (Contributors): Add Zdenek Sojka.
14048
14049 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
14050
14051 * c-decl.c (c_push_function_context): Copy the current statement
14052 list stack.
14053 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14054 (finish_struct): Call building_stmt_list_p instead of checking
14055 cur_stmt_list.
14056 * c-parser.c (c_parser_postfix_expression): Likewise.
14057 * c-typeck.c (c_end_compound_stmt): Likewise.
14058 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14059 * tree-iterator.c (stmt_list_cache): Change to a VEC.
14060 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14061 (free_stmt_list): Likewise.
14062 * tree.h (struct tree_statement_list): Include typed_tree instead
14063 of tree_common.
14064 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14065 as TS_TYPED instead of TS_COMMON.
14066
14067 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14068 Uros Bizjak <ubizjak@gmail.com>
14069
14070 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14071 (HAVE_AS_IX86_TLSGDPTL): Define.
14072 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14073 (HAVE_AS_IX86_TLSLDMPLT): Define.
14074 * configure: Regenerate.
14075 * config.in: Regenerate.
14076 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14077 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14078 TARGET_SUN_TLS, use @tlsgdplt or @plt.
14079 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14080 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14081 @tlsldmplt or @plt.
14082 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14083
14084 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14085
14086 * sched-int.h (struct _haifa_deps_insn_data): New members cond
14087 and reverse_cond.
14088 (INSN_COND, INSN_REVERSE_COND): New macros.
14089 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14090 once.
14091 (sched_get_condition_with_rev): Cache the results, and look them up
14092 if possible.
14093 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14094 are clobbered by the current insn.
14095 * target.def (exposed_pipline): New sched data hook.
14096 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14097 * doc/tm.texi: Regenerate.
14098
14099 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14100
14101 PR tree-optimization/49170
14102 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
14103 sincos or cexp.
14104
14105 2011-05-27 Richard Guenther <rguenther@suse.de>
14106
14107 PR middle-end/49189
14108 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14109 of comparisons.
14110
14111 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
14112
14113 * haifa-sched.c (sched_scan_info): Remove.
14114 (schedule_block): Call sched_extend_luids rather than sched_init_luids
14115 with NULL args.
14116 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14117 Remove functions.
14118 (sched_scan): Remove.
14119 (sched_extend_luids): Renamed from luids_extend_insn and no longer
14120 static. All callers changed.
14121 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14122 static. All callers changed.
14123 (sched_init_luids): Remove all arguments except the first. All
14124 callers changed. Don't use sched_scan.
14125 (haifa_init_h_i_d): Likewise.
14126 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14127 manually rather than using sched_init_luids. Likewise with
14128 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14129 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14130 rather than sched_init_luids with NULL args.
14131 * sel-sched-ir.c (new_insns): Remove variable.
14132 (sched_scan): New static function, previously in haifa-sched.c. Remove
14133 all arguments but the first two; all callers changed.
14134 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14135 rather than sched_init_luids.
14136 (sel_init_bbs): Remove second argument. All callers changed.
14137 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14138 with NULL arguments.
14139 (create_insn_rtx_from_pattern): Likewise.
14140 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14141 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14142 (sched_init_insn_luid, sched_extend_luids): Declare.
14143 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14144 declarations.
14145
14146 2011-05-27 Richard Guenther <rguenther@suse.de>
14147
14148 PR middle-end/49177
14149 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14150 A CMP B ? (T) true : (T) false for non-integral types T again.
14151
14152 2011-05-27 Jan Hubicka <jh@suse.cz>
14153
14154 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14155 so 0 means NULL string.
14156 (lto_output_string_with_length): ... here.
14157 (lto_output_string, output_string_cst, output_identifier): Update
14158 handling of NULL strings.
14159 (lto_output_location_bitpack): New function.
14160 (lto_output_location): Use it.
14161 (lto_output_tree_ref): Use output_record_start.
14162 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14163 len values.
14164 * lto-streamer-in.c (string_for_index): Break out from ...; offset
14165 values by 1.
14166 (input_string_internal): ... here;
14167 (input_string_cst, input_identifier, lto_input_string): Update handling
14168 of NULL strings.
14169 (lto_input_location_bitpack): New function
14170 (lto_input_location): Use it.
14171 (unpack_ts_type_common_value_fields): Pack align & alias in var len
14172 values.
14173 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14174 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14175 (bp_pack_value): Sanity check the value range.
14176 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14177 New functions.
14178 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14179 New functions.
14180
14181 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
14182
14183 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14184 call_arg_location instructions down the floor.
14185
14186 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
14187
14188 PR rtl-optimization/49154
14189 * ira.c (setup_pressure_classes): Process class without sublcasses
14190 as a candidate for pressure classes.
14191
14192 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
14193
14194 PR rtl-optimization/48575
14195 * genrecog.c (position_type): New enum.
14196 (position): New structure.
14197 (decision): Use position structure instead of a string.
14198 (root_pos, peep2_insn_pos_list): New variables.
14199 (next_position, compare_positions): New functions.
14200 (new_decision): Use position structures instead of strings.
14201 (maybe_both_true): Likewise.
14202 (change_state): Likewise.
14203 (write_tree): Likewise.
14204 (make_insn_sequence): Likewise.
14205
14206 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14207
14208 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14209 TS_BASE instead of TS_COMMON.
14210 (find_decls_types_r): Check for TS_TYPED structure before looking at
14211 TREE_TYPE.
14212 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14213 Add chain field.
14214 (BLOCK_CHAIN): Use new chain field.
14215
14216 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
14217
14218 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14219 moves expensive on Power7 also.
14220
14221 2011-05-26 Richard Guenther <rguenther@suse.de>
14222
14223 * fold-const.c (fold_unary_loc): Remove bogus code.
14224
14225 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
14226
14227 * tree.h (struct tree_identifier): Inherit from tree_typed, not
14228 tree_common.
14229 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14230 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14231 TS_BASE instead of TS_COMMON.
14232 * varasm.c (assemble_name): Remove assert.
14233
14234 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14235
14236 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14237 substituted first.
14238 * libgcc-std.ver: Delete file.
14239
14240 2011-05-26 Richard Guenther <rguenther@suse.de>
14241
14242 PR tree-optimization/48702
14243 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14244 only when we know the base address is within bounds.
14245 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14246 assume the base address of TARGET_MEM_REFs is in bounds.
14247
14248 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14249
14250 PR target/49099
14251 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14252 declaration in TARGET_SOLARIS.
14253
14254 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
14255
14256 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14257 The instruction is then expanded explicitly.
14258 (supported_compare): Callable instruction.
14259 (compare): Likewise.
14260
14261 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14262
14263 PR c++/49165
14264 * gimplify.c (shortcut_cond_r): Don't special case
14265 COND_EXPRs if they have void type on one of their arms.
14266
14267 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
14268
14269 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14270 to reduce duplication, and to achieve a slightly more logical order
14271 of operations.
14272
14273 2011-05-26 Jakub Jelinek <jakub@redhat.com>
14274
14275 PR tree-optimization/49161
14276 * tree-vrp.c (struct case_info): New type.
14277 (compare_case_labels): Sort case_info structs instead of
14278 trees, and not primarily by CASE_LABEL uids but by
14279 label_for_block indexes.
14280 (find_switch_asserts): Put case labels into struct case_info
14281 array instead of TREE_VEC, adjust sorting, compare label_for_block
14282 values instead of CASE_LABELs.
14283
14284 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14285
14286 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14287 ("orndi3_neon"): Likewise.
14288 ("bic<mode>3_neon"): Likewise.
14289
14290 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
14291
14292 PR tree-optimization/49038
14293 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14294 Ensure at least one epilogue iteration if required by data
14295 accesses with gaps.
14296 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14297 to mark loops that require peeling for gaps.
14298 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14299 (vect_get_known_peeling_cost): Take peeling for gaps into
14300 account.
14301 (vect_transform_loop): Generate epilogue if required by data
14302 access with gaps.
14303 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14304 loop as requiring an epilogue if there are gaps in the end of
14305 the strided group.
14306
14307 2011-05-25 Ian Lance Taylor <iant@google.com>
14308
14309 * godump.c (go_format_type): Output the first field with a usable
14310 Go type, if any.
14311
14312 2011-05-25 Ian Lance Taylor <iant@google.com>
14313
14314 * godump.c (go_format_type): Check for invalid type names, pointer
14315 target types, and struct field types.
14316
14317 2011-05-25 Jason Merrill <jason@redhat.com>
14318
14319 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14320
14321 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
14322
14323 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14324
14325 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14326
14327 * config/i386/i386.md (*movqi_extv_1)): Put back
14328 "register_operand" check in "type" calculation.
14329 (*movqi_extzv_2): Likewise.
14330
14331 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14332
14333 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14334
14335 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14336
14337 PR bootstrap/49160
14338 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14339 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14340 __divxc3, __divtc3): Wrap definitions in #ifndef.
14341
14342 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14343
14344 PR target/49142
14345 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14346 "register_operand" check and replace q_regs_operand with
14347 QIreg_operand in "type" calculation.
14348 (*movqi_extv_1): Likewise.
14349 (*movqi_extzv_2_rex64): Likewise.
14350 (*movqi_extzv_2): Likewise.
14351
14352 * config/i386/predicates.md (QIreg_operand): New.
14353
14354 2011-05-25 Richard Guenther <rguenther@suse.de>
14355
14356 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14357 type-based offset disambiguation, streamline MEM_REF and
14358 TARGET_MEM_REF handling.
14359
14360 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
14361
14362 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14363 (bdesc_special_args): Add pause intrinsic.
14364
14365 * config/i386/i386.md (UNSPEC_PAUSE): New.
14366 (pause): Likewise.
14367 (*pause): Likewise.
14368 * config/i386/ia32intrin.h (__pause): Likewise.
14369
14370 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14371 pause intrinsic.
14372
14373 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14374
14375 PR tree-optimization/46728
14376 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14377 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14378
14379 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
14380
14381 * tree.h (struct tree_exp): Inherit from struct tree_typed.
14382 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14383 instead of TS_COMMON.
14384
14385 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
14386
14387 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14388 LIBGCC2_GNU_PREFIX is defined.
14389 (__N): New macro.
14390 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14391 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14392 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14393 __clz_tab): Define using __N.
14394 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14395 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14396 * target.def (libfunc_gnu_prefix): New hook.
14397 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14398 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14399 * doc/tm.texi: Regenerate.
14400 * system.h (LIBGCC2_GNU_PREFIX): Poison.
14401 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14402 account.
14403 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14404 (init_optabs): Likewise for the bswap libfuncs.
14405 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14406 and divide.
14407 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14408 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14409 * libgcc-std.ver: Remove.
14410 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14411 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14412 libgcc-std.ver.
14413 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14414 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14415 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14416 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14417 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14418 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14419 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14420 * config/fixed-bit.h (FIXED_OP): Define differently depending on
14421 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14422 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14423
14424 2011-05-25 Jan Hubicka <jh@suse.cz>
14425
14426 * lto-streamer-out.c (output_record_start): Use lto_output_enum
14427 (lto_output_tree): Use output_record_start.
14428 * lto-streamer-in.c (input_record_start): Use lto_input_enum
14429 (lto_get_pickled_tree): Use input_record_start.
14430 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14431 (lto_value_range_error): New function.
14432 * lto-streamer.h (lto_value_range_error): Declare.
14433 (lto_output_int_in_range, lto_input_int_in_range): New functions.
14434 (lto_output_enum, lto_input_enum): New macros.
14435
14436 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
14437
14438 * common.opt (flag_stack_usage_info): New variable.
14439 (-Wstack-usage): New option.
14440 * doc/invoke.texi (Warning options): Document -Wstack-usage.
14441 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14442 <OPT_fstack_usage>: Likewise.
14443 * toplev.c (output_stack_usage): Handle -Wstack-usage.
14444 * calls.c (expand_call): Test flag_stack_usage_info variable instead
14445 of flag_stack_usage.
14446 (emit_library_call_value_1): Likewise.
14447 * explow.c (allocate_dynamic_stack_space): Likewise.
14448 * function.c (instantiate_virtual_regs ): Likewise.
14449 (prepare_function_start): Likewise.
14450 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14451 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14452 * config/arm/arm.c (arm_expand_prologue): Likewise.
14453 (thumb1_expand_prologue): Likewise.
14454 * config/avr/avr.c (expand_prologue): Likewise.
14455 * config/i386/i386.c (ix86_expand_prologue): Likewise.
14456 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14457 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14458 * config/mips/mips.c (mips_expand_prologue): Likewise.
14459 * config/pa/pa.c (hppa_expand_prologue): Likewise.
14460 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14461 * config/s390/s390.c (s390_emit_prologue): Likewise.
14462 * config/sh/sh.c (sh_expand_prologue): Likewise.
14463 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14464 * config/spu/spu.c (spu_expand_prologue): Likewise.
14465
14466 2011-05-25 Richard Guenther <rguenther@suse.de>
14467
14468 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14469 (gimple_canonical_types_compatible_p): Likewise.
14470
14471 2011-05-25 Jan Hubicka <jh@suse.cz>
14472
14473 PR middle-end/49062
14474 * ipa.c (function_and_variable_visibility): Only add to same
14475 comdat group list if DECL_ONE_ONLY.
14476
14477 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
14478
14479 PR rtl-optimization/49014
14480 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14481
14482 2011-05-25 Jakub Jelinek <jakub@redhat.com>
14483
14484 PR target/49128
14485 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14486
14487 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14488
14489 PR rtl-optimization/48757
14490 * ira-build.c (loop_with_eh_edge_p): Rename to
14491 loop_with_complex_edge_p, check edges on complexity, make function
14492 conditional.
14493 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14494 conditional.
14495
14496 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14497
14498 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14499 force flag_ira_share_save_slots to 0.
14500
14501 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14502
14503 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14504 (vt_initialize): Set PROLOGUE_BB unconditionally.
14505 Add block comment about CFA_BASE_RTX machinery.
14506 Reset FP_CFA_OFFSET to -1 on all invalid paths.
14507 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14508
14509 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
14510
14511 PR objc/48187
14512 * c-parser.c (c_parser_objc_class_instance_variables): More robust
14513 parsing of syntax error in ObjC instance variable lists. In
14514 particular, avoid an infinite loop if there is a stray ']'.
14515 Updated error message.
14516
14517 2011-05-24 Ian Lance Taylor <iant@google.com>
14518
14519 * godump.c (go_define): Don't accept a string immediately after
14520 another operand.
14521
14522 2011-05-24 Ian Lance Taylor <iant@google.com>
14523
14524 * godump.c (struct godump_container): Add invalid_hash field.
14525 (go_format_type): Return false if type is found in invalid_hash.
14526 (go_output_typedef): Add invalid type to invalid_hash.
14527 (go_finish): Create and delete invalid_hash.
14528
14529 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14530
14531 PR tree-optimization/46728
14532 * tree-ssa-math-opts.c (powi_table): New.
14533 (powi_lookup_cost): New.
14534 (powi_cost): New.
14535 (powi_as_mults_1): New.
14536 (powi_as_mults): New.
14537 (gimple_expand_builtin_powi): New.
14538 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14539 (gate_cse_sincos): Remove sincos/cexp restriction.
14540
14541 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14542
14543 PR target/3746
14544 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14545 mips-tdump native.
14546 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14547 * mips-tdump.c: Likewise.
14548
14549 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
14550
14551 PR target/49128
14552 * config/i386/driver-i386.c (host_detect_local_cpu): Always
14553 add -mno-XXX. Handle FMA.
14554
14555 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14556
14557 PR rtl-optimization/48633
14558 * ira-build.c (loop_with_eh_edge_p): New function.
14559 (mark_loops_for_removal): Use it.
14560
14561 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
14562
14563 PR rtl-optimization/48971
14564 * ira.c (setup_pressure_classes): Don't check register move cost
14565 for classes with one registers. Don't add pressure class if there
14566 is a pressure class with the same available hard registers.
14567 Check contains_reg_of_mode. Fix a typo in collecting
14568 temp_hard_regset. Ignore hard registers not belonging to a class.
14569
14570 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
14571
14572 PR target/49133
14573 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14574
14575 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
14576 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14577
14578 PR gcov-profile/48845
14579 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14580
14581 2011-05-24 Richard Guenther <rguenther@suse.de>
14582
14583 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14584 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14585 (gimple_types_compatible_p_1): Adjust.
14586 (iterative_hash_canonical_type): Do not bother about complete vs.
14587 incomplete types.
14588 (gimple_canonical_types_compatible_p): Likewise.
14589
14590 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14591
14592 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14593
14594 2011-05-24 Richard Guenther <rguenther@suse.de>
14595
14596 PR bootstrap/49078
14597 * gimple.c (gimple_register_canonical_type): Revert
14598 previous change.
14599 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14600 does not for a tree for the case where it matters. Cache
14601 pointer-type alias-sets.
14602
14603 2011-05-24 Joseph Myers <joseph@codesourcery.com>
14604
14605 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14606 (OBJS): Remove options.o, opts-common.o and prefix.o.
14607 (OBJS-libcommon-target): New.
14608 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14609 (BACKEND): Include libcommon-target.a.
14610 (MOSTLYCLEANFILES): Include libcommon-target.a.
14611 (libcommon-target.a): New.
14612 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14613 prefix.o.
14614
14615 2011-05-23 Joseph Myers <joseph@codesourcery.com>
14616
14617 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
14618 parts of output shared with the driver.
14619 * optc-gen.awk: Don't generate parts of output not shared with the
14620 driver.
14621 * opth-gen.awk: Remove GCC_DRIVER conditionals.
14622 * doc/options.texi (SourcerInclude): Mention options-save.c.
14623 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14624 (OBJS): Add options-save.o.
14625 (options-save.c, options-save.o): New.
14626 (options.o): Update dependencies.
14627 (gcc-options.o): Remove.
14628 (mostlyclean): Remove options-save.c.
14629
14630 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14631
14632 PR debug/49032
14633 * dbxout.c: Include cgraph.h.
14634 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14635 and without value expr, return NULL if no varpool node exists for
14636 it or if it is not needed.
14637 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14638
14639 PR c/49120
14640 * c-decl.c (start_decl): Convert expr to void_type_node.
14641
14642 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
14643
14644 PR rtl-optimization/48826
14645 * emit-rtl.c (try_split): When splitting a call that is followed
14646 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14647
14648 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14649
14650 * cfgexpand.c (expand_debug_expr): For unused non-addressable
14651 parameters passed in memory prefer using DECL_INCOMING_RTL over
14652 the pseudos it will be copied into.
14653
14654 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
14655
14656 PR target/47315
14657 * config/i386/i386.c (ix86_option_override_internal): Save the
14658 initial options after checking vzeroupper.
14659
14660 2011-05-23 David Li <davidxl@google.com>
14661
14662 PR tree-optimization/48988
14663 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14664 Initialize has_valid_pred for each pred chain.
14665
14666 2011-05-23 Richard Guenther <rguenther@suse.de>
14667
14668 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14669 (iterative_hash_gimple_type): Always hash type names.
14670
14671 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
14672
14673 * c-typeck.c (build_function_call_vec): Tweak call to
14674 check_function_arguments.
14675
14676 2011-05-23 Richard Guenther <rguenther@suse.de>
14677
14678 PR tree-optimization/49115
14679 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14680 is not necessarily carried out, do not claim it kills the ref.
14681 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14682
14683 2011-05-23 Richard Guenther <rguenther@suse.de>
14684
14685 PR middle-end/15419
14686 * builtins.c (fold_builtin_memory_op): Be less restrictive about
14687 what pointer types we accept for folding.
14688
14689 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14690
14691 * gthr-gnat.c: Remove.
14692 * gthr-gnat.h: Remove.
14693 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14694 * config/t-freebsd (LIB2ADDEH): Likewise.
14695 * config/t-linux (LIB2ADDEH): Likewise.
14696 * config/t-sol2 (LIB2ADDEH): Likewise.
14697 * config/ia64/t-vms (LIB2ADDEH): Likewise.
14698 * configure.ac (target_thread_file): Remove gnat handling.
14699 * configure: Regenerate.
14700 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14701
14702 2011-05-23 Tristan Gingold <gingold@adacore.com>
14703 Eric Botcazou <ebotcazou@adacore.com>
14704
14705 * gcov.c (create_file_names): If no object directory is specified,
14706 keep the directory of the file.
14707
14708 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14709
14710 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14711 * configure: Regenerate.
14712
14713 2011-05-23 Jakub Jelinek <jakub@redhat.com>
14714
14715 PR middle-end/48973
14716 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14717 failed and the comparison has a single bit signed type, use
14718 constm1_rtx instead of const1_rtx for true value.
14719 (do_store_flag): If ops->type is single bit signed type, disable
14720 signel bit test optimization and pass -1 instead of 1 as last
14721 parameter to emit_store_flag_force.
14722
14723 2011-05-23 Tom de Vries <tom@codesourcery.com>
14724
14725 PR target/45098
14726 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14727 function.
14728 (infer_loop_bounds_from_undefined): Use new function.
14729
14730 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14731
14732 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14733 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
14734 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14735 and -O0 otherwise.
14736 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14737
14738 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14739
14740 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14741 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14742 returns true.
14743
14744 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
14745
14746 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14747
14748 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14749
14750 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14751 UNSPEC_MOVE_PIC pattern.
14752
14753 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
14754
14755 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14756 (sparc-*-rtems*): Likewise.
14757 (sparc64-*-elf*): Likewise.
14758 (sparc64-*-rtems*): Likewise.
14759 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
14760 * config/sparc/t-crtin: New file.
14761 * config/sparc/t-sol2 (crti.o): Delete rule.
14762 (crtn.o): Likewise.
14763 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14764 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14765 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14766 (ENDFILE_SPEC): Add crtn.o.
14767
14768 2011-05-22 Tom de Vries <tom@codesourcery.com>
14769
14770 PR middle-end/48689
14771 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14772 CODE_CONTAINS_STRUCT (TS_COMMON).
14773
14774 2011-05-22 Jakub Jelinek <jakub@redhat.com>
14775
14776 PR middle-end/49029
14777 * expmed.c (extract_fixed_bit_field): Test whether target can be used
14778 only after deciding which mode to use.
14779
14780 2011-05-22 Tom de Vries <tom@codesourcery.com>
14781
14782 PR target/45098
14783 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14784 for call to get_shiftadd_cost.
14785
14786 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
14787
14788 PR target/49104
14789 * config/i386/cpuid.h (bit_MMXEXT): New define.
14790
14791 2011-05-22 Nick Clifton <nickc@redhat.com>
14792
14793 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14794 initialisation of non-existant args[2] element. Use args[] array
14795 not arg[] array to pass arguments to build_function_type_list.
14796
14797 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
14798
14799 PR tree-optimization/49087
14800 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14801
14802 2011-05-21 Jason Merrill <jason@redhat.com>
14803
14804 PR c++/49092
14805 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14806 static storage duration.
14807
14808 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14809
14810 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14811 frame pointer.
14812
14813 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
14814
14815 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14816 false if there are call-saved registers here...
14817 (sparc_can_use_return_insn_p): ...but here instead.
14818 (save_or_restore_regs): Fix thinko.
14819 (sparc_expand_prologue): Use current_function_is_leaf.
14820 (sparc_frame_pointer_required): Likewise.
14821
14822 2011-05-21 Nick Clifton <nickc@redhat.com>
14823
14824 PR target/49098
14825 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14826
14827 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
14828
14829 * gengtype.c (walk_type): Implemented "atomic" GTY option.
14830 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14831
14832 2011-05-21 Joseph Myers <joseph@codesourcery.com>
14833
14834 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
14835 * optc-gen.awk: Move common code to opt-read.awk.
14836 * opth-gen.awk: Likewise.
14837 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14838
14839 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
14840
14841 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14842
14843 2011-05-20 Tom de Vries <tom@codesourcery.com>
14844
14845 PR target/45098
14846 * tree-ssa-loop-ivopts.c: Include expmed.h.
14847 (get_shiftadd_cost): New function.
14848 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
14849
14850 2011-05-20 Jakub Jelinek <jakub@redhat.com>
14851
14852 PR bootstrap/49086
14853 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14854 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14855
14856 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14857
14858 * Makefile.in: Update comment referring to $(OBJS-common).
14859
14860 2011-05-20 Ian Lance Taylor <iant@google.com>
14861
14862 * godump.c (go_output_typedef): Put enum constants in the macro
14863 hash table to avoid duplicate Go const definitions.
14864
14865 2011-05-20 Joseph Myers <joseph@codesourcery.com>
14866
14867 * Makefile.in (LIBDEPS): Add libcommon.a.
14868 (LIBS): Likewise.
14869 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
14870 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
14871 pretty-print.o and version.o.
14872 (OBJS-libcommon): New.
14873 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
14874 (BACKEND): Add libcommon.a.
14875 (MOSTLYCLEANFILES): Likewise.
14876 (libcommon.a): New.
14877 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14878 (cpp$(exeext)): Likewise.
14879 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
14880 pretty-print.o and input.o.
14881 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
14882 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
14883 (errors.o): Remove.
14884 (mips-tfile): Don't explicitly use version.o.
14885 (mips-tdump): Likewise.
14886 (gcov.o): Depend on $(DIAGNOSTIC_H).
14887 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
14888 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
14889 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
14890 * gcov-dump.c: Include intl.h and diagnostic.h.
14891 (main): Initialize diagnostics.
14892 * gcov.c: Include diagnostic.h.
14893 (fnotice): Remove.
14894 (main): Initialize diagnostics.
14895 * lto-wrapper.c: Include diagnostic.h.
14896 (main): Initialize diagnostics.
14897
14898 2011-05-20 Michael Matz <matz@suse.de>
14899
14900 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
14901
14902 2011-05-20 Michael Matz <matz@suse.de>
14903 Richard Guenther <rguenther@suse.de>
14904
14905 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
14906 use lto_streamer_cache_append directly instead of returning a VEC.
14907 (preload_common_node): Remove.
14908 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
14909 track seen nodes.
14910 (lto_streamer_cache_create): Call lto_preload_common_nodes.
14911
14912 2011-05-20 Richard Guenther <rguenther@suse.de>
14913
14914 PR tree-optimization/49079
14915 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
14916 MEM_REFs correctly for the trailing array access detection.
14917 Special case constants the same way as decls for overall size
14918 constraining.
14919
14920 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
14921
14922 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
14923 argument expansion.
14924
14925 2011-05-20 Jakub Jelinek <jakub@redhat.com>
14926
14927 PR tree-optimization/49073
14928 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
14929 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
14930 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
14931
14932 2011-05-20 Richard Guenther <rguenther@suse.de>
14933
14934 PR middle-end/48849
14935 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
14936 of pointer types the same way the middle-end does.
14937
14938 2011-05-20 Richard Guenther <rguenther@suse.de>
14939
14940 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
14941 or pointer-to chains. Delay all fixup to uniquify_nodes.
14942
14943 2011-05-19 Quentin Neill <quentin.neill@amd.com>
14944
14945 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
14946 (fma4_fmaddsub): Likewise
14947
14948 2011-05-19 Jan Hubicka <jh@suse.cz>
14949
14950 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
14951 (GIMPLE_TYPE_PAIR_SIZE): New macro.
14952 (type_pair_cache): New static var.
14953 (lookup_type_pair): Use fixed sized custom hash; make inline.
14954 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
14955 calls of lookup_type_pair.
14956 (print_gimple_types_stats): Remove cache stats.
14957 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
14958 and gtc_ob.
14959
14960 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
14961
14962 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
14963 when TARGET_RDRND is active.
14964 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
14965 Generate dummy SImode target register when target is NULL.
14966
14967 2011-05-19 Joseph Myers <joseph@codesourcery.com>
14968
14969 * config/arm/arm-fpus.def: New.
14970 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
14971 arm-fpus.def.
14972 * config/arm/arm-tables.opt: Regenerate.
14973 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
14974 (arm_option_override): Don't decode FPU name to string here.
14975 * config/arm/arm.opt (mfpu=): Use Enum.
14976 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
14977 Update dependencies.
14978
14979 2011-05-19 Joseph Myers <joseph@codesourcery.com>
14980
14981 * collect2.c: Include diagnostic.h.
14982 (fatal_perror, fatal, error, fancy_abort): Remove.
14983 (main): Set progname. Call xmalloc_set_program_name and
14984 diagnostic_initialize.
14985 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
14986 scan_libraries, resolve_lib_name): Call fatal_error instead of
14987 fatal and fatal_perror.
14988 * collect2.h (error, fatal, fatal_perror): Don't declare.
14989 * tlink.c: Include diagnostic-core.h.
14990 (recompile_files): Call fatal_error instead of fatal_perror.
14991 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
14992 pretty-print.o and input.o.
14993 (collect2.o, tlink.o): Update dependencies.
14994
14995 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14996
14997 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
14998
14999 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15000
15001 PR target/40483
15002 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15003 COMDAT group syntax, both SPARC and x86 variants.
15004 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15005 * configure: Regenerate.
15006 * config/sol2.h (TARGET_SOLARIS): Define.
15007 (PUSHSECTION_FORMAT): Remove.
15008 (SECTION_NAME_FORMAT): Define.
15009 * config/sol2.c: Include hashtab.h.
15010 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15011 expansion, using SECTION_NAME_FORMAT.
15012 (solaris_comdat_htab): New variable.
15013 (struct comdat_entry): Define.
15014 (comdat_hash): New function.
15015 (comdat_eq): New function.
15016 (solaris_elf_asm_comdat_section): New function.
15017 (solaris_define_comdat_signature): New function.
15018 (solaris_code_end): New function.
15019 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15020 (solaris_code_end): Declare.
15021 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15022 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15023 solaris_code_end.
15024 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15025 Remove ATTRIBUTE_UNUSED.
15026 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15027 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15028 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15029 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15030 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15031 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15032 (PUSHSECTION_FORMAT): Remove.
15033 (SECTION_NAME_FORMAT): Redefine.
15034
15035 2011-05-19 Kai Tietz <ktietz@redhat.com>
15036
15037 * tree-cfg.c (verify_gimple_assign_binary): Barf on
15038 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15039 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15040
15041 2011-05-19 Anatoly Sokolov <aesok@post.ru>
15042 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15043
15044 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15045
15046 2011-05-19 Richard Guenther <rguenther@suse.de>
15047
15048 PR middle-end/48985
15049 * tree-object-size.c (addr_object_size): If the pointed-to
15050 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15051
15052 2011-05-19 Richard Guenther <rguenther@suse.de>
15053
15054 * gimple.c (gimple_types_compatible_p_1): Compare names of
15055 the types themselves.
15056 (iterative_hash_gimple_type): And hash them that way.
15057 (gimple_register_type_1): If we register a main variant properly
15058 initialize the leader to ourselves.
15059
15060 2011-05-19 Tom de Vries <tom@codesourcery.com>
15061
15062 PR target/45098
15063 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15064 get_loop_invariant_expr_id.
15065 (get_loop_invariant_expr_id): Use get_expr_id.
15066 (parm_decl_cost): New function.
15067 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15068 Improve bound cost estimation. Use different inv_expr_id for elim and
15069 express cases.
15070
15071 2011-05-19 Tom de Vries <tom@codesourcery.com>
15072
15073 PR target/45098
15074 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15075 cost_base.cost == 0.
15076
15077 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
15078
15079 PR target/49002
15080 * config/i386/sse.md
15081 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15082 load cast.
15083
15084 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15085
15086 PR tree-optimization/49039
15087 * tree-vrp.c (extract_range_from_binary_expr): For
15088 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15089 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15090
15091 2011-05-18 Tom de Vries <tom@codesourcery.com>
15092
15093 PR target/45098
15094 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15095
15096 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
15097
15098 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15099 (*tls_global_dynamic_64): Ditto.
15100 (*tls_local_dynamic_base_32_gnu): Ditto.
15101 (*tls_local_dynamic_base_64): Ditto.
15102 (tls_initial_exec_64_sun): Ditto.
15103
15104 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
15105
15106 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15107 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15108 bf592-none.
15109 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15110 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15111 * config/bfin/bfin.c (bfin_cpus): Add bf592.
15112 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15113 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15114 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15115 * config/bfin/elf.h (LIB_SPEC): Add bf592.
15116
15117 2011-05-18 Joseph Myers <joseph@codesourcery.com>
15118
15119 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15120 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15121 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15122 target_thread_pointer, arm_structure_size_boundary, struct
15123 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15124 struct abi_name, arm_all_abis): Remove.
15125 (arm_option_override) Don't process most enumerated option values here.
15126 Don't process target_fpe_name here. Work with integer not string for
15127 structure size boundary; use separate diagnostics for each case.
15128 * config/arm/arm.h (enum float_abi_type, enum
15129 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15130 to arm-opts.h.
15131 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15132 arm_structure_size_boundary): Remove.
15133 * config/arm/arm.opt (mabi=): Use Enum and Init.
15134 (arm_abi_type): New Enum and EnumValue entries.
15135 (mfloat-abi=): Use Enum and Init.
15136 (float_abi_type): New Enum and EnumValue entries.
15137 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15138 (mfp16-format=): Use Enum and Init.
15139 (arm_fp16_format_type): New Enum and EnumValue entries.
15140 (mstructure-size-boundary=): Use UInteger and Init.
15141 (mtp=): Use Enum and Init.
15142 (arm_tp_type): New Enum and EnumValue entries.
15143
15144 2011-05-18 Richard Guenther <rguenther@suse.de>
15145
15146 PR tree-optimization/49018
15147 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15148 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15149 gimple_has_side_effects.
15150
15151 2011-05-18 Richard Guenther <rguenther@suse.de>
15152
15153 * gimple.c (gimple_register_type_1): New function, split out from ...
15154 (gimple_register_type): ... here. Avoid infinite recursion.
15155
15156 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15157
15158 PR tree-optimization/41881
15159 * tree-vectorizer.h (struct _loop_vec_info): Add new field
15160 reduction_chains along with a macro for its access.
15161 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15162 (destroy_loop_vec_info): Free reduction chains.
15163 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15164 (vect_is_slp_reduction): New function.
15165 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15166 (vect_create_epilog_for_reduction): Support SLP reduction chains.
15167 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15168 definition types for reduction chains.
15169 (vect_supported_load_permutation_p): Don't allow permutations for
15170 reduction chains.
15171 (vect_analyze_slp_instance): Support reduction chains.
15172 (vect_analyze_slp): Try to build SLP instance from reduction chains.
15173 (vect_get_constant_vectors): Handle reduction chains.
15174 (vect_schedule_slp_instance): Mark the first statement of the
15175 reduction chain as reduction.
15176
15177 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
15178
15179 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15180 names for group elements access.
15181 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15182 reduction chains as well. Remove data reference and interleaving
15183 related words from the fields names.
15184 * tree-vect-loop.c (vect_transform_loop): Use new names for group
15185 elements access.
15186 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15187 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15188 vect_update_interleaving_chain, vect_same_range_drs,
15189 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15190 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15191 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15192 vect_analyze_group_access, vect_analyze_data_ref_access,
15193 vect_create_data_ref_ptr, vect_transform_strided_load,
15194 vect_record_strided_load_vectors): Likewise.
15195 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15196 vect_model_load_cost, vectorizable_store, vectorizable_load,
15197 vect_remove_stores, new_stmt_vec_info): Likewise.
15198 * tree-vect-slp.c (vect_build_slp_tree,
15199 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15200
15201 2011-05-18 Richard Guenther <rguenther@suse.de>
15202
15203 PR middle-end/48989
15204 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15205 operand verification.
15206 (verify_gimple_assign_binary): Likewise.
15207 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15208 to non-1-precision BOOLEAN_TYPEs.
15209
15210 2011-05-18 Tom de Vries <tom@codesourcery.com>
15211
15212 PR target/45098
15213 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15214
15215 2011-05-18 Jakub Jelinek <jakub@redhat.com>
15216
15217 PR tree-optimization/49000
15218 * tree-ssa.c (execute_update_addresses_taken): Call
15219 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
15220 be rewritten and decl has been marked for renaming, reset
15221 the debug stmt.
15222
15223 2011-05-17 Joseph Myers <joseph@codesourcery.com>
15224
15225 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15226 enum_opts_set when testing if attributes have set -mfpmath=.
15227
15228 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15229
15230 * config/mips/mips.c (mips_handle_option): Remove unused variable.
15231
15232 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15233
15234 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15235 info->entry with 0
15236 * tree-inline.c (maybe_inline_call_in_expr): Initialize
15237 id.transform_lang_insert_block with NULL.
15238
15239 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
15240
15241 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15242 (output_fp_compare): Change args 3 and 4 to bool.
15243 (ix86_expand_call): Change arg 6 to bool.
15244 (ix86_attr_length_immediate_default): Change arg 2 to bool.
15245 (ix86_attr_length_vex_default): Change arg 3 to bool.
15246 * config/i386/i386.md: Update all uses.
15247 * config/i386/i386.c: Ditto.
15248 (ix86_flags_dependent): Change return type to bool.
15249
15250 2011-05-17 Richard Guenther <rguenther@suse.de>
15251
15252 * gimple.c (type_hash_pair_compare): Fix comparison.
15253
15254 2011-05-17 Richard Guenther <rguenther@suse.de>
15255
15256 * gimple.c (iterative_hash_gimple_type): Simplify singleton
15257 case some more, fix final hash value of the non-singleton case.
15258
15259 2011-05-17 Richard Guenther <rguenther@suse.de>
15260
15261 PR bootstrap/49013
15262 Revert
15263 2011-05-16 Richard Guenther <rguenther@suse.de>
15264
15265 * gimple.c (gimple_types_compatible_p_1): Use names of the
15266 type itself, not its main variant.
15267 (iterative_hash_gimple_type): Likewise.
15268
15269 2011-05-17 Richard Guenther <rguenther@suse.de>
15270
15271 * gimple.c (gimple_register_canonical_type): Use the main-variant
15272 leader for computing the canonical type.
15273
15274 2011-05-17 Nick Clifton <nickc@redhat.com>
15275
15276 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15277 moves.
15278
15279 * config/rx/rx.md: Add peephole to remove redundant extensions
15280 after loads.
15281 (bitset_in_memory): Use rx_restricted_mem_operand.
15282 (bitinvert_in_memory): Likewise.
15283 (bitclr_in_memory): Likewise.
15284
15285 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
15286 Nick Clifton <nickc@redhat.com>
15287
15288 * config/rx/rx.md: Add peepholes to match a register move followed
15289 by a comparison of the moved register. Replace these with an
15290 addition of zero that does both actions in one instruction.
15291
15292 2011-05-17 Jakub Jelinek <jakub@redhat.com>
15293
15294 PR target/48986
15295 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15296 predicate to allow CONST_INT.
15297 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15298
15299 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15300
15301 * opts-common.c (opt_enum_arg_to_value): New.
15302 * opts.h (opt_enum_arg_to_value): Declare.
15303 * config/i386/i386.opt (fpmath): Remove.
15304 (mfpmath=): Use Enum, Init and Save.
15305 (fpmath_unit): New Enum and EnumValue entries.
15306 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15307 name for function fpmath state.
15308 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15309 * config/i386/i386.c: Include diagnostic.h.
15310 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15311 (ix86_target_string): Take enum fpmath_unit value instead of string.
15312 (ix86_debug_options): Update call to ix86_target_string.
15313 (ix86_option_override_internal): Don't process fpmath strings here.
15314 (x86_function_specific_save, ix86_function_specific_restore):
15315 Don't handle fpmath state specially.
15316 (ix86_function_specific_print): Pass fpmath state to
15317 ix86_target_string instead of printing in this function.
15318 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15319 Handle enum attributes.
15320 (IX86_ATTR_ENUM, ix86_opt_enum): New.
15321 (ix86_valid_target_attribute_tree): Update option_strings
15322 handling. Handle fpmath as enum option.
15323 (ix86_can_inline_p): Update field names for function fpmath state.
15324 (ix86_expand_builtin): Update call to ix86_target_string.
15325 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15326 (ix86_fpmath): Remove.
15327 * config/i386/t-i386 (i386.o): Update dependencies.
15328
15329 2011-05-16 Joseph Myers <joseph@codesourcery.com>
15330
15331 PR preprocessor/48677
15332 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15333 from decoded_options[0], not from itself.
15334
15335 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
15336
15337 * config/i386/constraints.md (z): New constraint.
15338 * config/i386/i386.c (c): New mode attribute.
15339 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15340 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15341 constraint for operand 0.
15342 (*call_vzeroupper): Ditto.
15343 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
15344 (*call_rex64_ms_sysv_vzeroupper): Ditto.
15345 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15346 Use "lzm" constraint for operand 0.
15347 (*call_pop_vzeroupper): Ditto.
15348 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15349 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
15350 constraint for operand 0.
15351 (*sibcall_vzeroupper): Ditto.
15352 (*sibcall_rex64_ms_sysv): Ditto.
15353 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15354 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15355 *sibcall_pop_1. Use "Uz" constraint for operand 0.
15356 (*sibcall_pop_vzeroupper): Ditto.
15357 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15358 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15359 mode iterator. Use "<c>zm" constraint for operand 1.
15360 (*call_value_vzeroupper): Ditto.
15361 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
15362 for operand 1.
15363 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15364 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15365 *call_value_pop_1. Use "lzm" constraint for operand 1.
15366 (*call_value_pop_vzeroupper): Ditto.
15367 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15368 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15369 mode iterator. Use "Uz" constraint for operand 1.
15370 (*sibcall_value_vzeroupper): Ditto.
15371 (*sibcall_value_rex64_ms_sysv): Ditto.
15372 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15373 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
15374 constraint for operand 1.
15375 (*sibcall_value_pop_vzeroupper): Ditto.
15376 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15377 and "z" constraint for operand 2.
15378 (*tls_global_dynamic_32_gnu): Ditto.
15379 (*tls_local_dynamic_base_32_gnu): Ditto.
15380 (*tls_local_dynamic_base_64): Ditto.
15381 (*tls_local_dynamic_32_once): Ditto.
15382 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15383 Update all callers.
15384 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15385
15386 2011-05-16 Richard Guenther <rguenther@suse.de>
15387
15388 * gimple.c (gimple_types_compatible_p_1): Use names of the
15389 type itself, not its main variant.
15390 (iterative_hash_gimple_type): Likewise.
15391
15392 2011-05-16 Richard Guenther <rguenther@suse.de>
15393
15394 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15395 always visit pointer target and function result and argument types.
15396
15397 2011-05-16 Jason Merrill <jason@redhat.com>
15398
15399 PR c++/48999
15400 * tree-inline.c (copy_statement_list): Put back recursion.
15401
15402 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15403
15404 PR target/27663
15405 PR target/41076
15406 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15407 * config/avr/avr.md ("*ior<mode>qi.byte0",
15408 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15409
15410 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
15411
15412 PR target/45099
15413 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15414 register is needed for a function argument.
15415
15416 2011-05-16 Richard Guenther <rguenther@suse.de>
15417
15418 * gimple.c (struct type_hash_pair): New type.
15419 (type_hash_pair_compare): New function.
15420 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15421
15422 2011-05-16 Revital Eres <revital.eres@linaro.org>
15423
15424 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15425
15426 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15427
15428 * config/i386/i386.md (floating point move splitters): Fix
15429 usage of standard_80387_constant_p.
15430 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15431
15432 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
15433
15434 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15435
15436 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
15437
15438 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15439 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15440 (tree_ssa_lim_finalize): Likewise.
15441
15442 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
15443
15444 * config/i386/constraint.md (Yd, Yx): New register constraints.
15445 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
15446 Yd conditional register constraint.
15447 (*movtf_internal): Use standard_sse_constant_opcode.
15448 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
15449 Yx conditional register constraint.
15450 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
15451 Yd conditional register constraint. Use standard_sse_constant_p to
15452 check for valid SSE constants and call standard_sse_constant_opcode to
15453 output SSE insn.
15454 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15455 constants and call standard_sse_constant_opcode to output SSE insn.
15456 * config/i386/i386.c (ix86_option_ovverride_internal): Set
15457 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
15458 optimize_size is set.
15459 (standard_sse_constant_opcode): Output conditional AVX insn templates.
15460
15461 2011-05-14 Tobias Burnus <burnus@net-b.de>
15462
15463 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15464
15465 2011-05-13 Martin Jambor <mjambor@suse.cz>
15466
15467 * ipa-prop.c (ipa_cst_from_jfunc): New function.
15468 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15469 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15470 (evaluate_conditions_for_ipcp_clone): Removed.
15471 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15472 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15473 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15474
15475 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
15476
15477 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15478 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15479 lieu of MAY_HAVE_DEBUG_STMTS.
15480 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15481 debug statements if !MAY_HAVE_DEBUG_STMTS.
15482
15483 2011-05-13 Martin Thuresson <martint@google.com>
15484
15485 PR gcov-profile/47793
15486 * libgcov.c (gcov_exit): Support relative profile paths.
15487 * doc/invoke.texi (-fprofile-dir): Update for above change.
15488
15489 2011-05-13 Richard Guenther <rguenther@suse.de>
15490
15491 * gimple.c (gimple_canonical_types_compatible_p): Do not use
15492 type-pair caching, do not compare hashes.
15493
15494 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
15495
15496 PR middle-end/48965
15497 * tree-cfg.c (edge_to_cases_cleanup): Return true.
15498 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15499
15500 2011-05-13 Kai Tietz <ktietz@redhat.com>
15501
15502 * gimplify.c (gimplify_expr): Make sure operand is boolified.
15503 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15504 compatible type for TRUTH_NOT_EXPR.
15505
15506 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
15507
15508 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15509 (ix86_hard_regno_mode_ok): Change return value to bool. Use
15510 can_create_pseudo_p ().
15511
15512 2011-05-13 Richard Guenther <rguenther@suse.de>
15513
15514 PR lto/48978
15515 * gimple.c (iterative_hash_gimple_type): Revert change in
15516 pointer target and function result and argument hashing.
15517
15518 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
15519
15520 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15521 (*movxf_internal_nointeger): Ditto.
15522 (*movdf_internal_rex64): Ditto.
15523 (*movdf_internal): Ditto.
15524 (*movdf_internal_nointeger): Ditto.
15525 (*movsf_internal): Ditto.
15526 (sincos splitters): Use can_create_pseudo ().
15527
15528 2011-05-13 Joseph Myers <joseph@codesourcery.com>
15529
15530 * config/i386/i386-opts.h: New.
15531 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15532 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15533 ix86_section_threshold): Remove.
15534 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
15535 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15536 OPT_mbranch_cost_.
15537 (ix86_option_override_internal): Don't decode strings for options
15538 other than -march=, -mtune= and -mfpmath=. Don't allow for
15539 __attribute__ uses in remaining diagnostics for options with
15540 string arguments. Don't check for integer arguments being negative.
15541 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15542 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15543 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15544 ix86_branch_cost, ix86_section_threshold): Remove.
15545 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15546 HeaderInclude.
15547 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15548 but not Var.
15549 (masm=): Use Enum and Init.
15550 (asm_dialect): New Enum and EnumValue entries.
15551 (mbranch-cost=): Use UInteger.
15552 (mlarge-data-threshold=): Use UInteger and Init.
15553 (mcmodel=): Use Enum and Init.
15554 (cmodel): New Enum and EnumValue entries.
15555 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15556 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15557 mregparm=): Use UInteger.
15558 (mstringop-strategy=): Use Enum and Init.
15559 (stringop_alg): New Enum and EnumValue entries.
15560 (mtls-dialect=): Use Enum and Init.
15561 (tls_dialect): New Enum and EnumValue entries.
15562 (mabi=): Use Enum and Init.
15563 (calling_abi): New Enum and EnumValue entries.
15564 (mveclibabi=): Use Enum and Init.
15565 (ix86_veclibabi): New Enum and EnumValue entries.
15566
15567 2011-05-13 Nick Clifton <nickc@redhat.com>
15568
15569 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15570 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15571
15572 2011-05-13 Kai Tietz <ktietz@redhat.com>
15573
15574 PR middle-end/48984
15575 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15576 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15577 (gimple_boolify): Check for cast for boolean_type_node instead for
15578 BOOLEAN_TYPE.
15579
15580 2011-05-13 Richard Guenther <rguenther@suse.de>
15581
15582 PR tree-optimization/48172
15583 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15584 multiplying by number of iterations for equal step.
15585 (vect_create_cond_for_alias_checks): Likewise.
15586
15587 2011-05-13 Andreas Schwab <schwab@redhat.com>
15588
15589 * configure.ac: Use AS_HELP_STRING throughout.
15590 * configure: Regenerate.
15591
15592 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
15593
15594 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15595 (ix86_emit_restore_regs_using_mov): Likewise.
15596 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15597
15598 2011-05-12 Anatoly Sokolov <aesok@post.ru>
15599
15600 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15601 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15602 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15603 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15604 RTX_OK_FOR_OLO10_P): ...here.
15605 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15606 SYMBOLIC_CONST.
15607
15608 2011-05-12 Kai Tietz <ktietz@redhat.com>
15609
15610 * gimplify.c (gimple_boolify): Re-boolify expression
15611 arguments even if expression type is of kind BOOLEAN_TYPE.
15612 (gimplify_boolean_expr): Removed.
15613 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15614 and XOR. Additional take care that we keep expression's type.
15615 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15616 of TRUTH_AND|OR|XOR_EXPR.
15617
15618 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15619
15620 PR tree-optimization/48975
15621 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15622 on all bbs here and free and clear ifc_bbs at the end.
15623
15624 2011-05-12 Richard Guenther <rguenther@suse.de>
15625
15626 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15627 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
15628 until after simple checks.
15629 (gimple_types_compatible_p): Likewise.
15630 (iterative_hash_gimple_type): Always hash pointer targets
15631 and function return and argument types.
15632 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15633 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
15634 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15635 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
15636 completely in the simple compare section.
15637 (gimple_register_canonical_type): Query the cache again after
15638 registering.
15639
15640 2011-05-12 Richard Guenther <rguenther@suse.de>
15641
15642 PR tree-optimization/48172
15643 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15644 the number of iterations from the segment size calculation.
15645 (vect_create_cond_for_alias_checks): Adjust.
15646
15647 2011-05-12 Jakub Jelinek <jakub@redhat.com>
15648
15649 PR debug/48967
15650 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15651 if validate_subreg fails.
15652
15653 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
15654
15655 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15656 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15657 early.
15658
15659 2011-05-12 DJ Delorie <dj@redhat.com>
15660
15661 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15662 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15663 created builtin into rx_builtins array.
15664 (rx_builtin_decl): New function.
15665 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
15666
15667 2011-05-12 DJ Delorie <dj@redhat.com>
15668 Nick Clifton <nickc@redhat.com>
15669
15670 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15671 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15672 (rx_is_legitimate_address): Add pre-decrement and post-increment
15673 addressing in HImode and QImode. Fix test for out of range
15674 REG+INT addressing.
15675 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15676 (rx_align_for_label): Test label before extracting its usage count.
15677 (rx_adjust_insn_lengths): Fix selection of insn codes.
15678 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15679
15680 2011-05-11 Jason Merrill <jason@redhat.com>
15681
15682 * tree.c (type_hash_canon): Use struct tree_type_non_common.
15683
15684 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15685
15686 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15687 reindent the subsequent block.
15688
15689 2011-05-11 Satoru Takabayashi <satorux@google.com>
15690 Paul Pluzhnikov <ppluzhnikov@google.com>
15691
15692 * doc/install.texi (Configuration): Document --with-linker-hash-style.
15693 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15694 * config.in: Add LINKER_HASH_STYLE.
15695 * configure.ac: Add --with-linker-hash-style.
15696 * configure: Regenerate.
15697
15698 2011-05-11 Richard Guenther <rguenther@suse.de>
15699
15700 PR middle-end/48964
15701 * gimple.c (iterative_hash_canonical_type): Fix typo.
15702
15703 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
15704
15705 * config/i386/i386.c (legitimize_tls_address)
15706 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15707 expanders directly for TARGET_GNU2_TLS. Determine pic and
15708 __tls_get_addr symbol reference here. Update call to
15709 gen_tls_global_dynamic_{32,64} for added arguments.
15710 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15711 expanders directly for TARGET_GNU2_TLS. Determine
15712 __tls_get_addr symbol reference here. Update call to
15713 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
15714 unique UNSPEC REG_EQUIV to libcall block.
15715 (ix86_tls_get_addr): Declare static.
15716 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15717 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15718 Do not determine pic and __tls_get_addr symbol reference here. Do not
15719 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15720 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15721 (tls_global_dynamic_64): Add operand 2. Do not determine
15722 __tls_get_addr symbol reference here. Do not call
15723 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15724 (tls_local_dynamic_base64): Ditto for operand 1.
15725
15726 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
15727
15728 * function.c (expand_function_start): Initialize stack_check_probe_note
15729 only if the generic stack checking mechanism is used.
15730
15731 2011-05-11 Richard Guenther <rguenther@suse.de>
15732
15733 PR tree-optimization/15256
15734 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15735 (A & B) | C, combine (A op CST1) op CST2.
15736 (tree_ssa_forward_propagate_single_use_vars): Only bother to
15737 visit assigns that have uses.
15738
15739 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
15740
15741 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15742 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15743 (unpack_ts_type_common_value_fields): ...this. Update comment.
15744 (unpack_value_fields): Adjust for renaming.
15745 (lto_input_ts_type_tree_pointers): Split into...
15746 (lto_input_ts_type_common_tree_pointer): ...this and...
15747 (lto_input_ts_type_non_common_tree_pointers): ...this.
15748 (lto_input_tree_pointers): Adjust for above split.
15749 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15750 (pack_ts_type_common_value_fields): ...this. Update comment.
15751 (lto_output_ts_type_tree_pointers): Split into...
15752 (lto_output_ts_type_common_tree_pointers): ...this and...
15753 (lto_output_ts_type_non_common_tree_pointers): ...this.
15754 (lto_output_tree_pointers): Adjust for above split.
15755 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15756 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15757 * stor-layout.c (vector_type_mode): Adjust location of mode field.
15758 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15759 Define.
15760 (struct tree_type): Split into...
15761 (struct tree_type_common: ...this and...
15762 (struct tree_type_with_lang_specific): ...this and...
15763 (struct tree_type_non_common): ...this. Adjust accessor macros
15764 accordingly.
15765 (TYPE_VALUES_RAW): Define.
15766 (union tree_node): Update for above changes.
15767 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15768 TS_TYPE_NON_COMMON.
15769 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15770 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15771 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15772 * treestructu.def (TS_TYPE): Remove.
15773 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15774 Define.
15775
15776 2011-05-11 Jakub Jelinek <jakub@redhat.com>
15777
15778 PR debug/48159
15779 * tree-ssa.c (reset_debug_uses): New function.
15780 * tree-flow.h (reset_debug_uses): New prototype.
15781 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15782 * tree-loop-distribution.c (generate_loops_for_partition): Call
15783 reset_debug_uses on the stmts that will be removed. Keep around
15784 all debug stmts, don't count them as bits in partition bitmap.
15785 (generate_builtin): Don't count debug stmts or labels as bits in
15786 partition bitmap.
15787
15788 2011-05-11 Richard Guenther <rguenther@suse.de>
15789
15790 * gimple.c (gimple_type_hash_1): Merge with ...
15791 (gimple_type_hash): ... this.
15792 (gtc_visit): Remove mode parameter and simplify accordingly.
15793 (gimple_types_compatible_p_1): Likewise.
15794 (gimple_types_compatible_p): Likewise.
15795 (iterative_hash_gimple_type): Likewise.
15796 (visit): Likewise.
15797 (gimple_type_eq): Adjust.
15798
15799 2011-05-11 Revital Eres <revital.eres@linaro.org>
15800
15801 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15802 enters the branch create an anti edge in the opposite direction
15803 to prevent the creation of reg-moves.
15804 * modulo-sched.c: Adjust comment to reflect the fact we are
15805 scheduling closing branch.
15806 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15807 (stage_count): New field in struct partial_schedule.
15808 (calculate_stage_count): New function.
15809 (normalize_sched_times): Rename to reset_sched_times and handle
15810 incrementing the sched time of the nodes by a constant value
15811 passed as parameter.
15812 (duplicate_insns_of_cycles): Skip closing branch.
15813 (sms_schedule_by_order): Schedule closing branch.
15814 (ps_insn_find_column): Handle closing branch.
15815 (sms_schedule): Call reset_sched_times and adjust the code to
15816 support scheduling of the closing branch.
15817 (ps_insert_empty_row): Update calls to normalize_sched_times
15818 and rotate_partial_schedule functions.
15819
15820 2011-05-11 Richard Guenther <rguenther@suse.de>
15821
15822 PR middle-end/48953
15823 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15824
15825 2011-05-11 Joseph Myers <joseph@codesourcery.com>
15826
15827 * opts.c (finish_options): Move warning settings from process_options.
15828 * toplev.c (process_options): Move warning settings to finish_options.
15829
15830 2011-05-11 Richard Guenther <rguenther@suse.de>
15831
15832 PR tree-optimization/18041
15833 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15834 (simplify_bitwise_binary): ... this. Handle operand conversions
15835 by applying them to the result instead.
15836 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
15837
15838 2011-05-11 Richard Guenther <rguenther@suse.de>
15839
15840 * gimple.c (gimple_canonical_types_compatible_p): Split out
15841 from gimple_types_compatible_p and friends. Do not recurse
15842 to pointed-to types.
15843 (gimple_canonical_type_eq): Use it.
15844 (iterative_hash_canonical_type): Split out from
15845 iterative_hash_gimple_type and friends. Do not recurse
15846 to pointed-to types.
15847 (gimple_canonical_type_hash): Use it, allocate the hash here.
15848
15849 2011-05-11 Revital Eres <revital.eres@linaro.org>
15850
15851 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15852 recognizing doloop.
15853
15854 2011-05-11 Revital Eres <revital.eres@linaro.org>
15855
15856 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15857 instead of PREV_INSN.
15858
15859 2011-05-11 Revital Eres <revital.eres@linaro.org>
15860
15861 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15862 * loop-doloop.c (doloop_condition_get): Likewise.
15863 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15864 (doloop_end): New.
15865 * config/arm/arm.md (*addsi3_compare0): Remove "*".
15866
15867 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
15868
15869 * tree.def (CASE_LABEL_EXPR): Add an operand.
15870 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
15871
15872 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15873
15874 * c-decl.c (c_override_global_bindings_to_false): Remove.
15875 (global_bindings_p): Don't check
15876 c_override_global_bindings_to_false.
15877 * c-tree.h (c_override_global_bindings_to_false): Remove.
15878 * c-typeck.c (composite_type): Don't set
15879 c_override_global_bindings_to_false.
15880
15881 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15882
15883 PR target/48857, 48495
15884 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
15885 (VSX_MODE): Ditto.
15886 (VSX_MOVE_MODE): Ditto.
15887 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
15888 VSX vector types. Add V2DImode.
15889 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
15890 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
15891 (MODES_TIEABLE_P): Ditto.
15892
15893 * config/rs6000/rs6000.c (rs6000_emit_move): Use
15894 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
15895 VSX_VECTOR_MODE.
15896 (init_cumulative_args): Ditto.
15897 (rs6000_function_arg_boundary): Ditto.
15898 (rs6000_function_arg_advance_1): Ditto.
15899 (rs6000_function_arg): Ditto.
15900 (rs6000_function_ok_for_sibcall): Ditto.
15901 (emit_frame_save): Ditto.
15902 (rs6000_function_value): Ditto.
15903 (rs6000_libcall_value): Ditto.
15904
15905 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15906
15907 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15908 i386/darwin-lib.h to $libgcc_tm_file.
15909 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
15910
15911 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15912
15913 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
15914
15915 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15916
15917 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
15918 * config/rs6000/rs6000-tables.opt: New file (generated).
15919 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
15920 rs6000/rs6000-tables.opt to extra_options.
15921 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
15922 * config/rs6000/rs6000.c (rs6000_select): Remove.
15923 (processor_target_table): Move contents to rs6000-cpus.def.
15924 (darwin_rs6000_override_options): Check
15925 global_options_set.x_rs6000_cpu_index instead of
15926 rs6000_select[1].string.
15927 (rs6000_option_override_internal): Likewise.
15928 (rs6000_handle_option): Don't assert that global structures are in
15929 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
15930 (rs6000_default_cpu): New variable.
15931 (rs6000_file_start): Set it instead of local default_cpu. Check
15932 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
15933 global_options_set.x_rs6000_tune_index instead of rs6000_select.
15934 (rs6000_darwin_file_start): Check rs6000_default_cpu and
15935 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
15936 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
15937 rs6000_select): Remove.
15938 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
15939 Remove.
15940 (mcpu=, mtune=): Use Var, Init, Enum and Save.
15941 * config/rs6000/t-rs6000
15942 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
15943 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15944 global_options_set.x_rs6000_cpu_index instead of
15945 rs6000_select[1].string.
15946 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15947 global_options_set.x_rs6000_cpu_index instead of
15948 rs6000_select[1].string.
15949
15950 2011-05-10 Joseph Myers <joseph@codesourcery.com>
15951
15952 * config.gcc (libgcc_tm_file): Define instead of including files
15953 from ../../libgcc/config/ in tm_file.
15954 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
15955 * configure: Regenerate.
15956 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
15957 libgcc_tm.h, cs-libgcc_tm.h): New.
15958 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
15959 (clean): Remove libgcc_tm.h.
15960 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
15961 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
15962 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
15963
15964 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
15965
15966 PR target/48896
15967 * config/avr/avr.c (avr_ret_register): Return unsigned int
15968 instead of int.
15969 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
15970 it to avr_libcall_value.
15971 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
15972 expand_expr.
15973 (avr_expand_binop_builtin): Ditto.
15974 (avr_expand_unop_builtin): Ditto.
15975
15976 2011-05-10 DJ Delorie <dj@redhat.com>
15977
15978 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
15979 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
15980 * config/rx/rx.c (rx_align_for_label): Add label and
15981 uses_threshold parameters. Do not align when the label is not
15982 used enough.
15983 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
15984
15985 2011-05-10 Richard Guenther <rguenther@suse.de>
15986
15987 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
15988 a series of conversions and apply foldings similar to what
15989 fold-const does.
15990 (tree_ssa_forward_propagate_single_use_vars): Call it.
15991
15992 2011-05-10 Jakub Jelinek <jakub@redhat.com>
15993
15994 PR tree-optimization/48611
15995 PR tree-optimization/48794
15996 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
15997 referenced from RESX or EH_DISPATCH arguments.
15998
15999 PR debug/48928
16000 * dfp.c (decimal_to_decnumber): Handle conversion from
16001 dconst{1,2,m1,half}.
16002
16003 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16004
16005 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16006 for !flag_prefer_avx128.
16007 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16008
16009 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16010
16011 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16012 (fold_ternary_loc): Use expr_location_or.
16013
16014 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
16015
16016 PR debug/48853
16017 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16018 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16019 Pmode and mem_mode is not VOIDmode.
16020
16021 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
16022
16023 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16024 TYPE_QUAL_RESTRICT): Convert to enum.
16025
16026 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16027
16028 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16029 (const_pow2_1_to_8_operand): Ditto.
16030 (const_pow2_1_to_128_operand): Ditto.
16031 (const_pow2_1_to_32768_operand): Ditto.
16032 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16033 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
16034 in insn constraint to check integer value of operand 3.
16035 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16036
16037 (PINSR_MODE): New mode iterator.
16038 (sse2p4_1): New mode attribute.
16039 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16040 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16041 iterator. Use const_int_operand instead of
16042 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
16043 exact_log2 in insn constraint to check integer value of operand 3.
16044
16045 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16046
16047 * config/i386/sse.md (blendbits): Remove mode attribute.
16048 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16049 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16050 Check integer value of operand 3 in insn constraint.
16051
16052 2011-05-09 Richard Guenther <rguenther@suse.de>
16053
16054 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16055 for diagnostics.
16056 (lto_symtab_merge): Likewise. Do not register types here.
16057 (lto_symtab_merge_decls_2): Likewise.
16058 (lto_symtab_merge_decls_1): Likewise.
16059 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16060 * gimple.c (enum gtc_mode): Declare.
16061 (gimple_types_compatible_p): Make static.
16062
16063 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16064
16065 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16066 temporary register to match Pmode.
16067
16068 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16069
16070 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16071 and *vec_concatv4si_1_avx.
16072
16073 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
16074
16075 PR rtl-optimization/48927
16076 * ira-conflicts.c (commutative_constraint_p): Use
16077 recog_data.alternative_enabled_p to disable alternatives where
16078 "enabled" attribute is false.
16079 (get_dup_num): Ditto.
16080 * ira-lives.c (single_reg_class): Ditto.
16081 (ira_implicitly_set_insn_hard_regs): Ditto.
16082
16083 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
16084
16085 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16086 (dataflow_set_preserve_mem_locs): Likewise.
16087
16088 2011-05-09 Philipp Thomas <pth@suse.de>
16089
16090 * config/mep/mep.c (mep_validate_vliw): Syntax description
16091 should not be translated.
16092
16093 2011-05-09 Joseph Myers <joseph@codesourcery.com>
16094
16095 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16096 * config/mips/mips-tables.opt: New file (generated).
16097 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16098 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16099 MIPS_ARCH_OPTION_NATIVE): Define.
16100 * config/mips/mips.c (mips_cpu_info_table): Move contents to
16101 mips-cpus.def.
16102 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16103 mips_parse_cpu): Remove.
16104 (mips_cpu_info_from_opt, mips_default_arch): New.
16105 (mips_handle_option): Don't assert that global structures are in
16106 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16107 (mips_option_override): Use new variables and functions to set
16108 state of these options. Use strcmp to check for individual CPU names.
16109 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16110 definition.
16111 * config/mips/mips.opt (march=): Use ToLower and Enum.
16112 (mips): Use ToLower, Enum and Var.
16113 (mtune=): Use ToLower and Enum.
16114 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16115
16116 2011-05-08 Jan Hubicka <jh@suse.cz>
16117
16118 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16119 Arrange type pairs to be UID ordered.
16120 (gimple_lookup_type_leader): Make inline.
16121
16122 2011-05-09 Nick Clifton <nickc@redhat.com>
16123
16124 PR target/48899
16125 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16126 PROCESSOR_DEFAULT.
16127
16128 PR target/48897
16129 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16130 variable 's'.
16131
16132 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
16133
16134 * combine.c (simplify_comparison): Abstract out parts into...
16135 (simplify_compare_const): ... new function.
16136 (try_combine): Generalize parallel arithmetic/compare combining
16137 to call simplify_compare_const() and CANONICALIZE_COMPARE().
16138
16139 2011-05-08 Jan Hubicka <jh@suse.cz>
16140
16141 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16142 (cgraph_create_virtual_clone): Call hooks once virtual clone
16143 is finished.
16144 * cgraph.h (cgraph_clone_node): Update prototype.
16145 * ipa-cp.c (ipcp_estimate_growth): Use
16146 estimate_ipcp_clone_size_and_time.
16147 * ipa-inline-transform.c (clone_inlined_nodes): Update.
16148 * lto-cgraph.c (input_node): Update.
16149 * ipa-inline.c (recursive_inlining): Update.
16150 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16151 (evaluate_conditions_for_known_args): Break out from ...
16152 (evaluate_conditions_for_edge): ... here.
16153 (evaluate_conditions_for_ipcp_clone): New function.
16154 (inline_node_duplication_hook): Update clone summary based
16155 on parameter map.
16156 (estimate_callee_size_and_time): Rename to ...
16157 (estimate_node_size_and_time): take NODE instead of EDGE;
16158 take POSSIBLE_TRUTHS as argument.
16159 (estimate_callee_size_and_time): Update.
16160 (estimate_ipcp_clone_size_and_time): New function.
16161 (do_estimate_edge_time): Update.
16162
16163 2011-05-08 Richard Guenther <rguenther@suse.de>
16164
16165 PR middle-end/48908
16166 PR middle-end/48905
16167 * expmed.c (expand_shift_1): Compute adjusted constant shift
16168 amount manually.
16169
16170 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16171
16172 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16173
16174 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
16175
16176 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16177
16178 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16179
16180 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16181
16182 2011-05-07 Jan Hubicka <jh@suse.cz>
16183
16184 * ipa-inline-transform.c (inline_call): Account when program size
16185 decreases.
16186 * ipa-inline.c (relative_time_benefit): New function.
16187 (edge_badness): Reorganize to be power 2 based; fix thinko when
16188 computing badness for negative growth; update comments to match
16189 reality; better dumps.
16190
16191 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
16192
16193 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16194 type to bool and adjust comment.
16195 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16196 (fold_mathfn_compare): Remove calls to global_bindings_p.
16197 (fold_inf_compare): Likewise.
16198 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16199 * c-tree.h (global_bindings_p): Adjust prototype.
16200 * c-decl.c (global_bindings_p): Return bool and simplify.
16201
16202 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
16203
16204 PR tree-optimization/48837
16205 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16206 when accumulator transformation is performed.
16207
16208 2011-05-06 Jan Hubicka <jh@suse.cz>
16209
16210 * i386.h (ix86_tune_indices): Add
16211 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16212 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16213 * i386.c (initial_ix86_tune_features): Add
16214 X86_SOFTARE_PREFETCHING_BENEFICIAL.
16215 (software_prefetching_beneficial_p): Remove predicate.
16216 (ix86_option_override_internal): Use new macro.
16217
16218 2011-05-06 Jan Hubicka <jh@suse.cz>
16219
16220 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16221
16222 2011-05-06 Jan Hubicka <jh@suse.cz>
16223
16224 * cgraph.c (cgraph_add_thunk): Create real function node instead
16225 of alias node; finalize it and mark needed/reachale; arrange visibility
16226 to be right and add it into the corresponding same comdat group list.
16227 (dump_cgraph_node): Dump thunks.
16228 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16229 cgraph_function_with_gimple_body_p,
16230 cgraph_first_function_with_gimple_body,
16231 cgraph_next_function_with_gimple_body): New functions.
16232 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16233 New macros.
16234 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16235 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16236 * cgraphunit.c (cgraph_finalize_function): Only look into possible
16237 devirtualization when optimizing.
16238 (verify_cgraph_node): Verify thunks.
16239 (cgraph_analyze_function): Analyze thunks.
16240 (cgraph_mark_functions_to_output): Output thunks only in combination
16241 with function they are assigned to.
16242 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16243 alias into normal node.
16244 (assemble_thunks): New functoin.
16245 (cgraph_expand_function): Use it.
16246 * lto-cgraph.c (lto_output_node): Stream thunks.
16247 (input_overwrite_node): Stream in thunks.
16248 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16249 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16250 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16251 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16252 (inline_analyze_function): Do not care about thunk jump functions.
16253 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16254 * ipa-prop.c (ipa_prop_write_jump_functions): Use
16255 cgraph_function_with_gimple_body_p.
16256 * passes.c (do_per_function_toporder): Use
16257 cgraph_function_with_gimple_body_p.
16258 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16259 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16260 (function_called_by_processed_nodes_p): Likewise.
16261
16262 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16263
16264 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16265 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16266 entries.
16267 (mabi=): Replace with separate entries for mabi=altivec,
16268 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16269 mabi=ieeelongdouble and mabi=ibmlongdouble.
16270 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16271 check for -mabi=spe without SPE ABI support here.
16272 (rs6000_handle_option): Replace OPT_mabi_ handling with
16273 OPT_mabi_altivec and OPT_mabi_spe handling.
16274
16275 2011-05-06 Cary Coutant <ccoutant@google.com>
16276
16277 * dwarf2out.c (contains_subprogram_definition): New function.
16278 (should_move_die_to_comdat): Call it.
16279
16280 2011-05-06 Jeff Law <law@redhat.com>
16281
16282 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16283 remove_ctrl_stmt_and_useless_edges.
16284 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16285 (fixup_template_block, thread_single_edge): Likewise.
16286 (mark_threaded_blocks): Use THREAD_TARGET.
16287
16288 2011-05-06 Alan Modra <amodra@gmail.com>
16289
16290 PR target/48900
16291 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16292 const0_rtx as the arg to the dummy __tls_get_addr libcall.
16293
16294 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16295
16296 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16297 constraint modifier to "r".
16298
16299 2011-05-06 Joseph Myers <joseph@codesourcery.com>
16300
16301 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16302 fall through for OPT_mcmodel_.
16303
16304 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16305
16306 * config/s390/s390.c (s390_asm_trampoline_template): Comment
16307 instruction sizes.
16308 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16309
16310 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16311
16312 PR target/47930
16313 * config/arm/arm.opt (marm): Document it.
16314 (mthumb): Reject negative variant.
16315
16316 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
16317
16318 PR target/48898
16319 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16320 Fix typo in "ccvt" variable name.
16321
16322 2011-05-06 Tristan Gingold <gingold@adacore.com>
16323
16324 PR target/48895
16325 * config/vms/vms-ar.c (main): Remove cwd variable.
16326
16327 2011-05-06 Jakub Jelinek <jakub@redhat.com>
16328
16329 PR debug/48902
16330 * var-tracking.c (prepare_call_arguments): Move else before #endif.
16331
16332 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
16333
16334 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16335 * gimplify.c (gimplify_switch_expr): Likewise.
16336 * omp-low.c (expand_omp_sections): Likewise.
16337 * tree-eh.c (lower_try_finally_switch): Likewise.
16338 (lower_eh_dispatch): Likewise.
16339 * tree.h (build_case_label): Declare.
16340 * tree.c (build_case_label): Define.
16341
16342 2011-05-05 Jason Merrill <jason@redhat.com>
16343
16344 PR c++/40975
16345 * tree-inline.c (copy_tree_r): Use copy_statement_list.
16346 (copy_statement_list): Don't recurse.
16347 * stor-layout.c (copy_self_referential_tree_r): Don't allow
16348 STATEMENT_LIST.
16349
16350 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16351
16352 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16353 through from -mfpu= handling.
16354 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16355
16356 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
16357
16358 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16359 POST_MODIFY.
16360
16361 2011-05-05 Steve Ellcey <sje@cup.hp.com>
16362
16363 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16364 for 11.31.
16365 (hppa[12]*-*-hpux11*): Ditto.
16366 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16367 * config/ia64/hpux-unix2003.h: New.
16368 * config/pa/pa-hpux1131.opt: New.
16369 * config/pa/pa-hpux1131.h: New.
16370 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16371 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16372 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16373
16374 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16375
16376 PR debug/48853
16377 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16378 instead of mode as 3rd argument to recursive call.
16379 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16380 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16381 VOIDmode.
16382 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16383 don't give up if mode is Pmode and mem_mode is not VOIDmode.
16384 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16385 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16386
16387 2011-05-05 Julian Brown <julian@codesourcery.com>
16388
16389 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16390 parenthesis in D-register case.
16391
16392 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16393
16394 * opt-functions.awk (var_type_struct): Handle Enum options.
16395 * optc-gen.awk: Don't check range of variables of character type.
16396 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16397 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16398 rs6000_sdata_name, rs6000_explicit_options): Remove.
16399 (rs6000_option_override_internal): Check for -malign-power here.
16400 Use global_options_set instead of rs6000_explicit_options.
16401 (rs6000_parse_fpu_option): Remove.
16402 (rs6000_handle_option): Access variables via opts and opts_set
16403 pointers. Use error_at and warning_at. Add fall-through
16404 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16405 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16406 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16407 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16408 here. Don't use rs6000_parse_fpu_option.
16409 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16410 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16411 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16412 (mrecip=): Use Var.
16413 (mspe): Use Var and Save.
16414 (mtraceback=): Use Enum and Var.
16415 (rs6000_traceback_type): New Enum and EnumValue entries.
16416 (mfloat-gprs=): Use Enum, Var and Save.
16417 (rs6000_float_gprs): New Enum and EnumValue entries.
16418 (mlong-double-): use Var and Save.
16419 (msched-costly-dep=, minsert-sched-nops=): Use Var.
16420 (malign-): Use Enum and Var.
16421 (rs6000_alignment_flags): New Enum and EnumValue entries.
16422 (mfpu=): Use Enum.
16423 (fpu_type_t): New Enum and EnumValue entries.
16424 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16425 global_options_set instead of rs6000_explicit_options.
16426 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16427 global_options_set instead of rs6000_explicit_options.
16428 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16429 global_options_set instead of rs6000_explicit_options.
16430 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16431 global_options_set instead of rs6000_explicit_options.
16432 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16433 global_options_set instead of rs6000_explicit_options.
16434 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16435 global_options_set instead of rs6000_explicit_options.
16436 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16437 definition.
16438 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16439 global_options_set instead of rs6000_explicit_options.
16440 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16441 (rs6000_cmodel): New Enum and EnumValue entries.
16442 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16443 global_options_set instead of rs6000_explicit_options.
16444 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16445 (mtls-size=): Use Enum and Var.
16446 (rs6000_tls_size): New Enum and EnumValue entries.
16447
16448 2011-05-05 Michael Matz <matz@suse.de>
16449
16450 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16451 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16452 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16453 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16454 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16455 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16456 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16457 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16458 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16459 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16460 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16461 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16462 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16463 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16464 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16465 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16466
16467 2011-05-05 Richard Guenther <rguenther@suse.de>
16468
16469 * expmed.c (expand_variable_shift): Rename to ...
16470 (expand_shift_1): ... this. Take an expanded shift amount.
16471 For rotates recurse directly not building trees for the shift amount.
16472 (expand_variable_shift): Wrap around expand_shift_1.
16473 (expand_shift): Adjust.
16474
16475 2011-05-05 Jakub Jelinek <jakub@redhat.com>
16476
16477 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16478
16479 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
16480
16481 * tree.h (get_pending_sizes): Remove prototype.
16482 (put_pending_size): Likewise.
16483 (put_pending_sizes): Likewise.
16484 * stor-layout.c (pending_sizes): Delete.
16485 (get_pending_sizes): Likewise.
16486 (put_pending_size): Likewise.
16487 (put_pending_sizes): Likewise.
16488 (variable_size): Do not call put_pending_size and tidy up.
16489 * function.h (struct function): Remove dont_save_pending_sizes_p.
16490 * lto-streamer-in.c (input_function): Do not stream it.
16491 * lto-streamer-out.c (output_function): Likewise.
16492 * tree-inline.c (initialize_cfun): Do not copy it.
16493 * c-decl.c (store_parm_decls): Do not set it.
16494 * omp-low.c (create_task_copyfn): Likewise.
16495 * tree-optimize.c (tree_rest_of_compilation): Likewise.
16496
16497 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
16498
16499 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16500 conditions.
16501 (*movdf_internal): Ditto.
16502 (*movdf_internal_nointeger): Ditto.
16503 (*movsf_internal): Ditto.
16504
16505 2011-05-05 Joseph Myers <joseph@codesourcery.com>
16506
16507 * c-decl.c (finish_decl): Don't call get_pending_sizes.
16508 (grokparm): Add parameter expr. Pass it to grokdeclarator.
16509 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
16510 (c_variable_size): Remove.
16511 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
16512 call put_pending_sizes.
16513 (get_parm_info): Add parameter expr. Use it to set
16514 arg_info->pending_sizes.
16515 (store_parm_decls): Use arg_info->pending_sizes instead or calling
16516 get_pending_sizes.
16517 * c-parser.c (c_parser_parms_declarator): Update call to
16518 c_parser_parms_list_declarator.
16519 (c_parser_parms_list_declarator): Take parameter expr. Update
16520 call to push_parm_decl. Update recursive call. Don't call
16521 get_pending_sizes. Update calls to get_parm_info.
16522 (c_parser_objc_method_definition): Update calls to
16523 c_parser_objc_method_decl and objc_start_method_definition.
16524 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16525 (c_parser_objc_method_decl): Add parameter expr. Update call to
16526 grokparm.
16527 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16528 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16529 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16530
16531 2011-05-05 Michael Hope <michael.hope@linaro.org>
16532
16533 PR pch/45979
16534 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16535 __ARM_EABI__ hosts.
16536
16537 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16538
16539 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16540 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16541 (spu_output_mi_thunk): New function.
16542
16543 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16544
16545 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16546 targetm.asm_out.print_operand.
16547 * config/sol2.c: Include target.h.
16548
16549 2011-05-04 Jan Hubicka <jh@suse.cz>
16550
16551 * ipa-inline.c (reset_edge_caches): New function.
16552 (update_caller_keys): Add check_inlinablity_for; do not
16553 reset edge caches; remove now unnecesary loop.
16554 (update_callee_keys): Add comments; reset node_growth_cache of callee.
16555 (update_all_callee_keys): Likewise.
16556 (inline_small_functions): Sanity check cache; update code
16557 recomputing it.
16558
16559 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
16560
16561 PR rtl-optimization/47612
16562 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16563 as the last insn of the sequence to be moved.
16564
16565 2011-05-04 Tobias Burnus <burnus@net-b.de>
16566
16567 PR fortran/48864
16568 * doc/invoke.texi (Ofast): Document that it
16569 enables Fortran's -fno-protect-parens.
16570
16571 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16572
16573 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16574
16575 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
16576
16577 * stor-layout.c (variable_size): Do not issue errors.
16578
16579 2011-05-04 Richard Guenther <rguenther@suse.de>
16580
16581 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16582 for array-ref indices.
16583 (tree_coverage_counter_addr): Likewise.
16584 (build_fn_info_type): Use size_int for index types.
16585 (build_gcov_info): Likewise.
16586
16587 2011-05-04 Richard Guenther <rguenther@suse.de>
16588
16589 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16590 to build_int_cst.
16591 * c-typeck.c (really_start_incremental_init): Use bitsize_int
16592 for constructor indices.
16593 (push_init_level): Likewise.
16594
16595 2011-05-04 Richard Guenther <rguenther@suse.de>
16596
16597 * explow.c (promote_mode): Move variable declarations before code.
16598
16599 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
16600
16601 * tree.h (build_function_type_array): Declare.
16602 (build_varargs_function_type_array): Declare.
16603 (build_function_type_vec, build_varargs_function_type_vec): Define.
16604 * tree.c (build_function_type_array_1): New function.
16605 (build_function_type_array): New function.
16606 (build_varargs_function_type_array): New function.
16607
16608 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
16609
16610 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16611 before setting STMT_VINFO_TYPE.
16612
16613 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16614
16615 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16616 instead of spu_pass_by_reference.
16617
16618 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16619
16620 * calls.c (emit_library_call_value_1): Invoke
16621 promote_function_mode hook on libcall arguments.
16622 * explow.c (promote_function_mode, promote_mode): Handle TYPE
16623 argument being NULL.
16624 * targhooks.c (default_promote_function_mode): Lisewise.
16625 * config/s390/s390.c (s390_promote_function_mode): Likewise.
16626 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16627
16628 * doc/tm.texi: Document that TYPE argument might be NULL.
16629
16630 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16631
16632 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16633
16634 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16635
16636 From Bernd Schmidt
16637 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16638
16639 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16640
16641 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16642 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16643 Move ...
16644 * mips-tfile.c: ... here.
16645 Don't include coretypes.h, tm.h, filenames.h.
16646 (saber_stop): Remove definition and all calls.
16647 [__SABER__]: Remove.
16648 (__LINE__): Remove default.
16649 (Size_t, Ptrdiff_t): Remove definitions.
16650 Replace by size_t, ptrdiff_t.
16651 [!MIPS_DEBUGGING_INFO]: Remove.
16652 (SHASH_SIZE, THASH_SIZE): Remove defaults.
16653 (progname): Add const.
16654 (STATIC): Remove.
16655 Replace all uses by static.
16656 (ALIGN_SYMTABLE_OFFSET): Remove default.
16657 * mips-tdump.c: Don't include coretypes.h, tm.h.
16658 Remove !MIPS_IS_STAB guard.
16659 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16660 $(TM_H), filenames.h dependencies.
16661 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16662
16663 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16664
16665 From Jie Zhang
16666 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16667 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16668
16669 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16670
16671 From Bernd Schmidt
16672 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16673 account and save/restore RETS.
16674 (PROFILE_BEFORE_PROLOGUE): Define.
16675 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
16676 the push insn to use predecrement.
16677
16678 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
16679
16680 From Jie Zhang
16681 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16682
16683 2011-05-04 Nick Clifton <nickc@redhat.com>
16684
16685 * config/mn10300/mn10300.c: Include cfgloop.h.
16686 (DUMP): New macro.
16687 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
16688 Lcc or a FLcc insn into the instruction stream.
16689 (mn10300_block_contains_call): New function. Returns true if the
16690 given basic block contains a CALL insn.
16691 (mn10300_loop_contains_call_insn): New function. Returns true if
16692 the given loop contains a CALL insn.
16693 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
16694 to use the SETLB and Lcc or FLcc insns.
16695 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16696 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16697 * config/mn10300/mn10300.opt (msetlb): New option. Used to
16698 disable the SETLB optimization.
16699 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16700 __SETLB__ or __NO_SETLB__.
16701 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16702 (movsf_internal): Handle MDR register.
16703 (cmpsi): Make visible.
16704 (setlb): New pattern.
16705 (Lcc): New pattern.
16706 (FLcc): New pattern.
16707
16708 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
16709
16710 PR target/48860
16711 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16712 for reg<->xmm moves.
16713 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16714 (vec_concatv2di_rex64_sse): Ditto.
16715 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16716 (*vec_extractv2di_1_rex64): Ditto.
16717
16718 Revert:
16719 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16720
16721 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16722 reg<->xmm moves.
16723 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16724
16725 2011-05-04 Richard Guenther <rguenther@suse.de>
16726
16727 * tree.h (int_const_binop): Remove notrunc argument.
16728 * fold-const.c (int_const_binop): Remove notrunc argument. Always
16729 create integer constants that are properly truncated.
16730 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16731 (const_binop): Remove zero notrunc argument to int_const_binop.
16732 (size_binop_loc): Likewise.
16733 (fold_div_compare): Likewise.
16734 (maybe_canonicalize_comparison_1): Likewise.
16735 (fold_comparison): Likewise.
16736 (fold_binary_loc): Likewise.
16737 (multiple_of_p): Likewise.
16738 * expr.c (store_constructor): Likewise.
16739 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16740 (maybe_fold_stmt_addition): Likewise.
16741 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16742 * stor-layout.c (layout_type): Likewise.
16743 * tree-data-ref.c (tree_fold_divides_p): Likewise.
16744 * tree-sra.c (build_ref_for_offset): Likewise.
16745 (build_user_friendly_ref_for_offset): Likewise.
16746 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16747 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16748 * tree-ssa-loop-niter.c (inverse): Likewise.
16749 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16750 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16751 * tree-switch-conversion.c (check_range): Likewise.
16752 (build_constructors): Likewise.
16753 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16754 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16755 (extract_range_from_assert): Likewise.
16756 (vrp_int_const_binop): Likewise.
16757 (extract_range_from_binary_expr): Likewise.
16758 (extract_range_from_unary_expr): Likewise.
16759 (check_array_ref): Likewise.
16760 (find_case_label_range): Likewise.
16761 (simplify_div_or_mod_using_ranges): Likewise.
16762 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16763 comparing case labels for merging.
16764
16765 2011-05-03 Mark Wielaard <mjw@redhat.com>
16766
16767 * dwarf2out.c (debug_str_hash_forced): Removed.
16768 (gen_label_for_indirect_string): Removed.
16769 (get_debug_string_label): Removed.
16770 (AT_string_form): Generate label directly.
16771 (output_indirect_string): Test indirect_string_node for
16772 DW_FORM_strp instead of checking label and refcount.
16773 (prune_indirect_string): Removed.
16774 (prune_unused_types): Don't check debug_str_hash_forced or
16775 call prune_indirect_string.
16776
16777 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16778
16779 PR other/48093
16780 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16781
16782 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
16783
16784 PR debug/47994
16785 PR debug/47919
16786 * combine.c (try_combine): Skip debug insns at m_split tests.
16787
16788 2011-04-26 Mark Wielaard <mjw@redhat.com>
16789
16790 PR42288
16791 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16792 when info_section_emitted.
16793
16794 2011-05-03 Joseph Myers <joseph@codesourcery.com>
16795
16796 * config/mips/mips-opts.h: New.
16797 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16798 to mips-opts.h.
16799 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16800 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16801 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
16802 via opts pointer.
16803 * config/mips/mips.h (enum mips_code_readable_setting): Move to
16804 mips-opts.h.
16805 (mips_abi, mips_code_readable): Don't declare.
16806 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16807 (mabi=): Use Enum and Var.
16808 (mips_abi): New Enum and EnumValue entries.
16809 (mcode-readable=): Use Enum and Var.
16810 (mips_code_readable_setting): New Enum and EnumValue entries.
16811 (mr10k-cache-barrier=): Use Enum and Var.
16812 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16813
16814 2011-05-03 Jan Hubicka <jh@suse.cz>
16815
16816 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16817 replace hash by pointer map.
16818 (cgraph_node_set_element_def, cgraph_node_set_element,
16819 const_cgraph_node_set_element, varpool_node_set_element_def,
16820 varpool_node_set_element, const_varpool_node_set_element): Remove.
16821 (free_cgraph_node_set, free_varpool_node_set): New function.
16822 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16823 * tree-emutls.c: Free varpool node set.
16824 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16825 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16826 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16827 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16828 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16829 Move here from ipa.c; implement using pointer_map
16830 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16831 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16832 debug_cgraph_node_set, varpool_node_set_new,
16833 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16834 dump_varpool_node_set, debug_varpool_node_set):
16835 Move to ipa-uitls.c.
16836 * passes.c (ipa_write_summaries): Update.
16837
16838 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16839
16840 From Mike Frysinger:
16841 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16842 bf542/bf544/bf547/bf548/bf549.
16843
16844 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
16845
16846 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16847
16848 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16849
16850 From Bernd Schmidt:
16851 * config/bfin/bfin.md (MOVCC): New mode_macro.
16852 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16853 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
16854 comments from generated assembly.
16855
16856 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16857
16858 From Bernd Schmidt
16859 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16860 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16861 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16862 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16863 * config/bfin/lib1funcs.asm (___muldi3): New function.
16864
16865 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16866
16867 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
16868 build_function_type_list instead of build_function_type.
16869 Rearrange initialization of `args' to do so.
16870
16871 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16872
16873 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
16874 instead of build_function_type.
16875
16876 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16877
16878 * config/rs6000/rs6000.c (spe_init_builtins): Call
16879 build_function_type_list instead of build_function_type.
16880 (paired_init_builtins, altivec_init_builtins): Likewise.
16881 (builtin_function_type): Likewise.
16882
16883 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16884
16885 * config/sh/sh.c (sh_media_init_builtins): Call
16886 build_function_type_list instead of build_function_type.
16887
16888 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16889
16890 * config/sparc/sparc.c (sparc_file_end): Call
16891 build_function_type_list instead of build_function_type.
16892
16893 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16894
16895 * config/alpha/alpha.c (alpha_init_builtins): Call
16896 build_function_type_list instead of build_function_type.
16897
16898 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16899
16900 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
16901 build_function_type_list instead of build_function_type.
16902
16903 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16904
16905 * config/iq2000/i2000.c (iq2000_init_builtins): Call
16906 build_function_type_list instead of build_function_type.
16907 Delete `endlink' variable.
16908
16909 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16910
16911 * config/avr/avr.c (avr_init_builtins): Call
16912 build_function_type_list instead of build_function_type.
16913
16914 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16915
16916 * config/picochip/picochip.c (picochip_init_builtins): Call
16917 build_function_type_list instead of build_function_type.
16918 Delete `endlink' variable.
16919
16920 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
16921
16922 * config/bfin/bfin.c (bfin_init_builtins): Call
16923 build_function_type_list instead of build_function_type.
16924
16925 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16926
16927 From Bernd Schmidt
16928 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
16929 that's not CONST_INT. Seemingly redundant check is due to PR39768.
16930
16931 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16932
16933 From Jie Zhang:
16934 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
16935 libbffastfp overrides libgcc when -mfast-fp.
16936
16937 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16938
16939 Originally from Bernd Schmidt
16940 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
16941 * config/bfin/bfin.c (override_options): Test it and error if
16942 TARGET_FDPIC.
16943
16944 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
16945
16946 Originally From Bernd Schmidt
16947 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
16948 FD-PIC.
16949
16950 2011-05-03 Jeff Law <law@redhat.com>
16951
16952 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
16953 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
16954 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
16955 than accessing AUX field directly. Free the AUX field before
16956 clearing it.
16957 (thread_block, thread_through_loop_header): Likewise.
16958 (thread_single_edge, mark_threaded_blocks): Likewise.
16959 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
16960 (register_jump_thread): Do not attempt to thread to a NULL edge.
16961
16962 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
16963
16964 * function.c (init_function_start): Call decide_function_section.
16965 * varasm.c (decide_function_section): New function.
16966 (assemble_start_function): When not using
16967 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
16968 or first_function_block_is_cold.
16969 * rtl.h (decide_function_section): Declare.
16970
16971 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
16972 Jakub Jelinek <jakub@redhat.com>
16973
16974 PR target/48774
16975 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
16976 only succeed if req_mode is the same as set_mode.
16977
16978 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
16979
16980 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
16981 * genemit.c (gen_exp): Handle RETURN.
16982 * emit-rtl.c (verify_rtx_sharing): Likewise.
16983 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
16984 * rtl.c (copy_rtx): RETURN is shared.
16985 * rtl.h (enum global_rtl_index): Add GR_RETURN.
16986 (ret_rtx): New.
16987 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
16988 * config/s390/s390.c (s390_emit_epilogue): Likewise.
16989 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
16990 * config/cris/cris.c (cris_expand_return): Likewise.
16991 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
16992 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
16993 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
16994 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
16995 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
16996 Likewise.
16997 * config/v850/v850.c (expand_epilogue): Likewise.
16998 * config/bfin/bfin.c (bfin_expand_call): Likewise.
16999 * config/arm/arm.md (epilogue): Likewise.
17000 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17001 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17002 variable to ret_reg.
17003
17004 2011-05-03 Richard Guenther <rguenther@suse.de>
17005
17006 PR lto/48846
17007 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17008 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17009 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17010
17011 2011-05-03 Richard Guenther <rguenther@suse.de>
17012
17013 * c-decl.c (grokdeclarator): Instead of looking at
17014 TREE_OVERFLOW check if the constant fits in the index type.
17015
17016 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17017
17018 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17019 (vec_store_lanes<mode><mode>): Likewise.
17020
17021 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17022
17023 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17024 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17025 convert_optab_index values.
17026 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17027 * genopinit.c (optabs): Initialize the new optabs.
17028 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17029 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17030 (expand_STORE_LANES): New functions.
17031 * tree.h (build_array_type_nelts): Declare.
17032 * tree.c (build_array_type_nelts): New function.
17033 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17034 (vect_model_load_cost): Likewise.
17035 (vect_store_lanes_supported, vect_load_lanes_supported)
17036 (vect_record_strided_load_vectors): Declare.
17037 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17038 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17039 (vect_transform_strided_load): Split out statement recording into...
17040 (vect_record_strided_load_vectors): ...this new function.
17041 * tree-vect-stmts.c (create_vector_array, read_vector_array)
17042 (write_vector_array, create_array_ref): New functions.
17043 (vect_model_store_cost): Add store_lanes_p argument.
17044 (vect_model_load_cost): Add load_lanes_p argument.
17045 (vectorizable_store): Try to use store-lanes functions for
17046 interleaved stores.
17047 (vectorizable_load): Likewise load-lanes and loads.
17048 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17049 to vect_model_store_cost.
17050 (vect_build_slp_tree): Likewise vect_model_load_cost.
17051
17052 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
17053
17054 * hooks.h (hook_bool_mode_uhwi_false): Declare.
17055 * hooks.c (hook_bool_mode_uhwi_false): New function.
17056 * target.def (array_mode_supported_p): New hook.
17057 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17058 * doc/tm.texi: Regenerate.
17059 * stor-layout.c (mode_for_array): New function.
17060 (layout_type): Use it.
17061 * config/arm/arm.c (arm_array_mode_supported_p): New function.
17062 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17063
17064 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
17065
17066 PR target/48723
17067 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17068 for -fstack-check if the size to allocate is negative.
17069
17070 2011-05-02 Lawrence Crowl <crowl@google.com>
17071
17072 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17073 (timevar_cond_start): New for starting a timer only when it is not
17074 already running.
17075 (timevar_cond_stop): New for stopping a timer when it was not already
17076 running.
17077
17078 * timevar.c (timevar_stop): Enable start/stop timers to start again.
17079 (timevar_cond_start): New as above.
17080 (timevar_cond_stop): New as above.
17081
17082 * timevar.def: Add start/stop timers for compiler phases,
17083 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17084 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17085 and TV_PHASE_FINALIZE.
17086 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17087 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17088 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17089 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17090 Make unused TV_OVERLOAD into a start/stop timer.
17091
17092 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17093 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17094 to indicate that they are start/stop timers.
17095
17096 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17097 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17098 Move initialization to do_compile.
17099 (do_compile): Add initialization from above.
17100 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17101
17102 * c-decl.c (c_write_global_declarations): Add start/stop of
17103 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17104
17105 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17106 or TV_PARSE_INLINE, as appropriate.
17107 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17108 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17109
17110 2011-05-02 Jason Merrill <jason@redhat.com>
17111
17112 PR c++/40975
17113 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17114
17115 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
17116
17117 PR c/35445
17118 * c-decl.c (finish_decl): Only create a composite if the types are
17119 compatible.
17120
17121 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17122
17123 * config/fr30/fr30-protos.h (Mmode): Don't define.
17124 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
17125 definition where used.
17126 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17127 define. Expand definitions where used.
17128 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17129 Expand definitions where used.
17130 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17131 rx_function_arg, rx_function_arg_advance,
17132 rx_function_arg_boundary): Expand definitions of those macros.
17133 * config/v850/v850-protos.h (Mmode): Don't define. Expand
17134 definition where used.
17135
17136 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17137
17138 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17139 reg<->xmm moves.
17140 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17141 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
17142 with *movv2sf_internal_rex64_avx.
17143 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17144 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17145 Use %v prefix in insn mnemonic to handle TARGET_AVX.
17146 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
17147 "vex" in "prefix" attribute calculation.
17148 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
17149
17150 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
17151
17152 PR target/47951
17153 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17154 inputs match the output.
17155
17156 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
17157
17158 PR target/47955
17159 * config/m68k/m68k.c (m68k_expand_prologue): Set
17160 current_function_static_stack_size.
17161
17162 2011-05-02 Jan Hubicka <jh@suse.cz>
17163
17164 * lto-streamer.c (lto_streamer_cache_insert_1,
17165 lto_streamer_cache_lookup, lto_streamer_cache_create,
17166 lto_streamer_cache_delete): Use pointer map instead of hashtable.
17167 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17168
17169 2011-05-02 Joseph Myers <joseph@codesourcery.com>
17170
17171 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17172 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17173 config/m68k/t-opts: New files.
17174 * config/m68k/m68k-tables.opt: New file (generated).
17175 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17176 extra_options and m68k/t-opts to tmake_file.
17177 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17178 (all_isas): Initialize using m68k-isas.def.
17179 (all_microarchs): Initialize using m68k-microarchs.def.
17180 (m68k_find_selection): Remove.
17181 (m68k_handle_option): Don't assert that global structures are in
17182 use. Use error_at. Access variables via opts pointer. Don't
17183 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
17184 directly for -m68020-40 and -m68020-60.
17185 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17186 m68k_tune_entry here.
17187 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17188 to m68k-opts.h.
17189 (m68k_library_id_string): Remove declaration.
17190 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17191 (m68k_library_id_string): New Variable.
17192 (march=, mcpu=, mtune=): Use Enum and Var.
17193
17194 2011-05-02 Richard Guenther <rguenther@suse.de>
17195
17196 * varasm.c (output_constructor_regular_field): Compute zero-based
17197 index with double-ints. Make sure to ICE instead of producing
17198 wrong code.
17199 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17200 in asserts. Properly use a signed type.
17201
17202 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
17203
17204 * config/i386/sse.md (V): New mode iterator.
17205 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
17206 TARGET_SSE2.
17207 (V_256): Rename from AVX256MODE.
17208 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
17209 condition to all users.
17210 (VF1): Ditto.
17211 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
17212 condition to all users.
17213 (VF_128): Make V4SF mode unconditional.
17214 (VF_256): Rename from AVX256MODEF2P.
17215 (VI4F_128): Rename from SSEMODE4S.
17216 (VI8F_128): Rename from SSEMODE2D.
17217 (VI4F_256): Rename from AVX256MODE8P.
17218 (VI8F_256): Rename from AVX256MODE4P.
17219 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17220 (ssescalarmodesuffix): Remove SF and DF modes.
17221 (SSEMODE124): Remove.
17222 (SSEMODE1248): Ditto.
17223 (SSEMODEF2P): Ditto.
17224 (AVXMODEF2P): Ditto.
17225 (AVXMODEFDP): Ditto.
17226 (AVXMODEFSP): Ditto.
17227 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17228 unconditional.
17229 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
17230 unconditional.
17231 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17232 xop_pcmov_<mode>256. Use V mode iterator.
17233
17234 Adjust RTX patterns globally for renamed mode attributes.
17235
17236 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17237
17238 * haifa-sched.c (sched_emit_insn): Emit insn before first
17239 non-scheduled insn. Inform back-end about new insn. Add
17240 new insn to scheduled_insns list.
17241
17242 2011-05-02 Richard Guenther <rguenther@suse.de>
17243
17244 PR tree-optimization/48822
17245 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17246 (process_scc): Indicate which iteration we start.
17247
17248 2011-05-02 Jan Hubicka <jh@suse.cz>
17249
17250 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17251 (lto_section_overrun): New.
17252 * lto-section-out.c (append_block): Rename to ...
17253 (lto_append_block): ... this one; export.
17254 (lto_output_1_stream): Move lto lto-streamer.h
17255 (lto_output_data_stream): Update.
17256 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17257 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17258 functions.
17259
17260 2011-05-02 Richard Guenther <rguenther@suse.de>
17261
17262 * tree.c (tree_code_counts): New global array.
17263 (record_node_allocation_statistics): Count individual tree codes.
17264 (dump_tree_statistics): Dump individual code stats.
17265
17266 2011-05-01 Jan Hubicka <jh@suse.cz>
17267
17268 * ipa-inline.c (caller_growth_limits): Fix thinko when
17269 looking for largest stack frame.
17270 * ipa-inline.h (dump_inline_summary): Declare.
17271 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17272 on stack usage.
17273 (dump_inline_summary): Export.
17274 (debug_inline_summary): Declare as DEBUG_FUNCTION.
17275
17276 2011-05-01 Anatoly Sokolov <aesok@post.ru>
17277
17278 * reginfo.c (memory_move_cost): Change rclass argument type form
17279 'enum reg_class' to reg_class_t.
17280 * reload.h (memory_move_cost): Update prototype.
17281 * postreload.c reload_cse_simplify_set): Change type dclass var to
17282 reg_class_t.
17283 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17284 Update prototype.
17285 (ira_allocate_and_set_costs): Change aclass argument type form
17286 'enum reg_class' to reg_class_t.
17287 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17288 Change aclass argument type to reg_class_t.
17289 (update_conflict_hard_reg_costs): Change type aclass and pref vars
17290 to reg_class_t.
17291 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17292 memory_move_cost call.
17293
17294 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17295 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17296 Change type tmp var to reg_class_t.
17297
17298 2011-04-30 Jan Hubicka <jh@suse.cz>
17299
17300 * ipa-inline.c (can_inline_edge_p): Disregard limits when
17301 inlining into function with flatten attribute.
17302 (want_inline_small_function_p): Be more realistic about inlining
17303 cold calls where callee size grows.
17304
17305 2011-04-30 Jan Hubicka <jh@suse.cz>
17306
17307 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17308 flags.
17309
17310 2011-04-30 Anatoly Sokolov <aesok@post.ru>
17311
17312 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17313 PRINT_OPERAND_PUNCT_VALID_P): Remove.
17314 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17315 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17316 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17317 (print_operand): Rename to...
17318 (sparc_print_operand): ...this. Make static. Adjust
17319 sparc_print_operand function call.
17320 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17321 functions.
17322
17323 2011-04-30 Jan Hubicka <jh@suse.cz>
17324
17325 PR middle-end/48752
17326 * ipa-inline.c (early_inliner): Disable when doing late
17327 addition of function.
17328
17329 2011-04-30 Jakub Jelinek <jakub@redhat.com>
17330
17331 * dwarf2out.c (get_address_mode): New inline.
17332 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17333 if not dwarf_strict emit
17334 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17335 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17336 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
17337 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17338 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17339 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17340 mem_loc_descriptor callers.
17341 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17342 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17343 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17344 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17345 (base_types): New variable.
17346 (get_base_type_offset, calc_base_type_die_sizes,
17347 base_type_for_mode, mark_base_types, base_type_cmp,
17348 move_marked_base_types): New functions.
17349 (calc_die_sizes): Assert that die_offset is 0 or equal to
17350 next_die_offset.
17351 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17352 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
17353 callers. If not dwarf_strict, call mem_loc_descriptor even for
17354 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17355 (gen_subprogram_die): Don't give up on call site parameters
17356 with non-integral or large integral modes. Adjust
17357 mem_loc_descriptor callers.
17358 (prune_unused_types): Call prune_unused_types_mark on base_types
17359 vector entries.
17360 (resolve_addr): Call mark_base_types.
17361 (dwarf2out_finish): Call move_marked_base_types.
17362
17363 PR tree-optimization/48809
17364 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17365 type.
17366 (gen_inbound_check): Don't compute index_expr - range_min in utype
17367 again, instead reuse SSA_NAME initialized in build_arrays.
17368 Remove two useless gsi_for_stmt calls.
17369
17370 2011-04-29 Jeff Law <law@redhat.com>
17371
17372 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17373
17374 2011-04-29 Martin Jambor <mjambor@suse.cz>
17375
17376 * cgraph.h (cgraph_postorder): Remove declaration.
17377 * ipa-utils.h (ipa_free_postorder_info): Declare.
17378 (ipa_reverse_postorder): Likewise.
17379 * cgraphunit.c: Include ipa-utils.h.
17380 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17381 * ipa-inline.c: Include ipa-utils.h.
17382 (ipa_inline): Update call to ipa_reverse_postorder.
17383 * ipa-pure-const.c (propagate_pure_const): Update call to
17384 ipa_reduced_postorder and ipa_print_order. Call
17385 ipa_free_postorder_info to clean up.
17386 (propagate_nothrow): Likewise.
17387 * ipa-reference.c (propagate): Removed a useless call to
17388 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17389 and ipa_print_order. Call ipa_free_postorder_info to clean up.
17390 * ipa.c: Include ipa-utils.h.
17391 (ipa_profile): Update call to ipa_reverse_postorder.
17392 (cgraph_postorder): Moved to...
17393 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17394 (ipa_utils_print_order): Renamed to ipa_print_order.
17395 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17396 comments.
17397 (ipa_free_postorder_info): New function.
17398 * passes.c: Include ipa-utils.h.
17399 (do_per_function_toporder): Update call to ipa_reverse_postorder.
17400 (ipa_write_summaries): Likewise.
17401 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17402 (cgraphunit.o): Likewise.
17403 (ipa.o): Likewise.
17404 (ipa-inline.o): Likewise.
17405
17406 2011-04-29 Jan Hubicka <jh@suse.cz>
17407
17408 * gcc.dg/tree-ssa/inline-10.c: New testcase.
17409 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17410 * ipa-inline.h (clause_t): Turn into unsigned int.
17411 * ipa-inline-analysis.c (add_clause): Do more simplification.
17412 (and_predicates): Shortcut more cases.
17413 (predicates_equal_p): Move forward; check that clauses are properly
17414 ordered.
17415 (or_predicates): Shortcut more cases.
17416 (edge_execution_predicate): Rewrite as...
17417 (set_cond_stmt_execution_predicate): ... this function; handle
17418 __builtin_constant_p.
17419 (set_switch_stmt_execution_predicate): New .
17420 (compute_bb_predicates): New.
17421 (will_be_nonconstant_predicate): Update TODO.
17422 (estimate_function_body_sizes): Use compute_bb_predicates
17423 and free them later, always try to estimate if stmt is constant.
17424 (estimate_time_after_inlining, estimate_size_after_inlining):
17425 Gracefully handle optimized out edges.
17426 (read_predicate): Fix off by one error.
17427
17428 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
17429
17430 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17431
17432 2011-04-27 Xinliang David Li <davidxl@google.com>
17433
17434 * tree-profile.c (init_ic_make_global_vars): Set
17435 tls attribute on ic vars.
17436 * coverage.c (coverage_end_function): Initialize
17437 function_list with zero.
17438
17439 2011-04-29 Richard Guenther <rguenther@suse.de>
17440
17441 * builtins.c (fold_builtin_classify_type): Use integer_type_node
17442 for the type of the result.
17443 (fold_builtin_isascii): Likewise.
17444 (fold_builtin_toascii): Use integer_type_node where appropriate.
17445 (fold_builtin_logb): Likewise.
17446 (fold_builtin_frexp): Likewise.
17447 (fold_builtin_strstr): Likewise.
17448 (fold_builtin_strpbrk): Likewise.
17449 (fold_builtin_fputs): Likewise.
17450 (fold_builtin_sprintf): Likewise.
17451 (fold_builtin_snprintf): Likewise.
17452 (fold_builtin_printf): Likewise.
17453 (do_mpfr_remquo): Use a proper type for the assigned constant.
17454 (do_mpfr_lgamma_r): Likewise.
17455 * dwarf2out.c (resolve_one_addr): Use size_int.
17456 * except.c (init_eh): Likewise.
17457 (assign_filter_values): Use integer_type_node for filter values.
17458 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17459 indices.
17460 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17461 for EH region numbers.
17462 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17463 for the shift amount.
17464
17465 2011-04-29 Richard Guenther <rguenther@suse.de>
17466
17467 * expr.h (expand_shift): Rename to ...
17468 (expand_variable_shift): ... this.
17469 (expand_shift): Take a constant shift amount.
17470 * expmed.c (expand_shift): Rename to ...
17471 (expand_variable_shift): ... this.
17472 (expand_shift): New wrapper around expand_variable_shift.
17473 * expr.c (convert_move, emit_group_load_1, emit_group_store,
17474 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17475 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17476 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17477 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17478 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17479 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17480 emit_store_flag_1, emit_store_flag): Likewise.
17481 * builtins.c (expand_builtin_signbit): Likewise.
17482 * calls.c (load_register_parameters): Likewise.
17483 * function.c (assign_parm_setup_block): Likewise.
17484 * lower-subreg.c (resolve_shift_zext): Likewise.
17485 * optabs.c (widen_bswap, expand_abs_nojump,
17486 expand_one_cmpl_abs_nojump, expand_float): Likewise.
17487 * spu/spu.c (spu_expand_extv): Likewise.
17488 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17489
17490 2011-04-29 Richard Guenther <rguenther@suse.de>
17491
17492 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17493 for the remapped region number.
17494 * predict.c (build_predict_expr): Use integer_type_node for the
17495 predict kind.
17496 * fold-const.c (fold_binary_loc): Use integer_type_node for
17497 the shift amount. Use a proper type for the PLUS_EXPR operand.
17498
17499 2011-04-29 Michael Matz <matz@suse.de>
17500
17501 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17502 other trees that just builtins.
17503 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17504
17505 2011-04-29 Richard Guenther <rguenther@suse.de>
17506
17507 * tree-nested.c (get_trampoline_type): Use size_int.
17508 (get_nl_goto_field): Likewise.
17509 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17510 for all indexes.
17511 (lower_eh_constructs_2): Likewise.
17512 (lower_resx): Likewise.
17513 (lower_eh_dispatch): Likewise.
17514 * tree-mudflap.c (mf_build_string): Use size_int.
17515 (mudflap_register_call): Use integer_type_node for the flag.
17516 (mudflap_enqueue_constant): Use size_int.
17517 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17518 instead of rebuilding it.
17519
17520 2011-04-29 Richard Guenther <rguenther@suse.de>
17521
17522 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17523 Handle OBJ_TYPE_REF.
17524 (find_func_aliases_for_call): Use it more consistently.
17525
17526 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
17527
17528 * haifa-sched.c (last_nondebug_scheduled_insn): New.
17529 (rank_for_schedule): Use it.
17530 (schedule_block): Set it.
17531
17532 2011-04-28 David Li <davidxl@google.com>
17533
17534 * tree.c (crc32_string): Use crc32_byte.
17535 (crc32_byte): New function.
17536 * tree.h (crc32_byte): New function.
17537 * gcov.c (read_graph_file): Handle new cfg_cksum.
17538 (read_count_file): Ditto.
17539 * profile.c (instrument_values): Ditto.
17540 (get_exec_counts): Ditto.
17541 (read_profile_edge_counts): Ditto.
17542 (compute_branch_probabilities): Ditto.
17543 (compute_value_histograms): Ditto.
17544 (branch_prob): Ditto.
17545 (end_branch_prob): Ditto.
17546 * coverage.c (read_counts_file): Ditto.
17547 (get_coverage_counts): Ditto.
17548 (tree_coverage_counter_addr): Ditto.
17549 (coverage_checksum_string): Ditto.
17550 (coverage_begin_output): Ditto.
17551 (coverage_end_function): Ditto.
17552 (build_fn_info_type): Ditto.
17553 (build_fn_info_value): Ditto.
17554 * libgcov.c (gcov_exit): Ditto.
17555 * gcov-dump.c (tag_function): Ditto.
17556 (compute_checksum): Remove.
17557
17558 2011-04-29 Alan Modra <amodra@gmail.com>
17559
17560 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17561 unspec plus offset. Tidy macho code.
17562
17563 2011-04-29 Martin Jambor <mjambor@suse.cz>
17564
17565 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17566 node instead of a decl. Update all callers.
17567 * cgraph.h: Update declaration.
17568
17569 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
17570
17571 PR tree-optimization/48765
17572 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17573 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17574 to indicate if loop aware SLP is being used. Scan the statements
17575 and update the vectorization factor according to the type of
17576 vectorization before statement analysis.
17577 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17578 pass it to vect_analyze_loop_operations.
17579 (vectorizable_reduction): Set number of copies to 1 in case of pure
17580 SLP statement.
17581 * tree-vect-stmts.c (vectorizable_conversion,
17582 vectorizable_assignment, vectorizable_shift,
17583 vectorizable_operation, vectorizable_type_demotion,
17584 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17585 Likewise.
17586 (vectorizable_condition): Move the check that it is not SLP
17587 vectorization before the number of copies check.
17588 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17589 to vectorize the loop using SLP.
17590
17591 2011-04-28 Jakub Jelinek <jakub@redhat.com>
17592
17593 PR middle-end/48597
17594 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17595 inline asm.
17596
17597 2011-04-28 Joseph Myers <joseph@codesourcery.com>
17598
17599 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17600 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17601 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17602 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17603 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17604 linux*.h headers.
17605 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17606 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17607 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17608 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17609 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17610 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17611 REG_NAME.
17612 * config/i386/linux.h (REG_NAME): Don't define.
17613 * config/i386/linux64.h (REG_NAME): Don't define.
17614 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17615 Undefine before defining.
17616
17617 2011-04-28 Jan Hubicka <jh@suse.cz>
17618
17619 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17620 nonconstant_names array.
17621 (estimate_function_body_sizes): Build nonconstant_names array; handle
17622 BUILT_IN_CONSTANT_P.
17623
17624 2011-04-28 Richard Guenther <rguenther@suse.de>
17625
17626 PR bootstrap/48804
17627 Revert
17628 2011-04-28 Richard Guenther <rguenther@suse.de>
17629
17630 * tree-ssa-structalias.c (solve_constraints): Build succ graph
17631 as late as possible.
17632
17633 2011-04-28 Richard Guenther <rguenther@suse.de>
17634
17635 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17636 (debug_constraint): Do it here.
17637 (dump_constraints): And here.
17638 (rewrite_constraints): And here.
17639 (dump_constraint_edge): Remove.
17640 (dump_constraint_graph): Rewrite to produce DOT output.
17641 (solve_constraints): Build succ graph as late as possible.
17642 Dump constraint graphs before and after solving.
17643
17644 2011-04-28 Richard Guenther <rguenther@suse.de>
17645
17646 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17647 New function split out from ...
17648 (find_func_aliases): ... here. Call it.
17649 (find_func_aliases_for_call): Likewise.
17650
17651 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
17652
17653 * internal-fn.h (internal_fn_name_array): Declare.
17654 (internal_fn_flags_array): Likewise.
17655
17656 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17657
17658 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
17659 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17660 Move from sse.md.
17661 (ssemodefsuffix): Remove.
17662 (ssevecmodesuffix): New mode attribute.
17663 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17664 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17665 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17666 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17667 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17668 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17669 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17670 ssemodesuffix mode attribute.
17671 (float splitters): Use ssevecmodesuffix mode attribute.
17672 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17673 (sseinsmode): Rename from avxvecmode.
17674 (avxsizesuffix): Rename from avxmodesuffix.
17675 (sseintvecmode): Rename from avxpermvecmode.
17676 (ssedoublevecmode): Rename from ssedoublesizemode.
17677 (ssehalfvecmode): Rename from avxhalfvecmode.
17678 (ssescalarmode): Rename from avxscalarmode.
17679 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17680 templates for ssemodesuffix mode attribute.
17681 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17682 mode attribute.
17683
17684 Adjust RTX patterns globally for renamed mode attributes.
17685
17686 2011-04-27 Jan Hubcika <jh@suse.cz>
17687
17688 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17689 * ipa-inline-analysis.c: Include alloc-pool.h.
17690 (edge_predicate_pool): New.
17691 (trye_predicate_p): New function
17692 (false_predicate_p): New function.
17693 (add_clause): Sanity check that false clauses are "optimized";
17694 never add clauses to predicate that is already known to be false.
17695 (and_predicate): Use flase_predicate_p.
17696 (evaulate_predicate): Rename to ...
17697 (evaluate_predicate): ... this one; update all callers; assert
17698 that false is not listed among possible truths.
17699 (dump_predicate): Use true_predicate_p.
17700 (account_size_time): Use false_predicate_p.
17701 (evaulate_conditions_for_edge): Rename to ...
17702 (evaluate_conditions_for_edge) ... this one.
17703 (edge_set_predicate): New function.
17704 (inline_edge_duplication_hook): Duplicate edge predicates.
17705 (inline_edge_removal_hook): Free edge predicates.
17706 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17707 (dump_inline_summary): Update.
17708 (estimate_function_body_sizes): Set edge predicates.
17709 (estimate_calls_size_and_time): Handle predicates.
17710 (estimate_callee_size_and_time): Update.
17711 (remap_predicate): Add toplev_predicate; update comment.
17712 (remap_edge_predicates): New function.
17713 (inline_merge_summary): Compute toplev predicate; update.
17714 (read_predicate): New function.
17715 (read_inline_edge_summary): Use it.
17716 (inline_read_section): Likewise.
17717 (write_predicate): New function.
17718 (write_inline_edge_summary): Use it.
17719 (inline_write_summary): Likewise.
17720 (inline_free_summary): Free alloc pool and edge summary vec.
17721
17722 2011-04-27 Richard Guenther <rguenther@suse.de>
17723
17724 * tree-ssa-structalias.c (changed_count): Remove.
17725 (changed): Use a bitmap.
17726 (unify_nodes): Adjust.
17727 (do_sd_constraint): Likewise.
17728 (do_ds_constraint): Likewise.
17729 (do_complex_constraint): Likewise.
17730 (solve_graph): Likewise.
17731
17732 2011-04-27 Jan Hubicka <jh@suse.cz>
17733
17734 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17735
17736 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
17737
17738 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17739 (avx_vperm2f128_*_operand): Ditto.
17740 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17741 Use avx_vpermilp_parallel in insn condition.
17742 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17743 Use avx_vperm2f128_parallel in insn condition.
17744
17745 2011-04-27 Richard Guenther <rguenther@suse.de>
17746
17747 * Makefile.in (tree-ssa-structalias.o): Remove
17748 gt-tree-ssa-structalias.h dependency.
17749 (GTFILES): Remove tree-ssa-structalias.c.
17750 * tree.c (allocate_decl_uid): New function.
17751 (make_node_stat): Use it.
17752 (copy_node_stat): Likewise.
17753 * tree.h (allocate_decl_uid): Declare.
17754 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17755 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17756 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17757 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17758 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17759 (struct heapvar_map): Likewise.
17760 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17761 heapvar_insert): Likewise.
17762 (make_heapvar_for): Rename to ...
17763 (make_heapvar): ... this. Simplify.
17764 (fake_var_decl_obstack): New global var.
17765 (build_fake_var_decl): New function.
17766 (make_constraint_from_heapvar): Adjust.
17767 (handle_lhs_call): Likewise.
17768 (create_function_info_for): Likewise.
17769 (intra_create_variable_infos): Likewise.
17770 (init_alias_vars): Allocate fake_var_decl_obstack.
17771 (init_alias_heapvars, delete_alias_heapvars): Remove.
17772 (compute_points_to_sets): Do not call init_alias_heapvars.
17773 (ipa_pta_execute): Likewise.
17774 (delete_points_to_sets): Free fake_var_decl_obstack.
17775
17776 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17777
17778 * config/spu/divmovti4.c (union qword_UTItype): New data type.
17779 (si_from_UTItype, si_to_UTItype): New functions.
17780 (__udivmodti4): Use them to implement type-punning.
17781 * config/spu/multi3.c (union qword_TItype): New data type.
17782 (si_from_TItype, si_to_TItype): New functions.
17783 (__multi3): Use them to implement type-punning.
17784
17785 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17786
17787 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17788
17789 2011-04-27 Jan Hubicka <jh@suse.cz>
17790
17791 * ipa-prop.c (function_insertion_hook_holder): New holder.
17792 (ipa_add_new_function): New function.
17793 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17794 Register/deregister holder.
17795
17796 2011-04-27 Richard Guenther <rguenther@suse.de>
17797
17798 PR tree-optimization/48772
17799 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17800
17801 2011-04-27 Richard Guenther <rguenther@suse.de>
17802
17803 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17804 TARGET_MEM_REF handling.
17805
17806 2011-04-27 Nick Clifton <nickc@redhat.com>
17807
17808 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17809 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17810 (REG_CLASS_NAMES): Likewise.
17811 (REG_CLASS_CONTENTS): Likewise.
17812 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17813 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
17814 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
17815 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
17816 (EVEN_REGS): New macro. Alias for QUAD_REGS.
17817 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17818 duplicate register classes.
17819 (frv_class_likely_spilled_p): Likewise.
17820 (frv_register_move_cost): Likewise.
17821
17822 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17823 end of the regno_reg_class array.
17824
17825 2011-04-27 Jakub Jelinek <jakub@redhat.com>
17826
17827 PR c/48742
17828 * c-typeck.c (build_binary_op): Don't wrap arguments if
17829 int_operands is true.
17830
17831 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
17832
17833 PR target/48767
17834 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17835 targetm.calls.must_pass_in_stack for void type.
17836
17837 2011-04-26 Jan Hubicka <jh@suse.cz>
17838
17839 * cgraphbuild.c (build_cgraph_edges): Update call
17840 of cgraph_create_edge and cgraph_create_indirect_edge.
17841 * cgraph.c (cgraph_create_edge_including_clones,
17842 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17843 cgraph_update_edges_for_call_stmt_node): Do not take nest
17844 argument; do not initialize call_stmt_size/time.
17845 (dump_cgraph_node): Do not dump nest.
17846 (cgraph_clone_edge): Do not take loop_nest argument;
17847 do not propagate it; do not clone call_stmt_size/time.
17848 (cgraph_clone_node): Likewise.
17849 (cgraph_create_virtual_clone): Update.
17850 * cgraph.h (struct cgraph_edge): Remove
17851 call_stmt_size/call_stmt_time/loop_nest.
17852 (cgraph_create_edge, cgraph_create_indirect_edge,
17853 cgraph_create_edge_including_clones, cgraph_clone_node): Update
17854 prototype.
17855 * tree-emutls.c (gen_emutls_addr): Update.
17856 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17857 loop_nest; handle indirect calls, too.
17858 (clone_inlined_nodes): Do not care about updating inline summaries.
17859 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17860 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17861 stream call_stmt_size/call_stmt_time/loop_nest.
17862 * ipa-inline.c (edge_badness): Update.
17863 (ipa_inline): dump summaries after inlining.
17864 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17865 New.
17866 (inline_edge_summary): New function.
17867 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
17868 (inline_edge_removal_hook): Handle edge summaries.
17869 (inline_edge_duplication_hook): New hook.
17870 (inline_summary_alloc): Alloc hooks.
17871 (initialize_growth_caches): Do not register removal hooks.
17872 (free_growth_caches); Do not free removal hook.
17873 (dump_inline_edge_summary): New function.
17874 (dump_inline_summary): Use it.
17875 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
17876 (inline_update_callee_summaries): New function.
17877 (inline_merge_summary): Use it.
17878 (do_estimate_edge_time, do_estimate_edge_growth): Update.
17879 (read_inline_edge_summary): New function.
17880 (inline_read_section): Use it.
17881 (write_inline_edge_summary): New function.
17882 (inline_write_summary): Use it.
17883 (inline_free_summary): Free edge new holders.
17884 * tree-inline.c (copy_bb): Update.
17885
17886 2011-04-26 Jason Merrill <jason@redhat.com>
17887
17888 * tree-eh.c (lower_try_finally_switch): Create the label along with
17889 the CASE_LABEL_EXPR.
17890
17891 2011-04-26 David S. Miller <davem@davemloft.net>
17892 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17893
17894 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
17895 * configure: Regenerate.
17896
17897 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17898
17899 PR target/48258
17900 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
17901 reduction.
17902 (VEC_reduc): New code iterator and splitters for vector reduction.
17903 (VEC_reduc_name): Ditto.
17904 (VEC_reduc_rtx): Ditto.
17905 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
17906 (reduc_<VEC_reduc_name>_v4sf): Ditto.
17907
17908 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17909 support for extracting SF on VSX.
17910
17911 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
17912 generating xscvspdp.
17913 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
17914 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
17915 double add, minimum, maximum vector reduction.
17916 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
17917 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
17918 optimize double vector reduction.
17919 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
17920
17921 2011-04-26 Joseph Myers <joseph@codesourcery.com>
17922
17923 * config/fr30/fr30.h (inhibit_libc): Don't define.
17924 * config/m32r/m32r-protos.h: Correct comment.
17925 * config/v850/v850.h (GHS_default_section_names,
17926 GHS_current_section_names): Use tree, not union tree_node *.
17927
17928 2011-04-26 Xinliang David Li <davidxl@google.com>
17929
17930 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
17931 * c-family/c-opts.c (c_common_handle_option): Set
17932 warn_maybe_uninitialized.
17933 * opts.c (common_handle_option): Ditto.
17934 * common.opt: New option.
17935 * tree-ssa.c (warn_uninit): Add one more parameter.
17936 (warn_uninitialized_var): Pass warning code.
17937 * tree-flow.h: Interface change.
17938
17939 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17940
17941 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
17942 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
17943 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
17944
17945 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17946
17947 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
17948 * config/mips/mips.opt (mmips-tfile): Remove.
17949
17950 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
17951 mips-tdump reference to ...
17952 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
17953 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
17954 reference by Tru64 UNIX.
17955
17956 2011-04-26 Jakub Jelinek <jakub@redhat.com>
17957
17958 PR debug/48768
17959 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
17960 is error_mark_node, set value to NULL.
17961
17962 PR tree-optimization/48734
17963 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
17964 if return value from maybe_fold_*_comparsions isn't something
17965 the code is prepared to handle.
17966
17967 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
17968
17969 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
17970 mode check.
17971 (ext_QIreg_nomode_operands): Remove.
17972 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
17973 (*andsi_1): Ditto.
17974 (*andhi_1): Ditto.
17975
17976 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
17977
17978 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
17979
17980 2011-04-26 Richard Guenther <rguenther@suse.de>
17981
17982 * c-typeck.c (build_unary_op): Do not expand array-refs via
17983 pointer arithmetic. Only adjust qualifiers for function types.
17984
17985 2011-04-26 Richard Guenther <rguenther@suse.de>
17986
17987 PR middle-end/48694
17988 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
17989 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
17990 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
17991 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
17992
17993 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
17994
17995 * doc/extend.texi: Document __underlying_type.
17996
17997 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
17998
17999 * config/rs6000/titan.md (automata_option "progress"): Remove.
18000
18001 2011-04-25 Jeff Law <law@redhat.com>
18002
18003 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18004
18005 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
18006
18007 * system.h (ENUM_BITFIELD): Remove.
18008
18009 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
18010 Eric Botcazou <ebotcazou@adacore.com>
18011
18012 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18013 for STORE_FLAG_VALUE==-1 case.
18014
18015 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
18016
18017 PR target/43804
18018 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18019 LEGITIMATE_PIC_OPERAND_P.
18020
18021 2011-04-24 Jan Hubicka <jh@suse.cz>
18022
18023 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18024 WPA hack.
18025 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18026 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18027 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18028 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18029 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18030 Sanity check predicate length.
18031 (remap_predicate): Likewise; sanity check jump functions.
18032 (inline_read_section, inline_write_summary): Sanity check
18033 predicate length.
18034
18035 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
18036
18037 PR other/48748
18038 * doc/extend.texi (Type Traits): Document __is_standard_layout,
18039 __is_literal_type, and __is_trivial; update throughout about
18040 possibly cv-qualified void types.
18041
18042 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18043
18044 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18045 testsuite and make it version agnostic.
18046
18047 2011-04-22 Jan Hubicka <jh@suse.cz>
18048
18049 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18050
18051 2011-04-23 Jakub Jelinek <jakub@redhat.com>
18052
18053 PR c/48685
18054 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18055 to VOID_TYPE even around MODIFY_EXPR.
18056
18057 2011-04-22 Mike Stump <mikestump@comcast.net>
18058
18059 * gensupport.c (read_md_rtx): Fix typo in comment.
18060 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18061 comment.
18062
18063 2011-04-22 Jan Hubicka <jh@suse.cz>
18064
18065 * gengtype.c (open_base_files): Add ipa-inline.h include.
18066 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18067 ipa-prop.c; update all uses.
18068 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18069 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18070 merge summary of inlined function into former caller.
18071 * ipa-inline.c (max_benefit): Remove.
18072 (edge_badness): Compensate for removal of benefits.
18073 (update_caller_keys): Use
18074 reset_node_growth_cache/reset_edge_growth_cache.
18075 (update_callee_keys): Likewise.
18076 (update_all_callee_keys): Likewise.
18077 (inline_small_functions): Do not collect max_benefit; do not reset
18078 estimated_growth; call free_growth_caches and initialize_growth_caches.
18079 * ipa-inline.h (struct condition, type clause_t, struct predicate,
18080 struct size_time_entry): New structures.
18081 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18082 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18083 and estimated_growth.
18084 (edge_growth_cache_entry): New structure.
18085 (node_growth_cache, edge_growth_cache): New global vars.
18086 (estimate_growth): Turn into inline.
18087 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18088 initialize_growth_caches, free_growth_caches): Declare.
18089 (estimate_edge_growth): Rewrite.
18090 (estimate_edge_time): Implement as inline cache lookup.
18091 (reset_node_growth_cache, reset_edge_growth_cache): New inline
18092 functions.
18093 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18094 (NUM_CONDITIONS): New constant.
18095 (predicate_conditions): New enum.
18096 (IS_NOT_CONSTANT): New constant.
18097 (edge_removal_hook_holder): New var.
18098 (node_growth_cache, edge_growth_cache): New global vars.
18099 (true_predicate, single_cond_predicate, false_predicate,
18100 not_inlined_predicate, add_condition, add_clause, and_predicates,
18101 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18102 dump_clause, dump_predicate, account_size_time,
18103 evaulate_conditions_for_edge): New functions.
18104 (inline_summary_alloc): Move to heap.
18105 (inline_node_removal_hook): Clear condition and entry vectors.
18106 (inline_edge_removal_hook): New function.
18107 (initialize_growth_caches, free_growth_caches): New function.
18108 (dump_inline_summary): Update.
18109 (edge_execution_predicate): New function.
18110 (will_be_nonconstant_predicate): New function.
18111 (estimate_function_body_sizes): Compute BB and constantness predicates.
18112 (compute_inline_parameters): Do not clear estimated_growth.
18113 (estimate_edge_size_and_time): New function.
18114 (estimate_calls_size_and_time): New function.
18115 (estimate_callee_size_and_time): New function.
18116 (remap_predicate): New function.
18117 (inline_merge_summary): New function.
18118 (do_estimate_edge_time): New function based on...
18119 (estimate_edge_time): ... this one.
18120 (do_estimate_edge_growth): New function.
18121 (do_estimate_growth): New function based on....
18122 (estimate_growth): ... this one.
18123 (inline_analyze_function): Analyze after deciding on jump functions.
18124 (inline_read_section): New function.
18125 (inline_read_summary): Use it.
18126 (inline_write_summary): Write all the new data.
18127 * ipa-prop.c (ipa_get_param_decl_index): Export.
18128 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18129 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18130 Declare.
18131 (ipa_get_lattice): Move here from ipa-cp.c
18132 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18133 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18134 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18135 cgraph_edge_inlinable_p): Remove.
18136 * cgraphunit.c: Include ipainline.h
18137 (cgraph_process_new_functions): Update call of
18138 compute_inline_parameters.
18139
18140 2011-04-22 Richard Guenther <rguenther@suse.de>
18141
18142 * tree.c (build_int_cst): Properly create canonicalized integer
18143 constants.
18144 (build_int_cst_type): Remove scary comments.
18145
18146 2011-04-22 Xinliang David Li <davidxl@google.com>
18147
18148 * toplev.c (process_options): Enable -Werror=coverage-mismatch
18149 by default when -Wno-error is not specified.
18150 * opts-global.c (decode_options): Remove call to
18151 control_warning_options.
18152
18153 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18154
18155 PR tree-optimization/48717
18156 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18157 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18158
18159 2011-04-22 Joseph Myers <joseph@codesourcery.com>
18160
18161 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
18162 definition where used.
18163
18164 2011-04-22 Jakub Jelinek <jakub@redhat.com>
18165
18166 PR c/48716
18167 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18168 TREE_STATIC variables declared inside of some OpenMP construct.
18169
18170 2011-04-22 Martin Jambor <mjambor@suse.cz>
18171
18172 PR middle-end/48585
18173 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18174
18175 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
18176
18177 PR c/36750
18178 * c-typeck.c (pop_init_level): Do not warn about initializing
18179 with ` = {0}'.
18180
18181 2011-04-22 Alan Modra <amodra@gmail.com>
18182
18183 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18184 when returning call_cookie.
18185 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18186 pointers, to functions with no more vector args than the current
18187 function, and some non-local calls for ABI_V4.
18188 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18189 sibcall_nonlocal_aix64): Combine to ..
18190 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
18191 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18192 (sibcall_value_nonlocal_aix<mode>): ..likewise.
18193 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18194 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
18195 operand.
18196 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18197 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18198 sibcall_value_symbolic_64): Delete.
18199
18200 2011-04-21 Xinliang David Li <davidxl@google.com>
18201
18202 * cgraph.h: Remove pid.
18203 * cgraph.c: Remove pid.
18204 * value-prof.c (init_node_map): New function.
18205 (del_node_map): New function.
18206 (find_func_by_funcdef_no): New function.
18207 (gimple_ic_transform): Call new function.
18208 * cgraphunit.c (cgraph_finalize_function): Remove pid.
18209 * function.c (get_last_funcdef_no): New function.
18210 * function.h (get_last_funcdef_no): New function.
18211 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18212 to libgcov function.
18213 (tree-profiling): Call node map init and delete function.
18214
18215 2011-04-21 Ian Lance Taylor <iant@google.com>
18216
18217 * godump.c (go_format_type): Use exported Go name for anonymous
18218 field name.
18219
18220 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18221
18222 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18223 Call builtin_function_type_list instead of builtin_function_type.
18224 (UNARY, BINARY, TRINARY, QUAD): Likewise.
18225
18226 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18227
18228 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18229 build_function_type_list instead of build_function_type.
18230 Delete variable `endlink'.
18231
18232 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18233
18234 * config/s390/s390.c (s390_init_builtins): Call
18235 build_function_type_list instead of build_function_type.
18236
18237 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
18238
18239 * config/ia64/ia64.c (ia64_init_builtins): Call
18240 build_function_type_list instead of builtin_function_type.
18241
18242 2011-04-21 Easwaran Raman <eraman@google.com>
18243
18244 * cfgexpand.c (stack_var): Remove OFFSET...
18245 (add_stack_var): ...and its reference here...
18246 (expand_stack_vars): ...and here.
18247 (stack_var_cmp): Sort by descending order of size.
18248 (partition_stack_vars): Change heuristic.
18249 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18250 (dump_stack_var_partition): Add newline after each partition.
18251
18252 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
18253 Jeff Law <law@redhat.com>
18254
18255 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18256 * gengtype.c (matching_file_name_substitute): Likewise.
18257
18258 2011-04-21 Richard Guenther <rguenther@suse.de>
18259
18260 PR lto/48703
18261 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18262
18263 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
18264
18265 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18266
18267 2011-04-21 Richard Guenther <rguenther@suse.de>
18268
18269 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18270 file name.
18271
18272 2011-04-21 Richard Guenther <rguenther@suse.de>
18273
18274 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18275 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18276 Use DECL_P, not SSA_VAR_P.
18277 (ptr_derefs_may_alias_p): Likewise.
18278 (ptr_deref_may_alias_ref_p_1): Likewise.
18279 (decl_refs_may_alias_p): Likewise.
18280 (refs_may_alias_p_1): Likewise.
18281 (ref_maybe_used_by_call_p_1): Likewise.
18282 (call_may_clobber_ref_p_1): Likewise.
18283 (indirect_ref_may_alias_decl_p): Assume indirect refrences
18284 are either MEM_REF or TARGET_MEM_REF.
18285 (indirect_refs_may_alias_p): Likewise.
18286 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18287 for MEM_EXPR of indirect calls.
18288
18289 2011-04-21 Tristan Gingold <gingold@adacore.com>
18290
18291 * vmsdbgout.c (write_srccorr): Compute file length from the string.
18292 (dst_file_info_struct): Remove flen field.
18293 (lookup_filename): Remove code that set flen field.
18294
18295 2011-04-21 Tristan Gingold <gingold@adacore.com>
18296
18297 * config/ia64/ia64.c (ia64_start_function): Add a guard.
18298
18299 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
18300
18301 PR target/48708
18302 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18303 vec_extract and vec_concat for non-SSE4_1 targets.
18304
18305 2011-04-21 Richard Guenther <rguenther@suse.de>
18306
18307 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18308 return statements.
18309
18310 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18311
18312 * config/i386/cygming.h (union tree_node, TREE): Don't define or
18313 undefine.
18314 (FILE): Don't undefine.
18315
18316 2011-04-21 Joseph Myers <joseph@codesourcery.com>
18317
18318 * config/alpha/alpha.c (struct machine_function): Use rtx, not
18319 struct rtx_def *.
18320 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18321 struct rtx_def *.
18322 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18323 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18324 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18325 rtx_def *.
18326 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
18327 definitions where used.
18328 * config/microblaze/microblaze.h (struct microblaze_args): Use
18329 rtx, not struct rtx_def *.
18330 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18331 rtx_def *.
18332 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18333 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18334 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18335 not struct rtx_def *.
18336 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18337 struct rtx_def *.
18338 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18339 rtx_def *.
18340 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18341
18342 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18343
18344 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18345 operand_equal_p to compare DR_BASE_ADDRESSes.
18346 (vect_check_interleaving): Likewise.
18347
18348 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18349
18350 PR target/46329
18351 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18352 for all Neon struct constants.
18353
18354 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18355
18356 * target.def (legitimate_constant_p): New hook.
18357 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18358 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18359 * doc/tm.texi: Regenerate.
18360 * hooks.h (hook_bool_mode_rtx_true): Declare.
18361 * hooks.c (hook_bool_mode_rtx_true): Define.
18362 * system.h (LEGITIMATE_CONSTANT_P): Poison.
18363 * calls.c (precompute_register_parameters): Replace uses of
18364 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18365 (emit_library_call_value_1): Likewise.
18366 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18367 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18368 * ira-costs.c (scan_one_insn): Likewise.
18369 * recog.c (general_operand, immediate_operand): Likewise.
18370 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18371 * reload1.c (init_eliminable_invariants): Likewise.
18372
18373 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18374 mode argument.
18375 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18376 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18377 argument.
18378 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18379 * config/alpha/predicates.md (input_operand): Update call to
18380 alpha_legitimate_constant_p.
18381
18382 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18383 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18384 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18385 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18386 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18387 (arm_legitimate_constant_p): New functions.
18388 (arm_cannot_force_const_mem): Make static.
18389
18390 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18391
18392 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18393 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18394 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18395 instead of bfin_legitimate_constant_p.
18396 (bfin_legitimate_constant_p): Make static. Add a mode argument.
18397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18398
18399 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18400
18401 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18402
18403 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18404 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18405 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18406 (frv_legitimate_constant_p): Make static. Add a mode argument.
18407
18408 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18409 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18410 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18411
18412 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18413 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18414 * config/i386/i386.c (legitimate_constant_p): Rename to...
18415 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
18416 argument.
18417 (ix86_cannot_force_const_mem): Update accordingly.
18418 (ix86_legitimate_address_p): Likewise.
18419 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18420 * config/i386/i386.md: Update commentary.
18421
18422 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18423 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18424 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18425 (ia64_legitimate_constant_p): Make static. Add a mode argument.
18426
18427 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18428
18429 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18430 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18431 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18432 (lm32_legitimate_constant_p): Make static. Add a mode argument.
18433
18434 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18435 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18436 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18437
18438 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18439 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18440 (m32r_legitimate_constant_p): New function.
18441
18442 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18443 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18444 LEGITIMATE_CONSTANT_P.
18445 (LEGITIMATE_CONSTANT_P): Delete.
18446 * config/m68k/m68k.c (m68k_expand_prologue): Call
18447 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18448 (m68k_legitimate_constant_p): New function.
18449 * config/m68k/m68k.md: Update comments.
18450
18451 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18452 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18453 (mcore_legitimate_constant_p): New function.
18454
18455 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18456 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18457 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18458 Add a mode argument.
18459 (mep_legitimate_address): Update accordingly.
18460 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18461
18462 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18463 Delete.
18464 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18465 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18466 static. Check OP's mode for VOIDmode.
18467 (microblaze_legitimate_constant_p): New function.
18468 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18469
18470 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18471 * config/mips/mips.c (mips_legitimate_constant_p): New function.
18472 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18473 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18474 * config/mips/predicates.md: Update comments.
18475
18476 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18477 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18478 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18479 (mmix_legitimate_constant_p): Make static, return a bool, and take
18480 a mode argument.
18481 (mmix_print_operand_address): Update accordingly.
18482
18483 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18484 Delete.
18485 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18486 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18487 static. Add a mode argument.
18488 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18489
18490 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18491
18492 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18493 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18494 (pa_legitimate_constant_p): New function.
18495
18496 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18497
18498 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18499 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18500 (pdp11_legitimate_constant_p): New function.
18501
18502 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18503 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18504 (rs6000_legitimate_constant_p): New function.
18505
18506 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18507 (rx_legitimate_constant_p): ...this.
18508 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18509 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18510 (rx_legitimate_constant_p): ...this.
18511 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18512 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18513
18514 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18515 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18516 * config/s390/s390.c (legitimate_constant_p): Rename to...
18517 (s390_legitimate_constant_p): ...this. Make static, return a bool,
18518 and add a mode argument.
18519 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18520
18521 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18522
18523 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18524 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18525 (sh_legitimate_constant_p): New function.
18526
18527 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18528 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18529 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18530 (legitimate_constant_p): Rename to...
18531 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
18532 argument.
18533 (constant_address_p): Update accordingly.
18534
18535 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18536 argument and return a bool.
18537 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18538 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18539 (spu_legitimate_constant_p): Add a mode argument and return a bool.
18540 (spu_rtx_costs): Update accordingly.
18541 * config/spu/predicates.md (vec_imm_operand): Likewise.
18542
18543 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18544
18545 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18546 * config/v850/v850.c (v850_legitimate_constant_p): New function.
18547 (TARGET_LEGITIMATE_CONSTANT_P): Define.
18548
18549 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18550 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18551 * config/vax/vax.c (legitimate_constant_p): Likewise.
18552
18553 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18554 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18555 (xtensa_legitimate_constant_p): New function.
18556
18557 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
18558
18559 * target.def (cannot_force_const_mem): Add a mode argument.
18560 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18561 * doc/tm.texi: Regenerate.
18562 * hooks.h (hook_bool_mode_rtx_false): Declare.
18563 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18564 (hook_bool_mode_const_rtx_true): Likewise.
18565 (hook_bool_mode_rtx_false): New function.
18566 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18567 to be non-VOID. Update call to cannot_force_const_mem.
18568 (find_reloads): Update accordingly.
18569 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18570 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18571 argument.
18572 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18573 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18574 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18575 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18576 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18577 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18578 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18579 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18580 (m68k_cannot_force_const_mem): ...this new function.
18581 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18582 argument.
18583 (mips_const_insns, mips_legitimize_const_move): Update calls.
18584 (mips_secondary_reload_class): Likewise.
18585 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18586 (pa_cannot_force_const_mem): ...this new function.
18587 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18588 (rs6000_cannot_force_const_mem): ...this new function.
18589 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18590 argument.
18591 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18592 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18593 to...
18594 (xtensa_cannot_force_const_mem): ...this new function.
18595
18596 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18597
18598 * config/mips/mips.c (mips16_build_function_stub): Call
18599 build_function_type_list instead of build_function_type.
18600 (mips16_build_call_stub): Likewise.
18601
18602 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18603
18604 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18605 instead of build_function_type.
18606
18607 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
18608
18609 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18610 instead of build_function_type.
18611
18612 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
18613
18614 PR target/48678
18615 * config/i386/i386.md (insv): Change operand 0 constraint to
18616 "register_operand". Change operand 1 and 2 constraint to
18617 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
18618 * config/i386/sse.md (sse4_1_pinsrb): Export.
18619 (sse2_pinsrw): Ditto.
18620 (sse4_1_pinsrd): Ditto.
18621 (sse4_1_pinsrq): Ditto.
18622 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18623 * config/i386/i386.c (ix86_expand_pinsr): New.
18624
18625 2011-04-20 Easwaran Raman <eraman@google.com>
18626
18627 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18628 containing union type only with -fstrict-aliasing.
18629
18630 2011-04-20 Jim Meyering <meyering@redhat.com>
18631
18632 Remove useless if-before-free tests.
18633 * calls.c (expand_call, save_area): Likewise.
18634 * cfgcleanup.c (try_forward_edges): Likewise.
18635 * collect2.c (collect_execute): Likewise.
18636 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18637 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18638 * coverage.c (coverage_checksum_string): Likewise.
18639 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18640 * cselib.c (cselib_init): Likewise.
18641 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18642 (df_set_clean_cfg): Likewise.
18643 * function.c (free_after_compilation): Likewise.
18644 * gcc.c (do_spec_1, main): Likewise.
18645 * gcov.c (create_file_names): Likewise.
18646 * gensupport.c (identify_predicable_attribute): Likewise.
18647 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18648 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18649 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18650 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18651 * ipa-pure-const.c (local_pure_const): Likewise.
18652 * ipa-reference.c (propagate): Likewise.
18653 * ira-costs.c (free_ira_costs): Likewise.
18654 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18655 * matrix-reorg.c (mat_free): Likewise.
18656 * prefix.c (get_key_value): Likewise.
18657 * profile.c (compute_value_histograms): Likewise.
18658 * reload1.c (free_reg_equiv): Likewise.
18659 * sched-deps.c (free_deps): Likewise.
18660 * sel-sched-ir.c (fence_clear): Likewise.
18661 * sese.c (set_rename, if_region_set_false_region): Likewise.
18662 * tree-data-ref.c (free_rdg): Likewise.
18663 * tree-eh.c (lower_try_finally): Likewise.
18664 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18665 * tree-ssa-live.c (delete_var_map): Likewise.
18666 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18667 * tree-ssa-pre.c (phi_trans_add): Likewise.
18668
18669 2011-04-20 Jakub Jelinek <jakub@redhat.com>
18670
18671 PR tree-optimization/48611
18672 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18673 beyond ERT_MUST_NOT_THROW region.
18674
18675 2011-04-20 Catherine Moore <clm@codesourcery.com>
18676
18677 * config/mips/mips.opt (mfix-24k): New.
18678 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18679 * config/mips/mips.md (length): Increase by 4 for stores if
18680 fixing 24K errata.
18681 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18682 all noreorder if fixing 24K errata.
18683 * doc/invoke.texi: Document mfix-24k.
18684
18685 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
18686
18687 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18688 quad-word modes, reduce to 9-bit index range when above 1016 limit.
18689
18690 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18691
18692 * config/arm/arm.c (arm_gen_constant): Move movw support ....
18693 (const_ok_for_op): ... to here.
18694
18695 2011-04-20 Kai Tietz <ktietz@redhat.com>
18696
18697 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18698 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18699
18700 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
18701
18702 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18703
18704 2011-04-20 Richard Guenther <rguenther@suse.de>
18705
18706 PR tree-optimization/47892
18707 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18708 are if-convertible.
18709
18710 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
18711
18712 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18713
18714 2011-04-20 Tristan Gingold <gingold@adacore.com>
18715
18716 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18717
18718 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
18719
18720 PR target/18145
18721
18722 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18723 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18724 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18725 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18726 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18727
18728 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18729 New prototype.
18730
18731 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18732 (avr_asm_named_section, avr_asm_output_aligned_common,
18733 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18734 New functions to update...
18735 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18736 (avr_asm_init_sections): Overwrite section callbacks for
18737 data_section, bss_section.
18738 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18739 from here to...
18740 (avr_file_end): ...here.
18741
18742 2011-04-20 Richard Guenther <rguenther@suse.de>
18743
18744 PR middle-end/48695
18745 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18746 objects and types here. Adjust for their offset before comparing.
18747
18748 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18749
18750 * tree-vect-stmts.c (vectorizable_store): Only chain one related
18751 statement per copy.
18752
18753 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
18754
18755 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18756 (GIMPLE_H): Include $(INTERNAL_FN_H).
18757 (OBJS-common): Add internal-fn.o.
18758 (internal-fn.o): New rule.
18759 * internal-fn.def: New file.
18760 * internal-fn.h: Likewise.
18761 * internal-fn.c: Likewise.
18762 * gimple.h: Include internal-fn.h.
18763 (GF_CALL_INTERNAL): New gf_mask.
18764 (gimple_statement_call): Put fntype into a union with a new
18765 internal_fn field.
18766 (gimple_build_call_internal): Declare.
18767 (gimple_build_call_internal_vec): Likewise.
18768 (gimple_call_same_target_p): Likewise.
18769 (gimple_call_internal_p): New function.
18770 (gimple_call_internal_fn): Likewise.
18771 (gimple_call_fntype): Return null for internal calls.
18772 (gimple_call_set_fntype): Assert that the function is not internal.
18773 (gimple_call_set_fn): Likewise.
18774 (gimple_call_set_fndecl): Likewise.
18775 (gimple_call_set_internal_fn): New function.
18776 (gimple_call_addr_fndecl): Handle null functions.
18777 (gimple_call_return_type): Likewise null types.
18778 * gimple.c (gimple_build_call_internal_1): New function.
18779 (gimple_build_call_internal): Likewise.
18780 (gimple_build_call_internal_vec): Likewise.
18781 (gimple_call_same_target_p): Likewise.
18782 (gimple_call_flags): Handle calls to internal functions.
18783 (gimple_call_fnspec): New function.
18784 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18785 (gimple_has_side_effects): Handle null functions.
18786 (gimple_rhs_has_side_effects): Likewise.
18787 (gimple_call_copy_skip_args): Handle calls to internal functions.
18788 * cfgexpand.c (expand_call_stmt): Likewise.
18789 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18790 * gimple-fold.c (gimple_fold_call): Handle null functions.
18791 (gimple_fold_stmt_to_constant_1): Don't fold
18792 calls to internal functions.
18793 * gimple-low.c (gimple_check_call_args): Handle calls to internal
18794 functions.
18795 * gimple-pretty-print.c (dump_gimple_call): Likewise.
18796 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18797 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18798 (do_warn_unused_result): Likewise.
18799 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18800 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18801 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18802 the target of a call.
18803 (initialize_hash_element): Update accordingly.
18804 (hashable_expr_equal_p): Use gimple_call_same_target_p.
18805 (iterative_hash_hashable_expr): Handle calls to internal functions.
18806 (print_expr_hash_elt): Likewise.
18807 * tree-ssa-pre.c (can_value_number_call): Likewise.
18808 (eliminate): Handle null functions.
18809 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18810 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18811 (find_func_aliases): Likewise.
18812 * value-prof.c (gimple_ic_transform): Likewise.
18813 (gimple_indirect_call_to_profile): Likewise.
18814 * lto-streamer-in.c (input_gimple_stmt): Likewise.
18815 * lto-streamer-out.c (output_gimple_stmt): Likewise.
18816
18817 2011-04-19 Jan Hubicka <jh@suse.cz>
18818
18819 * ipa-inline-transform.c (save_inline_function_body): Add comments.
18820 * ipa-inline.c (inline_small_functions): Compute summaries first,
18821 populate heap later.
18822
18823 2011-04-19 Jan Hubicka <jh@suse.cz>
18824
18825 * cgraph.h (save_inline_function_body): Remove.
18826 * ipa-inline-transform.c: New file, broke out of...
18827 * ipa-inline.c: ... this one; Update toplevel comment.
18828 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18829 make global.
18830 (update_noncloned_frequencies): Move to ipa-inline-transform.c
18831 (cgraph_mark_inline_edge): Rename to inline_call; move to
18832 ipa-inline-transform.c.
18833 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18834 move to ipa-inline-transform.c
18835 (recursive_inlining, inline_small_functions, flatten_function,
18836 ipa_inline, inline_always_inline_functions,
18837 early_inline_small_functions): Update.
18838 (inline_transform): Move to ipa-inline-transform.c.
18839 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18840 Declare.
18841 * Makefile.in (ipa-inline-transform.o): New file.
18842 * cgraphunit.c (save_inline_function_body): Move to
18843 ipa-inline-transform.c
18844
18845 2011-04-19 DJ Delorie <dj@redhat.com>
18846
18847 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18848 registers if we already know there aren't any.
18849 (m32c_emit_epilogue): Don't emit a barrier here.
18850 (m32c_emit_eh_epilogue): Likewise.
18851 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18852 operands at expand time.
18853 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18854 int" wchar type.
18855 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18856 duplicates. Provide aliases instead.
18857 * config/m32c/prologue.md (eh_return): Emit a barrier here.
18858 (eh_epilogue): Add a "(return)" here as a hint to other parts of
18859 the compiler.
18860
18861 2011-04-19 Anatoly Sokolov <aesok@post.ru>
18862
18863 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18864 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18865 (general_or_i64_p, sparc_register_move_cost): New function.
18866
18867 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18868
18869 * doc/install.texi (Configuration, --enable-threads): Remove mach.
18870 Add lynx, mipssde. Sort table.
18871
18872 2011-04-19 Xinliang David Li <davidxl@google.com>
18873
18874 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
18875 not negative.
18876
18877 2011-04-19 Jakub Jelinek <jakub@redhat.com>
18878
18879 PR target/48678
18880 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
18881 is a SUBREG with non-MODE_INT mode inside of it.
18882
18883 2011-04-19 Martin Jambor <mjambor@suse.cz>
18884
18885 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
18886 also according to actual contants.
18887 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
18888 (gimple_fold_call): Use it.
18889 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
18890
18891 2011-04-19 Martin Jambor <mjambor@suse.cz>
18892
18893 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18894 non-pointer assignments.
18895
18896 2011-04-19 Martin Jambor <mjambor@suse.cz>
18897
18898 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
18899 account anc_offset and otr_type from the indirect edge info.
18900 * ipa-prop.c (get_ancestor_addr_info): New function.
18901 (compute_complex_ancestor_jump_func): Assignment analysis moved to
18902 get_ancestor_addr_info, call it.
18903 (ipa_note_param_call): Do not initialize information about polymorphic
18904 calls, return the indirect call graph edge. Remove the last
18905 parameter, adjust all callers.
18906 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
18907 parameters. Initialize polymorphic information in the indirect edge.
18908
18909 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
18910
18911 PR lto/48148
18912 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
18913 the types if they have different enumeration identifiers.
18914
18915 2011-04-19 Jan Hubicka <jh@suse.cz>
18916
18917 * cgraph.h (cgraph_optimize_for_size_p): Declare.
18918 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
18919 * predict.c (cgraph_optimize_for_size_p): Break out from ...
18920 (optimize_function_for_size_p) ... here.
18921
18922 2011-04-19 Richard Guenther <rguenther@suse.de>
18923
18924 PR lto/48207
18925 * tree.c (free_lang_data): Do not reset the decl-assembler-name
18926 langhook.
18927
18928 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
18929
18930 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
18931 if DECL_NO_INLINE_WARNING_P is set on the function.
18932
18933 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
18934
18935 PR fortran/47976
18936 * reload1.c (inc_for_reload): Return void. All callers changed.
18937 (emit_input_reload_insns): Don't try to delete previous output
18938 reloads to a register, or record spill_reg_store for autoincs.
18939
18940 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
18941
18942 * gengtype.h: Updated copyright year.
18943 (struct input_file_st): Add inpisplugin field.
18944 (type_fileloc): New function.
18945 * gengtype.c
18946 (write_typed_struct_alloc_def): Add gcc_assert.
18947 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
18948 (write_typed_alloc_defns): Don't output for plugin files.
18949 (input_file_by_name): Clear inpisplugin field.
18950 (main): Set inpisplugin field for plugin files.
18951
18952 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
18953
18954 * gengtype-state.c (string_eq): New.
18955 (read_state): Use string_eq instead of strcmp when creating the
18956 state_ident_tab.
18957
18958 2011-04-19 Wei Guozhi <carrot@google.com>
18959
18960 PR target/47855
18961 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
18962 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
18963 linkage.
18964 * config/arm/constraints.md (Uu): New constraint.
18965 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
18966
18967 2011-04-19 Tristan Gingold <gingold@adacore.com>
18968
18969 * config.gcc (-*-*-*vms): Added.
18970 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
18971 definitions moved.
18972 * config/vms/vms-ld.c: New file.
18973 * config/vms/vms-ar.c: New file.
18974 * config/vms/t-vmsnative: New file.
18975
18976 2011-04-18 Xinliang David Li <davidxl@google.com>
18977
18978 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
18979
18980 2011-04-18 Jakub Jelinek <jakub@redhat.com>
18981
18982 PR middle-end/48661
18983 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
18984 if TREE_TYPE (v) is non-NULL.
18985
18986 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
18987 gimple_get_virt_mehtod_for_binfo.
18988 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
18989 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
18990 callers.
18991 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18992
18993 2011-04-18 Michael Matz <matz@suse.de>
18994 Steve Ellcey <sje@cup.hp.com>
18995
18996 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
18997 use its mode as source mode if it isn't VOIDmode.
18998
18999 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
19000
19001 * doc/passes.texi: Fill crossref nodes.
19002
19003 2011-04-18 Jim Meyering <meyering@redhat.com>
19004
19005 Fix doubled-word typos in comments and strings
19006 * config/alpha/vms-unwind.h: s/for for/for/
19007 * config/arm/unwind-arm.h: Likewise.
19008 * config/microblaze/microblaze.c: Likewise.
19009 * config/sh/constraints.md: s/in in/in/
19010 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19011
19012 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
19013
19014 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19015 (AVX_FLOAT_MODE_P): Ditto.
19016 (AVX128_VEC_FLOAT_MODE_P): Ditto.
19017 (AVX256_VEC_FLOAT_MODE_P): Ditto.
19018 (AVX_VEC_FLOAT_MODE_P): Ditto.
19019 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19020 (UNSPEC_MASKSTORE): Ditto.
19021 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19022 Merge from <sse>_movmsk<ssemodesuffix> and
19023 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
19024 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
19025 iterator.
19026 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19027 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19028 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19029
19030 2011-04-18 Jan Hubicka <jh@suse.cz>
19031
19032 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19033
19034 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19035 (want_inline_function_called_once_p): Break out the logic from
19036 ipa_inline.
19037 (edge_badness): Ensure that profile is not misupdated.
19038 (lookup_recursive_calls): Prioritize by call frequencies.
19039 (inline_small_functions): Move program size estimates here;
19040 actually process whole queue even when unit growth has been
19041 met. (to properly compute inline_failed reasons and for the
19042 case unit size decrease.) Revisit comments on recursive inlining.
19043 (ipa_inline): Remove unit summary code; first inline hot calls
19044 of functions called once, cold calls next.
19045 (order, nnodes): Remove unused variables.
19046 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19047 (GTFILES): Remove ipa-inline.c
19048 * sel-sched.c (fill_insns): Silence uninitialized var warning.
19049
19050 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19051
19052 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19053
19054 2011-04-18 Jie Zhang <jie@codesourcery.com>
19055 Richard Earnshaw <rearnsha@arm.com>
19056
19057 * arm.c (neon_builtin_type_bits): Remove.
19058 (typedef enum neon_builtin_mode): New.
19059 (T_MAX): Don't define.
19060 (typedef enum neon_builtin_datum): Remove bits, codes[],
19061 num_vars and base_fcode. Add mode, code and fcode.
19062 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19063 VAR10): Change accordingly.
19064 (neon_builtin_data[]): Change accordingly
19065 (arm_init_neon_builtins): Change accordingly.
19066 (neon_builtin_compare): Remove.
19067 (locate_neon_builtin_icode): Remove.
19068 (arm_expand_neon_builtin): Change accordingly.
19069
19070 * arm.h (enum arm_builtins): Move to ...
19071 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19072
19073 * arm.c (arm_builtin_decl): Declare.
19074 (TARGET_BUILTIN_DECL): Define.
19075 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19076 (arm_builtin_decls[]): New.
19077 (arm_init_neon_builtins): Store builtin declarations in
19078 arm_builtin_decls[].
19079 (arm_init_tls_builtins): Likewise.
19080 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
19081 (arm_builtin_decl): New.
19082
19083 2011-04-18 Richard Guenther <rguenther@suse.de>
19084
19085 * tree.c (upper_bound_in_type): Build properly canonicalized
19086 INTEGER_CSTs.
19087 (lower_bound_in_type): Likewise.
19088
19089 2011-04-18 Richard Guenther <rguenther@suse.de>
19090
19091 * gimple.h (gimple_call_addr_fndecl): New function.
19092 (gimple_call_fndecl): Use it.
19093 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19094 for direct calls.
19095 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19096 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19097
19098 2011-04-18 Richard Guenther <rguenther@suse.de>
19099
19100 PR middle-end/48650
19101 * tree.c (build_string): STRING_CST is now derived from tree_typed.
19102
19103 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
19104
19105 PR lto/48492
19106 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19107 DECL_IN_CONSTANT_POOL without RTL.
19108
19109 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
19110 Ira Rosen <ira.rosen@linaro.org>
19111
19112 PR target/48252
19113 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19114 to match neon_vzip/vuzp/vtrn_internal.
19115 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19116 outputs explicitly dependent on both inputs.
19117 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19118
19119 2011-04-18 Jakub Jelinek <jakub@redhat.com>
19120
19121 PR tree-optimization/48616
19122 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19123 whether the shift is by scalar or vector based on whether all SLP
19124 scalar stmts have the same rhs.
19125
19126 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
19127
19128 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19129 memory operands.
19130
19131 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
19132
19133 PR target/43700
19134 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19135 registers.
19136
19137 2011-04-17 Jan Hubicka <jh@suse.cz>
19138
19139 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19140 * cgrpahunit.c (cgraph_finalize_function): Do not set
19141 finalized_by_frontend.
19142 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19143 finalized_by_frontend.
19144
19145 2011-04-17 Jan Hubicka <jh@suse.cz>
19146
19147 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19148 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19149 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19150 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19151 method.
19152 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19153 gimple-fold.c
19154 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19155
19156 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
19157
19158 PR lto/48538
19159 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19160 is non-null before accessing it.
19161 (input_cgraph): Remove trailing spaces.
19162
19163 2011-04-17 Revital Eres <revital.eres@linaro.org>
19164
19165 * params.def (sms-min-sc): New param flag.
19166 * modulo-sched.c (sms_schedule): Use it.
19167 * doc/invoke.texi (sms-min-sc): Document it.
19168
19169 2011-04-17 Jan Hubicka <jh@suse.cz>
19170
19171 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19172 present, also set gimple_call_set_cannot_inline.
19173 * ipa-inline.c: Update toplevel comment.
19174 (MAX_TIME): Remove.
19175 (cgraph_clone_inlined_nodes): Fix linebreaks.
19176 (cgraph_check_inline_limits): Restructure to ...
19177 (caller_growth_limits): ... this one; be more tolerant
19178 on growth in nested inline chains; add explanatory comment;
19179 fix stack accounting thinko introduced by previous patch.
19180 (cgraph_default_inline_p): Remove.
19181 (report_inline_failed_reason): New function.
19182 (can_inline_edge_p): New function.
19183 (can_early_inline_edge_p): New function.
19184 (leaf_node_p): Move upwards in file.
19185 (want_early_inline_function_p): New function.
19186 (want_inline_small_function_p): New function.
19187 (want_inline_self_recursive_call_p): New function.
19188 (cgraph_edge_badness): Rename to ...
19189 (edge_badness) ... this one; fix linebreaks.
19190 (update_edge_key): Update call of edge_baddness; add
19191 detailed dump about queue updates.
19192 (update_caller_keys): Use can_inline_edge_p and
19193 want_inline_small_function_p.
19194 (cgraph_decide_recursive_inlining): Rename to...
19195 (recursive_inlining): Use can_inline_edge_p and
19196 want_inline_self_recursive_call_p; simplify and remove no longer
19197 valid FIXME.
19198 (cgraph_set_inline_failed): Remove.
19199 (add_new_edges_to_heap): Use can_inline_edge_p and
19200 want_inline_small_function_p.
19201 (cgraph_decide_inlining_of_small_functions): Rename to ...
19202 (inline_small_functions): ... this one; cleanup; use
19203 can/want predicates; cleanup debug ouput; work edges till fibheap
19204 is exhausted and do not stop once unit growth is reached; remove
19205 later loop processing remaining edges.
19206 (cgraph_flatten): Rename to ...
19207 (flatten_function): ... this one; use can_inline_edge_p
19208 and can_early_inline_edge_p predicates.
19209 (cgraph_decide_inlining): Rename to ...
19210 (ipa_inline): ... this one; remove unreachable nodes before
19211 inlining functions called once; simplify the pass.
19212 (cgraph_perform_always_inlining): Rename to ...
19213 (inline_always_inline_functions): ... this one; use
19214 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19215 (cgraph_decide_inlining_incrementally): Rename to ...
19216 (early_inline_small_functions): ... this one; simplify
19217 using new predicates; cleanup; make dumps prettier.
19218 (cgraph_early_inlining): Rename to ...
19219 (early_inliner): newer inline regular functions into always-inlines;
19220 fix updating of call stmt summaries.
19221 (pass_early_inline): Update for new names.
19222 (inline_transform): Fix formating.
19223 (gate_cgraph_decide_inlining): Rename to ...
19224 (pass_ipa_inline): ... this one.
19225 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19226 * ipa-inline-analysis.c (dump_inline_summary): Update.
19227 (compute_inline_parameters): Do not compute disregard_inline_limits;
19228 look for mismatching arguments.
19229 (estimate_growth): Fix handlig of non-trivial self recursion.
19230 (inline_read_summary): Do not read info->disregard_inline_limits.
19231 (inline_write_summary): Do not write info->disregard_inline_limits.
19232 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19233 and move all checks into can_inline_edge_p predicate; re-enable code
19234 comparing optimization levels.
19235 (expand_call_inline): Do not test inline_forbidden_into_p.
19236 * Makefile.in (ipa-inline.o): Update arguments.
19237
19238 2011-04-17 Revital Eres <revital.eres@linaro.org>
19239
19240 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19241
19242 2011-04-17 Revital Eres <revital.eres@linaro.org>
19243
19244 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19245
19246 2011-04-17 Michael Matz <matz@suse.de>
19247
19248 PR tree-optimization/48622
19249 PR lto/48645
19250 * ipa-inline-analysis.c (inline_read_summary): Read size/time
19251 in same order as they're written.
19252
19253 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19254
19255 * config/pa/predicates.md: Reorganize and simplify predicates.
19256 Eliminate duplicate code checks.
19257 (arith_operand): Rename to arith14_operand
19258 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19259 * config/pa/pa.md: Use renamed operands.
19260 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19261 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19262 arith11_operand, adddi3_operand, indexed_memory_operand,
19263 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19264 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19265 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19266 move_dest_operand, move_src_operand, prefetch_cc_operand,
19267 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19268 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19269 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19270 div_operand, int5_operand, movb_comparison_operator,
19271 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19272 arith_double_operand, ireg_operand, lhs_lshift_operand,
19273 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19274 integer_store_memory_operand): Likewise.
19275 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19276 (integer_store_memory_operand, read_only_operand,
19277 function_label_operand, borx_reg_operand,
19278 non_hard_reg_operand): Likewise.
19279 (eq_neq_comparison_operator): Delete unused operator.
19280 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19281 function_label_operand.
19282 (emit_move_sequence): Likewise.
19283
19284 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19285
19286 * config/i386/sse.md (sseunpackmode): New mode attribute.
19287 (ssepackmode): Ditto.
19288 (vec_pack_trunc_<mode>): Macroize expander from
19289 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19290 (vec_unpacks_lo_<mode>): Macroize expander from
19291 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19292 (vec_unpacks_hi_<mode>): Macroize expander from
19293 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19294 (vec_unpacku_lo_<mode>): Macroize expander from
19295 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19296 (vec_unpacku_hi_<mode>): Macroize expander from
19297 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19298 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19299 ix86_expand_sse4_unpack.
19300 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19301
19302 2011-04-16 Jan Hubicka <jh@suse.cz>
19303
19304 * cgraphbuild.c: Include ipa-inline.h.
19305 (reset_inline_failed): Use initialize_inline_failed.
19306 * cgraph.c: Include ipa-inline.h.
19307 (cgraph_create_node_1): Do not initialize estimated_growth.
19308 (initialize_inline_failed): More to ipa-inline-analysis.c
19309 (dump_cgraph_node): Do not dump inline flags.
19310 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19311 and disregard_inline_limits flags.
19312 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19313 time, size, estimated_growth.
19314 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19315 Update.
19316 * cgraphunit.c (cgraph_decide_is_function_needed): Use
19317 DECL_DISREGARD_INLINE_LIMITS.
19318 (cgraph_analyze_function): Do not initialize
19319 node->local.disregard_inline_limits.
19320 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19321 inlinable, versionable and disregard_inline_limits.
19322 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19323 cgraph_check_inline_limits, cgraph_default_inline_p,
19324 cgraph_edge_badness, update_caller_keys, update_callee_keys,
19325 add_new_edges_to_heap): Update.
19326 (cgraph_decide_inlining_of_small_function): Update; set
19327 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19328 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19329 cgraph_decide_inlining_incrementally): Update.
19330 * ipa-inline.h (inline_summary): Add inlinable, versionable,
19331 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19332 time, size and estimated_growth parameters.
19333 (estimate_edge_growth): Update.
19334 (initialize_inline_failed): Declare.
19335 * ipa-split.c: Include ipa-inline.h
19336 (execute_split_functions): Update.
19337 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19338 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19339 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19340 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19341 estimated_growth to INT_MIN.
19342 (inline_node_duplication_hook): Likewise.
19343 (dump_inline_summary): Dump new fields.
19344 (compute_inline_parameters): Update.
19345 (estimate_edge_time, estimate_time_after_inlining,
19346 estimate_size_after_inlining, estimate_growth, inline_read_summary,
19347 inline_write_summary):
19348 (initialize_inline_failed): Move here from cgraph.c.
19349 * tree-sra.c: Include ipa-inline.h.
19350 (ipa_sra_preliminary_function_checks): Update.
19351 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19352 ipa-inline.h.
19353
19354 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
19355
19356 * config/i386/sse.md (V16): New mode iterator.
19357 (VI1, VI8): Ditto.
19358 (AVXMODEQI, AVXMODEDI): Remove.
19359 (sse2, sse3): New mode attribute.
19360 (mov<mode>): Use V16 mode iterator.
19361 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19362 (push<mode>1): Use V16 mode iterator.
19363 (movmisalign<mode>): Ditto.
19364 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19365 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19366 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19367 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19368 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19369 avx_movdqu<avxmodesuffix>.
19370 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19371 *avx_movdqu<avxmodesuffix>.
19372 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19373 avx_lddqu<avxmodesuffix>.
19374 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19375 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19376 avx_movnt<AVXMODEDI:mode>.
19377 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19378 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19379
19380 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
19381
19382 PR target/48629
19383 * haifa-sched.c (prune_ready_list, schedule_block): Use
19384 sched_pressure_p rather than flag_sched_pressure.
19385
19386 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
19387
19388 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19389 cgraph_get_node instead of cgraph_get_create_node.
19390
19391 2011-04-15 Jakub Jelinek <jakub@redhat.com>
19392
19393 * cfgexpand.c (expand_debug_expr): Use
19394 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19395
19396 2011-04-15 Michael Matz <matz@suse.de>
19397
19398 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19399 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19400 * function.c (gimplify_parameters): Ditto.
19401 * gimplify.c (gimplify_vla_decl): Ditto.
19402
19403 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19404 (gimple_call_set_alloca_for_var): New inline function.
19405 (gimple_call_alloca_for_var_p): Ditto.
19406 * gimple.c (gimple_build_call_from_tree): Remember
19407 CALL_ALLOCA_FOR_VAR_P state.
19408 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19409
19410 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19411 calls if they were for VLA objects.
19412
19413 2011-04-15 Martin Jambor <mjambor@suse.cz>
19414
19415 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19416 of ADR_EXPRs.
19417
19418 2011-04-15 Martin Jambor <mjambor@suse.cz>
19419
19420 PR middle-end/48601
19421 * tree-emutls.c (lower_emutls_function_body): Call
19422 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
19423 result is non-NULL.
19424
19425 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
19426
19427 * c-decl.c (detect_field_duplicates): Call
19428 objc_detect_field_duplicates instead of objc_get_interface_ivars.
19429
19430 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
19431
19432 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19433 * gimple.c (gimple_asm_clobbers_memory_p): Define.
19434 * ipa-pure-const.c (check_stmt): Call it.
19435 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19436
19437 2011-04-15 Richard Guenther <rguenther@suse.de>
19438
19439 PR tree-optimization/48290
19440 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19441 Properly decide inhibiting propagation based on the valueized
19442 operand. Do loop-closed SSA form preserving here ...
19443 (init_copy_prop): ... not here.
19444
19445 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
19446
19447 PR target/48612
19448 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19449 (*ieee_smax<mode>3): Likewise.
19450
19451 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19452
19453 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19454 Replace match_operand with match_dup for the third operand in
19455 these expanders.
19456
19457 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19458
19459 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19460 to track processing of conditionals. Update all callers.
19461 (try_combine, simplify_if_then_else): Update.
19462
19463 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
19464
19465 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19466 -fsched-pressure.
19467
19468 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
19469
19470 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19471 instead of match_operand for operand 3.
19472
19473 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
19474
19475 * recog.h (insn_operand_data): Add an "allows_mem" field.
19476 * genoutput.c (output_operand_data): Initialize it.
19477 * optabs.c (maybe_legitimize_operand_same_code): New function.
19478 (maybe_legitimize_operand): Use it when matching the original
19479 op->value.
19480
19481 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19482
19483 * gimplify.c: Fix issues in comments throughout.
19484 (voidify_wrapper_expr): Fix long line.
19485 (build_stack_save_restore): Likewise.
19486 (gimplify_loop_expr): Likewise.
19487 (gimplify_compound_lval): Likewise.
19488 (gimplify_init_ctor_eval): Likewise.
19489 (gimplify_modify_expr_rhs): Likewise.
19490 (omp_notice_threadprivate_variable): Likewise.
19491
19492 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
19493
19494 * cfgexpand.c (expand_call_stmt): Convert the function type to the
19495 original one if this is not a builtin function.
19496
19497 2011-04-14 Jakub Jelinek <jakub@redhat.com>
19498
19499 PR target/48605
19500 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19501 offset it as needed based on top 2 bits in operands[3], change
19502 MEM mode to SFmode and mask those 2 bits away from operands[3].
19503
19504 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19505
19506 * c-parser.c (c_parser_objc_protocol_definition): Updated for
19507 change from objc_declare_protocols() to objc_declare_protocol().
19508
19509 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
19510
19511 * config/i386/sse.md (sse4_1): New mode attribute.
19512 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19513 avx_blend<ssemodesuffix><avxmodesuffix> and
19514 sse4_1_blend<ssemodesuffix> using VF mode iterator.
19515 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19516 avx_blendv<ssemodesuffix><avxmodesuffix> and
19517 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19518 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19519 avx_dp<ssemodesuffix><avxmodesuffix> and
19520 sse4_1_dp<ssemodesuffix> using VF mode iterator.
19521 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19522 (sse4_1_packusdw): Merge with *avx_packusdw.
19523 (sse4_1_pblendvb): Merge with *avx_pblendvb.
19524 (sse4_1_pblendw): Merge with *avx_pblendw.
19525 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19526 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19527 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19528 VF mode iterator.
19529 (sse4_1_round<ssescalarmodesuffix>): Merge with
19530 *avx_round<ssescalarmodesuffix>.
19531 (aesenc): Merge with *avx_aesenc.
19532 (aesenclast): Merge with *avx_aesenclast.
19533 (aesdec): Merge with *avx_aesdec.
19534 (aesdeclast): Merge with *avx_aesdeclast.
19535 (pclmulqdq): Merge with *pclmulqdq.
19536 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19537 New predicate.
19538 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19539
19540 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
19541
19542 PR middle-end/48608
19543 * cfgexpand.c (get_decl_align_unit): Renamed to ...
19544 (align_local_variable): This. Update DECL_ALIGN.
19545 (add_stack_var): Updated.
19546 (expand_one_stack_var): Likewise.
19547
19548 2011-04-14 Richard Guenther <rguenther@suse.de>
19549
19550 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19551 Remove.
19552 (dse_initialize_block_local_data, dse_leave_block,
19553 record_voperand_set, get_stmt_uid): Likewise.
19554 (dse_possible_dead_store_p): Allow any kind of killing stmt.
19555 (dse_optimize_stmt): Remove voperand set handling code.
19556 Simplify and improve to handle any kind of killing stmt.
19557 (dse_record_phi): Remove.
19558 (dse_enter_block): Simplify.
19559 (tree_ssa_dse): Likewise.
19560 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19561
19562 2011-04-14 Jan Hubicka <jh@suse.cz>
19563
19564 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19565 * cgraph.h (struct inline_summary): Move to ipa-inline.h
19566 (cgraph_local_info): Remove inline_summary.
19567 * ipa-cp.c: Include ipa-inline.h.
19568 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19569 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19570 accesor.
19571 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19572 (input_overwrite_node): Do not set inline summary.
19573 (input_node): Do not stream inline summary.
19574 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19575 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19576 growth; we do not have inline parameters computed for that anyway.
19577 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19578 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19579 (inline_summary_t): New type and VECtor.
19580 (debug_inline_summary, dump_inline_summaries): Declare.
19581 (inline_summary): Use VOCtor.
19582 (estimate_edge_growth): Kill hack computing call stmt size directly.
19583 * lto-section-in.c (lto_section_name): Add inline section.
19584 * ipa-inline-analysis.c: Include lto-streamer.h
19585 (node_removal_hook_holder, node_duplication_hook_holder): New holders
19586 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19587 (inline_summary_vec): Define.
19588 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19589 dump_inline_summaries): New functions.
19590 (estimate_function_body_sizes): Properly compute size/time of outgoing
19591 calls.
19592 (compute_inline_parameters): Alloc inline_summary; do not compute
19593 size/time of incomming calls.
19594 (estimate_edge_time): Avoid missing time summary hack.
19595 (inline_read_summary): Read inline summary info.
19596 (inline_write_summary): Write inline summary info.
19597 (inline_free_summary): Free all hooks and inline summary vector.
19598 * lto-streamer.h: Add LTO_section_inline_summary section.
19599 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19600 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19601
19602 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19603
19604 * tree-vectorizer.h (vect_strided_store_supported): Add a
19605 HOST_WIDE_INT argument.
19606 (vect_strided_load_supported): Likewise.
19607 (vect_permute_store_chain): Return void.
19608 (vect_transform_strided_load): Likewise.
19609 (vect_permute_load_chain): Delete.
19610 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19611 count argument. Check that the count is a power of two.
19612 (vect_strided_load_supported): Likewise.
19613 (vect_permute_store_chain): Return void. Update after above changes.
19614 Assert that the access is supported.
19615 (vect_permute_load_chain): Likewise.
19616 (vect_transform_strided_load): Return void.
19617 * tree-vect-stmts.c (vectorizable_store): Update calls after
19618 above interface changes.
19619 (vectorizable_load): Likewise.
19620 (vect_analyze_stmt): Don't check for strided powers of two here.
19621
19622 2011-04-14 Richard Guenther <rguenther@suse.de>
19623
19624 PR tree-optimization/48590
19625 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19626 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19627 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19628 BUILT_IN_STACK_SAVE.
19629 * tree-ssa-dce.c (propagate_necessity): Handle
19630 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19631
19632 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
19633
19634 * c-parser.c (c_parser_objc_class_declaration): Updated call to
19635 objc_declare_class.
19636
19637 2011-04-14 Richard Guenther <rguenther@suse.de>
19638
19639 * tree.h (get_object_alignment_1): Declare.
19640 * builtins.c (get_object_alignment_1): Split out worker from ...
19641 (get_object_alignment): ... here.
19642 * fold-const.c (get_pointer_modulus_and_residue): Use
19643 get_object_alignment_1.
19644
19645 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19646
19647 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19648 type parameter.
19649 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19650 parameter. Generalise code to handle arrays as well as vectors.
19651 (vect_setup_realignment): Update accordingly.
19652 * tree-vect-stmts.c (vectorizable_store): Likewise.
19653 (vectorizable_load): Likewise.
19654
19655 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19656
19657 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19658 within the per-copy loop.
19659
19660 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19661
19662 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19663 in the dump file.
19664
19665 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
19666
19667 * doc/options.texi (Negative): Explicitly mention that the
19668 Negative chain must be circular.
19669
19670 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
19671
19672 * function.h (block_chainon): Declare.
19673 * function.c (block_chainon): Define.
19674
19675 2011-04-14 Anatoly Sokolov <aesok@post.ru>
19676 Eric Weddington <eric.weddington@atmel.com>
19677 Georg-Johann Lay <avr@gjlay.de>
19678
19679 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19680 New Includes
19681 (avr_init_builtins, avr_expand_builtin,
19682 avr_expand_delay_cycles, avr_expand_unop_builtin,
19683 avr_expand_binop_builtin ): New functions.
19684 (avr_builtin_id): New enum
19685 (struct avr_builtin_description): New struct
19686 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19687 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19688
19689 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19690 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19691 UNSPECV_DELAY_CYCLES): new enumeration values
19692 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19693 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19694 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19695 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19696 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19697 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19698 "fmulsu"): New insns
19699
19700 * config/avr/avr-c.c: fix line endings
19701 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19702 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19703 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19704 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19705 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19706
19707 * doc/extend.texi (AVR Built-in Functions): New node
19708 (Target Builtins): Add documentation of AVR
19709 built-in functions.
19710
19711 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
19712
19713 PR target/44643
19714 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19715 alone. Error if non-const data has attribute progmem.
19716
19717 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19718
19719 * tree.h (struct tree_constructor): Include tree_typed instead of
19720 tree_common.
19721 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19722 TS_TYPED instead of TS_COMMON.
19723
19724 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
19725
19726 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19727 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19728 (sse2_psadbw): Merge with *avx_psadbw.
19729 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19730 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19731 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19732 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19733 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19734 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19735 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19736 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19737 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19738 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19739 (ssse3_palignrti): Merge with *avx_palignrti.
19740
19741 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19742
19743 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19744 * tree-ssanames.c (fini_ssanames): VEC_free it.
19745 (make_ssa_name_fn): Update for VECness of free_ssanames.
19746 (release_ssa_name, release_dead_ssa_names): Likewise.
19747 * tree.h (struct tree_ssa_name): Include tree_typed instead of
19748 tree_common.
19749 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19750 TS_TYPED instead of TS_COMMON.
19751
19752 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19753
19754 * postreload-gcse.c (gcse_after_reload_main): Add calls to
19755 statistics_counter_event.
19756 * tree-ssa-copyrename.c (stats): Define.
19757 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
19758 statistics_counter_event.
19759 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19760 (bswap_stats, widen_mul_stats): Define.
19761 (insert_reciprocals): Increment rdivs_inserted.
19762 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
19763 rfuncs_inserted. Add calls to statistics_counter_event.
19764 (execute_cse_sincos_1): Increment inserted.
19765 (execute_cse_sincos): Zeroize sincos_stats. Add call to
19766 statistics_counter_event.
19767 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
19768 of bswap_stats. Add calls to statistics_counter_event.
19769 (convert_mult_to_widen): Increment widen_mults_inserted.
19770 (convert_plusminus_to_widen): Increment maccs_inserted.
19771 (convert_mult_to_fma): Increment fmas_inserted.
19772 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
19773 calls to statistics_counter_event.
19774
19775 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
19776
19777 PR rtl-optimization/48455
19778 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19779 `temp_costs->mem_cost'.
19780
19781 2011-04-13 Jan Hubicka <jh@suse.cz>
19782
19783 * ipa-inline.h: New file.
19784 * ipa-inline-analysis.c: New file. Broken out of ...
19785 * ipa-inline.c: ... this file; update toplevel comment;
19786 include ipa-inline.h
19787 (inline_summary): Move to ipa-inline.h
19788 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19789 ipa-inline-analysis.c.
19790 (cgraph_estimate_time_after_inlining): Rename to
19791 estiamte_time_after_inlining; move to ipa-inline-analysis.c
19792 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19793 to estimate_edge_growth.
19794 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19795 rename to estimate_size_after_inlining.
19796 (cgraph_mark_inline_edge): Update for new naming convention.
19797 (cgraph_check_inline_limits): Likewise.
19798 (cgraph_edge_badness): Likewise.
19799 (cgraph_decide_recursive_inlining): Likewise.
19800 (cgraph_decide_inlining_of_small_functions): Likewise.
19801 (cgraph_decide_inlining_incrementally): Likewise.
19802 (cgraph_estimate_growth): Rename to estimate_growth; move to
19803 ipa-inline-analysis.c.
19804 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19805 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19806 (compute_inline_parameters): Likewise.
19807 (compute_inline_parameters_for_current): Likewise.
19808 (pass_inline_parameters): Likewise.
19809 (inline_indirect_intraprocedural_analysis): Likewise.
19810 (analyze_function): Rename to inline_analyze_function; likewise.
19811 (add_new_function): Move to ipa-inline-analysis.c.
19812 (inline_generate_summary): Likewise.
19813 (inline_read_summary): Likewise.
19814 (inline_write_summary): Likewise.
19815 * Makefile.in (ipa-inline-analysis.c): New file.
19816
19817 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19818
19819 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19820 * configure: Regenerate.
19821
19822 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
19823
19824 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19825 instead of tree_common.
19826 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19827 Likewise.
19828 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19829 TS_TYPED rather than TS_COMMON.
19830 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19831
19832 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
19833
19834 PR target/45263
19835 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19836 r20 around calls of __tablejump_elpm__
19837
19838 2011-04-13 Jakub Jelinek <jakub@redhat.com>
19839
19840 PR middle-end/48591
19841 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19842 NULL.
19843 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19844
19845 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
19846
19847 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19848 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19849 (cfi_vec): New typedef.
19850 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19851 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19852 (cie_cfi_vec): New static variable.
19853 (cie_cfi_head): Delete.
19854 (add_cfi): Accept a cfi_vec * as first argument. All callers and
19855 declaration changed. Use vector rather than list operations.
19856 (new_cfi): Don't initialize the dw_cfi_next field.
19857 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19858 rather than list operations.
19859 (lookup_cfa): Use vector rather than list operations.
19860 (output_cfis): New argument upto. Accept a cfi_vec rather than
19861 a dw_cfi_ref list head as argument. All callers changed.
19862 Iterate over the vector using upto as a maximum index.
19863 (output_all_cfis): New static function.
19864 (output_fde): Use vector rather than list operations. Use the
19865 new upto argument for output_cfis rather than manipulating a
19866 list.
19867 (dwarf2out_begin_prologue): Change initializations to match
19868 new struct members.
19869 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
19870 from the vector length rather than searching for the end of a list.
19871 Use output_all_cfis.
19872 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
19873
19874 2011-04-13 Nick Clifton <nickc@redhat.com>
19875
19876 * config/rx/rx.md (movmemsi): Do not use this pattern when
19877 volatile pointers are involved.
19878
19879 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
19880
19881 * config/i386/sse.md (pinsrbits): Remove.
19882 (sse2_packsswb): Merge with *avx_packsswb.
19883 (sse2_packssdw): Merge with *avx_packssdw.
19884 (sse2_packuswb): Merge with *avx_packuswb.
19885 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
19886 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
19887 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
19888 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
19889 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
19890 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
19891 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
19892 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
19893 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
19894 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
19895 (sse2_loadld): Merge with *avx_loadld.
19896 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
19897 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
19898 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
19899 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
19900 (vec_concatv2di): Merge with *vec_concatv2di_avx.
19901
19902 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
19903
19904 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
19905 calling TREE_CHAIN.
19906 * print-tree.c (print_node): Likewise.
19907 * tree-inline.c (copy_tree_r): Likewise.
19908 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
19909 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
19910 instead of TS_COMMON.
19911 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
19912 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
19913 (copy_node_stat): Zero TREE_CHAIN only if necessary.
19914 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
19915 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
19916 ...and these...
19917 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
19918 * tree.h: ...here.
19919 (TREE_CHAIN): Check for a TS_COMMON structure.
19920 (TREE_TYPE): Check for a TS_TYPED structure.
19921
19922 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
19923
19924 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19925 cgraph_get_create_node instead of cgraph_node.
19926
19927 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
19928
19929 * c-parser.c (c_parser_initelt): Updated call to
19930 objc_build_message_expr.
19931 (c_parser_postfix_expression): Likewise.
19932
19933 2011-04-12 Kai Tietz <ktietz@redhat.com>
19934
19935 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
19936 MASK_MS_BITFIELD_LAYOUT bit.
19937
19938 2011-04-12 Jakub Jelinek <jakub@redhat.com>
19939
19940 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
19941 assert it is always true.
19942 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
19943 moves.
19944
19945 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
19946
19947 * c-parser.c (c_lex_one_token): Rewritten conditional used when
19948 compiling Objective-C to be more efficient.
19949
19950 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
19951
19952 * opts-common.c (decode_cmdline_options_to_array): Remove variable
19953 argv_copied.
19954
19955 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
19956
19957 * recog.h, genoutput.c, optabs.c: Revert last patch.
19958
19959 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19960
19961 PR target/48090
19962 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
19963
19964 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
19965
19966 * recog.h (insn_operand_data): Add an "allows_mem" field.
19967 * genoutput.c (output_operand_data): Initialize it.
19968 * optabs.c (maybe_legitimize_operand_same_code): New function.
19969 (maybe_legitimize_operand): Use it when matching the original
19970 op->value.
19971
19972 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
19973
19974 * genpreds.c (process_define_predicate): Move most processing
19975 to gensupport.c. Continue to validate the expression.
19976 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
19977 (process_define_predicate): Move processing to gensupport.c.
19978 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
19979 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
19980 (compute_predicate_codes): Moved from genrecog.c. Add lineno
19981 argument.
19982 (valid_predicate_name_p): New function, split out from old
19983 genpreds.c:process_define_predicate.
19984 (process_define_predicate): New function, combining code from
19985 old genpreds.c and genrecog.c functions.
19986 (process_rtx): Call it for DEFINE_PREDICATE and
19987 DEFINE_SPECIAL_PREDICATE.
19988
19989 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
19990
19991 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
19992 size of a '%A' memory reference.
19993 (T_DREG, T_QREG): New neon_builtin_type_bits.
19994 (arm_init_neon_builtins): Assert that the load and store operands
19995 are neon_struct_operands.
19996 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
19997 (NEON_ARG_MEMORY): New builtin_arg.
19998 (neon_dereference_pointer): New function.
19999 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20000 Handle NEON_ARG_MEMORY.
20001 (arm_expand_neon_builtin): Update after above interface changes.
20002 Use NEON_ARG_MEMORY for loads and stores.
20003 * config/arm/predicates.md (neon_struct_operand): New predicate.
20004 * config/arm/iterators.md (V_two_elem): Tweak formatting.
20005 (V_three_elem): Use BLKmode for accesses that have no associated mode.
20006 (V_four_elem): Tweak formatting.
20007 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20008 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20009 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20010 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20011 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20012 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20013 (neon_vst4<mode>): Replace pointer operand with a memory operand.
20014 Use %A in the output template.
20015 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20016 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20017 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20018 the width of the memory access. Remove post-increment.
20019 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20020
20021 2011-04-12 Nick Clifton <nickc@redhat.com>
20022
20023 * config/v850/v850.c (expand_prologue): Do not use the CALLT
20024 instruction for interrupt handlers if the target is the basic V850
20025 architecture.
20026 (expand_epilogue): Likewise.
20027
20028 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20029
20030 PR rtl-optimization/48549
20031 * combine.c (propagate_for_debug): Also stop after BB_END of
20032 this_basic_block. Process LAST and just stop processing after it.
20033 (combine_instructions): If last_combined_insn has been deleted,
20034 set last_combined_insn to its PREV_INSN.
20035
20036 2011-04-12 Richard Guenther <rguenther@suse.de>
20037
20038 PR tree-optimization/46076
20039 * gimple.h (struct gimple_statement_call): Add fntype field.
20040 (gimple_call_fntype): Adjust.
20041 (gimple_call_set_fntype): New function.
20042 * gimple.c (gimple_build_call_1): Set the call function type.
20043 * gimplify.c (gimplify_call_expr): Preserve the function
20044 type the frontend used for the call.
20045 (gimplify_modify_expr): Likewise.
20046 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20047 function type.
20048 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20049 function type.
20050 * tree-ssa.c (useless_type_conversion_p): Function pointer
20051 conversions are useless.
20052
20053 2011-04-12 Martin Jambor <mjambor@suse.cz>
20054
20055 * cgraph.h (cgraph_node): Remove function declaration.
20056 (cgraph_create_node): Declare.
20057 (cgraph_get_create_node): Likewise.
20058 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20059 Updated all callers.
20060 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20061 the decl does not already exist. Call cgraph_get_create_node instead
20062 of cgraph_node.
20063 (cgraph_get_create_node): New function.
20064 (cgraph_same_body_alias): Update comment.
20065 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20066 assert it does not return NULL.
20067 (cgraph_update_edges_for_call_stmt): Likewise.
20068 (cgraph_clone_edge): Likewise.
20069 (cgraph_create_virtual_clone): Likewise.
20070 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20071 instead of cgraph_node.
20072 (cgraph_add_new_function): Call cgraph_create_node or
20073 cgraph_get_create_node instead of cgraph_node.
20074 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20075 instead of cgraph_node.
20076 (record_eh_tables): Likewise.
20077 (mark_address): Likewise.
20078 (mark_load): Likewise.
20079 (build_cgraph_edges): Call cgraph_get_create_node instead
20080 of cgraph_node.
20081 (rebuild_cgraph_edges): Likewise.
20082 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20083 instead of cgraph_node.
20084 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20085 cgraph_node.
20086 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20087 cgraph_create_node instead of cgraph_node.
20088 * c-decl.c (finish_function): Call cgraph_get_create_node instead
20089 of cgraph_node.
20090 * lto-cgraph.c (input_node): Likewise.
20091 * lto-streamer-in.c (input_function): Likewise.
20092 * varasm.c (mark_decl_referenced): Likewise.
20093 (assemble_alias): Likewise.
20094
20095 2011-04-12 Martin Jambor <mjambor@suse.cz>
20096
20097 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20098 instead of cgraph_node and assert it does not return NULL.
20099 * lto-streamer-in.c (lto_read_body): Likewise.
20100 * omp-low.c (new_omp_context): Likewise.
20101 (create_task_copyfn): Likewise.
20102 * tree-emutls.c (lower_emutls_function_body): Likewise.
20103 * matrix-reorg.c (transform_allocation_sites): Likewise.
20104
20105 2011-04-12 Jakub Jelinek <jakub@redhat.com>
20106
20107 PR c/48552
20108 * c-typeck.c (build_asm_expr): Error out on attempts to use
20109 void type outputs or inputs for constraints that allow reg or
20110 don't allow memory.
20111
20112 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
20113 Richard Earnshaw <rearnsha@arm.com>
20114
20115 PR target/48250
20116 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20117 to use sign-magnitude offsets. Reject unsupported unaligned
20118 cases. Add detailed description in comments.
20119 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20120 condition from TARGET_32BIT to TARGET_ARM.
20121
20122 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
20123
20124 * tree.h (struct typed_tree): New.
20125 (struct tree_common): Include it instead of tree_base.
20126 (TREE_TYPE): Update for new location of type field.
20127 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20128 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20129 (union tree_node): Add typed field.
20130 * treestruct.def (TS_TYPED): New.
20131 * lto-streamer.c (check_handled_ts_structures): Handle it.
20132 * tree.c (MARK_TS_TYPED): New macro.
20133 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20134
20135 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
20136
20137 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20138 (force_nonfallthru): Do not alter the loop nest if no basic block
20139 was created.
20140
20141 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20142
20143 * config/i386/sse.md (VI): New mode iterator.
20144 (SSEMODEI): Remove.
20145 (AVX256MODEI): Ditto.
20146 (AVXMODEF4P): Ditto.
20147 (avxvecpsmode): Ditto.
20148 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
20149 (sse2_andnot<mode>3): New expander.
20150 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20151 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
20152 (<any_logic:code><mode>3): Use VI mode iterator.
20153 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20154 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
20155 (*andnottf3): Handle AVX three-operand constraints.
20156 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20157
20158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20159 Robert Millan <rmh@gnu.org>
20160
20161 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20162 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20163 GNU_USER_DYNAMIC_LINKER64): Define.
20164 (REG_NAME): Don't undefine.
20165 (MD_UNWIND_SUPPORT): Undefine.
20166 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20167 (REG_NAME): Don't undefine.
20168 (MD_UNWIND_SUPPORT): Undefine.
20169 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20170
20171 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20172
20173 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20174 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20175
20176 2011-04-11 Xinliang David Li <davidxl@google.com>
20177
20178 * value-profile.c (check_ic_target): New function.
20179 (gimple_ic_transform): Sanity check indirect call target.
20180 * gimple-low.c (gimple_check_call_args): Interface change.
20181 (gimple_check_call_matching_types): New function.
20182 * tree-inline.c (tree_can_inline_p): Call new function.
20183
20184 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
20185
20186 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20187 tree-pretty-print.h & realmpfr.h.
20188
20189 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
20190
20191 PR middle-end/48464
20192 * ira.c (setup_pressure_classes): Fix typo in loop condition.
20193 (setup_allocno_and_important_classes): Ditto.
20194
20195 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20196
20197 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20198 GNU_USER_DYNAMIC_LINKER.
20199 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20201 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20202 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20203 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20204 GNU_USER_TARGET_OS_CPP_BUILTINS.
20205 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20207 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20208 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20209 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20210 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20211 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20212 GNU_USER_TARGET_OS_CPP_BUILTINS.
20213 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20214 GNU_USER_DYNAMIC_LINKER.
20215 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20216 GNU_USER_TARGET_OS_CPP_BUILTINS.
20217 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20218 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20219 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20220 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20221 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20222 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20223 GNU_USER_DYNAMIC_LINKER64): Remove.
20224 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20225 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20226 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20227 GNU_USER_DYNAMIC_LINKER.
20228 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20229 GNU_USER_TARGET_OS_CPP_BUILTINS.
20230 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20231 GNU_USER_TARGET_OS_CPP_BUILTINS.
20232 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20233 to GNU_USER_TARGET_OS_CPP_BUILTINS.
20234 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20235 GNU_USER_TARGET_OS_CPP_BUILTINS.
20236 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20237 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20238 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20239 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20241 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20242 GNU_USER_DYNAMIC_LINKER.
20243 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20244 GNU_USER_TARGET_OS_CPP_BUILTINS.
20245 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20247 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20248 GNU_USER_DYNAMIC_LINKER.
20249 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20250 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20251 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20253 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20254 GNU_USER_DYNAMIC_LINKER.
20255 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20256 GNU_USER_DYNAMIC_LINKERN32.
20257 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20258 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
20259 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
20260 GNU_USER_DYNAMIC_LINKER32.
20261 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20262 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20263 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20264 GNU_USER_DYNAMIC_LINKER.
20265 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20266 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20267 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20268 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20269 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20270 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20271 GNU_USER_DYNAMIC_LINKER32.
20272 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20273 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20274 GNU_USER_DYNAMIC_LINKER.
20275 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20277 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20278 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
20279 GNU_USER_DYNAMIC_LINKER64.
20280 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20281 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20282 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20283 GNU_USER_DYNAMIC_LINKER.
20284 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20285 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20286 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20287 GNU_USER_DYNAMIC_LINKER.
20288 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20290 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20291 GNU_USER_DYNAMIC_LINKER32.
20292 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20293 GNU_USER_DYNAMIC_LINKER64.
20294 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20295 GNU_USER_DYNAMIC_LINKER64.
20296 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20298 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20300 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20301
20302 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20303
20304 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
20305 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20306 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20307 GNU_USER_DYNAMIC_LINKER.
20308 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20309 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
20310 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20311 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20312 GNU_USER_DYNAMIC_LINKER64.
20313 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20314 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20315 GNU_USER_LINK_EMULATION.
20316 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20317 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20318 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20319 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20320 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20321 CPP_SPEC, CC1_SPEC): Remove.
20322 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20323 (GNU_USER_DYNAMIC_LINKER): Define.
20324 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20325 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20326 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20327 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20328 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20329 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20330 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20331 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20332 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20333 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20334 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20335 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20336 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20337 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20338 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20339 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20340 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20341 GNU_USER_DYNAMIC_LINKER.
20342 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20343 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20344 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20345 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20346 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20347 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
20348 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20349 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20350 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20351 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20352
20353 2011-04-11 Kai Tietz <ktietz@redhat.com>
20354
20355 PR target/9601
20356 PR target/11772
20357 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20358 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20359 comment.
20360 (ix86_is_msabi_thiscall): Removed.
20361 (ix86_is_type_thiscall): Likewise.
20362 (ix86_get_callcvt): New function.
20363 (ix86_comp_type_attributes): Simplify check.
20364 (ix86_function_regparm): Use ix86_get_callcvt for calling
20365 convention attribute checks.
20366 (ix86_return_pops_args): Likewise.
20367 (ix86_static_chain): Likewise.
20368 (x86_this_parameter): Likewise.
20369 (x86_output_mi_thunk): Likewise.
20370 (ix86_function_type_abi): Optimize check for types without attributes.
20371 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20372 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20373 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20374 by flag-values.
20375 (IX86_BASE_CALLCVT): Helper macro.
20376 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20377 Use ix86_get_callcvt for calling convention attribute checks and avoid
20378 symbol-decoration for stdcall in TARGET_RTD case.
20379 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20380 Likewise.
20381 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20382 for declaration.
20383
20384 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
20385
20386 * config/i386/sse.md (VI_128): New mode iterator.
20387 (VI12_128): Rename from SSEMODE12.
20388 (VI14_128): Rename from SSEMODE14.
20389 (VI124_128): New mode iterator.
20390 (VI24_128): Rename from SSEMODE248.
20391 (VI248_128): Rename from SSEMODE248.
20392 (SSEMODE124C8): Remove.
20393 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20394 (*sse2_<plusminus_insn><mode>3): Merge with
20395 *avx_<plusminus_insn><mode>3.
20396 (*mulv8hi3): Merge with *avx_mulv8hi3.
20397 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20398 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20399 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20400 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20401 (ashr<mode>3): Merge with *avx_ashr<mode>3.
20402 (lshr<mode>3): Merge with *avx_lshr<mode>3.
20403 (ashl<mode>3): Merge with *avx_ashl<mode>3.
20404 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20405 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20406 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20407 (*<smaxmin:code>v8hi3): Ditto.
20408 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20409 (*<smaxmin:code>v16qi3): Ditto.
20410 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20411 (*sse2_eq<mode>3): Ditto.
20412 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20413 (*sse2_gt<mode>3): Ditto.
20414 (vcondv2di): Split out of vcond<mode>.
20415 (vconduv2di): Split out of vcondu<mode>.
20416
20417 2011-04-11 Richard Guenther <rguenther@suse.de>
20418
20419 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20420 before calling tree_low_cst.
20421
20422 2011-04-11 Richard Guenther <rguenther@suse.de>
20423
20424 * stor-layout.c (layout_type): Compute all array index size operations
20425 in the original type.
20426 (initialize_sizetypes): Add comment.
20427 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20428
20429 2011-04-11 Joseph Myers <joseph@codesourcery.com>
20430
20431 * common.opt (Tbss=, Tdata=, Ttext=): New options.
20432
20433 2011-04-11 Martin Jambor <mjambor@suse.cz>
20434
20435 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20436 of cgraph_node, handle NULL return value.
20437 (cgraph_global_info): Likewise.
20438 (cgraph_rtl_info): Likewise.
20439 * tree-inline.c (estimate_num_insns): Likewise.
20440 * gimplify.c (unshare_body): Likewise.
20441 (unvisit_body): Likewise.
20442 (gimplify_body): Likewise.
20443 * predict.c (optimize_function_for_size_p): Likewise.
20444 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20445 (call_may_clobber_ref_p_1): Likewise.
20446 * varasm.c (function_section_1): Likewise.
20447 (assemble_start_function): Likewise.
20448
20449 2011-04-11 Martin Jambor <mjambor@suse.cz>
20450
20451 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20452 of cgraph_node.
20453 * final.c (rest_of_clean_state): Likewise.
20454 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20455 * passes.c (pass_init_dump_file): Likewise.
20456 (execute_all_ipa_transforms): Likewise.
20457 (function_called_by_processed_nodes_p): Likewise.
20458 * predict.c (maybe_hot_frequency_p): Likewise.
20459 (probably_never_executed_bb_p): Likewise.
20460 (compute_function_frequency): Likewise.
20461 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20462 (unnest_nesting_tree_1): Likewise.
20463 (lower_nested_functions): Likewise.
20464 * tree-optimize.c (execute_fixup_cfg): Likewise.
20465 (tree_rest_of_compilation): Likewise.
20466 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20467 * tree-sra.c (ipa_early_sra): Likewise.
20468 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20469 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20470 * ipa.c (record_cdtor_fn): Likewise.
20471 * ipa-inline.c (cgraph_early_inlining): Likewise.
20472 (compute_inline_parameters_for_current): Likewise.
20473 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20474 * ipa-pure-const.c (local_pure_const): Likewise.
20475 * ipa-split.c (split_function): Likewise.
20476 (execute_split_functions): Likewise.
20477 * cgraphbuild.c (build_cgraph_edges): Likewise.
20478 (rebuild_cgraph_edges): Likewise.
20479 (cgraph_rebuild_references): Likewise.
20480 (remove_cgraph_callee_edges): Likewise.
20481 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20482 (verify_cgraph_node): Likewise.
20483 (cgraph_analyze_functions): Likewise.
20484 (cgraph_preserve_function_body_p): Likewise.
20485 (save_inline_function_body): Likewise.
20486 (save_inline_function_body): Likewise.
20487 * tree-inline.c (copy_bb): Likewise.
20488 (optimize_inline_calls): Likewise.
20489
20490 2011-04-11 Martin Jambor <mjambor@suse.cz>
20491
20492 PR tree-optimization/48195
20493 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20494 ipa_check_create_edge_args.
20495 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20496 ipa_check_create_edge_args.
20497 * ipa-inline.c (inline_generate_summary): Do not call
20498 ipa_check_create_node_params and ipa_check_create_edge_args.
20499 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20500 ipa_check_create_edge_args.
20501
20502 2011-04-09 Anatoly Sokolov <aesok@post.ru>
20503
20504 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20505 instead of loop.
20506 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20507 * function.c (record_hard_reg_sets): Likewise.
20508 * ira.c (compute_regs_asm_clobbered): Likewise.
20509 * sched-deps.c (sched_analyze_1): Likewise.
20510 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20511
20512 2011-04-09 Xinliang David Li <davidxl@google.com>
20513
20514 PR tree-optimization/PR48484
20515 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20516 has_valid_pred lazily
20517
20518 2011-04-09 Duncan Sands <baldrick@free.fr>
20519
20520 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20521
20522 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
20523
20524 * combine.c (combine_validate_cost): Adjust comments. Set registered
20525 cost of I0 to zero at the end, if any.
20526
20527 2011-04-08 Xinliang David Li <davidxl@google.com>
20528
20529 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20530 to insane profile data.
20531
20532 2011-04-08 Xinliang David Li <davidxl@google.com>
20533
20534 * ipa-cp.c (ipcp_update_profiling): Correct
20535 negative scale factor due to insane profile data.
20536
20537 2011-04-08 Xinliang David Li <davidxl@google.com>
20538
20539 * final.c (dump_basic_block_info): New function.
20540 (final): Dump basic block.
20541 (final_scan_insn): Remove old dump.
20542
20543 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
20544
20545 PR target/47829
20546 * config.gcc (i386-*-freebsd): Disable unwind table generation for
20547 crtbegin/crtend.
20548
20549 2011-04-08 Michael Matz <matz@suse.de>
20550
20551 PR middle-end/48389
20552 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20553 functions.
20554 (rebuild_jump_labels): Call rebuild_jump_labels_1.
20555 * rtl.h (rebuild_jump_labels_chain): Declare.
20556 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20557 insns inserted on edges.
20558
20559 2011-04-08 Joseph Myers <joseph@codesourcery.com>
20560
20561 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20562 * config/arm/arm-arches.def: New.
20563 * config/arm/arm-opts.h: New.
20564 * config/arm/genopt.sh: New.
20565 * config/arm/arm-tables.opt: New (generated).
20566 * config/arm/arm.c (arm_handle_option, arm_target_help,
20567 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20568 (all_architectures): Get most table contents from arm-arches.def.
20569 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20570 arm_selected_tune here.
20571 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20572 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20573 (march=, mcpu=, mtune=): Use Enum and Var.
20574 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20575 (arm.o): Update dependencies.
20576
20577 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
20578
20579 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20580 of header_file.
20581 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20582 (write_typed_alloc_defns): Likewise.
20583 (main): Calls write_typed_alloc_defns with output_header.
20584
20585 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
20586
20587 PR inline-asm/48435
20588 * ira-color.c (setup_profitable_hard_regs): Add comments.
20589 Don't take prohibited hard regs into account.
20590 (setup_conflict_profitable_regs): Rename to
20591 get_conflict_profitable_regs.
20592 (check_hard_reg_p): Check prohibited hard regs.
20593
20594 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
20595
20596 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20597 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20598 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20599
20600 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20601
20602 PR target/48366
20603 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20604 move from floating point to shift amount register.
20605 (emit_move_sequence): Remove secondary reload support for floating
20606 point to shift amount amount register copies.
20607 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20608 amount register copies.
20609 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20610 register, return false if mode isn't a scalar integer mode.
20611 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20612
20613 2011-04-08 Richard Guenther <rguenther@suse.de>
20614
20615 * gimple.c (gimple_call_flags): Remove kludge.
20616
20617 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20618
20619 * sel-sched.c (sel_region_init): Move call to
20620 sel_setup_region_sched_flags after setup_current_loop_nest.
20621
20622 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
20623
20624 PR rtl-optimization/48272
20625 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20626 init_insn_reg_pressure_info. Adjust a caller.
20627 * sched-int.h (init_insn_reg_pressure_info): Declare.
20628 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20629 when sched-pressure is enabled.
20630
20631 2011-04-08 Richard Guenther <rguenther@suse.de>
20632
20633 * gimple.c (gimple_set_modified): Do not queue calls to
20634 MODIFIED_NORETURN_CALLS here ...
20635 * tree-ssa-operands.c (update_stmt_operands): ... but here.
20636
20637 2011-04-08 Richard Guenther <rguenther@suse.de>
20638
20639 PR lto/48467
20640 * toplev.c (lang_dependent_init): Do not open asm_out_file
20641 in WPA mode, nor perform debug machinery initialization.
20642 (finalize): Do not unlink asm_out_file in WPA mode.
20643
20644 2011-04-08 Richard Guenther <rguenther@suse.de>
20645
20646 * gimple.h (gimple_call_fntype): New function.
20647 (gimple_call_return_type): Use it.
20648 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20649 * gimple-low.c (gimple_check_call_args): Likewise.
20650 * gimple.c (gimple_call_flags): Likewise.
20651 (gimple_call_arg_flags): Likewise.
20652 (gimple_call_return_flags): Likewise.
20653 * tree-cfg.c (verify_gimple_call): Likewise.
20654 (do_warn_unused_result): Likewise.
20655 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20656 * value-prof.c (gimple_ic_transform): Fix fndecl check.
20657
20658 2011-04-08 Dmitry Melnik <dm@ispras.ru>
20659
20660 PR rtl-optimization/48235
20661 * sel-sched.c (code_motion_process_successors): Recompute the last
20662 insn in basic block if control flow changed.
20663 (code_motion_path_driver): Ditto. Recompute the first insn as well.
20664 Update condition for ilist_remove.
20665
20666 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20667
20668 PR rtl-optimization/48302
20669 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20670 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
20671 it to record added preheader blocks.
20672 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
20673 on to sel_add_loop_preheaders.
20674 (sel_region_init): Move call to setup_current_loop_nest after
20675 sel_init_bbs.
20676
20677 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20678
20679 PR target/48273
20680 * cfgloop.h (loop_has_exit_edges): New helper.
20681 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20682 non-clonable.
20683 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20684 that have no exit edges.
20685
20686 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
20687
20688 PR rtl-optimization/48442
20689 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
20690 all callers. Adjust assert.
20691
20692 2011-04-08 Jakub Jelinek <jakub@redhat.com>
20693
20694 PR tree-optimization/48377
20695 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20696 is_packed to true even for types with smaller TYPE_ALIGN than
20697 TYPE_SIZE.
20698
20699 2011-04-08 Richard Guenther <rguenther@suse.de>
20700
20701 PR bootstrap/48513
20702 * doc/tm.texi: Re-generate.
20703
20704 2011-04-08 Wei Guozhi <carrot@google.com>
20705
20706 PR target/47855
20707 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20708 * config/arm/arm.c (arm_attr_length_push_multi): New function.
20709 * config/arm/arm.md (*push_multi): Change the length computation to
20710 call a C function.
20711
20712 2011-04-08 Anatoly Sokolov <aesok@post.ru>
20713
20714 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20715 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20716 * doc/tm.texi: Regenerate.
20717 * system.h (ASM_OUTPUT_BSS): Poison.
20718 * varasm.c (asm_output_bss): Remove function.
20719 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20720
20721 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20722 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20723 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20724 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20725 Likewise.
20726 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20727 Likewise.
20728 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20729 Likewise.
20730 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20731
20732 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20733
20734 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20735 EnumValue lines.
20736
20737 2011-04-07 Joseph Myers <joseph@codesourcery.com>
20738
20739 * config/m68k/m68k.c (m68k_handle_option): Don't handle
20740 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20741 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20742 OPT_mcpu32.
20743 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20744 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20745 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20746 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20747 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20748 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20749 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20750 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20751 options. Don't map other m68k options manually. Don't handle
20752 old-style options as canonical.
20753 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20754 * doc/install.texi (m68k-*-*): Document binutils version requirement.
20755
20756 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
20757
20758 * basic-block.h (force_nonfallthru): Move to...
20759 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20760 (force_nonfallthru): ...here.
20761 * cfghooks.c (force_nonfallthru): New function.
20762 * cfgrtl.c (force_nonfallthru): Rename into...
20763 (rtl_force_nonfallthru): ...this.
20764 (commit_one_edge_insertion): Do not set AUX field.
20765 (commit_edge_insertions): Do not discover new basic blocks.
20766 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20767 (cfg_layout_rtl_cfg_hooks): Likewise.
20768 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20769 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
20770 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20771
20772 2011-04-07 Anatoly Sokolov <aesok@post.ru>
20773
20774 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20775 Remove macros.
20776
20777 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
20778
20779 * config/i386/sse.md: Update copyright year.
20780 (avxcvtvecmode): Remove.
20781 (sse_movhlps): Merge with *avx_movhlps.
20782 (sse_movlhps): Merge with *avx_movlhps.
20783 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20784 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20785 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20786 (sse_loadhps): Merge with *avx_loadhps.
20787 (sse_storelps): Merge with *avx_storelps.
20788 (sse_loadlps): Merge with *avx_loadlps.
20789 (sse_movss): Merge with *avx_movss.
20790 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20791 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20792 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20793 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20794 (vec_set<mode>_0): Ditto.
20795 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20796 (sse4_1_insertps): Merge with *avx_insertps.
20797 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20798 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20799 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20800 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20801 (sse2_storehpd): Merge with *avx_storehpd.
20802 (sse2_loadhpd): Merge with *avx_loadhpd.
20803 (sse2_loadlpd): Merge with *avx_loadlpd.
20804 (sse2_movsd): Merge with *avx_movsd.
20805 (*vec_concatv2df): Merge with *vec_concatv2df.
20806
20807 2011-04-07 Jakub Jelinek <jakub@redhat.com>
20808
20809 PR debug/48343
20810 * combine.c (combine_instructions): Add last_combined_insn,
20811 update it if insn is after it, pass it to all try_combine calls.
20812 (try_combine): Add last_combined_insn parameter, pass it instead of
20813 i3 to propagate_for_debug.
20814
20815 2011-04-07 Nick Clifton <nickc@redhat.com>
20816
20817 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20818 to handle MDR <-> data register transfers.
20819 (movhi_internal): Likewise.
20820
20821 2011-04-07 Alan Modra <amodra@gmail.com>
20822
20823 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20824 previous stack info.
20825
20826 2011-04-07 Tom de Vries <tom@codesourcery.com>
20827
20828 PR target/43920
20829 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
20830 flow_find_cross_jump. Swap variables to implement backward replacement.
20831 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20832
20833 2011-04-07 Tom de Vries <tom@codesourcery.com>
20834
20835 PR target/43920
20836 * cfgcleanup.c (walk_to_nondebug_insn): New function.
20837 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
20838 and bb2.
20839 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20840 src1 or src2. Redirect edges to the last basic block. Update
20841 frequency and count on multiple basic blocks in case of fallthru.
20842
20843 2011-04-07 Tom de Vries <tom@codesourcery.com>
20844
20845 PR target/43920
20846 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20847 function.
20848 (old_insns_match_p): Change return type. Replace return false/true
20849 with return dir_none/dir_both. Use can_replace_by.
20850 (flow_find_cross_jump): Add dir_p parameter. Init replacement
20851 direction from dir_p. Register replacement direction in dir, last_dir
20852 and afterlast_dir. Handle new return type of old_insns_match_p using
20853 merge_dir. Return replacement direction in dir_p.
20854 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20855 return type of old_insns_match_p.
20856 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20857 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20858 flow_find_cross_jump.
20859 * basic-block.h (enum replace_direction): New type.
20860 (flow_find_cross_jump): Add parameter to declaration.
20861
20862 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
20863
20864 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20865 (AVXMODEDCVTPS2DQ): Ditto.
20866 (VEC_FLOAT_MODE): Ditto.
20867 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
20868 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20869 (<any_logic:code><mode>3): Use VF mode iterator.
20870 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
20871 Use VF mode iterator.
20872 (copysign<mode>3): Use VF mode iterator.
20873 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
20874 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20875 (*<any_logic:code><MODEF:mode>3): Merge with
20876 *avx_<any_logic:code><MODEF:mode>3.
20877 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
20878 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
20879 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
20880 (avx_cvtdq2ps<avxmodesuffix>): Remove.
20881 (sse2_cvtdq2ps): Use %v modifier.
20882 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
20883 (avx_cvtps2dq<avxmodesuffix>): Remove.
20884 (sse2_cvtps2dq): Use %v modifier.
20885 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
20886 (avx_cvttps2dq<avxmodesuffix>): Remove.
20887 (sse2_cvttps2dq): Use %v modifier.
20888 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
20889 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
20890 (sse2_cvtsd2siq): Fix insn template.
20891 (sse2_cvtsd2siq_2): Ditto.
20892 (sse2_cvttsd2siq): Ditto.
20893 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
20894 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
20895
20896 2011-04-06 Joseph Myers <joseph@codesourcery.com>
20897
20898 * gcov-io.c: Use GCC Runtime Library Exception.
20899
20900 2011-04-06 Jakub Jelinek <jakub@redhat.com>
20901
20902 PR debug/48466
20903 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
20904 as base_reg whatever register reg has been eliminated to, instead
20905 of hardcoding STACK_POINTER_REGNUM.
20906
20907 2011-04-06 Joseph Myers <joseph@codesourcery.com>
20908
20909 * doc/tm.texi.in: Document C target hooks as separate from general
20910 target hooks.
20911 * doc/tm.texi: Regenerate.
20912 * genhooks.c (struct hook_desc): Add docname field.
20913 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
20914 docname field.
20915 (hook_array): Include c-target.def.
20916 (emit_documentation): Use docname field in output.
20917 (emit_init_macros): Take docname argument. Only emit definitions
20918 for hooks matching docname.
20919 (main): Expect additional arguments in all cases. Pass argument
20920 to emit_init_macros.
20921 * target.def: Move initial macro definitions and comments to
20922 target-hooks-macros.h.
20923 (gcc_targetcm): Move to c-family/c-target.def.
20924 * target.h (targetcm): Move declaration to c-family/c-target.h.
20925 * targhooks.c (default_handle_c_option): Move to
20926 c-family/c-opts.c.
20927 * targhooks.h (default_handle_c_option): Move declaration to
20928 c-family/c-common.h.
20929 * target-hooks-macros.h: New file.
20930 * config.gcc (target_has_targetcm): Define and use to add to
20931 c_target_objs and cxx_target_objs.
20932 * config/default-c.c: New file.
20933 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
20934 of target.h and target-def.h.
20935 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
20936 (darwin_objc_construct_string, darwin_cfstring_ref_p,
20937 darwin_check_cfstring_format_arg): Make static.
20938 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20939 TARGET_STRING_OBJECT_REF_TYPE_P,
20940 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
20941 * config/darwin-protos.h (darwin_objc_construct_string,
20942 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
20943 declare.
20944 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20945 TARGET_STRING_OBJECT_REF_TYPE_P,
20946 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
20947 * config/t-darwin (darwin-c.o): Update dependencies.
20948 * system.h (TARGET_HAS_TARGETCM): Poison.
20949 * Makefile.in (TARGET_H): Update.
20950 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
20951 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
20952 (default-c.o): New target.
20953 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
20954 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
20955 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
20956 c-target.def.
20957 (build/genhooks.o): Update dependencies.
20958
20959 2011-04-06 Richard Guenther <rguenther@suse.de>
20960
20961 * ipa-inline.c (enum inlining_mode): Remove.
20962 (cgraph_flatten): Use some other token.
20963 (cgraph_edge_early_inlinable_p): New function, split out from ...
20964 (cgraph_perform_always_inlining): New function, split out from ...
20965 (cgraph_decide_inlining_incrementally): ... here.
20966 (cgraph_mark_inline_edge): Adjust.
20967 (cgraph_early_inlining): Re-structure.
20968 (pass_early_inline): Require SSA form.
20969
20970 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
20971 Julian Brown <julian@codesourcery.com>
20972 Mark Shinwell <shinwell@codesourcery.com>
20973
20974 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
20975 LO_REGS only for Thumb-1.
20976 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
20977 be used in short instructions when optimising for size on Thumb-2.
20978
20979 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
20980
20981 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
20982 associated with user returns to be preserved.
20983
20984 2011-04-06 Tristan Gingold <gingold@adacore.com>
20985
20986 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
20987 symbol_queue_size, DBXOUT_DECR_NESTING,
20988 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
20989 if XCOFF_DEBUGGING_INFO.
20990
20991 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
20992
20993 * config/i386/i386.md (attribute isa): New.
20994 (attribute enabled): New.
20995 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
20996 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
20997 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
20998 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
20999 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21000 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21001 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21002 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21003
21004 * config/i386/sse.md (VF): New mode iterator.
21005 (VF1): Ditto.
21006 (VF2): Ditto.
21007 (VF_128): Ditto.
21008 (SSEMODEF4): Remove.
21009 (attribute sse): Handle V8SF and V4DF modes.
21010 (<absneg:code><mode>2): Use VF mode iterator.
21011 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
21012 mode iterator.
21013 (<plusminus_insn><mode>3): Use VF mode iterator.
21014 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21015 Use VF mode iterator.
21016 (<sse>_vm<plusminus_insn><mode>3): Merge with
21017 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
21018 (mul<mode>3): Use VF mode iterator.
21019 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
21020 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
21021 mode iterator.
21022 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21023 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21024 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
21025 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
21026 mode iterator.
21027 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21028 Use VF1 mode iterator.
21029 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21030 (sqrt<VF2:mode>2): New expander.
21031 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21032 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21033 and sqrtv2df2. Use VF mode iterator.
21034 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
21035 mode iterator.
21036 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21037 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21038 Use VF1 mode iterator.
21039 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21040 (<smaxmin:code><mode>3): Use VF mode iterator.
21041 (*<smaxmin:code><mode>3_finite): Merge with
21042 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
21043 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21044 (<sse>_vm<smaxmin:code><mode>2): Merge with
21045 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
21046 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
21047 mode iterator.
21048 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
21049 mode iterator.
21050 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21051 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21052 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21053 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21054 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
21055 VF mode iterator.
21056 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21057 Use VF_128 mode iterator.
21058 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
21059 mode iterator.
21060 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
21061 VF_128 mode iterator.
21062 (vcond<mode>): Use VF mode iterator.
21063 * config/i386/predicates.md (sse_comparison_operator): Merge with
21064 avx_comparison_float_operator. Do not declare as special_predicate.
21065 * config/i386/i386.c (struct builtin_description): Update for renamed
21066 compare patterns.
21067 (ix86_expand_args_builtin): Ditto.
21068 (ix86_expand_sse_compare_mask): Ditto.
21069
21070 2011-04-06 Richard Guenther <rguenther@suse.de>
21071
21072 * tree-inline.c (estimate_num_insns): For calls simply account
21073 for all passed arguments and a used return value.
21074
21075 2011-04-06 Richard Guenther <rguenther@suse.de>
21076
21077 PR tree-optimization/47663
21078 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21079 call_stmt_time fields.
21080 (cgraph_edge_inlinable_p): Declare.
21081 (cgraph_edge_recursive_p): New inline function.
21082 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21083 (cgraph_clone_edge): Copy it.
21084 * ipa-inline.c (cgraph_estimate_edge_time): New function.
21085 Account for call stmt time.
21086 (cgraph_estimate_time_after_inlining): Take edge argument.
21087 (cgraph_estimate_edge_growth): Account call stmt size.
21088 (cgraph_estimate_size_after_inlining): Take edge argument.
21089 (cgraph_mark_inline_edge): Adjust.
21090 (cgraph_check_inline_limits): Likewise.
21091 (cgraph_recursive_inlining_p): Remove.
21092 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21093 (cgraph_decide_recursive_inlining): Take edge argument and
21094 adjust.
21095 (cgraph_decide_inlining_of_small_functions): Do not avoid
21096 diags for recursive inlining here.
21097 (cgraph_flatten): Adjust.
21098 (cgraph_decide_inlining_incrementally): Likewise.
21099 (estimate_function_body_sizes): Remove call cost handling.
21100 (compute_inline_parameters): Initialize caller edge call costs.
21101 (cgraph_estimate_edge_growth): New function.
21102 (cgraph_estimate_growth): Use it.
21103 (cgraph_edge_badness): Likewise.
21104 (cgraph_check_inline_limits): Take an edge argument.
21105 (cgraph_decide_inlining_of_small_functions): Adjust.
21106 (cgraph_decide_inlining): Likewise.
21107 * tree-inline.c (estimate_num_insns): Only account for call
21108 return value if it is used.
21109 (expand_call_inline): Avoid diagnostics on recursive inline
21110 functions here.
21111 * lto-cgraph.c (lto_output_edge): Output edge call costs.
21112 (input_edge): Input edge call costs.
21113
21114 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21115
21116 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21117
21118 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21119
21120 * doc/invoke.texi (Spec Files): Fix typo.
21121
21122 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
21123
21124 * profile.c (branch_prob): Move declaration of local variable. Remove
21125 obsolete ??? comment. Expand the location explicitly instead of using
21126 the LOCATION_FILE and LOCATION_LINE macros.
21127
21128 2011-04-06 Wei Guozhi <carrot@google.com>
21129
21130 PR target/47855
21131 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21132 (arm_cond_branch): Likewise.
21133 (arm_cond_branch_reversed): Likewise.
21134 (arm_jump): Likewise.
21135 (push_multi): Likewise.
21136 * config/arm/constraints.md (Py): New constraint.
21137
21138 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21139
21140 PR bootstrap/48471
21141 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21142 Move these...
21143 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21144 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21145 #ifdef DBX_DEBUGGING_INFO.
21146
21147 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
21148
21149 PR bootstrap/48403
21150 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21151 if old and new states differ.
21152
21153 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21154
21155 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21156 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21157 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21158 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21159 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21160 mcfv4e): Use Alias.
21161 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21162 ColdFire options to -mcpu= options.
21163
21164 2011-04-05 Jeff Law <law@redhat.com>
21165
21166 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21167 check if BB is a successor of LOOP->header and return
21168 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21169
21170 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21171
21172 * cprop.c (struct reg_use): Remove.
21173 (reg_use_table): Make an array of RTX.
21174 (find_used_regs, constprop_register, local_cprop_pass,
21175 bypass_block): Simplify users of reg_use_table.
21176 (cprop_insn): Likewise. Iterate if copy propagation succeeded
21177 on one of the uses found by find_used_regs.
21178
21179 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21180
21181 PR bootstrap/48469
21182 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21183 declaration.
21184
21185 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21186
21187 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21188 as an rtx.
21189 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21190
21191 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
21192
21193 PR middle-end/48441
21194 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21195
21196 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21197
21198 * combine.c: Include obstack.h.
21199 (struct insn_link): Define.
21200 (uid_log_links): Adjust type.
21201 (FOR_EACH_LOG_LINK): New macro.
21202 (insn_link_obstack): Declare.
21203 (alloc_insn_link): Define.
21204 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
21205 type of link variables.
21206 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21207 (try_combine, record_promoted_values, distribute_notes): Likewise.
21208 (distribute_links): Likewise. Tweak prototype.
21209 (clear_log_links): Delete.
21210 (adjust_for_new_dest): Call alloc_insn_link.
21211 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21212
21213 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21214
21215 * gcse.c (modify_mem_list): Convert to an array of VECs.
21216 (canon_modify_mem_list, compute_transp): Tweak formatting.
21217 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
21218 (load_killed_in_block_p): Likewise.
21219 (record_last_mem_set_info): Likewise.
21220 (clear_modify_mem_tables): Likewise.
21221
21222 2011-04-05 Tom de Vries <tom@codesourcery.com>
21223
21224 PR middle-end/48461
21225 * function.c (emit_use_return_register_into_block): Only define if
21226 HAVE_return.
21227
21228 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
21229
21230 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21231
21232 2011-04-05 Joseph Myers <joseph@codesourcery.com>
21233
21234 * config/rx/rx-opts.h: New.
21235 * config/rx/rx.c (rx_cpu_type): Remove.
21236 (rx_handle_option): Don't assert that global structures are in
21237 use. Access variables via opts pointer. Defer most handling of
21238 OPT_mint_register_. Use error_at.
21239 (rx_option_override): Handle deferred OPT_mint_register_ here.
21240 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21241 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21242 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21243 (rx_cpu_types): New Enum and EnumValue entries.
21244 (mint-register=): Use Defer and use Var accordingly.
21245
21246 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21247
21248 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21249 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21250 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21251 Move these...
21252 (debug_free_queue, debug_nesting, symbol_queue_index):
21253 ...and these...
21254 * dbxout.c: ...to here. Make static.
21255
21256 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
21257
21258 * gcse.c (modify_pair): Define. Define a VEC of it.
21259 (canon_modify_mem_list): Convert to an array of VECs.
21260 (free_insn_expr_list_list): Delete.
21261 (clear_modify_mem_tables): Call VEC_free instead.
21262 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21263 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21264 (canon_list_insert, compute_transp): Likewise.
21265
21266 2011-04-05 Tom de Vries <tom@codesourcery.com>
21267
21268 PR target/43920
21269 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21270 for size.
21271
21272 2011-04-05 Tom de Vries <tom@codesourcery.com>
21273
21274 PR target/43920
21275 * function.c (emit_use_return_register_into_block): New function.
21276 (thread_prologue_and_epilogue_insns): Use
21277 emit_use_return_register_into_block.
21278
21279 2011-04-05 Tom de Vries <tom@codesourcery.com>
21280
21281 PR target/43920
21282 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21283 insn.
21284
21285 2011-04-05 Tom de Vries <tom@codesourcery.com>
21286
21287 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21288
21289 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
21290
21291 * config/arm/arm.md (define_constants for unspec): Replace with
21292 define_c_enum.
21293 (define_constants for unspecv): Replace with define_c_enum.
21294 * config/arm/neon.md (define_constants for unspec): Replace with
21295 define_c_enum.
21296
21297 2011-04-04 Richard Henderson <rth@redhat.com>
21298
21299 PR bootstrap/48400
21300 * dwarf2out.c (output_line_info): Always emit line info from
21301 at least one section.
21302 (dwarf2out_init): Create text_section_line_info here ...
21303 (set_cur_line_info_table): ... not here.
21304
21305 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
21306
21307 PR target/48380
21308 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21309 not called.
21310
21311 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21312
21313 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
21314
21315 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21316 (expr_equiv_p): Remove.
21317 (insert_set_in_table): Look at <dest, src> pair instead of expr.
21318 (hash_scan_set): Update call to insert_set_in_table.
21319 (dump_hash_table): Dump <dest, src> pair.
21320 (lookup_set): Simplify. Lookup <dest, src> pair.
21321 (compute_transp): Remove, fold heavily simplified code into...
21322 (compute_local_properties): ...here. Expect COMP and TRANSP
21323 unconditionally.
21324 (find_avail_set): Take set directly from struct expr.
21325 (find_bypass-set): Likewise.
21326 (bypass_block): Likewise.
21327 (cprop_insn): Likewise. Remove redundant INSN_P test.
21328
21329 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21330 checks on form of COND from find_implicit_sets to here.
21331 (find_implicit_sets): Cleanup control flow. Split critical edges
21332 if it exposes implicit sets. Allocate/resize implicit_sets as
21333 necessary.
21334 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21335 changed something. Run df_analyze after find_implicit_sets if any
21336 edges were split. Do not allocate implicit_sets here.
21337
21338 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21339 (gcse_obstack): Renamed to cprop_obstack.
21340 (GNEW, GNEWVEC, GNEWVAR): Remove.
21341 (gmalloc): Remove.
21342 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21343 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21344 (gcse_alloc): Likewise, and rename to cprop_alloc.
21345 (alloc_gcse_men, free_gcse_mem): Remove.
21346 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21347 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21348 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21349
21350 * cprop.c (oprs_not_set_p): Remove.
21351 (mark_set, mark_clobber): Remove.
21352 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21353 (reg_not_set_p): New function.
21354 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21355 (cprop_insn): Likewise.
21356 (cprop_jump): Use FOR_EACH_EDGE.
21357
21358 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
21359
21360 PR bootstrap/48403
21361 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21362 (rank_for_schedule): Use scheduled_insns vector instead of
21363 last_scheduled_insn.
21364 (ok_for_early_queue_removal): Likewise.
21365 (queue_to_ready): Search forward in nonscheduled_insns_begin if
21366 we have a dbg_cnt.
21367 (choose_ready): Likewise.
21368 (commit_schedule): Use VEC_iterate.
21369 (schedule_block): Initialize nonscheduled_insns_begin. If we have
21370 a dbg_cnt, use it and ensure the first insn is in the ready list.
21371 (haifa_sched_init): Allocate scheduled_insns.
21372 (sched_extend_ready_list): Don't allocate it; reserve space.
21373 (haifa_sched_finish): Free it.
21374
21375 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21376
21377 * optc-gen.awk: Always remove type from Variable entry before
21378 recording in var_seen.
21379
21380 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
21381
21382 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21383 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21384 call to tidy_fallthru_edges.
21385
21386 2011-04-04 Joseph Myers <joseph@codesourcery.com>
21387
21388 * doc/options.texi (ToLower): Document.
21389 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21390 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21391 * opts.h (cl_option): Add cl_tolower field.
21392 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21393 arguments with lowercase strings.
21394 * config/rx/rx.opt (mcpu=): Add ToLower.
21395 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21396 argument.
21397
21398 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21399
21400 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21401
21402 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
21403
21404 * config/vax/vax.c: Include reload.h.
21405
21406 2011-04-04 Anatoly Sokolov <aesok@post.ru>
21407
21408 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21409 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21410 (sparc_preferred_reload_class): New function.
21411
21412 2011-04-04 Jakub Jelinek <jakub@redhat.com>
21413
21414 PR debug/48401
21415 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21416 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21417
21418 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
21419
21420 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21421 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21422
21423 2011-04-03 Anatoly Sokolov <aesok@post.ru>
21424
21425 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21426 (ASM_OUTPUT_ALIGNED_BSS): Define.
21427
21428 2011-04-03 Michael Matz <matz@suse.de>
21429
21430 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21431 and next_slot members.
21432 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21433 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21434 (lto_streamer_cache_append): Declare.
21435 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21436 unsigned index, remove offset parameter, ensure that we append
21437 or update existing entries.
21438 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21439 parameter, update next_slot for append.
21440 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21441 parameter.
21442 (lto_streamer_cache_insert_at): Likewise.
21443 (lto_streamer_cache_append): New function.
21444 (lto_streamer_cache_lookup): Use unsigned index.
21445 (lto_streamer_cache_get): Likewise.
21446 (lto_record_common_node): Don't test tree_node_can_be_shared.
21447 (preload_common_node): Adjust call to lto_streamer_cache_insert.
21448 (lto_streamer_cache_delete): Don't free offsets member.
21449 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21450 (lto_output_string_with_length): Use lto_output_data_stream.
21451 (lto_output_tree_header): Remove ix parameter, don't write it.
21452 (lto_output_builtin_tree): Likewise.
21453 (lto_write_tree): Adjust callers to above, don't track and write
21454 offset, write unsigned index.
21455 (output_unreferenced_globals): Don't emit all global vars.
21456 (write_global_references): Use unsigned indices.
21457 (lto_output_decl_state_refs): Likewise.
21458 (write_symbol): Likewise.
21459 * lto-streamer-in.c (lto_input_chain): Move earlier.
21460 (input_function): Use unsigned index.
21461 (input_alias_pairs): Don't read and then ignore all global vars.
21462 (lto_materialize_tree): Remove ix_p parameter, don't read index,
21463 don't pass it back, use lto_streamer_cache_append.
21464 (lto_register_var_decl_in_symtab): Use unsigned index.
21465 (lto_register_function_decl_in_symtab): Likewise.
21466 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21467 index.
21468 (lto_get_builtin_tree): Don't read index, use
21469 lto_streamer_cache_append.
21470 (lto_read_tree): Adjust call to lto_materialize_tree.
21471
21472 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21473 don't use function calls in arguments to MIN.
21474
21475 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21476 twice.
21477
21478 * gimple.c (gimple_type_leader_entry): Mark deletable.
21479
21480 2011-04-03 Alan Modra <amodra@gmail.com>
21481
21482 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21483
21484 2011-04-03 Michael Matz <matz@suse.de>
21485
21486 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21487 an integer.
21488 * tree.h (tree_decl_non_common.vindex): Adjust comment.
21489
21490 2011-04-03 Michael Matz <matz@suse.de>
21491
21492 * cgraphbuild.c (record_reference): Canonicalize constructor values.
21493 * gimple-fold.c (canonicalize_constructor_val): Accept being called
21494 without function context.
21495 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21496 current_function_decl and cfun.
21497
21498 2011-04-03 Michael Matz <matz@suse.de>
21499
21500 * tree.c (decl_init_priority_insert): Don't create entry for
21501 default priority.
21502 (decl_fini_priority_insert): Ditto.
21503 (fields_compatible_p, find_compatible_field): Remove.
21504 * tree.h (fields_compatible_p, find_compatible_field): Remove.
21505 * gimple.c (gimple_compare_field_offset): Adjust block comment.
21506
21507 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
21508
21509 * combine.c (try_combine): Remove useless local variable.
21510
21511 2011-04-03 Richard Guenther <rguenther@suse.de>
21512 Ira Rosen <ira.rosen@linaro.org>
21513
21514 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21515 non-variable offsets and compare the remaining bases of the two
21516 accesses instead of looking for exact same data-ref.
21517
21518 2011-04-02 Kai Tietz <ktietz@redhat.com>
21519
21520 PR target/48416
21521 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21522
21523 * i386.c (ix86_is_msabi_thiscall): New helper function.
21524 (ix86_is_type_thiscall): New helper function.
21525 (ix86_comp_type_attributes): Handle thiscall for method-functions
21526 special.
21527 (init_cumulative_args): Likewise.
21528 (find_drap_reg): Likewise.
21529 (ix86_static_chain): Likewise.
21530 (x86_this_parameter): Likewise.
21531 (x86_output_mi_thunk): Likewise.
21532
21533 2011-04-01 Olivier Hainque <hainque@adacore.com>
21534 Nicolas Setton <setton@adacore.com>
21535 Eric Botcazou <ebotcazou@adacore.com>
21536
21537 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21538 (add_gnat_descriptive_type_attribute): New function.
21539 (gen_array_type_die): Call it.
21540 (gen_enumeration_type_die): Likewise.
21541 (gen_struct_or_union_type_die): Likewise.
21542 (modified_type_die): Likewise.
21543 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21544 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21545 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21546
21547 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21548
21549 PR bootstrap/48148
21550 * dwarf2out.c (resolve_addr): Don't call force_decl_die
21551 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21552
21553 Revert:
21554 2011-03-17 Richard Guenther <rguenther@suse.de>
21555
21556 PR bootstrap/48148
21557 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21558 origin for decls in other ltrans units.
21559 (input_varpool_node): Likewise.
21560
21561 2011-04-01 Jakub Jelinek <jakub@redhat.com>
21562
21563 PR middle-end/48335
21564 * expr.c (expand_assignment): Handle all possibilities
21565 if TO_RTX is CONCAT.
21566 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21567 (store_split_bit_field): If SUBREG_REG (op0) or
21568 op0 itself has smaller mode than word, return it
21569 for offset 0 and const0_rtx for out-of-bounds stores.
21570 If word is const0_rtx, skip it.
21571
21572 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
21573
21574 * config/h8300/h8300.c (print_operand_address): Rename to...
21575 (h8300_print_operand_address): ...this. Make static. Adjust comments.
21576 Call h8300_print_operand and h8300_print_operand_address instead of
21577 print_operand and print_operand_address. Declare.
21578 (print_operand): Renake to...
21579 (h8300_print_operand): ...this. Make static. Adjust comments.
21580 Call h8300_print_operand instead of print_operand. Declare.
21581 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21582 (h8300_register_move_cost): Likewise.
21583 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21584 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21585 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21586 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21587 * config/h8300/h8300-protos.h (print_operand): Delete.
21588 (print_operand_address): Delete.
21589
21590 2011-04-01 Richard Henderson <rth@redhat.com>
21591
21592 PR 48400
21593 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21594 in strict mode before dwarf4. Re-order tests to early out
21595 before switching sections.
21596
21597 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
21598
21599 * config/h8300/constraints.md: New file.
21600 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
21601 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21602 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21603 * config/h8300/predicates.md (bit_operand): Likewise.
21604 (incdec_operand): Use satisfies_constraint_M and
21605 satisfies_constraint_O. Don't use C code block.
21606 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21607 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21608 (compute_mov_length): Use satisfies_constraint_G.
21609 (fix_bit_operand): Use satisfies_constraint_U.
21610 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21611 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21612 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21613 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21614 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21615 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21616 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21617 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21618 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21619 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21620 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21621 (EXTRA_MEMORY_CONSTRAINT): Delete.
21622
21623 2011-04-01 Andrew Pinski <pinskia@gmail.com>
21624 Michael Meissner <meissner@linux.vnet.ibm.com>
21625
21626 PR target/48262
21627 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21628 operands, as per the specifications.
21629
21630 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21631 (vec_extract_evenv4sf): Ditto.
21632 (vec_extract_evenv8hi): Ditto.
21633 (vec_extract_evenv16qi): Ditto.
21634 (vec_extract_oddv4si): Ditto.
21635
21636 2011-03-31 Mark Wielaard <mjw@redhat.com>
21637
21638 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21639 high_pc attribute if the CU has no associated code. Only output
21640 DW_AT_entry_pc for CU if not generating strict dwarf and
21641 dwarf_version < 4.
21642
21643 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
21644
21645 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21646 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21647 out of ...
21648 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21649 * final.c (final_start_function): Call the new function rather
21650 than using a NULL argument for dwarf2out_frame_debug.
21651
21652 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21653 that contains the prologue.
21654
21655 * haifa-sched.c (queue_insn): New arg REASON. All callers
21656 changed. Print it in debugging output.
21657
21658 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21659
21660 * sched-ebb.c (begin_schedule_ready): Remove second argument.
21661 Split most of the code into...
21662 (begin_move_insn): ... here. New function.
21663 (ebb_sched_info): Add a pointer to it.
21664 * haifa-sched.c (scheduled_insns): New static variable.
21665 (sched_extend_ready_list): Allocate it.
21666 (schedule_block): Use it to record the order of scheduled insns.
21667 Perform RTL changes to move insns only after all scheduling
21668 decisions have been made.
21669 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21670 begin_move_insn field.
21671 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21672 * sched-int.h (struct haifa_sched_info): Remove second argument
21673 from begin_schedule_ready hook. Add new member begin_move_insn.
21674 * sched-rgn.c (begin_schedule_ready): Remove second argument.
21675 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21676
21677 * haifa-sched.c (prune_ready_list): New function, broken out of
21678 schedule_block.
21679 (schedule_block): Use it.
21680
21681 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21682
21683 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21684
21685 2011-04-01 Kai Tietz <ktietz@redhat.com>
21686
21687 * config.gcc (*-*-mingw*): Allow as option the
21688 posix threading model.
21689 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
21690 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21691 definition.
21692 (CPP_SPEC): Add pthread/no-pthread handling.
21693 (LIB_SPEC): Likewise.
21694 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21695 (LIB_SPEC): Likewise.
21696 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21697 flag to pass -pthread option for shared libgcc build.
21698 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21699 for shared libgcc build.
21700 * config/i386/t-mingw-pthread: New file.
21701 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21702 New define to enable use of library pthread by default.
21703 * config/i386/mingw.opt (pthread): New driver option.
21704 (no-pthread): New driver option.
21705 * config/i386/cygming.opt: Make sure trailing empty line is retained.
21706 * config/i386/mingw-w64.opt: Likewise.
21707
21708 2011-04-01 Gary Funck <gary@intrepid.com>
21709
21710 * c-decl.c (grokdeclarator): Fix formatting.
21711
21712 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21713
21714 * expr.c (emit_block_move_via_movmem): Use n_generator_args
21715 instead of n_operands.
21716 (set_storage_via_setmem): Likewise.
21717 * optabs.c (maybe_gen_insn): Likewise.
21718 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21719 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21720 (mips_expand_builtin_direct): Likewise.
21721 * config/spu/spu.c (expand_builtin_args): Likewise.
21722
21723 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21724
21725 * recog.h (insn_data_d): Add n_generator_args.
21726 * genoutput.c (data): Likewise.
21727 (output_insn_data): Print it.
21728 (max_opno, num_dups): Delete.
21729 (scan_operands): Just fill in "d->operand[...]".
21730 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21731
21732 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
21733
21734 * gensupport.h (pattern_stats): New structure.
21735 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21736 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21737 (max_operand_1, max_operand_vec): Delete.
21738 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21739
21740 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
21741
21742 * emit-rtl.c (emit_pattern_after_setloc): New function.
21743 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21744 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21745 (emit_pattern_after): New function.
21746 (emit_insn_after, emit_jump_insn_after): Call it.
21747 (emit_call_insn_after, emit_debug_insn_after): Likewise.
21748 (emit_pattern_before_setloc): New function.
21749 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21750 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21751 Likewise.
21752 (emit_pattern_before): New function.
21753 (emit_insn_before, emit_jump_insn_before): Call it.
21754 (emit_call_insn_before, emit_debug_insn_before): Likewise.
21755
21756 2011-03-31 Richard Henderson <rth@redhat.com>
21757
21758 * dwarf2out.c (dw_separate_line_info_ref): Remove.
21759 (dw_separate_line_info_entry): Remove.
21760 (enum dw_line_info_opcode): New.
21761 (dw_line_info_entry): Use it.
21762 (dw_line_info_table, dw_line_info_table_p): New.
21763 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21764 (line_info_table, line_info_label_num): Remove.
21765 (line_info_table_in_use): Remove.
21766 (separate_line_info_table): Remove.
21767 (separate_line_info_table_allocated): Remove.
21768 (separate_line_info_table_in_use): Remove.
21769 (LINE_INFO_TABLE_INCREMENT): Remove.
21770 (line_info_label_num): New.
21771 (cur_line_info_table): New.
21772 (text_section_line_info, cold_text_section_line_info): New.
21773 (separate_line_info): New.
21774 (SEPARATE_LINE_CODE_LABEL): Remove.
21775 (print_dwarf_line_table): Remove.
21776 (debug_dwarf): Don't dump it.
21777 (output_one_line_info_table): New.
21778 (output_line_info): Use it.
21779 (new_line_info_table): New.
21780 (set_cur_line_info_table): New.
21781 (dwarf2out_switch_text_section): Use it.
21782 (dwarf2out_begin_function): Likewise.
21783 (push_dw_line_info_entry): New.
21784 (dwarf2out_source_line): Rewrite for new line info tables.
21785 (dwarf2out_init): Remove dead initailizations.
21786
21787 2011-03-31 Joseph Myers <joseph@codesourcery.com>
21788
21789 * opts.h (cl_option): Add comments to fields. Add bit-fields for
21790 various flags.
21791 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21792 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21793 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21794 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21795 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21796 * opt-functions.awk (flag_init, switch_bit_fields): New.
21797 (switch_flags): Don't handle flags moved to bit-fields. Don't
21798 generate CL_MISSING_OK or CL_SAVE.
21799 * optc-gen.awk: Update to generate bit-field output as well as
21800 flags field.
21801 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21802 bit-field instead of CL_REJECT_DRIVER flag.
21803 * opts-common.c (generate_canonical_option,
21804 decode_cmdline_option): Use bit-fields instead of CL_* flags.
21805 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21806 instead of CL_REJECT_NEGATIVE flag.
21807 * toplev.c (print_switch_values): Use cl_report bit-field instead
21808 of CL_REPORT flag.
21809
21810 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
21811
21812 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21813 a zero minimum index only if it is redundant.
21814
21815 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
21816
21817 PR rtl-optimization/48381
21818 * ira-color.c (assign_hard_reg): Use hard reg set intersection
21819 instead of ira_class_hard_reg_index for calculating conflicting
21820 hard registers.
21821
21822 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
21823
21824 * cprop.c: Clean up hash table building.
21825 (reg_avail_info): Remove.
21826 (oprs_available_p): Remove.
21827 (record_last_reg_set_info): Remove.
21828 (record_last_set_info): Remove.
21829 (reg_available_p): New function.
21830 (gcse_constant_p): Do not treat unfolded conditions as constants.
21831 (make_set_regs_unavailable): New function.
21832 (hash_scan_set): Simplify with new reg_available_p.
21833 (compute_hash_table_work): Traverse insns stream only once.
21834 Do not compute reg_avail_info. Traverse insns in reverse order.
21835 Record implicit sets after recording explicit sets from the block.
21836
21837 2011-03-31 Michael Matz <matz@suse.de>
21838
21839 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21840
21841 2011-03-31 Anatoly Sokolov <aesok@post.ru>
21842
21843 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21844 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21845 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21846 (h8300_mode_dependent_address_p): New function.
21847 (h8300_get_index): Make static.
21848
21849 2011-03-31 Jeff Law <law@redhat.com>
21850
21851 * reload1.c (elimination_effects): Fix typo in recent change.
21852
21853 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21854 typo potentially leading to null pointer dereference.
21855
21856 * caller-save.c (new_saved_hard_reg): Eliminate return value.
21857 (setup_save_areas): Corresponding changes to avoid useless
21858 assignments.
21859
21860 * jump.c (reversed_comparison_code_parts): Avoid successive return
21861 statements when REVERSE_CONDITION is defined.
21862
21863 * expr.c (expand_assignment): Avoid useless assignments.
21864 (expand_expr_real_1): Likewise.
21865 (expand_expr_real_2): Avoid useless statements.
21866
21867 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
21868
21869 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21870
21871 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
21872 statements.
21873
21874 * stmt.c (expand_expr_stmt): Avoid useless assignment.
21875
21876 2011-03-31 Joseph Myers <joseph@codesourcery.com>
21877
21878 PR target/47109
21879 * doc/tm.texi.in (TARGET_VERSION): Remove.
21880 * doc/tm.texi: Regenerate.
21881 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
21882 * collect2.c (main): Don't use TARGET_VERSION.
21883 * mips-tdump.c (main): Don't use TARGET_VERSION.
21884 * mips-tfile.c (main): Don't use TARGET_VERSION.
21885 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
21886 * config/rs6000/vxworksae.h: Remove.
21887 * config/alpha/alpha.h (TARGET_VERSION): Remove.
21888 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
21889 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
21890 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
21891 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21892 * config/arm/arm.h (TARGET_VERSION): Remove.
21893 * config/arm/coff.h (TARGET_VERSION): Remove.
21894 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
21895 * config/arm/elf.h (TARGET_VERSION): Remove.
21896 * config/arm/freebsd.h (TARGET_VERSION): Remove.
21897 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
21898 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
21899 * config/arm/pe.h (TARGET_VERSION): Remove.
21900 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
21901 * config/arm/semi.h (TARGET_VERSION): Remove.
21902 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
21903 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
21904 * config/arm/vxworks.h (TARGET_VERSION): Remove.
21905 * config/avr/avr.h (TARGET_VERSION): Remove.
21906 * config/bfin/bfin.h (TARGET_VERSION): Remove.
21907 * config/fr30/fr30.h (TARGET_VERSION): Remove.
21908 * config/frv/frv.h (TARGET_VERSION): Remove.
21909 * config/h8300/h8300.h (TARGET_VERSION): Remove.
21910 * config/i386/cygwin.h (TARGET_VERSION): Remove.
21911 * config/i386/darwin.h (TARGET_VERSION): Remove.
21912 * config/i386/darwin64.h (TARGET_VERSION): Remove.
21913 * config/i386/djgpp.h (TARGET_VERSION): Remove.
21914 * config/i386/freebsd.h (TARGET_VERSION): Remove.
21915 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
21916 * config/i386/gnu.h (TARGET_VERSION): Remove.
21917 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
21918 * config/i386/i386elf.h (TARGET_VERSION): Remove.
21919 * config/i386/linux.h (TARGET_VERSION): Remove.
21920 * config/i386/linux64.h (TARGET_VERSION): Remove.
21921 * config/i386/lynx.h (TARGET_VERSION): Remove.
21922 * config/i386/mingw32.h (TARGET_VERSION): Remove.
21923 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
21924 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
21925 * config/i386/netware.h (TARGET_VERSION): Remove.
21926 * config/i386/nto.h (TARGET_VERSION): Remove.
21927 * config/i386/openbsd.h (TARGET_VERSION): Remove.
21928 * config/i386/vxworks.h (TARGET_VERSION): Remove.
21929 * config/ia64/elf.h (TARGET_VERSION): Remove.
21930 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
21931 * config/ia64/hpux.h (TARGET_VERSION): Remove.
21932 * config/ia64/linux.h (TARGET_VERSION): Remove.
21933 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21934 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
21935 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21936 * config/lm32/lm32.h (TARGET_VERSION): Remove.
21937 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
21938 * config/m32c/m32c.h (TARGET_VERSION): Remove.
21939 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
21940 * config/m32r/m32r.h (TARGET_VERSION): Remove.
21941 * config/m68k/linux.h (TARGET_VERSION): Remove.
21942 * config/m68k/m68k.h (TARGET_VERSION): Remove.
21943 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
21944 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
21945 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
21946 * config/mep/mep.h (TARGET_VERSION): Remove.
21947 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
21948 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21949 * config/mips/iris6.h (MACHINE_TYPE): Remove.
21950 * config/mips/linux.h (TARGET_VERSION): Remove.
21951 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
21952 * config/mips/vxworks.h (TARGET_VERSION): Remove.
21953 * config/mmix/mmix.h (TARGET_VERSION): Remove.
21954 * config/mn10300/linux.h (TARGET_VERSION): Remove.
21955 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
21956 * config/pa/pa.h (TARGET_VERSION): Remove.
21957 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
21958 * config/picochip/picochip.h (TARGET_VERSION): Remove.
21959 * config/rs6000/aix.h (TARGET_VERSION): Remove.
21960 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
21961 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
21962 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
21963 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
21964 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
21965 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
21966 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
21967 * config/rs6000/linux.h (TARGET_VERSION): Remove.
21968 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
21969 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
21970 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
21971 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
21972 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
21973 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
21974 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
21975 * config/s390/linux.h (TARGET_VERSION): Remove.
21976 * config/s390/s390.h (TARGET_VERSION): Remove.
21977 * config/s390/tpf.h (TARGET_VERSION): Remove.
21978 * config/score/score.h (TARGET_VERSION): Remove.
21979 * config/sh/linux.h (TARGET_VERSION): Remove.
21980 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
21981 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
21982 * config/sh/sh.h (TARGET_VERSION): Remove.
21983 * config/sh/sh64.h (TARGET_VERSION): Remove.
21984 * config/sh/superh.h (TARGET_VERSION): Remove.
21985 * config/sh/vxworks.h (TARGET_VERSION): Remove.
21986 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
21987 * config/sparc/linux.h (TARGET_VERSION): Remove.
21988 * config/sparc/linux64.h (TARGET_VERSION): Remove.
21989 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
21990 TARGET_NAME32, TARGET_NAME): Remove.
21991 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
21992 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
21993 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
21994 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
21995 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
21996 * config/spu/spu.h (TARGET_VERSION): Remove.
21997 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
21998 * config/v850/v850.h (TARGET_VERSION): Remove.
21999 * config/vax/linux.h (TARGET_VERSION): Remove.
22000 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22001 * config/xtensa/elf.h (TARGET_VERSION): Remove.
22002 * config/xtensa/linux.h (TARGET_VERSION): Remove.
22003
22004 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
22005
22006 PR target/48142
22007 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22008 frame-related from frame-unrelated adjustments to the stack pointer.
22009
22010 2011-03-31 Jakub Jelinek <jakub@redhat.com>
22011
22012 * common.opt (fdebug-types-section): Move earlier.
22013 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22014
22015 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
22016
22017 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22018 var.
22019
22020 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
22021
22022 * tree.h (CASE_CHAIN): Define.
22023 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22024 (gimple_redirect_edge_and_branch): Likewise.
22025
22026 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22027
22028 PR middle-end/48367
22029 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22030 calculation.
22031
22032 2011-03-30 Jeff Law <law@redhat.com>
22033
22034 * PR bootstrap/48371
22035 * reload1.c (reload): Fix botch in last change.
22036
22037 * reload.h (struct reload): Fix typo introduced in last change.
22038
22039 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22040
22041 * config/arm/arm.opt (mhard-float, msoft-float): Mark
22042 Undocumented. Remove help text.
22043 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22044 -mhard-float.
22045
22046 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22047
22048 * doc/options.texi (NegativeAlias): Document.
22049 (Alias): Mention NegativeAlias.
22050 * opt-functions.awk: Handle NegativeAlias.
22051 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22052 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22053 * opts.h (CL_NEGATIVE_ALIAS): Define.
22054 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22055 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22056 OPT_mspe_.
22057 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22058 Alias entries.
22059 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22060 mno-spe and mno-isel instead of mspe=no and -misel=no.
22061
22062 2011-03-29 Mark Wielaard <mjw@redhat.com>
22063
22064 * common.opt (fdebug-types-section): New flag.
22065 * doc/invoke.texi: Document new -fno-debug-types-section flag.
22066 * dwarf2out.c (use_debug_types): New define.
22067 (struct die_struct): Mark die_id with GTY desc use_debug_types.
22068 (print_die): Guard output of type unit signatures using
22069 use_debug_types.
22070 (build_abbrev_table): Replace assert of dwarf_version >= 4
22071 with assert on use_debug_types.
22072 (size_of_die): Likewise.
22073 (unmark_dies): Likewise.
22074 (value_format): Decide AT_ref_external form on use_debug_types.
22075 (output_die): Replace dwarf_version version check guard with
22076 use_debug_types where appropriate.
22077 (modified_type_die): Likewise.
22078 (gen_reference_type_die): Likewise.
22079 (dwarf2out_start_source_file): Likewise.
22080 (dwarf2out_end_source_file): Likewise.
22081 (prune_unused_types_walk_attribs): Likewise.
22082 (dwarf2out_finish): Likewise.
22083
22084 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
22085
22086 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22087
22088 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22089
22090 PR rtl-optimization/48332
22091 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22092 mode of input operand N and modeN to its actual mode.
22093
22094 2011-03-30 Jeff Law <law@redhat.com>
22095
22096 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22097 define accessor macro.
22098 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22099 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22100 (reg_equiv_init): Likewise.
22101 (reg_equivs_size): New variable.
22102 (reg_equiv_init_size): Remove.
22103 (allocate_initial_values): Move prototype to here from....
22104 * integrate.h (allocate_initial_values): Remove prototype.
22105 * integrate.c: Include reload.h.
22106 (allocate_initial_values): Corresponding changes.
22107 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22108 (fix_reg_equiv_init, no_equiv): Corresponding changes.
22109 (update_equiv_regs): Corresponding changes.
22110 (ira): Corresponding changes.
22111 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22112 (push_secondary_reload): Corresponding changes.
22113 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22114 (make_memloc, find_reloads_address): Corresponding changes.
22115 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22116 (find_reloads_address_1): Corresponding changes.
22117 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22118 (refers_to_regno_for_reload_p): Corresponding changes.
22119 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22120 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22121 * reload1.c: Include ggc.h.
22122 (grow_reg_equivs): New function.
22123 (replace_pseudos_in, reload): Corresponding changes.
22124 (calculate_needs_all_insns, alter_regs): Corresponding changes.
22125 (eliminate_regs_1, elimination_effects): Corresponding changes.
22126 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22127 (delete_output_reload): Likewise.
22128 * caller-save.c (mark_referenced_regs): Corresponding changes.
22129 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22130 * frv/predicates.md (frv_load_operand): Corresponding changes.
22131 * microblaze/microblaze.c (double_memory_operand): Corresponding
22132 changes.
22133 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22134 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22135 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22136 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22137 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22138 changes.
22139 * pa/pa.c (emit_move_sequence): Corresponding changes.
22140 * vax/vax.c (nonindexed_address_p): Corresponding changes.
22141
22142 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22143
22144 PR target/47551
22145 * config/arm/arm.c (coproc_secondary_reload_class): Handle
22146 structure modes. Don't check neon_vector_mem_operand for
22147 vector or structure modes.
22148
22149 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
22150 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22151
22152 PR target/43590
22153 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22154 operand 1 and reshuffle the operands to match.
22155 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22156
22157 2011-03-30 Christian Schüler <cschueler@gmx.de>
22158
22159 PR driver/48208
22160 * config/c.opt (F): Added 'Driver' to -F option.
22161
22162 PR driver/48260
22163 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22164 handler function.
22165 * config/darwin.opt: Added '-arch' option.
22166
22167 2011-03-30 Nick Clifton <nickc@redhat.com>
22168
22169 * config/rx/rx.md: Add peepholes and patterns to combine
22170 extending loads and simple arithmetic instructions.
22171 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22172 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22173 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22174 modes to use pre-decrement and post-increment addressing.
22175 (rx_is_restricted_memory_address): Add range checking of REG+INT
22176 addresses.
22177 (rx_print_operand): Add support for %Q. Fix handling of %Q.
22178 (rx_memory_move_cost): Adjust cost of stores.
22179 (rx_adjust_insn_length): New function.
22180
22181 2011-03-30 Jakub Jelinek <jakub@redhat.com>
22182
22183 PR c/48305
22184 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22185 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22186 matching arg00/arg01 types.
22187
22188 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
22189
22190 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22191 last_location to UNKNOWN_LOCATION.
22192
22193 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
22194
22195 PR target/48349
22196 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22197 FLOAT_SSE_REGS.
22198
22199 2011-03-30 Joseph Myers <joseph@codesourcery.com>
22200 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22201
22202 PR bootstrap/48337
22203 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22204 Init(PROCESSOR_V7).
22205 (sparc_cpu): Likewise.
22206 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22207 PROCESSOR_V7.
22208
22209 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22210
22211 PR target/48336
22212 PR middle-end/48342
22213 PR rtl-optimization/48345
22214 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22215 hard regs for given mode from profitable regs when doing secondary
22216 allocation.
22217
22218 2011-03-29 Jeff Law <law@redhat.com>
22219
22220 PR bootstrap/48327
22221 * tree-ssa-threadupdate.c (struct redirection_data): Remove
22222 do_not_duplicate field.
22223 (lookup_redirection_data): Corresponding changes.
22224 (create_duplicates): Always create a template block.
22225 (redirect_edges): Remove code which reused the original block
22226 when it was going to become unreachable code.
22227 (thread_block): Don't set do_not_duplicate field.
22228
22229 2011-03-29 Joseph Myers <joseph@codesourcery.com>
22230
22231 * lto-opts.c (register_user_option_p, lto_register_user_option):
22232 Make type argument unsigned.
22233 * lto-streamer.h (lto_register_user_option): Make type argument
22234 unsigned.
22235 * opth-gen.awk: Make CL_* macros unsigned.
22236 * opts-common.c (find_opt): Make lang_mask argument unsigned.
22237 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22238 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22239 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22240 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22241 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22242 (find_opt): Make lang_mask argument unsigned.
22243
22244 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22245
22246 PR rtl-optimization/48331
22247 PR rtl-optimization/48334
22248 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22249 for any used algorithm.
22250
22251 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
22252
22253 * ira-conflicts.c (build_object_conflicts): Add unused attribute
22254 to parent_max.
22255
22256 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
22257
22258 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22259 (alpha_option_override): Don't set alpha_sr_alias_set.
22260 (emit_frame_store_1): Use gen_frame_mem rather than calling
22261 set_mem_alias_set.
22262 (alpha_expand_epilogue): Ditto.
22263
22264 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
22265
22266 PR tree-optimization/48290
22267 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22268 vectorization, check that relevant phis in the basic block after
22269 the inner loop are really inner loop's exit phis.
22270
22271 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
22272
22273 PR debug/48190
22274 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22275 (cached_dw_loc_list_def): New structure.
22276 (cached_dw_loc_list): New typedef.
22277 (cached_dw_loc_list_table): New variable.
22278 (cached_dw_loc_list_table_hash): New function.
22279 (cached_dw_loc_list_table_eq): Likewise.
22280 (add_location_or_const_value_attribute): Take a bool cache_p.
22281 Cache the list when the parameter is true.
22282 (gen_formal_parameter_die): Update caller.
22283 (gen_variable_die): Likewise.
22284 (dwarf2out_finish): Likewise.
22285 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22286 while generating debug info for the decl.
22287 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22288 (dwarf2out_init): Initialize cached_dw_loc_list_table.
22289 (resolve_addr): Cache the result of resolving a chain of
22290 location lists.
22291
22292 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
22293
22294 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22295 conflict object hard regset nodes have intersecting hard reg sets.
22296
22297 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22298 after regstat_init_n_sets_and_refs.
22299
22300 * ira.c: Add more comments at the top.
22301 (setup_stack_reg_pressure_class, setup_pressure_classes):
22302 Add comments how we compute the register pressure classes.
22303 (setup_allocno_and_important_classes): Add more comments.
22304 (setup_class_translate_array, reorder_important_classes)
22305 (setup_reg_class_relations): Add comments.
22306
22307 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
22308 start of the file.
22309
22310 * ira-color.c: Add 2011 to the Copyright line.
22311 (assign_hard_reg): Add more comments.
22312 (improve_allocation): Ditto.
22313
22314 * ira-costs.c: Add 2011 to the Copyright line.
22315 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22316 comments.
22317 (setup_regno_cost_classes_by_mode): Ditto.
22318
22319 Initial patches from ira-improv branch:
22320
22321 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22322
22323 * ira-build.c (ira_create_object): Remove initialization of
22324 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
22325 (ira_create_allocno): Remove initialization of
22326 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22327 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22328 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22329 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22330 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22331 Initialize ALLOCNO_ADD_DATA.
22332 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22333 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22334 ALLOCNO_REG.
22335 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
22336 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22337
22338 * ira.c (ira_reallocate): Remove.
22339 (setup_pressure_classes): Call
22340 ira_init_register_move_cost_if_necessary. Use
22341 ira_register_move_cost instead of ira_get_register_move_cost.
22342 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22343 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22344
22345 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22346 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22347 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22348 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22349 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22350 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22351 Fix formatting.
22352 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22353 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22354 (struct allocno_color_data): New.
22355 (allocno_color_data_t): New typedef.
22356 (allocno_color_data): New definition.
22357 (ALLOCNO_COLOR_DATA): New macro.
22358 (struct object_color_data): New.
22359 (object_color_data_t): New typedef.
22360 (object_color_data): New definition.
22361 (OBJECT_COLOR_DATA): New macro.
22362 (update_copy_costs, calculate_allocno_spill_cost): Call
22363 ira_init_register_move_cost_if_necessary. Use
22364 ira_register_move_cost instead of ira_get_register_move_cost.
22365 (move_spill_restore, update_curr_costs): Ditto.
22366 (allocno_spill_priority): Make it inline.
22367 (color_pass): Allocate and free allocno_color_dat and object_color_data.
22368 (struct coalesce_data, coalesce_data_t): New.
22369 (allocno_coalesce_data): New definition.
22370 (ALLOCNO_COALESCE_DATA): New macro.
22371 (merge_allocnos, coalesced_allocno_conflict_p): Use
22372 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22373 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22374 (coalesce_allocnos): Ditto.
22375 (setup_coalesced_allocno_costs_and_nums): Ditto.
22376 (collect_spilled_coalesced_allocnos): Ditto.
22377 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22378 (setup_slot_coalesced_allocno_live_ranges): Ditto.
22379 (coalesce_spill_slots): Ditto.
22380 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
22381 free allocno_coalesce_data.
22382
22383 * ira-conflicts.c: Fix formatting.
22384 (process_regs_for_copy): Call
22385 ira_init_register_move_cost_if_necessary. Use
22386 ira_register_move_cost instead of ira_get_register_move_cost.
22387 (build_object_conflicts): Optimize.
22388
22389 * ira-costs.c (record_reg_classes): Optimize. Call
22390 ira_init_register_move_cost_if_necessary. Use
22391 ira_register_move_cost, ira_may_move_in_cost, and
22392 ira_may_move_out_cost instead of ira_get_register_move_cost and
22393 ira_get_may_move_cost.
22394 (record_address_regs): Ditto.
22395 (scan_one_insn): Optimize.
22396 (find_costs_and_classes): Optimize.
22397 (process_bb_node_for_hard_reg_moves): Call
22398 ira_init_register_move_cost_if_necessary. Use
22399 ira_register_move_cost instead of ira_get_register_move_cost.
22400
22401 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22402 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22403 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22404 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22405 definitions.
22406 (ira_initiate_emit_data, ira_finish_emit_data)
22407 (create_new_allocno): New functions.
22408 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22409 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22410 Use ira_register_move_cost instead of ira_get_register_move_cost.
22411
22412 * ira-int.h: Fix some comments.
22413 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22414 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22415 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22416 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
22417 add_data.
22418 (struct ira_allocno): Make mode and aclass a bitfield. Move other
22419 bitfield after mode. Make hard_regno a short int. Make
22420 hard_regno short. Remove first_coalesced_allocno and
22421 next_coalesced_allocno. Move mem_optimized_dest_p,
22422 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22423 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
22424 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22425 temp, colorable_p. Add new member add_data.
22426 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22427 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22428 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22429 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22430 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22431 (ALLOCNO_ADD_DATA): New macro.
22432 (ira_emit_data_t): New typedef.
22433 (struct ira_emit_data): New. Move mem_optimized_dest_p,
22434 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22435 from struct ira_allocno.
22436 (ALLOCNO_EMIT_DATA): New macro.
22437 (ira_allocno_emit_data, allocno_emit_reg): New.
22438 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22439 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22440 (OBJECT_ADD_DATA): New macro.
22441 (ira_reallocate): Remove.
22442 (ira_initiate_emit_data, ira_finish_emit_data): New.
22443 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22444 (ira_init_register_move_cost_if_necessary): New.
22445 (ira_object_conflict_iter_next): Merge into
22446 ira_object_conflict_iter_cond.
22447 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22448
22449 * ira-live.c (process_single_reg_class_operands): Call
22450 ira_init_register_move_cost_if_necessary. Use
22451 ira_register_move_cost instead of ira_get_register_move_cost.
22452
22453 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
22454
22455 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22456
22457 * ira-costs.c: Fix formatting.
22458 (cost_classes, cost_classes_num): Remove.
22459 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22460 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22461 (cost_classes_del, cost_classes_htab): New.
22462 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22463 (initiate_regno_cost_classes, setup_cost_classes): New.
22464 (setup_regno_cost_classes_by_aclass): New.
22465 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22466 (record_reg_classes): Use regno_cost_classes instead of
22467 cost_classes. Move checking opposite operand up.
22468 (record_address_regs): Use regno_cost_classes
22469 instead of cost_classes.
22470 (scan_one_insn): Ditto. Use always general register.
22471 (print_allocno_costs): Use regno_cost_classes instead of
22472 cost_classes.
22473 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
22474 (find_costs_and_classes): Set up cost classes for each registers.
22475 Use also their mode for this. Use regno_cost_classes instead of
22476 cost_classes.
22477 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22478 cost_classes.
22479 (free_ira_costs, ira_init_costs): Don't use cost_classes.
22480 (ira_costs, ira_set_pseudo_classes): Call
22481 initiate_regno_cost_classes and finish_regno_cost_classes.
22482
22483 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
22484
22485 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22486
22487 * target.def (ira_cover_classes): Remove.
22488
22489 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22490
22491 * doc/tm.texi.in: Ditto.
22492
22493 * ira-conflicts.c: Remove mentioning cover classes from the file.
22494 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
22495 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
22496
22497 * targhooks.c (default_ira_cover_classes): Remove.
22498
22499 * targhooks.h (default_ira_cover_classes): Ditto.
22500
22501 * haifa-sched.c: Remove mentioning cover classes from the file.
22502 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22503 ira_pressure_classes and ira_pressure_classes_num instead of
22504 ira_reg_class_cover_size and ira_reg_class_cover. Use
22505 sched_regno_pressure_class instead of sched_regno_cover_class.
22506 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22507 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22508
22509 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
22510 classes from the file.
22511 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22512 (struct object_hard_regs, struct object_hard_regs_node): New.
22513 (struct ira_object): New members profitable_hard_regs,
22514 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22515 (struct ira_allocno): Rename cover_class to aclass. Rename
22516 cover_class_cost and updated_cover_class_cost to class_cost and
22517 updated_class_cost. Remove splay_removed_p and
22518 left_conflict_size. Add new members colorable_p.
22519 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22520 (ALLOCNO_COLORABLE_P): New macro.
22521 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22522 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22523 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22524 (OBJECT_...): Rename parameter C to O.
22525 (OBJECT_PROFITABLE_HARD_REGS): New macro.
22526 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22527 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22528 (struct target_ira_int): New members x_ira_max_memory_move_cost,
22529 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22530 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22531 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22532 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
22533 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
22534 x_ira_reg_class_subunion.
22535 (ira_max_memory_move_cost, ira_max_register_move_cost)
22536 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22537 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22538 (ira_important_class_nums, ira_reg_class_superunion): New macros.
22539 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22540 (ira_reg_class_union): Rename to ira_reg_class_subunion.
22541 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22542 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22543 (ira_tune_allocno_costs_and_cover_classes): Rename to
22544 ira_tune_allocno_costs.
22545 (ira_debug_hard_regs_forest): New.
22546 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22547 (ira_object_conflict_iter_next): Fix comments.
22548 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22549 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22550 cover_class to aclass.
22551 (ira_allocate_and_accumulate_costs): Ditto.
22552 (ira_allocate_and_set_or_copy_costs): Ditto.
22553
22554 * opts.c (decode_options): Remove ira_cover_class check.
22555
22556 * ira-color.c: Remove mentioning cover classes from the file. Use
22557 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22558 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22559 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22560 (splay-tree.h): Remove include.
22561 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22562 before copy_freq_compare_func.
22563 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22564 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22565 New definitions.
22566 (hard_regs_roots, hard_regs_node_vec): Ditto.
22567 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22568 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22569 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22570 (create_new_object_hard_regs_node): Ditto.
22571 (add_new_object_hard_regs_node_to_forest): Ditto.
22572 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22573 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22574 Ditto.
22575 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22576 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22577 (remove_unused_object_hard_regs_nodes): Ditto.
22578 (enumerate_object_hard_regs_nodes): Ditto.
22579 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22580 (object_hard_regs_subnode_t): Ditto.
22581 (struct object_hard_regs_subnode): Ditto.
22582 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22583 (setup_object_hard_regs_subnode_index): Ditto.
22584 (get_object_hard_regs_subnodes_num): Ditto.
22585 (form_object_hard_regs_nodes_forest): Ditto.
22586 (finish_object_hard_regs_nodes_tree): Ditto.
22587 (finish_object_hard_regs_nodes_forest): Ditto.
22588 (allocnos_have_intersected_live_ranges_p): Rename to
22589 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22590 (pseudos_have_intersected_live_ranges_p): Rename to
22591 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
22592 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22593 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22594 (update_copy_costs): Remove assert. Skip cost update if the hard
22595 reg does not belong the class.
22596 (assign_hard_reg): Process only profitable hard regs.
22597 (uncolorable_allocnos_num): Make it scalar.
22598 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22599 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22600 and ira_reg_class_max_nregs.
22601 (bucket_allocno_compare_func): Check frequency first.
22602 (sort_bucket): Add compare function as a parameter.
22603 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22604 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22605 (push_allocno_to_stack): Rewrite for checking new allocno
22606 colorability.
22607 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
22608 (push_only_colorable): Pass new parameter to sort_bucket.
22609 (push_allocno_to_spill): Remove.
22610 (allocno_spill_priority_compare): Make it inline and rewrite.
22611 (splay_tree_allocate, splay_tree_free): Remove.
22612 (allocno_spill_sort_compare): New function.
22613 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
22614 build and use splay tree. Choose first allocno in uncolorable
22615 allocno bucket to spill. Remove setting spill cost.
22616 (all_conflicting_hard_regs): Remove.
22617 (setup_allocno_available_regs_num): Check only profitable hard
22618 regs. Print info about hard regs nodes.
22619 (setup_allocno_left_conflicts_size): Remove.
22620 (put_allocno_into_bucket): Don't call
22621 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
22622 (improve_allocation): New.
22623 (color_allocnos): Call setup_profitable_hard_regs,
22624 form_object_hard_regs_nodes_forest, improve_allocation,
22625 finish_object_hard_regs_nodes_forest. Setup spill cost.
22626 (print_loop_title): Use pressure classes.
22627 (color_allocnso): Ditto.
22628 (do_coloring): Remove allocation and freeing splay_tree_node_pool
22629 and allocnos_for_spilling.
22630 (ira_sort_regnos_for_alter_reg): Don't setup members
22631 {first,next}_coalesced_allocno.
22632 (color): Remove allocating and freeing removed_splay_allocno_vec.
22633 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22634 prohibited_class_mode_regs.
22635
22636 * ira-lives.c: Remove mentioning cover classes from the file. Fix
22637 formatting.
22638 (update_allocno_pressure_excess_length): Use pressure classes.
22639 (inc_register_pressure, dec_register_pressure): Check for pressure
22640 class.
22641 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22642 pressure class. Use ira_reg_class_nregs instead of
22643 ira_reg_class_max_nregs.
22644 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22645 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22646 (single_reg_class): Use ira_reg_class_nregs instead of
22647 ira_reg_class_max_nregs.
22648 (process_bb_node_lives): Use pressure classes.
22649
22650 * ira-emit.c: Remove mentioning cover classes from the file. Use
22651 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
22652 (change_loop): Use pressure classes.
22653 (modify_move_list): Call ira_set_allocno_class instead of
22654 ira_set_allocno_cover_class.
22655
22656 * ira-build.c: Remove mentioning cover classes from the file. Use
22657 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22658 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
22659 ALLOCNO_UPDATED_CLASS_COST instead of
22660 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
22661 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22662 (ira_create_allocno): Remove initialization of
22663 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
22664 ALLOCNO_COLORABLE_P.
22665 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22666 Update conflict regs for the objects.
22667 (create_cap_allocno): Remove assert. Don't propagate
22668 ALLOCNO_AVAILABLE_REGS_NUM.
22669 (ira_free_allocno_costs): New function.
22670 (finish_allocno): Change a part of code into call of
22671 ira_free_allocno_costs.
22672 (low_pressure_loop_node_p): Use pressure classes.
22673 (object_range_compare_func): Don't compare classes.
22674 (setup_min_max_conflict_allocno_ids): Ditto.
22675
22676 * loop-invariant.c: Remove mentioning cover classes from the file.
22677 Use ira_pressure_classes and ira_pressure_classes_num instead of
22678 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
22679 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22680 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22681 Use reg_allocno_class instead of reg_cover_class.
22682 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22683 STACK_REG_COVER_CLASS.
22684 (get_regno_cover_class): Rename to get_regno_pressure_class.
22685 (move_loop_invariants): Initialize and finalize regstat.
22686
22687 * ira.c: Remove mentioning cover classes from the file. Add
22688 comments about coloring without cover classes. Use ALLOCNO_CLASS
22689 instead of ALLOCNO_COVER_CLASS. Fix formatting.
22690 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22691 setup_class_subset_and_memory_move_costs.
22692 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22693 (setup_cover_and_important_classes): Rename to
22694 setup_allocno_and_important_classes.
22695 (setup_class_translate_array): New.
22696 (setup_class_translate): Call it for allocno and pressure classes.
22697 (cover_class_order): Rename to allocno_class_order.
22698 (comp_reg_classes_func): Use ira_allocno_class_translate instead
22699 of ira_class_translate.
22700 (reorder_important_classes): Set up ira_important_class_nums.
22701 (setup_reg_class_relations): Set up ira_reg_class_superunion.
22702 (print_class_cover): Rename to print_classes. Add parameter.
22703 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22704 Print pressure classes too.
22705 (find_reg_class_closure): Rename to find_reg_classes. Don't call
22706 setup_reg_subclasses.
22707 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22708 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22709 (setup_prohibited_class_mode_regs): Use
22710 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22711 (clarify_prohibited_class_mode_regs): New function.
22712 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22713 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22714 (ira_init_once): Initialize them.
22715 (free_register_move_costs): Process them.
22716 (ira_init): Move calls of find_reg_classes and
22717 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22718 Call clarify_prohibited_class_mode_regs.
22719 (ira_no_alloc_reg): Remove.
22720 (too_high_register_pressure_p): Use pressure classes.
22721
22722 * sched-deps.c: Remove mentioning cover classes from the file.
22723 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
22724 ira_pressure_classes and ira_pressure_classes_num instead of
22725 ira_reg_class_cover_size and ira_reg_class_cover.
22726 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22727 sched_regno_pressure_class instead of sched_regno_cover_class.
22728 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
22729 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22730
22731 * ira.h: Add 2010 to Copyright.
22732 (ira_no_alloc_reg): Remove external.
22733 (struct target_ira): Rename x_ira_hard_regno_cover_class,
22734 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22735 x_ira_class_translate to x_ira_hard_regno_allocno_class,
22736 x_ira_allocno_classes_num, x_ira_allocno_classes, and
22737 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
22738 x_ira_pressure_classes, x_ira_pressure_class_translate, and
22739 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
22740 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
22741 x_ira_no_alloc_regs.
22742 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22743 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22744 ira_allocno_classes_num and ira_allocno_classes.
22745 (ira_class_translate): Rename to ira_allocno_class_translate.
22746 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22747 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22748 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22749 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22750 (ira_no_alloc_regs): New.
22751
22752 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
22753 classes from the file. Use ALLOCNO_CLASS instead of
22754 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
22755 ALLOCNO_COVER_CLASS_COST.
22756 (regno_cover_class): Rename to regno_aclass.
22757 (record_reg_classes): Use ira_reg_class_subunion instead of
22758 ira_reg_class_union.
22759 (record_address_regs): Check overflow.
22760 (scan_one_insn): Ditto.
22761 (print_allocno_costs): Print total mem cost fore regional allocation.
22762 (print_pseudo_costs): Use REG_N_REFS.
22763 (find_costs_and_classes): Use classes intersected with them on the
22764 1st pass. Check overflow. Use ira_reg_class_subunion instead of
22765 ira_reg_class_union. Use ira_allocno_class_translate and
22766 regno_aclass instead of ira_class_translate and regno_cover_class.
22767 Modify code for finding regno_aclass. Setup preferred classes for
22768 the next pass.
22769 (setup_allocno_cover_class_and_costs): Rename to
22770 setup_allocno_class_and_costs. Use regno_aclass instead of
22771 regno_cover_class. Use ira_set_allocno_class instead of
22772 ira_set_allocno_cover_class.
22773 (init_costs, finish_costs): Use regno_aclass instead of
22774 regno_cover_class.
22775 (ira_costs): Use setup_allocno_class_and_costs instead of
22776 setup_allocno_cover_class_and_costs.
22777 (ira_tune_allocno_costs_and_cover_classes): Rename to
22778 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
22779 by processing objects. Use ira_reg_class_max_nregs instead of
22780 ira_reg_class_nregs.
22781
22782 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22783
22784 * sched-int.h: Remove mentioning cover classes from the file.
22785 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22786
22787 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
22788 classes from the file.
22789 (struct reg_pref): Rename coverclass into allocnoclass.
22790 (reg_cover_class): Rename to reg_allocno_class.
22791
22792 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22793
22794 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22795
22796 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22797
22798 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22799
22800 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22801
22802 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22803
22804 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22805
22806 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22807
22808 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22809
22810 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22811
22812 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22813 (i386_ira_cover_classes): Ditto.
22814
22815 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22816
22817 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22818
22819 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22820
22821 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22822
22823 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22824
22825 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22826
22827 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22828 (mips_ira_cover_classes): Ditto.
22829
22830 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22831
22832 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22833
22834 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22835
22836 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22837
22838 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22839
22840 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22841 (IRA_COVER_CLASSES_VSX): Ditto.
22842
22843 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22844 (rs6000_ira_cover_classes): Ditto.
22845
22846 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22847
22848 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22849
22850 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22851
22852 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22853
22854 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22855
22856 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22857
22858 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22859
22860 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22861
22862 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22863
22864 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22865
22866 2011-03-29 Jakub Jelinek <jakub@redhat.com>
22867
22868 PR debug/48253
22869 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
22870 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
22871 dw_fde_unlikely_section_end_label, cold_in_std_section,
22872 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
22873 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
22874 fields.
22875 (output_fde): Use dw_fde_second_{begin,end} if second is
22876 true, otherwise dw_fde_{begin,end}.
22877 (output_call_frame_info): Test dw_fde_second_begin != NULL
22878 instead of dw_fde_switched_sections.
22879 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
22880 fields, initialize new fields. Initialize in_std_section
22881 unconditionally from the first partition.
22882 (dwarf2out_end_epilogue): Don't override dw_fde_end when
22883 dw_fde_second_begin is non-NULL.
22884 (dwarf2out_switch_text_section): Stop initializing removed
22885 dw_fde_struct fields, initialize new fields, initialize
22886 also dw_fde_end here. Set dw_fde_switch_cfi even when
22887 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
22888 (struct var_loc_list_def): Add last_before_switch field.
22889 (arange_table, arange_table_allocated, arange_table_in_use,
22890 ARANGE_TABLE_INCREMENT, add_arange): Removed.
22891 (size_of_aranges): Count !in_std_section and !second_in_std_section
22892 hunks in fdes, instead of looking at arange_table_in_use.
22893 (output_aranges): Add aranges_length argument, don't call
22894 size_of_aranges here. Instead of using aranges_table*
22895 emit ranges for fdes when !in_std_section resp.
22896 !second_in_std_section.
22897 (dw_loc_list): Break ranges crossing section switch.
22898 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
22899 use dw_fde_second_end instead of dw_fde_end as end of last range.
22900 (gen_subprogram_die): Don't call add_arange. Use
22901 dw_fde_{begin,end} for first partition and if switched
22902 section dw_fde_second_{begin,end} for the second.
22903 (var_location_switch_text_section_1,
22904 var_location_switch_text_section): New functions.
22905 (dwarf2out_begin_function): Initialize cold_text_section even
22906 when function_section () isn't text_section.
22907 (prune_unused_types): Don't walk arange_table.
22908 (dwarf2out_finish): Don't needlessly test
22909 flag_reorder_blocks_and_partition when testing cold_text_section_used.
22910 If info_section_emitted, call size_of_aranges and if it indicates
22911 non-empty .debug_aranges, call output_aranges with the computed
22912 size. Stop using removed dw_fde_struct fields, use
22913 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
22914 for second.
22915
22916 PR debug/48203
22917 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
22918 create ENTRY_VALUE if incoming or address of incoming's MEM
22919 is a hard REG.
22920 * dwarf2out.c (mem_loc_descriptor): Don't emit
22921 DW_OP_GNU_entry_value of DW_OP_fbreg.
22922 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
22923 on ENTRY_VALUE is able to find the canonical parameter VALUE.
22924 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
22925 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
22926 ENTRY_VALUE_EXPs.
22927 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
22928 is a REG_P or MEM_P with REG_P address, compute hash directly
22929 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
22930 (preserve_only_constants): Don't clear VALUES forwaring
22931 ENTRY_VALUE to some other VALUE.
22932
22933 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
22934
22935 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
22936 instead of GEN_INT.
22937
22938 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
22939
22940 * cfgexpand.c (expand_gimple_cond): Always set the source location and
22941 block before expanding the statement.
22942 (expand_gimple_stmt_1): Likewise. Set them here...
22943 (expand_gimple_stmt): ...and not here. Tidy.
22944 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
22945 unknown.
22946
22947 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
22948
22949 * Makefile.in: New rule for cprop.o.
22950 * gcse.c: Move constant/copy propagation to cprop.c.
22951 (compute_local_properties): Only handle expression tables.
22952 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
22953 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
22954 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
22955 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
22956 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
22957 compute_cprop_data, find_used_regs, try_replace_reg,
22958 find_avail_set, cprop_jump, constprop_register, cprop_insn,
22959 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
22960 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
22961 find_bypass_set, reg_killed_on_edge, bypass_block,
22962 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
22963 execute_rtl_cprop, pass_rtl_cprop): Move to...
22964 * cprop.c: ...here. New file, constant/copy propagation for RTL
22965 moved from gcse.c to here with minor cleanups in duplicated code.
22966
22967 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
22968
22969 * config/i386/i386.c (flag_opts): Fix a typo in
22970 -mavx256-split-unaligned-store.
22971
22972 2011-03-28 Anatoly Sokolov <aesok@post.ru>
22973
22974 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22975 LIBCALL_VALUE): Remove macros.
22976 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22977 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22978 (h8300_function_value, h8300_libcall_value,
22979 h8300_function_value_regno_p): New functions.
22980
22981 2011-03-28 Anatoly Sokolov <aesok@post.ru>
22982
22983 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
22984
22985 2011-03-28 Jeff Law <law@redhat.com>
22986
22987 * tree-ssa-threadupdate.c (redirect_edges): Call
22988 create_edge_and_update_destination_phis as needed.
22989 (create_edge_and_update_destination_phis): Accept new BB argument.
22990 All callers updated.
22991 (thread_block): Do not update the profile when threading around
22992 intermediate blocks.
22993 (thread_single_edge): Likewise.
22994 (determine_bb_domination_status): If BB is not a successor of the
22995 loop header, return NONDOMINATING.
22996 (register_jump_thread): Note when we register a jump thread around
22997 an intermediate block.
22998 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
22999 (thread_across_edge): Use it.
23000
23001 2011-03-28 Tristan Gingold <gingold@adacore.com>
23002
23003 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23004 when for_return is 2.
23005
23006 2011-03-28 Jeff Law <law@redhat.com>
23007
23008 * var-tracking.c (canonicalize_values_mark): Delete unused
23009 lhs assignment.
23010 (canonicalize_values_star, set_variable_part): Likewise.
23011 (clobber_variable_part, delete_variable_part): Likewise.
23012
23013 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
23014
23015 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23016
23017 2011-03-28 Martin Jambor <mjambor@suse.cz>
23018
23019 * tree-inline.c (expand_call_inline): Do not check that destination
23020 node is analyzed.
23021 (optimize_inline_calls): Assert that destination node is analyzed.
23022 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23023 not call tree_lowering_passes.
23024 * cgraph.h (cgraph_analyze_function): Declare.
23025 * cgraphunit.c (cgraph_analyze_function): Make public.
23026
23027 2011-03-28 Joseph Myers <joseph@codesourcery.com>
23028
23029 * config/sparc/sparc-opts.h: New.
23030 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23031 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23032 (sparc_option_override): Store processor_type enumeration rather
23033 than string in cpu_default. Remove name and enumeration from
23034 cpu_table. Directly default -mcpu then default -mtune from -mcpu
23035 without using sparc_select. Use target_flags_explicit instead of
23036 fpu_option_set.
23037 * config/sparc/sparc.h (enum processor_type): Move to
23038 sparc-opts.h.
23039 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23040 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23041 HeaderInclude entry.
23042 (mcpu=, mtune=): Use Var and Enum.
23043 (sparc_processor_type): New Enum and EnumValue entries.
23044
23045 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23046 Iain Sandoe <iains@gcc.gnu.org>
23047
23048 PR target/48245
23049 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23050
23051 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
23052
23053 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23054 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23055 Insert new statements at it in lieu of STMT.
23056 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23057 * tree-vect-stmts.c (vectorizable_store): Likewise.
23058 (vectorizable_load): Likewise.
23059
23060 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
23061
23062 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23063 (divtf3): Ditto.
23064 (multf3): Ditto.
23065 (subtf3): Ditto.
23066
23067 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23068
23069 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23070 unaligned 256bit load/store.
23071 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23072 (*avx_movdqu<avxmodesuffix>): Likewise.
23073
23074 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23075
23076 PR target/48288
23077 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23078 * config/pa/pa.md (iordi3): Use new predicate in expander.
23079 (iorsi3): Likewise.
23080
23081 2011-03-27 Anatoly Sokolov <aesok@post.ru>
23082
23083 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23084 FUNCTION_VALUE_REGNO_P): Remove macros.
23085 * config/mips/mips-protos.h (mips_function_value): Remove.
23086 * config/mips/mips.c (mips_function_value): Rename to...
23087 (mips_function_value_1): ... this. Make static. Handle receiving
23088 the function type in 'fn_decl_or_type' argument.
23089 (mips_function_value, mips_libcall_value,
23090 mips_function_value_regno_p): New function.
23091 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23092 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23093
23094 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
23095
23096 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23097 and -mavx256-split-unaligned-store.
23098 (ix86_option_override_internal): Split 32-byte AVX unaligned
23099 load/store by default.
23100 (ix86_avx256_split_vector_move_misalign): New.
23101 (ix86_expand_vector_move_misalign): Use it.
23102
23103 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23104 -mavx256-split-unaligned-store.
23105
23106 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23107 256bit load/store. Generate unaligned store on misaligned memory
23108 operand.
23109 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23110 256bit load/store.
23111 (*avx_movdqu<avxmodesuffix>): Likewise.
23112
23113 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23114 -mavx256-split-unaligned-store.
23115
23116 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23117
23118 PR target/38598
23119 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23120 Update commentary.
23121
23122 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
23123
23124 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23125 opno arguments with an expand_operand. Use create_input_operand.
23126 (mips_prepare_builtin_target): Delete.
23127 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23128 functions.
23129 (mips_expand_builtin_direct): Use create_output_operand and
23130 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
23131 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
23132 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23133
23134 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
23135
23136 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23137 function.
23138 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23139
23140 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
23141
23142 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23143 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
23144 basic blocks and call commit_edge_insertions directly.
23145 (fixup_abnormal_edges): Move from here to...
23146 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
23147 on the edges and return whether some have actually been inserted.
23148 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23149 compensation code.
23150
23151 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
23152
23153 PR rtl-optimization/48144
23154 * sel-sched-ir.c (merge_history_vect): Factor out from ...
23155 (merge_expr_data): ... here.
23156 (av_set_intersect): Rename to av_set_code_motion_filter.
23157 Update all callers. Call merge_history_vect when an expression
23158 is found in both sets.
23159 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23160
23161 2011-03-26 Alan Modra <amodra@gmail.com>
23162
23163 * config/rs6000/predicates.md (word_offset_memref_op): Handle
23164 cmodel medium addresses.
23165 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23166 64-bit gpr loads and stores.
23167 (rs6000_secondary_reload_ppc64): New function.
23168 * config/rs6000/rs6000-protos.h: Declare it.
23169 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23170
23171 2011-03-26 Alan Modra <amodra@gmail.com>
23172
23173 PR target/47487
23174 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23175 GNU Go in traceback table.
23176
23177 2011-03-25 Richard Henderson <rth@redhat.com>
23178
23179 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23180 if there are exactly 6 operands.
23181 (set_storage_via_setmem): Similarly.
23182
23183 2011-03-25 Kai Tietz <ktietz@redhat.com>
23184
23185 * collect2.c (write_c_file_stat): Handle backslash
23186 as right-hand directory separator.
23187 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23188 checking just for slash.
23189 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23190 instead of checking for trailing slash.
23191 * gcc.c (record_temp_file): Use filename_cmp instead
23192 of strcmp.
23193 (do_spec_1): Likewise.
23194 (replace_outfile_spec_function): Likewise.
23195 (is_directory): Use filename_ncmp instead of strncmp.
23196 (print_multilib_info): Likewise.
23197 * gcov.c (find_source): Use filename_cmp instead
23198 instead of strcmp.
23199 (make_gcov_file_name): Fix order of slash/backslash
23200 checks.
23201 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23202 (add_standard_paths): Likewise.
23203 * mips-tfile.c (saber_stop): Handle backslash.
23204 * prefix.c (update_path): Use filename_ncmp instead of
23205 strncmp.
23206 * profile.c (output_location): Use filename_cmp instead
23207 of strcmp.
23208 * read-md.c (handle_toplevel_file): Handle backslash.
23209 * tlink.c (frob_extension): Likewise.
23210 * tree-cfg.c (same_line_p): Use filename_cmp instead of
23211 strcmp.
23212 * tree-dump.c (dequeue_and_dump): Handle backslash.
23213 * tree.c (get_file_function_name): Likewise.
23214 * gengtype.c (read_input_list): Likewise.
23215 (get_file_realbasename): Likewise.
23216 (get_output_file_with_visibility): Use filename_cmp
23217 instead of strcmp.
23218
23219 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
23220
23221 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23222 case to VFPv1.
23223
23224 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23225
23226 * fold-const.c (expr_location_or): New function.
23227 (fold_truth_not_expr): Call it.
23228
23229 2011-03-25 Jeff Law <law@redhat.com>
23230
23231 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23232 va_end.
23233 * c-family/c-common.c (def_fn_type): Likewise.
23234 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23235 * emit-rtl.c (gen_rtvec): Likewise.
23236 * lto/lto-lang.c (def_fn_type): Likewise.
23237
23238 2011-03-25 Richard Guenther <rguenther@suse.de>
23239
23240 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23241 also generate copies.
23242 (fini_copy_prop): Handle constant values properly.
23243
23244 2011-03-25 Jakub Jelinek <jakub@redhat.com>
23245
23246 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23247 mode size instead of bitsize with DWARF2_ADDR_SIZE.
23248 (hash_loc_operands, compare_loc_operands): Handle
23249 DW_OP_GNU_entry_value.
23250
23251 2011-03-25 Kai Tietz <ktietz@redhat.com>
23252
23253 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23254 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23255 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23256 comment and use macro TARGET_64BIT_MS_ABI instead.
23257 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23258 and change default behavior for 32-bit MS_ABI.
23259 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23260 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23261 32-bit, too.
23262 (ix86_cfun_abi): Likewise.
23263 (ix86_maybe_switch_abi): Adjust comment.
23264 (init_cumulative_args): Check for bit-ness in MS_ABI case.
23265 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23266 instead of checking for SYSV_ABI.
23267 (ix86_nsaved_sseregs): Likewise.
23268 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23269 to 16 bytes.
23270 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23271 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23272 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23273 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23274 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23275
23276 2011-03-25 Richard Guenther <rguenther@suse.de>
23277
23278 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23279 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23280 (verify_gimple): Remove.
23281 * tree-cfg.c (verify_gimple_call): Merge verification
23282 from verify_stmts.
23283 (verify_gimple_phi): Merge verification from verify_stmts.
23284 (verify_gimple_label): New function.
23285 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23286 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23287 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23288 (verify_stmts): Rename to verify_gimple_in_cfg.
23289 (verify_gimple_in_cfg): New function.
23290 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23291 * tree-ssa.c (verify_ssa): Likewise.
23292 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23293
23294 2011-03-25 Richard Guenther <rguenther@suse.de>
23295
23296 * passes.c (init_optimization_passes): Add FRE pass after
23297 early SRA.
23298
23299 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
23300 Andrew Stubbs <ams@codesourcery.com>
23301
23302 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23303 for Cortex-A8.
23304 (arm_movdi_vfp_cortexa8): New pattern.
23305 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23306 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23307 instructions when tuning for Cortex-A8. Set attribute "arch".
23308 * config/arm/arm.md: Move include arm-tune.md up a bit.
23309 (define_attr "arch"): Add "onlya8" and "nota8" values.
23310 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23311
23312 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
23313
23314 PR bootstrap/48282
23315 Revert:
23316 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23317
23318 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23319 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23320 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23321 * passes.c (init_optimization_passes): Move
23322 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23323
23324 2011-03-25 Kai Tietz <ktietz@redhat.com>
23325
23326 * c-typeck.c (comptypes_internal): Replace target
23327 hook call of comp_type_attributes by version in tree.c file.
23328 * gimple.c (gimple_types_compatible_p_1): Likewise.
23329 * tree-ssa.c (useless_type_conversion_p): Likewise.
23330 * tree.c (build_type_attribute_qual_variant): Likewise.
23331 (attribute_value_equal): New static helper function.
23332 (comp_type_attributes): New function.
23333 (merge_attributes): Use attribute_value_equal for comparison.
23334 (attribute_list_contained): Likewise.
23335 * tree.h (comp_type_attributes): New prototype.
23336
23337 2011-03-25 Richard Guenther <rguenther@suse.de>
23338
23339 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23340 of complex types at -O0.
23341 (verify_gimple_assign_binary): Likewise.
23342 (verify_gimple_assign_ternary): Likewise.
23343
23344 2011-03-24 Mark Wielaard <mjw@redhat.com>
23345
23346 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23347 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23348
23349 2011-03-24 Mark Wielaard <mjw@redhat.com>
23350
23351 PR debug/48041
23352 * dwarf2out.c (output_abbrev_section): Only write table when
23353 abbrev_die_table_in_use > 1.
23354
23355 2011-02-24 Richard Henderson <rth@redhat.com>
23356
23357 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23358 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23359 (alpha_expand_unaligned_load_words): Use extql.
23360 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23361 (emit_insxl): Handle all modes for consistency.
23362
23363 2011-02-24 Richard Henderson <rth@redhat.com>
23364
23365 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23366 (alpha_expand_unaligned_load): Likewise.
23367 (alpha_expand_unaligned_store): Likewise.
23368 (alpha_expand_unaligned_load_words): Likewise.
23369 (alpha_expand_unaligned_store_words): Likewise.
23370 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23371 (alpha_split_lock_test_and_set_12): Likewise.
23372 (print_operand, alpha_fold_builtin_extxx): Likewise.
23373 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23374 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23375 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23376 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23377 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23378 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23379 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23380 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23381 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23382 (extwl, extll, extql): Similarly.
23383 (inswh, inslh, insqh): Similarly.
23384 (mskbl, mskwl, mskll, mskql): Similarly.
23385 (mskwh, msklh, mskqh): Similarly.
23386
23387 2011-02-24 Richard Henderson <rth@redhat.com>
23388
23389 * config/alpha/alpha.md (attribute isa): Add er, ner.
23390 (attribute enabled): Handle them.
23391 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23392
23393 2011-02-24 Richard Henderson <rth@redhat.com>
23394
23395 * config/alpha/alpha.md (attribute isa): Add vms.
23396 (attribute enabled): Handle it.
23397 (*movsf): Merge *movsf_{nofix,fix,nofp}.
23398 (*movdf): Merge *movdf_{nofix,fix,nofp}.
23399 (*movtf): Rename from *movtf_internal for consistency.
23400 (*movsi): Merge with *movsi_nt_vms.
23401 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23402 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23403 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23404 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23405
23406 2011-02-24 Richard Henderson <rth@redhat.com>
23407
23408 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23409 (extendqisi2, extendhisi2): Likewise.
23410 (extendqidi2): Simplify BWX/non-BWX expansions.
23411 (extendhidi2): Similarly.
23412
23413 2011-02-24 Richard Henderson <rth@redhat.com>
23414
23415 * config/alpha/alpha.md (attribute isa): New.
23416 (attribute enabled): New.
23417 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23418 (zero_extendqisi2, zero_extendqidi2): Similarly.
23419 (zero_extendhisi2, zero_extendhidi2): Similarly.
23420 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23421
23422 2011-02-24 Richard Henderson <rth@redhat.com>
23423
23424 * config/alpha/predicates.md (input_operand): Revert last change;
23425 update comment to mention 32-bit VMS rather than Windows.
23426
23427 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23428
23429 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23430 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
23431 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23432 * passes.c (init_optimization_passes): Move
23433 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23434
23435 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23436
23437 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23438
23439 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23440
23441 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23442 correctly.
23443
23444 2011-03-24 Jakub Jelinek <jakub@redhat.com>
23445
23446 PR debug/48204
23447 * simplify-rtx.c (simplify_const_unary_operation): Call
23448 real_convert when changing mode class with FLOAT_EXTEND.
23449
23450 2011-03-24 Nick Clifton <nickc@redhat.com>
23451
23452 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23453 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23454 * config/rx/rx.c (rx_option_override): Set align_jumps,
23455 align_loops and align_labels if not set by the user.
23456 (rx_align_for_label): New function.
23457 (rx_max_skip_for_label): New function.
23458 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23459 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23460 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23461 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23462 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23463
23464 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23465
23466 PR rtl-optimization/48263
23467 * optabs.c (expand_binop_directly): Reinstate convert_modes code
23468 and original commutative_p handling. Use maybe_gen_insn.
23469
23470 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23471
23472 * reload.c (find_reloads_subreg_address): Add address_reloaded
23473 parameter and return true there if the full address has been
23474 reloaded.
23475 (find_reloads_toplev): Pass address_reloaded flag.
23476 (find_reloads_address_1): Don't use address_reloaded parameter.
23477
23478 2011-03-24 Jeff Law <law@redhat.com>
23479
23480 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23481 unused variable "ann".
23482 (remove_unused_locals): Likewise.
23483
23484 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23485 statement.
23486
23487 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23488 after it is freed.
23489
23490 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23491
23492 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23493 for invalid symbolic addresses.
23494 (s390_secondary_reload): Don't use s390_check_symref_alignment for
23495 larl operands.
23496
23497 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23498
23499 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23500 the argument in calls to fold_truth_not_expr.
23501
23502 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23503
23504 * tree.c (record_node_allocation_statistics): New function.
23505 (make_node_stat, copy_node_stat, build_string): Call it.
23506 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23507 (build1_stat, build_omp_clause): Likewise.
23508
23509 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23510
23511 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23512 last commit.
23513
23514 2011-03-24 Richard Guenther <rguenther@suse.de>
23515
23516 PR tree-optimization/48271
23517 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23518 blocks that still exist.
23519
23520 2011-03-24 Richard Guenther <rguenther@suse.de>
23521
23522 PR tree-optimization/48270
23523 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23524 not free datarefs before ddrs.
23525
23526 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
23527
23528 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23529 from the address built for a reference with variable offset.
23530
23531 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
23532
23533 PR target/48237
23534 * config/i386/i386.md (*movdf_internal_rex64): Do not split
23535 alternatives that can be handled with movq or movabsq insn.
23536 (*movdf_internal): Disable for !TARGET_64BIT.
23537 (*movdf_internal_nointeger): Ditto.
23538 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23539
23540 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
23541
23542 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23543 (FUNCTION_ARG_ADVANCE): Likewise.
23544 * tm.texi.in: Change references to them to hook references.
23545 * tm.texi: Regenerate.
23546 * targhooks.c (default_function_arg): Eliminate check for target macro.
23547 (default_function_incoming_arg): Likewise.
23548 (default_function_arg_advance): Likewise.
23549 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23550 (function_arg_advance): Likewise.
23551 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23552
23553 2011-03-24 Richard Guenther <rguenther@suse.de>
23554
23555 PR middle-end/48269
23556 * tree-object-size.c (addr_object_size): Do not double-account
23557 for MEM_REF offsets.
23558
23559 2011-03-24 Diego Novillo <dnovillo@google.com>
23560
23561 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23562 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23563 (lto_input_data_block): Move from lto-opts.c. Make extern.
23564 Update all users.
23565 (lto_input_string): Rename from input_string. Make extern.
23566 Update all users.
23567 * lto-streamer-out.c (lto_output_string_with_length): Rename from
23568 output_string_with_length.
23569 Output 0 to indicate a non-NULL string. Update all callers to
23570 not emit 0.
23571 (lto_output_string): Rename from output_string. Make extern.
23572 Update all users.
23573 (lto_output_decl_state_streams): Make extern.
23574 (lto_output_decl_state_refs): Make extern.
23575 * lto-streamer.h (lto_input_string): Declare.
23576 (lto_input_data_block): Declare.
23577 (lto_output_string): Declare.
23578 (lto_output_string_with_length): Declare.
23579 (lto_output_decl_state_streams): Declare.
23580 (lto_output_decl_state_refs): Declare.
23581
23582 2011-03-24 Richard Guenther <rguenther@suse.de>
23583
23584 PR tree-optimization/46562
23585 * tree.c (build_invariant_address): New function.
23586 * tree.h (build_invariant_address): Declare.
23587 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23588 a renamed function moved ...
23589 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23590 Take valueization callback parameter.
23591 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23592 * gimple-fold.h: New file.
23593 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23594 (ccp_fold, fold_const_aggregate_ref,
23595 fold_ctor_reference, fold_nonarray_ctor_reference,
23596 fold_array_ctor_reference, fold_string_cst_ctor_reference,
23597 get_base_constructor): Move ...
23598 * gimple-fold.c: ... here.
23599 (gimple_fold_stmt_to_constant_1): New function
23600 split out from ccp_fold. Take a valueization callback parameter.
23601 Valueize all operands.
23602 (gimple_fold_stmt_to_constant): New wrapper function.
23603 (fold_const_aggregate_ref_1): New function split out from
23604 fold_const_aggregate_ref. Take a valueization callback parameter.
23605 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23606 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23607 invariant POINTER_PLUS_EXPRs to invariant form.
23608 (vn_valueize): New function.
23609 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23610 * tree-vrp.c (vrp_valueize): New function.
23611 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23612 to fold statements to constants.
23613 * tree-ssa-pre.c (eliminate): Properly guard propagation of
23614 function declarations.
23615 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23616 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23617
23618 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
23619
23620 * config/h8300/predicates.md (jump_address_operand): Fix register
23621 mode check.
23622
23623 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
23624
23625 * doc/invoke.texi (max-stores-to-sink): Document.
23626 * params.h (MAX_STORES_TO_SINK): Define.
23627 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23628 if either vectorization or if-conversion is disabled.
23629 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23630 tree-vect-data-refs.c vect_equal_offsets.
23631 (dr_equal_offsets_p): New function.
23632 (find_data_references_in_bb): Remove static.
23633 * tree-data-ref.h (find_data_references_in_bb): Declare.
23634 (dr_equal_offsets_p): Likewise.
23635 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23636 (vect_drs_dependent_in_basic_block): Update calls to
23637 vect_equal_offsets.
23638 (vect_check_interleaving): Likewise.
23639 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23640 (cond_if_else_store_replacement): Rename to...
23641 (cond_if_else_store_replacement_1): ... this. Change arguments and
23642 documentation.
23643 (cond_if_else_store_replacement): New function.
23644 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23645 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23646
23647 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
23648
23649 PR target/46934
23650 * config/arm/arm.md (casesi): Use the gen_int_mode() function
23651 to subtract lower bound instead of GEN_INT().
23652
23653 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
23654
23655 PR other/48179
23656 PR other/48221
23657 PR other/48234
23658 * doc/extend.texi (Alignment): Move section to match order in TOC.
23659 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23660 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23661
23662 2011-03-23 Jeff Law <law@redhat.com>
23663
23664 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23665 before removing the edge.
23666
23667 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23668 it may have been freed by redirect_branch_edge or
23669 redirect_edge_succ_nodup.
23670
23671 2011-03-23 Richard Guenther <rguenther@suse.de>
23672
23673 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23674 (check_va_list_escapes): Likewise.
23675 (check_all_va_list_escapes): Likewise.
23676
23677 2011-03-23 Richard Guenther <rguenther@suse.de>
23678
23679 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23680 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23681 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23682 (alias.o): Likewise.
23683 (ipa-type-escape.o): Remove.
23684 (ipa-struct-reorg.o): Likewise.
23685 (GTFILES): Remove ipa-struct-reorg.c.
23686 * alias.c: Do not include ipa-type-escape.h.
23687 * tree-ssa-alias.c: Likewise.
23688 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23689 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23690 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23691 and ipa-type-escape passes.
23692 * tree-pass.h (pass_ipa_type_escape): Remove.
23693 (pass_ipa_struct_reorg): Likewise.
23694 * ipa-struct-reorg.h: Remove.
23695 * ipa-struct-reorg.c: Likewise.
23696 * ipa-type-escape.h: Likewise.
23697 * ipa-type-escape.c: Likewise.
23698 * doc/invoke.texi (-fipa-struct-reorg): Remove.
23699 (--param struct-reorg-cold-struct-ratio): Likewise.
23700 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23701 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23702 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23703
23704 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23705
23706 * config/s390/2084.md: Enable all insn reservations also for z9_ec
23707 cpu attribute value.
23708 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23709 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23710 * config/s390/s390.c (processor_flags_table): New constant array.
23711 (s390_handle_arch_option): Remove.
23712 (s390_handle_option): Remove s390_handle_arch_option invocations
23713 and OPT_mwarn_framesize_ handling.
23714 (s390_option_override): Remove s390_handle_arch_option invocation.
23715 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23716 warnings.
23717 * config/s390/s390.md (cpu attribute): Add z9_ec value.
23718 * config/s390/s390.opt (s390_tune, s390_arch)
23719 (march=): Replace s390_arch_option enum and values with
23720 processor_type. Set variable name to s390_arch. Set
23721 initialization value.
23722 (mtune=): Replace s390_arch_option with processor_type. Set
23723 variable name to s390_tune. Set initialization value.
23724
23725 2011-03-23 Julian Brown <julian@codesourcery.com>
23726
23727 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23728 accesses which are not naturally aligned.
23729
23730 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23731
23732 PR target/47553
23733 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23734
23735 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
23736
23737 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23738 parameter from "int" to "enum insn_code".
23739 (expand_operand_type): New enum.
23740 (expand_operand): New structure.
23741 (create_expand_operand): New function.
23742 (create_fixed_operand, create_output_operand): Likewise
23743 (create_input_operand, create_convert_operand_to): Likewise.
23744 (create_convert_operand_from, create_address_operand): Likewise.
23745 (create_integer_operand): Likewise.
23746 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23747 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23748 (expand_insn, expand_jump_insn): Likewise.
23749 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23750 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23751 (expand_movstr, expand_builtin___clear_cache): Likewise.
23752 (expand_builtin_lock_release): Likewise.
23753 * explow.c (allocate_dynamic_stack_space): Likewise.
23754 (probe_stack_range): Likewise. Allow check_stack to FAIL,
23755 and use the default handling in that case.
23756 * expmed.c (check_predicate_volatile_ok): Delete.
23757 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23758 (emit_cstore): Likewise.
23759 * expr.c (emit_block_move_via_movmem): Likewise.
23760 (set_storage_via_setmem, expand_assignment): Likewise.
23761 (emit_storent_insn, try_casesi): Likewise.
23762 (emit_single_push_insn): Likewise. Allow the expansion to fail.
23763 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23764 (expand_vec_shift_expr, expand_binop_directly): Likewise.
23765 (expand_twoval_unop, expand_twoval_binop): Likewise.
23766 (expand_unop_direct, emit_indirect_jump): Likewise.
23767 (emit_conditional_move, vector_compare_rtx): Likewise.
23768 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23769 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23770 (expand_sync_lock_test_and_set): Likewise.
23771 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
23772 (emit_unop_insn): Likewise.
23773 (expand_copysign_absneg): Change icode to an insn_code.
23774 (create_convert_operand_from_type): New function.
23775 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23776 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23777 (expand_insn, expand_jump_insn): Likewise.
23778 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23779 than const_int_operand for operand 2.
23780
23781 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23782
23783 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23784 if possible.
23785
23786 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23787
23788 * emit-rtl.c (emit_pattern_before_noloc): New function.
23789 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23790 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23791 (emit_pattern_after_noloc): New function.
23792 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23793 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23794
23795 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23796
23797 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23798 (__ffsDI2): Likewise.
23799
23800 2011-03-22 Richard Henderson <rth@redhat.com>
23801
23802 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23803 of !TARGET_ABI_OPEN_VMS.
23804 (alpha_trampoline_init, alpha_start_function): Likewise.
23805 (alpha_expand_epilogue, alpha_file_start): Likewise.
23806 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23807 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23808 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23809 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23810 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23811
23812 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23813
23814 * config/s390/s390-opts.h: New.
23815 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23816 s390_arch_flags, s390_warn_framesize, s390_stack_size,
23817 s390_stack_guard): Remove.
23818 (s390_handle_arch_option): Return void. Take enum
23819 s390_arch_option value instead of string and searching array.
23820 (s390_handle_option): Don't assert that global structures are in
23821 use. Access variables via opts pointer. Use error_at. Don't use
23822 sscanf for -mstack-guard= or -mstack-size=. Update call to
23823 s390_handle_arch_option.
23824 (s390_option_override): Update call to s390_handle_arch_option.
23825 (s390_emit_prologue): Use %d format for s390_stack_size in
23826 diagnostic. Use %wd for HOST_WIDE_INT.
23827 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23828 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23829 * config/s390/s390.opt (config/s390/s390-opts.h): New
23830 HeaderInclude entry.
23831 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23832 s390_arch_flags, s390_warn_framesize): New Variable entries.
23833 (s390_arch_option): New Enum and EnumValue entries.
23834 (march=): Use Enum instead of Var.
23835 (mstack-guard=, mstack-size=): Use UInteger and Var.
23836 (mtune=): Use Enum.
23837
23838 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23839
23840 * config/score/score.c (score_handle_option): Don't assert that
23841 global structures are in use. Access target_flags via opts
23842 pointer. Use value of -march= option to determine target_flags
23843 settings.
23844 * config/score/score.opt (march=): Use Enum.
23845 (score_arch): New Enum and EnumValue entries.
23846
23847 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23848
23849 * config/mep/mep.c (option_mtiny_specified): Remove.
23850 (mep_option_override): Move register handling for -mivc2 from
23851 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
23852 instead of option_mtiny_specified.
23853 (mep_handle_option): Access target_flags via opts pointer. Don't
23854 assert that global structures are in use. Defer part of -mivc2
23855 handling and move it to mep_option_override.
23856 * config/mep/mep.opt (IVC2): New Mask entry.
23857 (mivc2): Use Var and Defer instead of Mask.
23858
23859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23860
23861 * config/v850/v850-opts.h: New.
23862 * config/v850/v850.c (small_memory): Replace with
23863 small_memory_physical_max array. Make that array static const.
23864 (v850_handle_memory_option): Take integer value of argument. Take
23865 gcc_options pointer, option text and location. Return void.
23866 Update for changes to small memory structures.
23867 (v850_handle_option): Access target_flags via opts pointer. Don't
23868 assert that global structures are in use. Update calls to
23869 v850_handle_memory_option.
23870 (v850_encode_data_area): Update references to small memory settings.
23871 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
23872 (enum small_memory_type): Move to v850-opts.h.
23873 * config/v850/v850.opt (config/v850/v850-opts.h): New
23874 HeaderInclude entry.
23875 (small_memory_max): New Variable entry.
23876 (msda): Replace by pair of options msda= and msda-. Use UInteger.
23877 (mtda, mzda): Likewise.
23878
23879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23880
23881 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
23882 pointer. Don't assert that global structures are in use.
23883
23884 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23885
23886 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
23887 via opts pointer. Don't assert that global structures are in use.
23888
23889 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23890
23891 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
23892 (munix=93): Use Var.
23893 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
23894 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
23895 * config/pa/pa-opts.h: New.
23896 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
23897 (pa_handle_option): Don't assert that global structures are in
23898 use. Access target_flags via opts pointer. Don't handle
23899 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
23900 OPT_munix_98 here.
23901 (pa_option_override): Handle deferred OPT_mfixed_range_.
23902
23903 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23904
23905 * config/mn10300/mn10300-opts.h: New.
23906 * config/mn10300/mn10300.c (mn10300_processor,
23907 mn10300_tune_string): Remove.
23908 (mn10300_handle_option): Don't assert that global structures are
23909 in use. Access mn10300_processor via opts pointer. Don't handle
23910 OPT_mtune_ here.
23911 * config/mn10300/mn10300.h (enum processor_type): Move to
23912 mn10300-opts.h.
23913 (mn10300_processor): Remove.
23914 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
23915 HeaderInclude entry.
23916 (mn10300_processor): New Variable entry.
23917 (mtune=): Use Var.
23918
23919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23920
23921 * config/microblaze/microblaze.c: Don't include opts.h.
23922 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
23923 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
23924 (mno-clearbss): Use Var and Warn.
23925
23926 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23927
23928 * config/m32r/m32r-opts.h: New.
23929 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
23930 (m32r_handle_option): Don't assert that global structures are in
23931 use. Access target_flags and m32r_cache_flush_func via opts
23932 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
23933 OPT_mno_flush_trap here.
23934 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
23935 include of m32r-opts.h.
23936 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
23937 HeaderInclude entry.
23938 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
23939 (mmodel=): Use Enum and Var.
23940 (m32r_model): New Enum and EnumValue entries.
23941 (mno-flush-trap): Use Var.
23942 (msdata=): Use Enum and Var.
23943 (m32r_sdata): New Enum and EnumValue entries.
23944
23945 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23946
23947 * config/m32c/m32c.c: Don't include opts.h.
23948 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
23949 m32c_handle_option): Remove.
23950 (m32c_option_override): Check global_options_set.x_target_memregs
23951 instead of target_memregs_set.
23952 * config/m32c/m32c.h (target_memregs): Remove.
23953 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
23954 variable.
23955
23956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23957
23958 * config/iq2000/iq2000-opts.h: New.
23959 * config/iq2000/iq2000.c: Don't include opts.h.
23960 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
23961 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
23962 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
23963 HeaderInclude entry.
23964 (iq2000_tune): New Variable entry.
23965 (march=): Add comment. Use Enum.
23966 (iq2000_arch): New Enum and EnumValue entries.
23967 (mcpu=): Use Enum and Var.
23968 (iq2000_tune): New Enum and EnumValue entries.
23969
23970 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23971
23972 * config/ia64/ia64-opts.h: New.
23973 * config/ia64/ia64.c (ia64_tune): Remove.
23974 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
23975 here. Use error_at.
23976 (ia64_option_override): Handle deferred OPT_mfixed_range_.
23977 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
23978 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
23979 HeaderInclude entry.
23980 (ia64_tune): New Variable entry.
23981 (mfixed-range=): Use Defer and Var.
23982 (mtune=): Use Enum and Var.
23983 (ia64_tune): New Enum and EnumValue entries.
23984
23985 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23986
23987 * config/frv/frv-opts.h: New.
23988 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
23989 frv-opts.h.
23990 (frv_cpu_type): Remove.
23991 * config/frv/frv.c: Don't include opts.h.
23992 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
23993 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
23994 (frv_cpu_type): New Variable entry.
23995 (frv_cpu): New Enum and EnumValue entries.
23996
23997 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23998
23999 * config/cris/cris.c (cris_handle_option): Access target_flags via
24000 opts pointer. Don't assert that global structures are in use.
24001 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24002 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24003
24004 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24005
24006 * config/bfin/bfin-opts.h: New.
24007 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24008 bfin_si_revision, bfin_workarounds): Remove.
24009 (bfin_cpus): Make static const.
24010 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24011 not bfin_lib_id_given.
24012 (bfin_handle_option): Don't set bfin_lib_id_given. Access
24013 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24014 pointer. Use error_at. Don't assert that global structures are in use.
24015 * config/bfin/bfin.h: Include bfin-opts.h.
24016 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24017 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24018 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24019 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24020 entries.
24021
24022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24023
24024 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24025 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24026 or -msoft-float here.
24027 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24028 -msoft-float and -mhard-float.
24029 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24030 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24031 msoft-float.
24032 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24033 -msoft-float.
24034 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24035 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24036 not mhard-float.
24037 (LIBGCC_SPEC): Don't handle -msoft-float.
24038 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24039 -mhard-float.
24040 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24041 msoft-float.
24042 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24043 -mfloat-abi=*, not -msoft-float and -mhard-float.
24044 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24045 -msoft-float.
24046 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24047 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24048 mhard-float and msoft-float.
24049 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24050 mfloat-abi=soft in comments, not mhard-float and msoft-float.
24051 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24052 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24053 mhard-float.
24054 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24055 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24056 msoft-float.
24057 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24058 not mhard-float.
24059 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24060 not msoft-float.
24061
24062 2011-03-22 Richard Henderson <rth@redhat.com>
24063
24064 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24065 TARGET_ABI_WINDOWS_NT.
24066 (alpha_output_function_end_prologue): Likewise.
24067 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24068 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24069 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24070 (trap, *movsi_nt_vms): Likewise.
24071 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24072 (*tablejump_osf_nt_internal): Remove.
24073 * config/alpha/predicates.md (input_operand): Only test Pmode.
24074
24075 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24076
24077 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24078 via opts pointer. Use error_at. Don't assert that global
24079 structures are in use.
24080
24081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24082
24083 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24084 (ix86_handle_option): Access ix86_isa_flags and
24085 ix86_isa_flags_explicit via opts pointer. Don't assert that
24086 global structures are in use.
24087 (ix86_function_specific_save, ix86_function_specific_restore):
24088 Update ix86_isa_flags_explicit field name.
24089 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24090 (ix86_isa_flags_explicit): Rename TargetSave entry to
24091 x_ix86_isa_flags_explicit.
24092
24093 2011-03-22 Richard Henderson <rth@redhat.com>
24094
24095 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24096 (alpha_option_override, direct_return): Likewise.
24097 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24098 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24099 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24100 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24101 (alpha_expand_epilogue, alpha_end_function): Likewise.
24102 (alpha_init_libfuncs): Likewise.
24103 (struct machine_function): Remove unicosmk members.
24104 (print_operand) ['t']: Remove.
24105 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24106 unicosmk_output_module_name, unicosmk_output_common,
24107 current_section_align, unicosmk_output_text_section_asm_op,
24108 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24109 unicosmk_section_type_flags, unicosmk_unique_section,
24110 unicosmk_asm_named_section, unicosmk_insert_attributes,
24111 unicosmk_output_align, unicosmk_defer_case_vector,
24112 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24113 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24114 unicosmk_output_ssib, unicosmk_add_call_info_word,
24115 unicosmk_extern_head, unicosmk_output_default_externs,
24116 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24117 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24118 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24119 * config/alpha/alpha-protos.h: Update.
24120 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24121 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24122 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24123 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24124 (*mulsi_se, mulvsi3): Likewise.
24125 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24126 (*divmodsi_internal, call, call_value, realign): Likewise.
24127 (moddi3, umoddi3): Likewise; remove duplicate expander.
24128 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24129 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24130 (*movdi_nofix): Remove r/U alternative.
24131 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24132 * config/alpha/constraints.md ("U"): Remove.
24133 * config/alpha/predicates.md (call_operand"): Don't test
24134 TARGET_ABI_UNICOSMK.
24135
24136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24137
24138 * target.def (handle_option): Take gcc_options and
24139 cl_decoded_option pointers and location_t.
24140 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24141 * doc/tm.texi: Regenerate.
24142 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24143 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24144 * lto-opts.c (lto_reissue_options): Generate option structure for
24145 targetm.handle_option call.
24146 * opts.c (target_handle_option): Update call to
24147 targetm.handle_option. Remove assertions about values now passed
24148 down to hook.
24149 * targhooks.c (default_target_handle_option): New.
24150 * targhooks.h (default_target_handle_option): Declare.
24151 * config/alpha/alpha.c: Include opts.h.
24152 (alpha_handle_option): Update to new hook interface.
24153 * config/arm/arm.c: Include opts.h.
24154 (arm_handle_option): Update to new hook interface.
24155 * config/arm/t-arm (arm.o): Update dependencies.
24156 * config/bfin/bfin.c: Include opts.h.
24157 (bfin_handle_option): Update to new hook interface.
24158 * config/cris/cris.c: Include opts.h.
24159 (cris_handle_option): Update to new hook interface.
24160 * config/frv/frv.c: Include opts.h.
24161 (frv_handle_option): Update to new hook interface.
24162 * config/i386/i386.c: Include opts.h.
24163 (ix86_handle_option): Update to new hook interface.
24164 (ix86_valid_target_attribute_inner_p): Generate option structure
24165 for call to ix86_handle_option.
24166 * config/i386/t-i386 (i386.o): Update dependencies.
24167 * config/ia64/ia64.c: Include opts.h.
24168 (ia64_handle_option): Update to new hook interface.
24169 * config/ia64/t-ia64 (ia64.o): Update dependencies.
24170 * config/iq2000/iq2000.c: Include opts.h.
24171 (iq2000_handle_option): Update to new hook interface.
24172 * config/m32c/m32c.c: Include opts.h.
24173 (m32c_handle_option): Update to new hook interface.
24174 * config/m32r/m32r.c: Include opts.h.
24175 (m32r_handle_option): Update to new hook interface.
24176 * config/m68k/m68k.c: Include opts.h.
24177 (m68k_handle_option): Update to new hook interface.
24178 * config/mep/mep.c: Include opts.h.
24179 (mep_handle_option): Update to new hook interface.
24180 * config/microblaze/microblaze.c: Include opts.h.
24181 (microblaze_handle_option): Update to new hook interface.
24182 * config/mips/mips.c: Include opts.h.
24183 (mips_handle_option): Update to new hook interface.
24184 * config/mn10300/mn10300.c: Include opts.h.
24185 (mn10300_handle_option): Update to new hook interface.
24186 * config/pa/pa.c: Include opts.h.
24187 (pa_handle_option): Update to new hook interface.
24188 * config/pdp11/pdp11.c: Include opts.h.
24189 (pdp11_handle_option): Update to new hook interface.
24190 * config/rs6000/rs6000.c: Include opts.h.
24191 (rs6000_handle_option): Update to new hook interface.
24192 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24193 * config/rx/rx.c: Include opts.h.
24194 (rx_handle_option): Update to new hook interface.
24195 * config/s390/s390.c: Include opts.h.
24196 (s390_handle_option): Update to new hook interface.
24197 * config/score/score.c: Include opts.h.
24198 (score_handle_option): Update to new hook interface.
24199 * config/sh/sh.c: Include opts.h.
24200 (sh_handle_option): Update to new hook interface.
24201 * config/sparc/sparc.c: Include opts.h.
24202 (sparc_handle_option): Update to new hook interface.
24203 * config/v850/v850.c: Include opts.h.
24204 (v850_handle_option): Update to new hook interface.
24205
24206 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24207
24208 * gcc.c (driver_unknown_option_callback): Only permit and save
24209 unknown -Wno- options.
24210 (driver_wrong_lang_callback): Save options directly instead of via
24211 driver_unknown_option_callback.
24212
24213 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24214
24215 * combine.c (simplify_set): Try harder to find the best CC mode when
24216 simplifying a nested COMPARE on the RHS.
24217
24218 2011-03-22 Joseph Myers <joseph@codesourcery.com>
24219
24220 * config/alpha/gnu.h: Remove.
24221 * config/arc: Remove directory.
24222 * config/arm/netbsd.h: Remove.
24223 * config/arm/t-pe: Remove.
24224 * config/crx: Remove directory.
24225 * config/i386/netbsd.h: Remove.
24226 * config/m68hc11: Remove directory.
24227 * config/m68k/uclinux-oldabi.h: Remove.
24228 * config/mcore/mcore-pe.h: Remove.
24229 * config/mcore/t-mcore-pe: Remove.
24230 * config/netbsd-aout.h: Remove.
24231 * config/rs6000/gnu.h: Remove.
24232 * config/sh/sh-symbian.h: Remove.
24233 * config/sh/symbian-base.c: Remove.
24234 * config/sh/symbian-c.c: Remove.
24235 * config/sh/symbian-cxx.c: Remove.
24236 * config/sh/symbian-post.h: Remove.
24237 * config/sh/symbian-pre.h: Remove.
24238 * config/sh/t-symbian: Remove.
24239 * config/svr3.h: Remove.
24240 * config/vax/netbsd.h: Remove.
24241 * config.build: Don't handle i[34567]86-*-pe.
24242 * config.gcc: Remove handling of deprecations for most deprecated
24243 targets.
24244 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24245 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24246 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24247 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24248 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24249 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24250 Remove cases.
24251 * config.host: Don't handle i[34567]86-*-pe.
24252 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24253 (ASM_SPEC32): Don't handle -mcall-gnu.
24254 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24255 -mcall-gnu.
24256 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24257 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24258 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24259 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24260 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24261 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24262 conditional on SYMBIAN.
24263 * configure.ac: Don't handle powerpc*-*-gnu*.
24264 * configure: Regenerate.
24265 * doc/extend.texi (interrupt attribute): Don't mention CRX.
24266 * doc/install-old.texi (m6811, m6812): Don't mention.
24267 * doc/install.texi (arc-*-elf*): Don't document multilib option.
24268 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24269 (m68k-uclinuxoldabi): Don't mention.
24270 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24271 Remove.
24272 (-mcall-gnu): Remove.
24273 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24274 families): Remove constraint documentation.
24275
24276 2011-03-22 Marius Strobl <marius@FreeBSD.org>
24277
24278 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24279 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24280 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24281
24282 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24283
24284 PR target/48226
24285 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24286 vector when peeking at the next token for vector, don't expand the
24287 keywords.
24288
24289 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
24290
24291 * config/avr/avr-protos.h (expand_epilogue): Change prototype
24292 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24293 * config/avr/avr.c (init_cumulative_args)
24294 (avr_function_arg_advance): Use it.
24295 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24296 sibcall epilogues.
24297 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24298 (avr_function_ok_for_sibcall): ...this new function.
24299 (avr_lookup_function_attribute1): New static Function.
24300 (avr_naked_function_p, interrupt_function_p)
24301 (signal_function_p, avr_OS_task_function_p)
24302 (avr_OS_main_function_p): Use it.
24303 * config/avr/avr.md ("sibcall", "sibcall_value")
24304 ("sibcall_epilogue"): New expander.
24305 ("*call_insn", "*call_value_insn"): New insn.
24306 ("call_insn", "call_value_insn"): Remove
24307 ("call", "call_value", "epilogue"): Change expander to handle
24308 sibling calls.
24309
24310 2011-03-21 Nick Clifton <nickc@redhat.com>
24311
24312 * doc/invoke.texi (Overall Options): Move closing brace to end of
24313 options list.
24314 (Optimization Options): Add missing @gol.
24315 (Directory Options): Likewise.
24316 (i386 and x86-64 Options): Likewise.
24317 (RS6000 and PowerPC Options): Likewise.
24318 (i386 and x86-64 Windows Options): Likewise.
24319 (V850 Options): Add text missing from descriptions.
24320
24321 2011-03-22 Richard Henderson <rth@redhat.com>
24322
24323 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24324 (avr_incoming_return_addr_rtx): New.
24325 (emit_push_byte): New.
24326 (expand_prologue): Use it. Remove incorrect dwarf annotation for
24327 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
24328 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
24329 (emit_pop_byte): New.
24330 (expand_epilogue): Use it. Pop frame pointer by bytes.
24331 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24332 (INCOMING_RETURN_ADDR_RTX): New.
24333 (INCOMING_FRAME_SP_OFFSET): New.
24334 (ARG_POINTER_CFA_OFFSET): New.
24335 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24336 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24337 (pophi): Remove.
24338
24339 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24340
24341 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24342
24343 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24344 (FUNCTION_ARG_ADVANCE): Likewise.
24345 * tm.texi.in: Change references to them to hook references.
24346 * tm.texi: Regenerate.
24347 * targhooks.c (default_function_arg): Eliminate check for target
24348 macro.
24349 (default_function_incoming_arg): Likewise.
24350 (default_function_arg_advance): Likewise.
24351 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24352 (function_arg_advance): Likewise.
24353 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24354
24355 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
24356
24357 * tree.c (build_call_1): New function.
24358 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24359
24360 2011-03-22 Richard Guenther <rguenther@suse.de>
24361
24362 PR tree-optimization/48228
24363 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24364 for single-arg PHIs.
24365
24366 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
24367
24368 PR rtl-optimization/48143
24369 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24370 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24371 sse2_cvtps2pd): Likewise.
24372
24373 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24374
24375 * recog.c (canonicalize_change_group): Use validate_unshare_change.
24376
24377 2011-03-22 Richard Guenther <rguenther@suse.de>
24378
24379 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24380 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24381 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24382 and REALIGN_LOAD_EXPR.
24383 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24384 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24385 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24386 DOT_PROD_EXPR case ...
24387 (expand_expr_real_2): ... here.
24388 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24389 and REALIGN_LOAD_EXPR.
24390 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24391 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24392 (vect_create_epilog_for_reduction): Likewise.
24393 (vectorizable_reduction): Likewise.
24394 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24395 * tree-vect-stmts.c (vectorizable_load): Likewise.
24396
24397 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
24398
24399 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24400
24401 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24402
24403 * config/s390/s390.c (s390_delegitimize_address): Fix offset
24404 handling for PLTOFF/GOTOFF.
24405
24406 2011-03-22 Nick Clifton <nickc@redhat.com>
24407
24408 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24409 trailing backslash from the end of the macro definition.
24410
24411 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24412
24413 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24414 and PLT unspecs.
24415
24416 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
24417
24418 * expr.h (prepare_operand): Move to...
24419 * optabs.h (prepare_operand): ...here and change the insn code
24420 parameter from "int" to "enum insn_code".
24421 (insn_operand_matches): Declare.
24422 * expr.c (init_expr_target): Use insn_operand_matches.
24423 (compress_float_constant): Likewise.
24424 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24425 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24426 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24427 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24428 Likewise.
24429 (gen_cond_trap): Likewise.
24430 (prepare_operand): Likewise. Change icode to an insn_code.
24431 (insn_operand_matches): New function.
24432 * reload.c (find_reloads_address_1): Use insn_operand_matches.
24433 * reload1.c (gen_reload): Likewise.
24434 * targhooks.c (default_secondary_reload): Likewise.
24435
24436 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24437
24438 * config/alpha/alpha.md (unspec): New define_c_enum.
24439 (unspecv): Ditto.
24440
24441 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
24442
24443 PR debug/48214
24444 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24445 between a call and its CALL_ARG_LOCATION note.
24446
24447 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
24448
24449 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24450
24451 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24452
24453 PR c/42544
24454 PR c/48197
24455 * c-common.c (shorten_compare): If primopN is first sign-extended
24456 to opN and then zero-extended to result type, set primopN to opN.
24457
24458 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
24459
24460 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24461 for barrier handlers.
24462
24463 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24464
24465 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24466 UNSPEC constants to be in the unspec enumeration, and redefine
24467 all UNSPECV constants to be in the unspecv enumeration, so that
24468 dumps print which unspec/unspec_volatile this is.
24469 * config/rs6000/vector.md (UNSPEC_*): Ditto.
24470 * config/rs6000/paired.md (UNSPEC_*): Ditto.
24471 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24472 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24473 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24474
24475 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24476 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24477 UNSPECV_LWSYNC, since these are used as unspec_volatile.
24478 * config/rs6000/sync.md (isync, lwsync): Ditto.
24479
24480 2011-03-21 Richard Guenther <rguenther@suse.de>
24481
24482 * params.def (lto-min-partition): Fix typo.
24483
24484 2011-03-21 Richard Guenther <rguenther@suse.de>
24485
24486 PR c/47939
24487 * c-decl.c (grokdeclarator): Drop to the main variant only
24488 for array types. Drop flag_gen_aux_info check.
24489
24490 2011-03-21 Richard Guenther <rguenther@suse.de>
24491
24492 PR translation/47911
24493 * params.def (lto-partitions): Fix typo.
24494 (lto-min-partition): Fix wording.
24495
24496 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
24497
24498 * config/rs6000/t-freebsd: Remove duplication from file.
24499
24500 2011-03-21 Richard Guenther <rguenther@suse.de>
24501
24502 PR middle-end/47661
24503 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24504
24505 2011-03-21 Richard Guenther <rguenther@suse.de>
24506
24507 PR lto/48210
24508 * params.def (lto-partitions): Require at least 1 partition.
24509
24510 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24511
24512 * gthr-solaris.h: Remove.
24513 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24514 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24515 (LIB_SPEC): Likewise.
24516 * config/sol2.opt (threads): Remove.
24517 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24518 (sparc*-*-solaris2*): Likewise.
24519 * configure.ac (enable_threads): Enable solaris support.
24520 * configure: Regenerate.
24521 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24522 * doc/install.texi (Configuration, --enable-threads=lib): Remove
24523 solaris.
24524
24525 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24526
24527 * config.gcc: Obsolete *-*-solaris2.8*.
24528 * doc/install.texi (Specific, *-*-solaris2*): Document it.
24529
24530 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24531
24532 PR bootstrap/48135
24533 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24534 reference. Solaris 8 perl works.
24535
24536 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24537
24538 PR bootstrap/48135
24539 * doc/install.texi (Prerequisites): Move jar etc. up.
24540 Explain support library version requirements.
24541
24542 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24543
24544 PR bootstrap/48135
24545 * doc/install.texi (Prerequisites): Move Perl to build
24546 requirements. Always necessary on Solaris 2 with Sun ld.
24547
24548 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24549
24550 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24551 binutils 2.21.
24552 (Specific, i?86-*-solaris2.[89]): Likewise.
24553 (Specific, i?86-*-solaris2.10): Likewise.
24554 (Specific, mips-sgi-irix6): Likewise.
24555 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24556 Update for binutils 2.21.
24557
24558 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24559
24560 * configure.ac (gcc_cv_lto_plugin): Fix typo.
24561 Allow -fuse-linker-plugin for non-default plugin linker.
24562 * configure: Regenerate.
24563
24564 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
24565
24566 PR bootstrap/48167
24567 * gengtype.c (files_rules): Added rule for cp/parser.h.
24568
24569 2011-03-21 Jakub Jelinek <jakub@redhat.com>
24570
24571 PR target/48213
24572 * config/s390/s390.c (s390_delegitimize_address): Don't call
24573 lowpart_subreg if orig_x has BLKmode.
24574
24575 2011-03-21 Kai Tietz <ktietz@redhat.com>
24576
24577 PR target/12171
24578 * doc/plugins.texi: Adjust documentation for plugin register_callback.
24579 * tree.h (attribute_spec): Add new member affects_type_identity.
24580 * attribs.c (empty_attribute_table): Adjust attribute_spec
24581 initializers.
24582 * config/alpha/alpha.c: Likewise.
24583 * config/arc/arc.c: Likewise.
24584 * config/arm/arm.c: Likewise.
24585 * config/avr/avr.c: Likewise.
24586 * config/bfin/bfin.c: Likewise.
24587 * config/crx/crx.c: Likewise.
24588 * config/darwin.h: Likewise.
24589 * config/h8300/h8300.c: Likewise.
24590 * config/i386/cygming.h: Likewise.
24591 * config/i386/i386.c: Likewise.
24592 * config/ia64/ia64.c: Likewise.
24593 * config/m32c/m32c.c: Likewise.
24594 * config/m32r/m32r.c: Likewise.
24595 * config/m68hc11/m68hc11.c: Likewise.
24596 * config/m68k/m68k.c: Likewise.
24597 * config/mcore/mcore.c: Likewise.
24598 * config/mep/mep.c: Likewise.
24599 * config/microblaze/microblaze.c: Likewise.
24600 * config/mips/mips.c: Likewise.
24601 * config/rs6000/rs6000.c: Likewise.
24602 * config/rx/rx.c: Likewise.
24603 * config/sh/sh.c: Likewise.
24604 * config/sol2.h: Likewise.
24605 * config/sparc/sparc.c: Likewise.
24606 * config/spu/spu.c: Likewise.
24607 * config/stormy16/stormy16.c: Likewise.
24608 * config/v850/v850.c: Likewise.
24609
24610 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
24611
24612 * simplify-rtx.c (simplify_binary_operation_1): Handle
24613 (xor (and A B) C) case when B and C are both constants.
24614
24615 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
24616
24617 * tree-dfa.c (add_referenced_var): Fix typo in comment.
24618
24619 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
24620
24621 PR bootstrap/48168
24622 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24623
24624 2011-03-20 Jakub Jelinek <jakub@redhat.com>
24625
24626 PR rtl-optimization/48156
24627 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24628 assume df and df_lr are not NULL.
24629
24630 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24631
24632 PR debug/48023
24633 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24634 between a call and its CALL_ARG_LOCATION note.
24635
24636 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
24637
24638 PR debug/48178
24639 * config/sh/sh.c (find_barrier): Don't emit a constant pool
24640 between a call and its corresponding CALL_ARG_LOCATION note.
24641
24642 2011-03-19 Anatoly Sokolov <aesok@post.ru>
24643
24644 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24645 instead of loop. Use HARD_REGISTER_NUM_P predicate.
24646 * haifa-sched.c (setup_ref_regs): Ditto.
24647 * caller-save.c (add_used_regs_1): Ditto.
24648 * dse.c (look_for_hardregs): Ditto.
24649 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24650 * sched-rgn.c (check_live_1): Ditto.
24651
24652 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24653
24654 * c-decl.c (diagnose_mismatched_decls): Give an error for
24655 redefining a typedef with variably modified type.
24656
24657 2011-03-18 Joseph Myers <joseph@codesourcery.com>
24658
24659 * c-decl.c (grokfield): Don't allow typedefs for structures or
24660 unions with no tag by default.
24661 * doc/extend.texi (Unnamed Fields): Update.
24662
24663 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
24664
24665 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24666 Rewrite using indirect functions.
24667 (lwp_slwpcb): Ditto.
24668 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24669 (avx_vinsertf128<mode>): Ditto.
24670
24671 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24672
24673 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24674 unspecs.
24675
24676 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24677
24678 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24679 splitting between a call and its corresponding CALL_ARG_LOCATION note.
24680
24681 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
24682
24683 PR rtl-optimization/48170
24684 * gcse.c (hoist_code): Remove bogus asserts.
24685
24686 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
24687
24688 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24689 computation for prologue/epilogue.
24690
24691 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24692
24693 * Makefile.in (check-consistency): Remove.
24694
24695 2011-03-18 Jakub Jelinek <jakub@redhat.com>
24696
24697 PR debug/48176
24698 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24699 arange_table_in_use is 0, but either text_section_used or
24700 cold_text_section_used is true. Don't call it if
24701 !info_section_emitted.
24702
24703 2011-03-18 Anatoly Sokolov <aesok@post.ru>
24704
24705 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24706 FUNCTION_VALUE_REGNO_P): Remove.
24707 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24708 Remove.
24709 * config/avr/avr.c (avr_ret_register): Make static inline.
24710 (avr_function_value_regno_p): New function.
24711 (avr_libcall_value): Make static. Add 'func' argument.
24712 (avr_function_value): Make static. Rename 'func' argument to
24713 'fn_decl_or_type', forward it to avr_libcall_value. Call
24714 avr_ret_register function instead of RET_REGISTER macro.
24715 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24716
24717 2011-03-18 Jason Merrill <jason@redhat.com>
24718
24719 PR c++/23372
24720 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24721
24722 2011-03-18 Richard Guenther <rguenther@suse.de>
24723
24724 * doc/install.texi (--enable-gold): Remove.
24725 (--with-plugin-ld): Document.
24726 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24727
24728 2011-03-18 Andrew Pinski <pinskia@gmail.com>
24729
24730 PR middle-end/47790
24731 * expr.c (optimize_bitfield_assignment_op): Revamp to work
24732 again after expansion changes.
24733
24734 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
24735
24736 * combine.c (try_combine): Do simplification only call of
24737 subst() on i2 even when i1 is present. Update comments.
24738
24739 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
24740
24741 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24742 and UNSPEC_PCREL_SYMOFF.
24743
24744 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24745
24746 * config/s390/s390.md: Use define_c_enum for the unspec constant
24747 definitions.
24748
24749 2011-03-18 Richard Henderson <rth@redhat.com>
24750 Jakub Jelinek <jakub@redhat.com>
24751
24752 PR bootstrap/48161
24753 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24754 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24755
24756 2011-03-17 Anatoly Sokolov <aesok@post.ru>
24757
24758 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24759 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24760 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24761 Change return type to bool.
24762 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24763
24764 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24765
24766 PR debug/48163
24767 * var-tracking.c (prepare_call_arguments): If CALL target
24768 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24769 pc instead of looking it up using cselib_lookup and use
24770 Pmode for it if x has VOIDmode.
24771 * dwarf2out.c (gen_subprogram_die): If also both first and
24772 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24773
24774 PR debug/48163
24775 * function.c (assign_parms): For data.passed_pointer parms
24776 use MEM of data.entry_parm instead of data.entry_parm itself
24777 as DECL_INCOMING_RTL.
24778 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24779 also when passed and declared mode is the same, DECL_RTL
24780 is a MEM with pseudo as address and DECL_INCOMING_RTL is
24781 a MEM too.
24782
24783 2011-03-16 Jeff Law <law@redhat.com>
24784
24785 PR rtl-optimization/37273
24786 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24787 handle them like argument loads from stack slots. Do not double
24788 count memory for memory constants and argument loads from stack slots.
24789
24790 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24791
24792 PR debug/48160
24793 * var-tracking.c (prepare_call_arguments): Check SUBREG.
24794
24795 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
24796
24797 PR target/48171
24798 * config/i386/i386.opt: Add Save to -mavx and -mfma.
24799
24800 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24801
24802 PR bootstrap/48153
24803 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24804 if dwarf_strict.
24805 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24806 Clear call_arg_locations and call_arg_loc_last always.
24807
24808 PR middle-end/48152
24809 * var-tracking.c (prepare_call_arguments): If argument needs to be
24810 passed by reference, adjust argtype and mode.
24811
24812 2011-03-17 Richard Guenther <rguenther@suse.de>
24813
24814 PR middle-end/48134
24815 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24816 a value make sure to fold the statement.
24817
24818 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
24819
24820 PR target/43872
24821 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24822 return condition with !cfun->calls_alloca.
24823
24824 2011-03-17 Richard Guenther <rguenther@suse.de>
24825
24826 PR bootstrap/48148
24827 * lto-cgraph.c (input_overwrite_node): Clear the abstract
24828 origin for decls in other ltrans units.
24829 (input_varpool_node): Likewise.
24830
24831 2011-03-17 Richard Guenther <rguenther@suse.de>
24832
24833 PR middle-end/48165
24834 * tree-object-size.c (compute_object_offset): Properly return
24835 the offset operand of MEM_REFs as sizetype.
24836
24837 2011-03-17 Jakub Jelinek <jakub@redhat.com>
24838
24839 PR rtl-optimization/48141
24840 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24841 * dse.c: Include params.h.
24842 (active_local_stores_len): New variable.
24843 (add_wild_read, dse_step1): Clear it when setting active_local_stores
24844 to NULL.
24845 (record_store, check_mem_read_rtx): Decrease it when removing
24846 from the chain.
24847 (scan_insn): Likewise. Increase it when adding to chain, if it
24848 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24849 set active_local_stores to NULL before the addition.
24850 * Makefile.in (dse.o): Depend on $(PARAMS_H).
24851
24852 PR rtl-optimization/48141
24853 * dse.c (record_store): If no positions are needed in an insn
24854 that cannot be deleted, at least unchain it from active_local_stores.
24855
24856 2011-03-16 Dodji Seketeli <dodji@redhat.com>
24857
24858 PR debug/47510
24859 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24860 (lookup_type_die_strip_naming_typedef): ... here.
24861 (get_context_die): Use it.
24862 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24863 the anonymous struct named by the naming typedef.
24864
24865 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
24866
24867 PR target/48154
24868 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
24869 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24870
24871 2011-03-16 Jeff Law <law@redhat.com>
24872
24873 * tree-vrp.c (identify_jump_threads): Slightly simplify type
24874 check for operands of conditional. Allow type to be a pointer.
24875
24876 2011-03-16 Richard Guenther <rguenther@suse.de>
24877
24878 PR tree-optimization/48149
24879 * fold-const.c (fold_binary_loc): Fold
24880 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
24881
24882 2011-03-16 Richard Guenther <rguenther@suse.de>
24883
24884 PR tree-optimization/26134
24885 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
24886 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
24887 (non_rewritable_mem_ref_base): Handle complex type component
24888 accesses, constrain offsets for vector and complex extracts
24889 more properly.
24890
24891 2011-03-16 Richard Guenther <rguenther@suse.de>
24892
24893 PR tree-optimization/48146
24894 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
24895 operands avoiding the need for renaming.
24896
24897 2011-03-16 Richard Guenther <rguenther@suse.de>
24898
24899 * gimple-fold.c (maybe_fold_reference): Open-code relevant
24900 constant folding. Move MEM_REF canonicalization first.
24901 Rely on fold_const_aggregate_ref for initializer folding.
24902 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
24903
24904 2011-03-16 Jakub Jelinek <jakub@redhat.com>
24905
24906 PR middle-end/48136
24907 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24908 arg0/arg1 or their arguments are always fold converted to matching
24909 types.
24910
24911 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
24912 to nargs.
24913
24914 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24915
24916 PR lto/46944
24917 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
24918 Handle in-tree gold.
24919 (ld_vers): Extract binutils version for gold.
24920 (gcc_cv_ld_hidden): Handle gold here.
24921 (gcc_cv_lto_plugin): Determine level of linker plugin support.
24922 * configure: Regenerate.
24923 * config.in: Regenerate.
24924 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
24925 -fuse-linker-plugin otherwise.
24926 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
24927 (LINK_COMMAND_SPEC): Use it.
24928 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
24929
24930 2011-03-16 Jakub Jelinek <jakub@redhat.com>
24931
24932 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
24933 * calls.c: Remove debug.h include.
24934 (emit_call_1): Don't call virtual_call_token debug hook.
24935 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
24936 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
24937 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
24938 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
24939 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
24940 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
24941 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
24942 dwarf2out_virtual_call): Remove.
24943 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
24944 copy_call_info and virtual_call hooks.
24945 (dwarf2out_init): Don't initialize vcall_insn_table,
24946 debug_dcall_section and debug_vcall_section.
24947 (prune_unused_types): Don't mark nodes from dcall_table.
24948 (dwarf2out_finish): Don't output dcall or vcall tables.
24949 * final.c (final_scan_insn): Don't call direct_call or
24950 virtual_call debug hooks.
24951 * debug.h (struct gcc_debug_hooks): Remove direct_call,
24952 virtual_call_token, copy_call_info and virtual_call hooks.
24953 (debug_nothing_uid): Remove prototype.
24954 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
24955 copy_call_info and virtual_call hooks.
24956 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24957 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
24958 * debug.c (do_nothing_debug_hooks): Likewise.
24959 (debug_nothing_uid): Remove.
24960 * doc/invoke.texi (-fenable-icf-debug): Remove.
24961 * common.opt (-fenable-icf-debug): Likewise.
24962
24963 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
24964 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
24965 call's MEM. Handle functions returning aggregate through a hidden
24966 first pointer. For virtual calls add clobbered pc to call arguments
24967 chain.
24968 * dwarf2out.c (gen_subprogram_die): Emit
24969 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
24970 can't be emitted.
24971
24972 PR debug/45882
24973 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
24974 * rtl.h (ENTRY_VALUE_EXP): Define.
24975 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
24976 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
24977 * print-rtl.c (print_rtx): Likewise.
24978 * gengtype.c (adjust_field_rtx_def): Likewise.
24979 * var-tracking.c (vt_add_function_parameter): Adjust
24980 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
24981 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
24982 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
24983 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
24984 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
24985
24986 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
24987 Call var_location debug hook even on CALL_INSNs.
24988 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
24989 * rtl.def (ENTRY_VALUE): New.
24990 * dwarf2out.c: Include cfglayout.h.
24991 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24992 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
24993 (struct call_arg_loc_node): New type.
24994 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
24995 tail_call_site_count): New variables.
24996 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
24997 DW_TAG_GNU_call_site_parameter.
24998 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
24999 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25000 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25001 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25002 and DW_AT_GNU_all_source_call_sites.
25003 (mem_loc_descriptor): Handle ENTRY_VALUE.
25004 (add_src_coords_attributes): Don't add enything if
25005 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25006 (dwarf2out_abstract_function): Save and clear call_arg_location,
25007 call_site_count and tail_call_site_count around dwarf2out_decl call.
25008 (gen_call_site_die): New function.
25009 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25010 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25011 (dwarf2out_function_decl): Clear call_arg_locations,
25012 call_arg_loc_last, set call_site_count and tail_call_site_count
25013 to -1 and free block_map.
25014 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25015 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
25016 followed by any real instructions.
25017 (dwarf2out_begin_function): Set call_site_count and
25018 tail_call_site_count to 0.
25019 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25020 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25021 attempt to force a DIE for it and worst case remove the attribute.
25022 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25023 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25024 the decl itself.
25025 * var-tracking.c: Include tm_p.h.
25026 (vt_stack_adjustments): For calls call note_register_arguments.
25027 (argument_reg_set): New variable.
25028 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25029 ensure the VALUE is resolved.
25030 (call_arguments): New variable.
25031 (prepare_call_arguments): New function.
25032 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25033 (struct expand_loc_callback_data): Add ignore_cur_loc field.
25034 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25035 always use the best expression.
25036 (vt_expand_loc): Add ignore_cur_loc argument.
25037 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25038 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25039 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25040 note for all calls.
25041 (vt_add_function_parameter): Use cselib_lookup_from_insn.
25042 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25043 argument. Don't call cselib_preserve_only_values and
25044 cselib_reset_table.
25045 (note_register_arguments): New function.
25046 (vt_initialize): Compute argument_reg_set. Call
25047 vt_add_function_parameters before processing basic blocks instead of
25048 afterwards. For calls call prepare_call_arguments before calling
25049 cselib_process_insn.
25050 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25051 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25052 (var-tracking.o): Depend on $(TM_P_H).
25053 * cfglayout.h (insn_scope): New prototype.
25054 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25055 * cfglayout.c (insn_scope): No longer static.
25056 * insn-notes.def (CALL_ARG_LOCATION): New.
25057 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25058 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25059 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25060 nothing for DECL_EXTERNAL BLOCK_VARS.
25061
25062 2011-03-16 Alan Modra <amodra@gmail.com>
25063
25064 PR target/45844
25065 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25066 create invalid offset address for vsx splat insn.
25067 * config/rs6000/predicates.md (splat_input_operand): New.
25068 * config/rs6000/vsx.md (vsx_splat_*): Use it.
25069
25070 2011-03-15 Xinliang David Li <davidxl@google.com>
25071
25072 PR c/47837
25073 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25074 (normalize_preds): New function.
25075 (is_use_properly_guarded): Normalize def predicates.
25076
25077 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25078
25079 PR target/46788
25080 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25081 in the output template.
25082
25083 2011-03-15 Richard Guenther <rguenther@suse.de>
25084
25085 PR middle-end/47650
25086 * tree-pretty-print.c (dump_function_declaration): Properly
25087 dump unprototyped and varargs function types.
25088
25089 2011-03-15 Richard Guenther <rguenther@suse.de>
25090
25091 PR tree-optimization/13954
25092 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25093 and friends.
25094
25095 2011-03-15 Richard Guenther <rguenther@suse.de>
25096
25097 PR tree-optimization/48037
25098 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25099 selects into BIT_FIELD_REFs.
25100 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25101 vector select.
25102
25103 2011-03-15 Jakub Jelinek <jakub@redhat.com>
25104
25105 PR tree-optimization/48129
25106 * builtins.c (fold_builtin_snprintf): Convert to type of
25107 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25108 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25109
25110 2011-03-15 Richard Guenther <rguenther@suse.de>
25111
25112 PR tree-optimization/41490
25113 * tree-ssa-dce.c (propagate_necessity): Handle returns without
25114 value but with VUSE.
25115 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25116 return statements.
25117 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25118 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25119 * tree-tailcall.c (find_tail_calls): Ignore returns.
25120
25121 2011-03-15 Richard Guenther <rguenther@suse.de>
25122
25123 PR middle-end/48031
25124 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25125 or variable-indexed array accesses when in gimple form.
25126
25127 2011-03-15 Richard Guenther <rguenther@suse.de>
25128
25129 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25130
25131 2011-03-15 Alan Modra <amodra@gmail.com>
25132
25133 PR target/48032
25134 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25135 presume symbol_refs without a symbol_ref_decl are suitably
25136 aligned, nor other trees we may see here. Handle anchor symbols.
25137 (legitimate_constant_pool_address_p): Comment. Add mode param.
25138 Check cmodel=medium addresses. Adjust all calls.
25139 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25140 creating cmodel=medium optimized access to locals.
25141 * config/rs6000/constraints.md (R): Pass QImode to
25142 legitimate_constant_pool_address_p.
25143 * config/rs6000/predicates.md (input_operand): Pass mode to
25144 legitimate_constant_pool_address_p.
25145 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25146 Update prototype.
25147
25148 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
25149
25150 PR target/48053
25151 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25152 64-bit constants being loaded into registers other than GPRs such
25153 as loading 0 into a VSX register.
25154
25155 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25156
25157 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25158
25159 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25160
25161 PR middle-end/47917
25162 * builtins.c (fold_builtin_snprintf): New function.
25163 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25164 (fold_builtin_4): Likewise.
25165
25166 PR middle-end/38878
25167 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25168 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
25169 and C - X == X also strip nops from +/-/p+ operand.
25170 When optimizing -X == C, fold C to arg0's type.
25171
25172 PR debug/47946
25173 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25174 emit it as add_AT_int instead of add_AT_unsigned.
25175
25176 2011-03-14 Tom Tromey <tromey@redhat.com>
25177
25178 * unwind-dw2.c: Include sys/sdt.h if it exists.
25179 (_Unwind_DebugHook): Use STAP_PROBE2.
25180 * config.in, configure: Rebuild.
25181 * configure.ac: Check for sys/sdt.h.
25182
25183 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
25184
25185 * config/i386/i386.md (ROUND_FLOOR): New constant.
25186 (ROUND_CEIL): Ditto.
25187 (ROUND_TRUNC): Ditto.
25188 (ROUND_MXCSR): Ditto.
25189 (ROUND_NO_EXC): Ditto.
25190 (rint<mode>2): Use new defines instead of numerical constants.
25191 (floor<mode>2): Ditto.
25192 (ceil<mode>2): Ditto.
25193 (btrunc<mode>2): Ditto.
25194 * config/i386/i386-builtin-types.def: Define ROUND function type
25195 aliases.
25196 * config/i386/i386.c (enum ix86_builtins): Add
25197 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25198 (struct builtin_description): Add
25199 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25200 (ix86_expand_sse_round): New static function.
25201 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25202 function types.
25203 (ix86_builtin_vectorized_function): Handle
25204 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25205
25206 2011-03-14 Tom Tromey <tromey@redhat.com>
25207
25208 * c-parser.c (c_parser_asm_string_literal): Clear
25209 warn_overlength_strings.
25210
25211 2011-03-14 Tom Tromey <tromey@redhat.com>
25212
25213 * c-parser.c (disable_extension_diagnostics): Save
25214 warn_overlength_strings.
25215 (restore_extension_diagnostics): Restore warn_overlength_strings.
25216
25217 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25218
25219 * BASE-VER: Change to 4.7.0.
25220
25221 2011-03-14 Richard Guenther <rguenther@suse.de>
25222
25223 PR middle-end/48098
25224 * tree.c (build_vector_from_val): Adjust assert to requirements
25225 and reality.
25226
25227 2011-03-14 Jakub Jelinek <jakub@redhat.com>
25228
25229 PR bootstrap/48102
25230 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25231
25232 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
25233
25234 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25235 terms of target_flags_explicit. Adjust copyright year.
25236
25237 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25238 * config/rs6000/t-freebsd: New file. Add override for
25239 LIB2FUNCS_EXTRA.
25240
25241 2011-03-13 Chris Demetriou <cgd@google.com>
25242
25243 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25244 (-fno-diagnostics-show-option): this, to reflect current default.
25245 (-Werror=): Update text about -fno-diagnostics-show-option.
25246
25247 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
25248
25249 PR target/48053
25250 * config/rs6000/predicates.md (easy_vector_constant_add_self,
25251 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25252 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25253 mode is not V2DImode or V2DFmode.
25254 (vspltis_constant): Do not handle V2DImode and V2DFmode.
25255 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25256 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25257 registers to 0.
25258 (movdi_internal64): Likewise.
25259
25260 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
25261
25262 PR tree-optimization/47127
25263 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25264 parameter.
25265 (set_cloog_options): Same.
25266 (scop_to_clast): Same.
25267 (print_clast_stmt): Do not call cloog_state_malloc and
25268 cloog_state_free.
25269 (print_generated_program): Same.
25270 (gloog): Same.
25271 * graphite-clast-to-gimple.h (cloog_state): Declared.
25272 (scop_to_clast): Adjust declaration.
25273 * graphite.c (cloog_state): Defined here.
25274 (graphite_initialize): Call cloog_state_malloc.
25275 (graphite_finalize): Call cloog_state_free.
25276
25277 2011-03-11 Jason Merrill <jason@redhat.com>
25278
25279 * attribs.c (lookup_attribute_spec): Take const_tree.
25280 * tree.h: Adjust.
25281
25282 2011-03-11 Joseph Myers <joseph@codesourcery.com>
25283
25284 * config/sparc/sparc.c (sparc_option_override): Use
25285 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25286
25287 2011-03-11 Richard Guenther <rguenther@suse.de>
25288
25289 PR tree-optimization/48067
25290 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25291 multiplication result will be only used once on the target
25292 stmt.
25293
25294 2011-03-11 Richard Guenther <rguenther@suse.de>
25295
25296 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25297
25298 2011-03-11 Richard Guenther <rguenther@suse.de>
25299
25300 PR lto/48073
25301 * tree.c (find_decls_types_r): Do not walk types only reachable
25302 from IDENTIFIER_NODEs.
25303
25304 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25305
25306 PR middle-end/48044
25307 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25308 all vnode->force_output nodes as needed.
25309
25310 2011-03-11 Jason Merrill <jason@redhat.com>
25311
25312 PR c++/48069
25313 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25314 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25315
25316 2011-03-11 Martin Jambor <mjambor@suse.cz>
25317
25318 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25319 cgraph_node.
25320
25321 2011-03-11 Jakub Jelinek <jakub@redhat.com>
25322
25323 PR tree-optimization/48063
25324 * ipa-inline.c (cgraph_decide_inlining): Don't try to
25325 inline functions called once if !tree_can_inline_p (node->callers).
25326
25327 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
25328
25329 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25330 extra_objs.
25331 * config/score/score3.c: Delete.
25332 * config/score/score3.h: Delete.
25333 * config/score/mul-div.S: Delete.
25334 * config/score/sfp-machine.h: Add new file.
25335 * config/score/constraints.md: Add new file.
25336 * config/score/t-score-softfp: Add new file.
25337 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25338 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25339 (score7_extra_constraint): Delete.
25340 (score7_option_override): Remove unused code.
25341 * config/score/score.c: Remove score3 and score5 define and code.
25342 * config/score/score.h: Remove score3 and score5 define and code.
25343 * config/score/score.md: Remove score3 template and unusual insn.
25344 * config/score/score.opt: Remove score3 and score5 options.
25345
25346 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25347
25348 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25349 when _HPUX_SOURCE is defined.
25350 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25351
25352 2011-03-10 Jason Merrill <jason@redhat.com>
25353
25354 PR c++/48029
25355 * stor-layout.c (layout_type): Don't set structural equality
25356 on arrays of incomplete type.
25357 * tree.c (type_hash_eq): Handle comparing them properly.
25358
25359 2011-03-10 Jakub Jelinek <jakub@redhat.com>
25360
25361 PR debug/48043
25362 * config/s390/s390.c (s390_delegitimize_address): Make sure the
25363 result mode matches original rtl mode.
25364
25365 2011-03-10 Nick Clifton <nickc@redhat.com>
25366
25367 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25368 (andsi3, andsi3_flags): Fix timings for three operand alternative.
25369
25370 2011-03-09 Jakub Jelinek <jakub@redhat.com>
25371
25372 PR rtl-optimization/47866
25373 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25374 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25375 if target wasn't scalar.
25376 * function.c (assign_stack_temp_for_type): Assert that neither
25377 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25378 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25379 macro.
25380 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25381
25382 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25383
25384 * config/s390/s390-protos.h (s390_label_align): New prototype.
25385 * config/s390/s390.c (s390_label_align): New function.
25386 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25387
25388 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
25389
25390 PR target/47755
25391 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25392 V2DI/V2DF constants. Only all 0's or all 1's are easy.
25393 (output_vec_const_move): Ditto.
25394
25395 2011-03-08 Anatoly Sokolov <aesok@post.ru>
25396
25397 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25398 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25399 * config/mips/mips.c (mips_preferred_reload_class): Make static.
25400 Change 'rclass' argument and result type to reg_class_t.
25401 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25402
25403 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
25404
25405 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25406 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25407 (TARGET_MEMORY_MOVE_COST): Define.
25408 (avr_register_move_cost, avr_memory_move_cost): New Functions.
25409
25410 2011-03-08 Jakub Jelinek <jakub@redhat.com>
25411
25412 PR debug/47881
25413 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25414 removed anything.
25415
25416 PR tree-optimization/48022
25417 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25418 for EQ/NE_EXPR.
25419
25420 2011-03-07 Jakub Jelinek <jakub@redhat.com>
25421
25422 PR debug/47991
25423 * var-tracking.c (find_use_val): Return NULL for
25424 cui->sets && cui->store_p BLKmode MEMs.
25425
25426 2011-03-07 Anatoly Sokolov <aesok@post.ru>
25427
25428 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25429 Remove.
25430 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25431 xstormy16_print_operand_address): Remove.
25432 * config/stormy16/stormy16.c (xstormy16_print_operand,
25433 xstormy16_print_operand_address): Make static.
25434 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25435
25436 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
25437
25438 PR target/47862
25439 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25440 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25441 before definition.
25442
25443 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
25444
25445 PR bootstrap/48000
25446 * cfgloopmanip.c (fix_bb_placements): Return immediately
25447 if FROM is BASE_LOOP's header.
25448
25449 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
25450
25451 * gimplify.c (gimplify_function_tree): Fix building calls
25452 to __builtin_return_address.
25453
25454 2011-03-07 Alan Modra <amodra@gmail.com>
25455
25456 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25457 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25458 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25459 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25460 return_mode args.
25461 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25462 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25463 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25464 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25465 * config/rs6000/rs6000.c
25466 (rs6000_elf_end_indicate_exec_stack): Rename to..
25467 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
25468 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
25469 (rs6000_file_start): ..here.
25470 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25471 file scope variables.
25472 (call_ABI_of_interest): New function.
25473 (init_cumulative_args): Set above vars when function return value
25474 is a float, vector, or small struct.
25475 (rs6000_function_arg_advance_1): Likewise for function args.
25476 (rs6000_va_start): Set rs6000_passes_float if variable arg function
25477 references float args.
25478
25479 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
25480
25481 * doc/cfg.texi: Remove "See" before @ref.
25482 * doc/invoke.texi: Likewise.
25483
25484 2011-03-05 Jason Merrill <jason@redhat.com>
25485
25486 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25487
25488 2011-03-05 Anthony Green <green@moxielogic.com>
25489
25490 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25491
25492 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
25493
25494 PR rtl-optimization/47899
25495 * cfgloopmanip.c (fix_bb_placements): Fix first argument
25496 to flow_loop_nested_p when moving the loop upward.
25497
25498 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
25499
25500 PR target/47719
25501 * arm.md (movhi_insn_arch4): Accept any immediate constant.
25502
25503 2011-03-05 Jakub Jelinek <jakub@redhat.com>
25504
25505 PR tree-optimization/47967
25506 * ipa-cp.c (build_const_val): Return NULL instead of creating
25507 VIEW_CONVERT_EXPR for mismatching sizes.
25508 (ipcp_create_replace_map): Return NULL if build_const_val failed.
25509 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25510 give up on versioning.
25511
25512 2011-03-05 Alan Modra <amodra@gmail.com>
25513
25514 PR target/47986
25515 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25516 full cmodel medium/large lo_sum + high addresses.
25517
25518 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25519
25520 * config/s390/s390.c (s390_decompose_address): Reject non-literal
25521 pool references in UNSPEC_LTREL_OFFSET.
25522
25523 2011-03-04 Jan Hubicka <jh@suse.cz>
25524
25525 PR lto/47497
25526 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25527 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25528 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25529 Add node pointers.
25530 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25531 cgraph_add_thunk): Add node pointers.
25532 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25533 associated to right node.
25534 (input_node): Update use of cgraph_same_body_alias
25535 and cgraph_add_thunk.
25536
25537 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
25538
25539 * config/i386/i386.opt (mprefer-avx128): New flag.
25540 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25541 modes when the flag -mprefer-avx128 is on.
25542
25543 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
25544
25545 * dwarf2out.c (compare_loc_operands): Fix address handling.
25546
25547 2011-03-04 Alan Modra <amodra@gmail.com>
25548
25549 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25550
25551 2011-03-04 Richard Guenther <rguenther@suse.de>
25552
25553 PR middle-end/47968
25554 * expmed.c (extract_bit_field_1): Prefer vector modes that
25555 vec_extract patterns can handle.
25556
25557 2011-03-04 Richard Guenther <rguenther@suse.de>
25558
25559 PR middle-end/47975
25560 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25561
25562 2011-03-04 Richard Henderson <rth@redhat.com>
25563
25564 * explow.c (emit_stack_save): Remove 'after' parameter.
25565 (emit_stack_restore): Likewise.
25566 * expr.h: Update to match.
25567 * builtins.c, calls.c, stmt.c: Likewise.
25568 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25569 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25570 * function.c (expand_function_end): Insert the emit_stack_save
25571 sequence before parm_birth_insn instead of after.
25572
25573 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
25574
25575 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25576 (ssse3_pmaddubsw128): Ditto.
25577 (ssse3_pmaddubsw): Ditto.
25578
25579 2011-03-03 Steve Ellcey <sje@cup.hp.com>
25580
25581 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25582
25583 2011-03-03 Jakub Jelinek <jakub@redhat.com>
25584
25585 PR c/47963
25586 * gimplify.c (omp_add_variable): Only call omp_notice_variable
25587 on TYPE_SIZE_UNIT if it is a DECL.
25588
25589 PR debug/47283
25590 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25591 first operand is not is_gimple_mem_ref_addr, try to fold it.
25592 If the operand still isn't is_gimple_mem_ref_addr, clear
25593 MEM_EXPR on op0.
25594
25595 2011-03-03 Richard Guenther <rguenther@suse.de>
25596
25597 PR middle-end/47283
25598 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25599 match comment.
25600 (refs_may_alias_p_1): For release branches return true if
25601 we are confused by our input.
25602
25603 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25604
25605 * config/s390/s390.c (s390_function_value): Rename to ...
25606 (s390_function_and_libcall_value): ... this.
25607 (s390_function_value): New function.
25608 (s390_libcall_value): New function.
25609 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25610 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25611 target macro definitions.
25612 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25613
25614 2011-03-02 Joseph Myers <joseph@codesourcery.com>
25615
25616 * config/i386/freebsd64.h (CC1_SPEC): Define.
25617 * config/i386/linux64.h (CC1_SPEC): Define.
25618 * config/i386/x86-64.h (CC1_SPEC): Don't define.
25619
25620 2011-03-02 Anatoly Sokolov <aesok@post.ru>
25621
25622 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25623 Remove.
25624 * config/stormy16/stormy16.c: Include reload.h.
25625 (xstormy16_memory_move_cost): New function.
25626 (TARGET_MEMORY_MOVE_COST): Define.
25627
25628 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
25629
25630 PR rtl-optimization/47925
25631 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25632 with side effects. Remove the more-specific check for volatile asms.
25633
25634 2011-03-02 Alan Modra <amodra@gmail.com>
25635
25636 PR target/47935
25637 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25638 toc relative addresses for valid offsets.
25639
25640 2011-03-01 Richard Guenther <rguenther@suse.de>
25641
25642 PR tree-optimization/47890
25643 * tree-vect-loop.c (get_initial_def_for_induction): Set
25644 related stmt properly.
25645
25646 2011-03-01 Richard Guenther <rguenther@suse.de>
25647
25648 PR lto/47924
25649 * lto-streamer.c (lto_record_common_node): Also register
25650 the canonical type.
25651
25652 2011-03-01 Richard Guenther <rguenther@suse.de>
25653
25654 PR lto/46911
25655 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25656 Do not stream DECL_ABSTRACT_ORIGIN.
25657 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25658 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25659 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25660 Do not stream DECL_ABSTRACT_ORIGIN.
25661 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25662 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25663
25664 2011-02-28 Anatoly Sokolov <aesok@post.ru>
25665
25666 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25667 FUNCTION_VALUE_REGNO_P): Remove.
25668 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25669 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25670 Add 'outgoing' argument.
25671 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25672 function.
25673 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25674 TARGET_FUNCTION_VALUE_REGNO_P): Define.
25675
25676 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
25677
25678 PR debug/28047
25679 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25680 (lookup_filename): Likewise.
25681 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25682
25683 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
25684 Jakub Jelinek <jakub@redhat.com>
25685
25686 PR middle-end/47893
25687 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25688 (assign_stack_local_1): Change last argument type to int.
25689 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25690 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
25691 don't record padding space into frame_space_list nor use those areas.
25692 (assign_stack_local): Adjust caller.
25693 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25694 of assign_stack_local, pass 0 as last argument.
25695 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25696 callers.
25697
25698 2011-02-28 Jakub Jelinek <jakub@redhat.com>
25699
25700 PR debug/47283
25701 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25702 Use target address_mode and pointer_mode hooks instead of hardcoded
25703 Pmode and ptr_mode. Handle some simple cases of extending if
25704 POINTERS_EXTEND_UNSIGNED < 0.
25705 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25706 Call convert_debug_memory_address.
25707 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25708 convert_debug_memory_address.
25709
25710 PR middle-end/46790
25711 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25712 * configure: Regenerated.
25713 * config.in: Regenerated.
25714 * varasm.c (default_function_section): Return NULL
25715 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25716
25717 2011-02-28 Martin Jambor <mjambor@suse.cz>
25718
25719 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25720 the description to match the printed values.
25721
25722 2011-02-28 Richard Guenther <rguenther@suse.de>
25723
25724 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25725 of the copied scope tree.
25726
25727 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25728
25729 * doc/extend.texi (Function Attributes): Avoid deeply (and
25730 wrongly) nested tables.
25731
25732 2011-02-27 Jakub Jelinek <jakub@redhat.com>
25733
25734 PR middle-end/47903
25735 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25736 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25737 r isn't op0 nor op1.
25738
25739 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25740
25741 * config/avr/avr.md: Remove magic comment for emacs.
25742
25743 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
25744
25745 PR target/45261
25746 * config/avr/avr.c (avr_option_override): Use error on bad options.
25747 (avr_help): New function.
25748 (TARGET_HELP): Define.
25749
25750 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
25751
25752 PR target/42240
25753 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25754 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25755
25756 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
25757
25758 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25759 (ARM Options): Ditto.
25760 (i386 and x86-64 Options): Ditto.
25761 (RX Options): Ditto.
25762 (SPARC Options): Ditto.
25763
25764 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
25765
25766 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25767 FreeBSD 6 and later. Generally use cpu generic.
25768
25769 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
25770
25771 * doc/cpp.texi: Update copyright years.
25772
25773 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
25774
25775 PR target/46898
25776 * config/lm32/lm32.md (ashrsi3): Added needed variable.
25777
25778 2011-02-25 Jon Beniston <jon@beniston.com>
25779
25780 PR target/46898
25781 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25782 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25783 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25784 (lm32_block_move_inline): Add type cast to remove warning.
25785 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25786 (gen_int_relational): Move declarations to start of function.
25787
25788 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
25789
25790 PR tree-optimization/45470
25791 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25792 can throw internally only.
25793 * tree-vect-stmts.c (vectorizable_call): Likewise.
25794
25795 2011-02-24 Anatoly Sokolov <aesok@post.ru>
25796
25797 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25798 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25799 * config/stormy16/stormy16-protos.h
25800 (xstormy16_preferred_reload_class): Remove.
25801 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25802 static. Change 'rclass' argument and return type to reg_class_t.
25803 (TARGET_PREFERRED_RELOAD_CLASS,
25804 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25805
25806 2011-02-24 Richard Guenther <rguenther@suse.de>
25807
25808 * lto-streamer-in.c (input_bb): Do not find referenced vars
25809 in debug statements.
25810
25811 2011-02-23 Jason Merrill <jason@redhat.com>
25812
25813 * common.opt (fabi-version): Document v5 and v6.
25814
25815 2011-02-23 Richard Guenther <rguenther@suse.de>
25816
25817 PR tree-optimization/47849
25818 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25819
25820 2011-02-23 Jie Zhang <jie@codesourcery.com>
25821
25822 * opts-common.c (decode_cmdline_option): Print empty string
25823 argument as "" in decoded->orig_option_with_args_text.
25824 * gcc.c (execute): Print empty string argument as ""
25825 in the verbose output.
25826 (do_spec_1): Keep empty string argument.
25827
25828 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
25829
25830 * config.gcc: Declare score-* and crx-* obsolete.
25831
25832 2011-02-23 Jie Zhang <jie@codesourcery.com>
25833
25834 PR rtl-optimization/47763
25835 * web.c (web_main): Ignore naked clobber when replacing register.
25836
25837 2011-02-22 Anatoly Sokolov <aesok@post.ru>
25838
25839 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25840 Remove.
25841
25842 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
25843
25844 PR doc/47848
25845 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25846
25847 2011-02-22 Mike Stump <mikestump@comcast.net>
25848
25849 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25850 assembler.
25851 * configure: Regenerate.
25852
25853 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
25854
25855 PR rtl-optimization/46002
25856 * ira-color.c (update_copy_costs): Change class intersection
25857 test to reg_class_contents[] test of 'hard_regno'.
25858
25859 2011-02-21 Joseph Myers <joseph@codesourcery.com>
25860
25861 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25862 than Driver option.
25863 * config/hpux11.opt (mt): Likewise.
25864 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25865 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
25866 * config/vax/elf.opt (mno-asm-pic): Likewise.
25867 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
25868
25869 2011-02-21 Mike Stump <mikestump@comcast.net>
25870
25871 PR target/47822
25872 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
25873 tree so we can get save the type.
25874 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
25875 for CFString instead of trying to use past the end of the builtins.
25876 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
25877 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
25878 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
25879 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
25880 Rename to darwin_builtin_cfstring.
25881 (darwin_init_cfstring_builtins): Return the built type.
25882
25883 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
25884
25885 PR target/47840
25886 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
25887 (_mm256_insert_epi64): Use _mm_insert_epi64.
25888
25889 2011-02-21 Anatoly Sokolov <aesok@post.ru>
25890
25891 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25892 * config/stormy16/stormy16-protos.h
25893 (xstormy16_mode_dependent_address_p): Remove.
25894 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
25895 Make static. Change return type to bool. Change argument type to
25896 const_rtx. Remove dead code.
25897 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25898
25899 2011-02-21 Richard Guenther <rguenther@suse.de>
25900
25901 PR lto/47820
25902 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25903 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25904 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
25905 TUs context.
25906 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25907 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25908
25909 2011-02-20 Richard Guenther <rguenther@suse.de>
25910
25911 PR lto/47822
25912 * tree.c (free_lang_data_in_decl): Clean builtins from
25913 the TU decl BLOCK_VARS.
25914
25915 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
25916
25917 PR debug/47620
25918 PR debug/47630
25919 * haifa-sched.c (fix_tick_ready): Skip tick computation
25920 for debug insns.
25921
25922 2011-02-19 Richard Guenther <rguenther@suse.de>
25923
25924 PR lto/47647
25925 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
25926 Remove lazy BLOCK_VARS streaming.
25927 (lto_input_ts_block_tree_pointers): Likewise.
25928 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
25929
25930 2011-02-19 Joseph Myers <joseph@codesourcery.com>
25931
25932 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
25933
25934 2011-02-19 Joseph Myers <joseph@codesourcery.com>
25935
25936 * config/i386/biarch32.h, config/i386/mach.h,
25937 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
25938
25939 2011-02-19 Jakub Jelinek <jakub@redhat.com>
25940
25941 PR target/47800
25942 * config/i386/i386.md (peephole2 for shift and plus): Use
25943 operands[1] original mode in the first insn.
25944
25945 2011-02-18 Mike Stump <mikestump@comcast.net>
25946
25947 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
25948
25949 2011-02-18 Jan Hubicka <jh@suse.cz>
25950
25951 PR middle-end/47788
25952 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
25953 to zero when the function is not inlinable at all.
25954
25955 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25956
25957 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
25958 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25959 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
25960 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
25961 * config/pa/t-pa64: Likewise.
25962 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
25963
25964 2011-02-18 Jakub Jelinek <jakub@redhat.com>
25965
25966 PR driver/47787
25967 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
25968
25969 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25970
25971 PR target/47792
25972 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
25973
25974 2011-02-18 Anatoly Sokolov <aesok@post.ru>
25975
25976 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
25977 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
25978 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
25979 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
25980 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
25981 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
25982 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
25983 m32r_load_postinc_p, m32r_store_preinc_predec_p,
25984 m32r_legitimate_address_p): New functions.
25985 * config/m32r/constraints.md (constraint "S"): Don't use
25986 STORE_PREINC_PREDEC_P.
25987 (constraint "U"): Don't use LOAD_POSTINC_P.
25988
25989 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
25990
25991 PR rtl-optimization/46178
25992 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
25993 compute ira_hard_regno_cover_class[].
25994
25995 2011-02-18 Richard Guenther <rguenther@suse.de>
25996
25997 PR lto/47798
25998 * lto-streamer.h (lto_global_var_decls): Declare.
25999 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26000 statics for global var processing.
26001
26002 2011-02-18 Richard Guenther <rguenther@suse.de>
26003
26004 PR tree-optimization/47737
26005 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26006 edge dominance check.
26007
26008 2011-02-18 Jakub Jelinek <jakub@redhat.com>
26009
26010 PR debug/47780
26011 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26012 avoid invalid rtx sharing.
26013
26014 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
26015
26016 * doc/cpp.texi (Obsolete Features): Add background on the
26017 origin of assertions.
26018
26019 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
26020
26021 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26022 objc_abi == 2.
26023 * config/darwin.c (output_objc_section_asm_op): Added support for
26024 ABI v1 and v2.
26025 (is_objc_metadata): New.
26026 (darwin_objc2_section): New.
26027 (darwin_objc1_section): New.
26028 (machopic_select_section): Added support for ABI v1 and v2.
26029 (darwin_emit_objc_zeroed): New.
26030 (darwin_output_aligned_bss): Detect objc metadata and treat it
26031 appropriately.
26032 (darwin_asm_output_aligned_decl_common): Same.
26033 (darwin_asm_output_aligned_decl_local): Same.
26034 * config/darwin-sections.def: Updated for ABI v1 and v2.
26035 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26036 compiling Objective-C code for the NeXT runtime, default to using
26037 ABI version 0 for 32-bit, and version 2 for 64-bit.
26038
26039 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26040
26041 * common.opt (optimize_fast): New Variable.
26042 * opts.c (default_options_optimization): Use opts->x_optimize_fast
26043 instead of local variable ofast.
26044
26045 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
26046
26047 * doc/invoke.texi (fobjc-abi-version): Documented.
26048 (fobjc-nilcheck): Documented.
26049 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26050 version.
26051
26052 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26053
26054 PR driver/47390
26055 * common.opt (export-dynamic): New Driver option.
26056 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26057
26058 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26059
26060 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26061
26062 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
26063 Jan Hubicka <jh@suse.cz>
26064
26065 PR debug/47106
26066 PR debug/47402
26067 * cfgexpand.c (account_used_vars_for_block): Remove.
26068 (estimated_stack_frame_size): Use referenced vars.
26069 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26070 that were referenced in the original function. Test src_fn
26071 rather than cfun. Drop redundant get_var_ann.
26072 (setup_one_parameter): Drop redundant get_var_ann.
26073 (declare_return_variable): Likewise.
26074 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26075 (copy_arguments_for_versioning): Drop redundant get_var_ann.
26076 * ipa-inline.c (compute_inline_parameters): Do not compute
26077 disregard_inline_limits here.
26078 (compute_inlinable_for_current, pass_inlinable): New.
26079 (pass_inline_parameters): Require PROP_referenced_vars.
26080 * cgraphunit.c (cgraph_process_new_functions): Don't run
26081 compute_inline_parameters explicitly unless function is in SSA form.
26082 (cgraph_analyze_function): Set .disregard_inline_limits.
26083 * tree-sra.c (convert_callers): Compute inliner parameters
26084 only for functions already in SSA form.
26085
26086 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26087
26088 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26089 -mlittle-endian-data.
26090
26091 2011-02-17 Joseph Myers <joseph@codesourcery.com>
26092
26093 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26094 -mno-fpu, not -fpu and -no-fpu.
26095 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26096 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26097
26098 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
26099
26100 PR target/43653
26101 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26102 input reload with PLUS RTX.
26103
26104 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26105
26106 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26107 of InverseVar(MDMX).
26108
26109 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26110
26111 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26112 --m4-340.
26113
26114 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26115
26116 * config/mn10300/mn10300.opt (mno-crt0): New.
26117
26118 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26119
26120 * config/m68k/uclinux.opt (static-libc): New Driver option.
26121
26122 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26123
26124 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26125
26126 2011-02-16 Joseph Myers <joseph@codesourcery.com>
26127
26128 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26129 %{muser-extend-enabled}.
26130
26131 2011-02-16 Richard Guenther <rguenther@suse.de>
26132
26133 PR tree-optimization/47738
26134 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26135 the TODO from tree_predictive_commoning.
26136
26137 2011-02-15 Jeff Law <law@redhat.com>
26138
26139 Revert
26140 2011-01-25 Jeff Law <law@redhat.com>
26141
26142 PR rtl-optimization/37273
26143 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26144 handle them like argument loads from stack slots. Do not double
26145 count memory for memory constants and argument loads from stack slots.
26146
26147 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26148
26149 PR target/47755
26150 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26151 mode for vector constants. Remove code that checks for TImode.
26152
26153 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26154
26155 PR debug/47106
26156 PR debug/47402
26157 * cgraph.h (compute_inline_parameters): Return void.
26158 * ipa-inline.c (compute_inline_parameters): Adjust.
26159
26160 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26161
26162 PR debug/47106
26163 PR debug/47402
26164 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26165 rather than decl.
26166 * cfgexpand.c (estimated_stack_frame_size): Likewise.
26167 * ipa-inline.c (compute_inline_parameters): Adjust.
26168
26169 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26170
26171 PR debug/47106
26172 PR debug/47402
26173 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26174 Adjust all users. Pass FN to...
26175 * tree-flow-inline.h (first_referenced_var): ... this. Add
26176 fn argument.
26177 * ipa-struct-reorg.c: Adjust.
26178 * tree-dfa.c: Adjust.
26179 * tree-into-ssa.c: Adjust.
26180 * tree-sra.c: Adjust.
26181 * tree-ssa-alias.c: Adjust.
26182 * tree-ssa-live.c: Adjust.
26183 * tree-ssa.c: Adjust.
26184 * tree-ssanames.c: Adjust.
26185 * tree-tailcall.c: Adjust.
26186
26187 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
26188
26189 PR debug/47106
26190 PR debug/47402
26191 * tree-flow.h (referenced_var_lookup): Add fn parameter.
26192 Adjust all callers.
26193 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26194 * tree-flow-inline.h: Adjust.
26195 * gimple-pretty-print.c: Adjust.
26196 * tree-into-ssa.c: Adjust.
26197 * tree-ssa.c: Adjust.
26198 * cfgexpand.c: Adjust.
26199
26200 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26201
26202 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26203 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26204 (EXTRA_CONSTRAINT): Delete.
26205 * config/iq2000/constraints.md: New file.
26206 * config/iq2000/iq2000.md: Include it.
26207 (define_insn ""): Delete.
26208 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26209 unsupported constraint letters from patterns.
26210 (call_value, call_value_internal1): Likewise.
26211 (call_value_multiple_internal1): Likewise.
26212
26213 2011-02-15 Nick Clifton <nickc@redhat.com>
26214
26215 * config/mn10300/mn10300.c: Include tm-constrs.h.
26216 (struct liw_data): New data structure describing an LIW candidate
26217 instruction.
26218 (extract_bundle): Use struct liw_data. Allow small integer
26219 operands for some instructions.
26220 (check_liw_constraints): Use struct liw_data. Remove swapped
26221 parameter. Add comments describing the checks. Fix bug when
26222 assigning the source of liw1 to the source of liw2.
26223 (liw_candidate): Delete. Code moved into extract_bundle.
26224 (mn10300_bundle_liw): Use struct liw_data. Check constraints
26225 before swapping.
26226 * config/mn10300/predicates.md (liw_operand): New predicate.
26227 Allows registers and small integer constants.
26228 * config/mn10300/constraints.md (O): New constraint. Accetps
26229 integers in the range -8 to +7 inclusive.
26230 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26231 for moving a small integer into a register. Give this alternative
26232 LIW attributes.
26233 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26234 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26235 using the J,K,L and M constraints,
26236 (liw): Remove SI mode on second operands to allow for HI and QI
26237 mode values.
26238 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
26239 instruction.
26240
26241 2011-02-15 Richard Guenther <rguenther@suse.de>
26242
26243 PR tree-optimization/47743
26244 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26245 for a non-type-compatible VN lookup bail out.
26246
26247 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26248
26249 * config/fr30/constraints.md: New file.
26250 * config/fr30/fr30.md: Include it.
26251 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26252 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26253 (EXTRA_CONSTRAINT): Delete.
26254
26255 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
26256
26257 * config/frv/constraints.md: New file.
26258 * config/frv/predicates.md: Include it.
26259 * config/frv/frv.c (reg_class_from_letter): Delete.
26260 (frv_option_override): Don't initialize it.
26261 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26262 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26263 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26264 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26265 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26266 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26267 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26268 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26269 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26270 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26271 (REG_CLASS_FROM_CONSTRAINT): Delete.
26272
26273 2011-02-15 Jakub Jelinek <jakub@redhat.com>
26274
26275 PR middle-end/47581
26276 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26277 if frame size is 0 in a leaf function.
26278
26279 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26280
26281 PR pch/14940
26282 * config/alpha/host-osf.c: New file.
26283 * config/alpha/x-osf: New file.
26284 * config.host (alpha*-dec-osf*): Use it.
26285
26286 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26287
26288 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26289 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26290 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26291 (rx_mode_dependent_address_p): ...this. Make static. Change argument
26292 type to const_rtx.
26293 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26294
26295 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26296
26297 * config/stormy16/constraints.md: New file.
26298 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26299 Use satisfies_constraint_Q and satisfies_constraint_R.
26300 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26301 Delete.
26302 (xstormy16_legitiamte_address_p): Declare.
26303 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26304 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26305 (EXTRA_CONSTRAINT): Delete.
26306 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26307 Un-staticize.
26308 (xstormy16_extra_constraint_p): Delete.
26309
26310 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
26311
26312 PR tree-optimization/46494
26313 * loop-unroll.c (split_edge_and_insert): Adjust comment.
26314 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26315 (pass_rtl_loop_done): Add TODO_verify_flow.
26316 * fwprop.c (pass_rtl_fwprop): Likewise.
26317 * modulo-sched.c (pass_sms): Likewise.
26318 * tree-ssa-dom.c (pass_dominator): Likewise.
26319 * tree-ssa-loop-ch.c (pass_ch): Likewise.
26320 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26321 (pass_tree_loop_done): Likewise.
26322 * tree-ssa-pre.c (execute_pre): Likewise.
26323 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26324 * tree-ssa-sink.c (pass_sink_code): Likewise.
26325 * tree-vrp.c (pass_vrp): Likewise.
26326
26327 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26328
26329 * config/v850/constraints.md: New file.
26330 * config/v850/v850.md: Include it.
26331 * config/v850/predicates.md (reg_or_0_operand): Use
26332 satisfies_constraint_G.
26333 (special_symbolref_operand): Use satisfies_constraint_K.
26334 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26335 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26336 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26337 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26338 (EXTRA_CONSTRAINT): Delete.
26339 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26340 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26341 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26342
26343 2011-02-14 Anatoly Sokolov <aesok@post.ru>
26344
26345 PR target/47696
26346 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26347 description.
26348
26349 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
26350
26351 * config/mcore/constraints.md: New file.
26352 * config/mcore/mcore.md: Include it.
26353 * config/mcore/mcore.c (reg_class_from_letter): Delete.
26354 * config/mcore/mcore.h (reg_class_from_letter): Delete.
26355 (REG_CLASS_FROM_LETTER): Delete.
26356 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26357 insn_const_int_ok_for_constraint.
26358 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26359 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26360 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26361 (EXTRA_CONSTRAINT): Delete.
26362
26363 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26364
26365 PR ada/41929
26366 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26367 (IS_SIGHANDLER): Define.
26368 (sparc64_is_sighandler): New function, split off from
26369 sparc64_fallback_frame_state.
26370 (sparc_is_sighandler): New function, split off from
26371 sparc_fallback_frame_state.
26372 (sparc64_fallback_frame_state): Merge with ...
26373 (sparc_fallback_frame_state): ... this into ...
26374 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26375 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
26376 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
26377 stack instead of hardcoded offsets.
26378
26379 2011-02-14 Andriy Gapon <avg@freebsd.org>
26380
26381 PR target/45808
26382 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26383
26384 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26385
26386 * configure: Regenerate.
26387
26388 2011-02-12 Joseph Myers <joseph@codesourcery.com>
26389
26390 PR driver/45731
26391 * gcc.c (asm_options): Correct spec matching --target-help.
26392
26393 2011-02-12 Martin Jambor <mjambor@suse.cz>
26394
26395 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26396 to gimple call error.
26397
26398 2011-02-12 Mike Stump <mikestump@comcast.net>
26399
26400 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26401 comments in backslash regions.
26402
26403 2011-02-12 Mike Stump <mikestump@comcast.net>
26404 Jakub Jelinek <jakub@redhat.com>
26405 Iain Sandoe <iains@gcc.gnu.org>
26406
26407 PR target/47324
26408 * dwarf2out.c (output_cfa_loc): When required, apply the
26409 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26410 (output_loc_sequence): Likewise.
26411 (output_loc_operands_raw): Likewise.
26412 (output_loc_sequence_raw): Likewise.
26413 (output_cfa_loc): Likewise.
26414 (output_loc_list): Suppress register number adjustment when
26415 calling output_loc_sequence()
26416 (output_die): Likewise.
26417
26418 2011-02-12 Anatoly Sokolov <aesok@post.ru>
26419
26420 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26421 Remove macros.
26422 * config/xtensa/xtensa.c (xtensa_register_move_cost,
26423 xtensa_memory_move_cost): New functions.
26424 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26425
26426 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
26427
26428 PR lto/47225
26429 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26430 in the current directory.
26431 * configure: Rebuilt.
26432
26433 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26434
26435 * config/darwin.c (darwin_override_options): Add a hunk missed
26436 from the commit of r168571. Trim comment line lengths and
26437 correct indents of the preceding block.
26438
26439 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
26440
26441 * gcc.c (driver_handle_option): Concatenate the argument to -F with
26442 the switch.
26443
26444 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26445
26446 * common.opt (nostartfiles): New Driver option.
26447
26448 2011-02-11 Xinliang David Li <davidxl@google.com>
26449
26450 PR tree-optimization/47707
26451 * tree-chrec.c (convert_affine_scev): Keep type precision.
26452
26453 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
26454
26455 PR tree-optimization/47420
26456 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26457
26458 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
26459
26460 PR rtl-optimization/47614
26461 * rtl.h (check_for_inc_dec): Declare.
26462 * dse.c (check_for_inc_dec): Externalize...
26463 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26464 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26465
26466 2011-02-11 Joseph Myers <joseph@codesourcery.com>
26467
26468 PR driver/47678
26469 * gcc.c (main): Do not compile inputs if there were errors in
26470 option handling.
26471 * opts-common.c (read_cmdline_option): Check for wrong language
26472 after other error checks.
26473
26474 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
26475
26476 * cgraph.c: Fix comment typos.
26477 * cgraph.h: Likewise.
26478 * cgraphunit.c: Likewise.
26479 * ipa-cp.c: Likewise.
26480 * ipa-inline.c: Likewise.
26481 * ipa-prop.c: Likewise.
26482 * ipa-pure-const.c: Likewise.
26483 * ipa-ref.c: Likewise.
26484 * ipa-reference.c: Likewise.
26485
26486 2011-02-11 Jakub Jelinek <jakub@redhat.com>
26487
26488 PR debug/47684
26489 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26490
26491 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26492
26493 PR testsuite/47400
26494 * doc/sourcebuild.texi (Require Support): Document
26495 dg-require-ascii-locale.
26496
26497 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
26498
26499 * doc/lto.texi (Write summary): Fix missing parentheses.
26500
26501 2011-02-10 DJ Delorie <dj@redhat.com>
26502
26503 * config/m32c/m32c.c (m32c_option_override): Disable
26504 -fcombine-stack-adjustments until flag value tracking and compare
26505 optimization can be rewritten.
26506
26507 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
26508
26509 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26510 PROCESSOR_POWER7.
26511 (PROCESSOR_DEFAULT64): Likewise.
26512
26513 2011-02-10 Richard Henderson <rth@redhat.com>
26514
26515 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26516 change from 2011-02-03.
26517 * config/rx/rx.c (flags_from_code): Likewise.
26518 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26519 is valid, n/pz otherwise.
26520 (rx_select_cc_mode): Return CCmode if Y is not zero.
26521
26522 2011-02-10 Richard Guenther <rguenther@suse.de>
26523
26524 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26525
26526 2011-02-10 Richard Guenther <rguenther@suse.de>
26527
26528 PR tree-optimization/47677
26529 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26530
26531 2011-02-10 Jakub Jelinek <jakub@redhat.com>
26532
26533 PR target/47665
26534 * combine.c (make_compound_operation): Only change shifts into
26535 multiplication for SCALAR_INT_MODE_P.
26536
26537 2011-02-10 Jie Zhang <jie@codesourcery.com>
26538
26539 PR testsuite/47622
26540 Revert
26541 2011-02-05 Jie Zhang <jie@codesourcery.com>
26542 PR debug/42631
26543 * web.c (entry_register): Don't clobber the number of the
26544 first uninitialized reference in used[].
26545
26546 2011-02-09 Richard Guenther <rguenther@suse.de>
26547
26548 PR tree-optimization/47664
26549 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26550 all edges again.
26551
26552 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
26553
26554 PR target/46481
26555 PR target/47032
26556 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26557 PROCESSOR_POWER7.
26558 (PROCESSOR_DEFAULT64): Same.
26559 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26560
26561 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26562
26563 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26564
26565 2011-02-09 Martin Jambor <mjambor@suse.cz>
26566
26567 PR middle-end/45505
26568 * tree-sra.c (struct access): New flags grp_scalar_read and
26569 grp_scalar_write. Changed description of assignment read and write
26570 flags.
26571 (dump_access): Dump new flags, reorder all of them.
26572 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26573 to detect multiple scalar reads.
26574 (analyze_access_subtree): Use the new scalar read write flags instead
26575 of the old flags. Adjusted comments.
26576
26577 2011-02-08 DJ Delorie <dj@redhat.com>
26578
26579 PR target/47548
26580 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26581 patterns.
26582
26583 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26584
26585 * config/m68k/uclinux.opt: New.
26586 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26587
26588 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26589
26590 * config/cris/elf.opt (sim): New Driver option.
26591
26592 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26593
26594 * config/xtensa/elf.opt: New.
26595 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26596
26597 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26598
26599 * config/vax/elf.opt: New.
26600 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26601
26602 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26603
26604 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26605
26606 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26607
26608 * config/gnu-user.opt: New.
26609 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26610 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26611 *-*-uclinux*): Use gnu-user.opt.
26612
26613 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
26614
26615 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26616 * config/i386/gnu.h (CPP_SPEC): Likewise.
26617
26618 2011-02-08 Ian Lance Taylor <iant@google.com>
26619
26620 * common.opt (fcx-limited-range): Add SetByCombined flag.
26621 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26622 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26623 (fassociative-math, freciprocal-math): Likewise.
26624 (funsafe-math-optimizations): Likewise.
26625 * opth-gen.awk: Handle SetByCombined.
26626 * optc-gen.awk: Likewise.
26627 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26628 (set_unsafe_math_optimizations_flags): Likewise.
26629 * doc/options.texi (Option properties): Document SetByCombined.
26630
26631 2011-02-08 Joseph Myers <joseph@codesourcery.com>
26632
26633 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26634 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26635 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26636 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26637 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26638
26639 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
26640
26641 PR tree-optimization/46834
26642 PR tree-optimization/46994
26643 PR tree-optimization/46995
26644 * graphite-sese-to-poly.c (used_outside_reduction): New.
26645 (detect_commutative_reduction): Call used_outside_reduction.
26646 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26647 translate_scalar_reduction_to_array only when at least one
26648 loop-phi/close-phi tuple has been detected.
26649
26650 2011-02-08 Richard Guenther <rguenther@suse.de>
26651
26652 PR middle-end/47639
26653 * tree-vect-generic.c (expand_vector_operations_1): Update
26654 stmts here ...
26655 (expand_vector_operations): ... not here. Cleanup EH info
26656 and the CFG if required.
26657
26658 2011-02-08 Richard Guenther <rguenther@suse.de>
26659
26660 PR tree-optimization/47641
26661 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26662 require type compatibility.
26663
26664 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26665
26666 * gimple-low.c (lower_function_body): Don't remove the location of
26667 the return statement here.
26668 (lower_gimple_return): Do it here instead but only if the return
26669 statement is actually used twice.
26670
26671 2011-02-08 Richard Guenther <rguenther@suse.de>
26672
26673 PR tree-optimization/47632
26674 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26675 unused up_to_stmt parameter, return whether cfg-cleanup is
26676 necessary, remove EH info properly.
26677 (forward_propagate_into_gimple_cond): Adjust caller.
26678 (forward_propagate_into_cond): Likewise.
26679 (forward_propagate_comparison): Likewise.
26680 (tree_ssa_forward_propagate_single_use_vars): Make
26681 forward_propagate_comparison case similar to the two others.
26682
26683 2011-02-08 Nick Clifton <nickc@redhat.com>
26684
26685 * config/mn10300/mn10300.opt (mliw): New command line option.
26686 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26687 (liw_bundling): New automaton.
26688 (liw): New attribute.
26689 (liw_op): New attribute.
26690 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26691 (movsi_internal): Add LIW attributes.
26692 (andsi3): Likewise.
26693 (iorsi3): Likewise.
26694 (xorsi3): Likewise.
26695 (addsi3): Separate register and immediate alternatives.
26696 Add LIW attributes.
26697 (subsi3): Likewise.
26698 (cmpsi): Likewise.
26699 (aslsi3): Likewise.
26700 (lshrsi3): Likewise.
26701 (ashrsi3): Likewise.
26702 (liw): New pattern.
26703 * config/mn10300/mn10300.c (liw_op_names): New
26704 (mn10300_print_operand): Handle 'W' operand descriptor.
26705 (extract_bundle): New function.
26706 (check_liw_constraints): New function.
26707 (liw_candidate): New function.
26708 (mn10300_bundle_liw): New function.
26709 (mn10300_reorg): New function.
26710 (TARGET_MACHINE_DEPENDENT_REORG): Define.
26711 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26712 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26713 __LIW__ or __NO_LIW__.
26714 * doc/invoke.texi: Describe the -mliw command line option.
26715
26716 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26717
26718 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26719 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26720 pthread_mutex_unlock): Remove.
26721 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26722 * config/pa/t-pa64: Likewise.
26723 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26724 shared libc if not linking against libpthread.
26725 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26726
26727 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
26728
26729 PR target/47558
26730 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26731 on 10.6 and later to ensure that we always use the unwinder from
26732 the system. Only add -no_compact_unwind when tarteting darwin
26733 10.6 or later.
26734
26735 2011-02-07 Steve Ellcey <sje@cup.hp.com>
26736
26737 PR target/46997
26738 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26739 (vec_interleave_lowv2sf): Ditto.
26740 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26741 (vec_extract_oddv2sf): Ditto.
26742
26743 2011-02-07 Mike Stump <mikestump@comcast.net>
26744
26745 PR target/42333
26746 Add __ieee_divdc3 entry point.
26747 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26748 entry point.
26749 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26750 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26751 * config/darwin.c (darwin_rename_builtins): Add.
26752 * config/darwin-protos.h (darwin_rename_builtins): Add.
26753
26754 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
26755
26756 PR target/47636
26757 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26758 for the condition.
26759
26760 2011-02-07 Mike Stump <mikestump@comcast.net>
26761
26762 * config/darwin.opt (mmacosx-version-min): Update default OS version.
26763
26764 2011-02-07 Denis Chertykov <chertykov@gmail.com>
26765
26766 PR target/47534
26767 * config/avr/libgcc.S (exit): Move .endfunc
26768
26769 2011-02-07 Richard Guenther <rguenther@suse.de>
26770
26771 PR tree-optimization/47615
26772 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26773 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26774 (run_scc_vn): Initialize it.
26775 (visit_reference_op_load): Use it.
26776 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26777
26778 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26779
26780 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26781 DImode trapping arithmetic libfuncs.
26782
26783 2011-02-07 Richard Guenther <rguenther@suse.de>
26784
26785 PR tree-optimization/47621
26786 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26787 two duplicates ...
26788 (execute_update_addresses_taken): ... here. Make it more
26789 conservative in what we accept.
26790
26791 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26792
26793 * config/sparc/freebsd.h (ASM_SPEC): Define.
26794 * config/sparc/vxworks.h (ASM_SPEC): Define.
26795
26796 2011-02-06 Joseph Myers <joseph@codesourcery.com>
26797
26798 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26799
26800 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
26801
26802 * doc/invoke.texi: Remove reference to compiler internals from
26803 user documentation.
26804
26805 * reg-notes.def: Remove REG_VALUE_PROFILE.
26806 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26807
26808 2011-02-05 Jakub Jelinek <jakub@redhat.com>
26809
26810 PR middle-end/47610
26811 * varasm.c (default_section_type_flags): If decl is NULL,
26812 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26813
26814 2011-02-05 Jie Zhang <jie@codesourcery.com>
26815
26816 PR debug/42631
26817 * web.c (entry_register): Don't clobber the number of the
26818 first uninitialized reference in used[].
26819
26820 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
26821
26822 PR tree-optimization/46194
26823 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26824 (build_classic_dist_vector_1): Do not represent classic distance
26825 vectors when the access functions are variating in different loops.
26826
26827 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26828
26829 * config/mips/iris6.opt: New.
26830 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26831
26832 2011-02-04 Richard Henderson <rth@redhat.com>
26833 Steve Ellcey <sje@cup.hp.com>
26834
26835 PR target/46997
26836 * config/ia64/predicates.md (mux1_brcst_element): New.
26837 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26838 * config/ia64/ia64.c (ia64_unpack_assemble): New.
26839 (ia64_unpack_sign): New.
26840 (ia64_expand_unpack): Rewrite using new routines.
26841 (ia64_expand_widen_sum): Ditto.
26842 (ia64_expand_dot_prod_v8qi): Ditto.
26843 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26844 routines, add endian check.
26845 (pmpy2_even): Rename from pmpy2_r, add endian check.
26846 (pmpy2_odd): Rename from pmpy2_l, add endian check.
26847 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26848 (vec_widen_smult_hi_v4hi): Ditto.
26849 (vec_widen_umult_lo_v4hi): Ditto.
26850 (vec_widen_umult_hi_v4hi): Ditto.
26851 (mulv2si3): Change endian checks.
26852 (sdot_prodv4hi): Rewrite with new calls.
26853 (udot_prodv4hi): New.
26854 (vec_pack_ssat_v4hi): Add endian check.
26855 (vec_pack_usat_v4hi): Ditto.
26856 (vec_pack_ssat_v2si): Ditto.
26857 (max1_even): Rename from max1_r, add endian check.
26858 (max1_odd): Rename from max1_l, add endian check.
26859 (*mux1_rev): Format change.
26860 (*mux1_mix): Ditto.
26861 (*mux1_shuf): Ditto.
26862 (*mux1_alt): Ditto.
26863 (*mux1_brcst_v8qi): Use new predicate.
26864 (vec_extract_evenv8qi): Remove endian check.
26865 (vec_extract_oddv8qi): Ditto.
26866 (vec_interleave_lowv4hi): Format change.
26867 (vec_interleave_highv4hi): Ditto.
26868 (mix2_even): Rename from mix2_r, add endian check.
26869 (mix2_odd): Rename from mux2_l, add endian check.
26870 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
26871 (vec_extract_evenodd_helper): Format change.
26872 (vec_extract_evenv4hi): Remove endian check.
26873 (vec_extract_oddv4hi): Remove endian check.
26874 (vec_interleave_lowv2si): Format change.
26875 (vec_interleave_highv2si): Format change.
26876 (vec_initv2si): Remove endian check.
26877 (vecinit_v2si): Add endian check.
26878 (reduc_splus_v2sf): Add endian check.
26879 (reduc_smax_v2sf): Ditto.
26880 (reduc_smin_v2sf): Ditto.
26881 (vec_initv2sf): Remove endian check.
26882 (fpack): Add endian check.
26883 (fswap): Add endian check.
26884 (vec_interleave_highv2sf): Add endian check.
26885 (vec_interleave_lowv2sf): Add endian check.
26886 (fmix_lr): Add endian check.
26887 (vec_setv2sf): Format change.
26888 (*vec_extractv2sf_0_be): Use shift to extract operand.
26889 (*vec_extractv2sf_1_be): New.
26890 (vec_pack_trunc_v4hi): Add endian check.
26891 (vec_pack_trunc_v2si): Format change.
26892
26893 2011-02-04 Jakub Jelinek <jakub@redhat.com>
26894
26895 PR inline-asm/23200
26896 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
26897 do bb, locus and block comparison and disallow loads if it is not set.
26898 (stmt_is_replaceable_p): New function.
26899 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
26900 callers.
26901 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
26902 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
26903 SSA_NAME_DEF_STMT.
26904 * tree-flow.h (stmt_is_replaceable_p): New prototype.
26905
26906 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26907
26908 * config/rs6000/xilinx.opt: New.
26909 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
26910
26911 2011-02-04 Joseph Myers <joseph@codesourcery.com>
26912
26913 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
26914
26915 2011-02-03 Anatoly Sokolov <aesok@post.ru>
26916
26917 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
26918 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26919 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
26920 secondary_reload_info, xtensa_secondary_reload): Remove.
26921 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
26922 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26923 (xtensa_preferred_reload_class): Make static. Change return and
26924 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
26925 Use CONST_DOUBLE_P predicate.
26926 (xtensa_preferred_output_reload_class): New function.
26927 (xtensa_secondary_reload): Make static.
26928
26929 2011-02-03 Joseph Myers <joseph@codesourcery.com>
26930
26931 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
26932 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
26933 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
26934
26935 2011-02-03 Jakub Jelinek <jakub@redhat.com>
26936
26937 PR middle-end/31490
26938 * output.h (SECTION_RELRO): Define.
26939 (SECTION_MACH_DEP): Adjust.
26940 (get_variable_section): New prototype.
26941 * varpool.c (varpool_finalize_named_section_flags): New function.
26942 (varpool_assemble_pending_decls): Call it.
26943 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
26944 * cgraphunit.c (cgraph_output_in_order): Call
26945 varpool_finalize_named_section_flags.
26946 * varasm.c (get_section): Allow section flags conflicts between
26947 relro and read-only sections if the section hasn't been declared yet.
26948 Set SECTION_OVERRIDE after diagnosing section type conflict.
26949 (get_variable_section): No longer static.
26950 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
26951 readonly sections that need relocations.
26952 (decl_readonly_section_1): New function.
26953 (decl_readonly_section): Use it.
26954
26955 Revert:
26956 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
26957 Steve Ellcey <sje@cup.hp.com>
26958
26959 PR middle-end/31490
26960 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
26961 if section attribute used.
26962
26963 2011-02-03 Jakub Jelinek <jakub@redhat.com>
26964
26965 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
26966 * config/darwin.c (SECTION_NO_ANCHOR): Define.
26967 (darwin_init_sections): Remove assertion.
26968
26969 2011-02-03 Nick Clifton <nickc@redhat.com>
26970
26971 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
26972 lt and ge.
26973 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
26974 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
26975 instead of "n" and "pz".
26976 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
26977 CC_FLAG_S.
26978
26979 2011-02-03 Jakub Jelinek <jakub@redhat.com>
26980
26981 PR target/47312
26982 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
26983 fma, expand FMA_EXPR as fma{,f,l} call.
26984
26985 PR lto/47274
26986 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
26987 copy them into a unsigned char variable and pass address of it to
26988 lto_output_data_stream.
26989
26990 PR target/47564
26991 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
26992 around backend_init_target and lang_dependent_init_target calls.
26993 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
26994 (verify_cgraph_node): Don't call set_cfun here. Use
26995 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
26996 Set error_found for incorrectly represented calls to thunks.
26997
26998 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
26999
27000 PR debug/43092
27001 PR rtl-optimization/43494
27002 * rtl.h (for_each_inc_dec_fn): New type.
27003 (for_each_inc_dec): Declare.
27004 * rtlanal.c (struct for_each_inc_dec_ops): New type.
27005 (for_each_inc_dec_find_inc_dec): New fn.
27006 (for_each_inc_dec_find_mem): New fn.
27007 (for_each_inc_dec): New fn.
27008 * dse.c (struct insn_size): Remove.
27009 (replace_inc_dec, replace_inc_dec_mem): Remove.
27010 (emit_inc_dec_insn_before): New fn.
27011 (check_for_inc_dec): Use it, along with for_each_inc_dec.
27012 (canon_address): Pass mem modes to cselib_lookup.
27013 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
27014 (cselib_lookup_from_insn): Likewise.
27015 (cselib_subst_to_values): Likewise.
27016 * cselib.c (find_slot_memmode): New var.
27017 (cselib_find_slot): New fn. Use it instead of
27018 htab_find_slot_with_hash everywhere.
27019 (entry_and_rtx_equal_p): Use find_slot_memmode.
27020 (autoinc_split): New fn.
27021 (rtx_equal_for_cselib_p): Rename and implement in terms of...
27022 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
27023 Deal with autoinc. Special-case recursion into MEMs.
27024 (cselib_hash_rtx): Likewise.
27025 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
27026 address and MEM modes.
27027 (cselib_subst_to_values): Add memmode, pass it on.
27028 Deal with autoinc.
27029 (cselib_lookup): Add memmode argument, pass it on.
27030 (cselib_lookup_from_insn): Add memmode.
27031 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27032 (struct cselib_record_autoinc_data): New.
27033 (cselib_record_autoinc_cb): New fn.
27034 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
27035 mode to cselib_lookup. Reset autoinced REGs here instead of...
27036 (cselib_process_insn): ... here.
27037 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27038 to cselib_lookup.
27039 (add_uses): Likewise, also to cselib_subst_to_values.
27040 (add_stores): Likewise.
27041 * sched-deps.c (add_insn_mem_dependence): Pass mode to
27042 cselib_subst_to_values.
27043 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
27044 * gcse.c (do_local_cprop): Adjusted.
27045 * postreload.c (reload_cse_simplify_set): Adjusted.
27046 (reload_cse_simplify_operands): Adjusted.
27047 * sel-sched-dump (debug_mem_addr_value): Pass mode.
27048
27049 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
27050
27051 PR tree-optimization/45122
27052 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27053 unsafe assumptions when there's more than one loop exit.
27054
27055 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27056
27057 PR target/47272
27058 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27059 Document using vector double with the load/store builtins, and
27060 that the load/store builtins always use Altivec instructions.
27061
27062 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27063 to use altivec memory instructions, even on VSX.
27064 (vector_altivec_store_<mode>): Ditto.
27065
27066 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27067 function.
27068
27069 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27070 V2DF, V2DI support to load/store overloaded builtins.
27071
27072 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27073 altivec load/store builtins for V2DF/V2DI types.
27074
27075 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27076 set avoid indexed addresses on power6 if -maltivec.
27077 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27078 vector_altivec_load/vector_altivec_store builtins.
27079 (altivec_expand_st_builtin): Ditto.
27080 (altivec_expand_builtin): Add VSX memory builtins.
27081 (rs6000_init_builtins): Add V2DI types to internal types.
27082 (altivec_init_builtins): Add support for V2DF/V2DI altivec
27083 load/store builtins.
27084 (rs6000_address_for_altivec): Insure memory address is appropriate
27085 for Altivec.
27086
27087 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27088 vec_vsx_ld and vec_vsx_st.
27089 (vsx_store_<mode>): Ditto.
27090
27091 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27092 variables to hold long long types for VSX vector memory builtins.
27093 (RS6000_BTI_unsigned_long_long): Ditto.
27094 (long_long_integer_type_internal_node): Ditti.
27095 (long_long_unsigned_type_internal_node): Ditti.
27096
27097 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27098 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27099 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27100
27101 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27102 short cuts.
27103 (vec_vsx_st): Ditto.
27104
27105 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27106
27107 * config/pa/pa-hpux10.opt: New.
27108 * config/hpux11.opt (pthread): New Driver option.
27109 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27110 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27111
27112 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27113
27114 * config/ia64/vms.opt: New.
27115 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27116
27117 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
27118
27119 PR target/47580
27120 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27121 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27122 generator functions.
27123 (vsx_floatuns<VSi><mode>2): Ditto.
27124 (vsx_fix_trunc<mode><VSi>2): Ditto.
27125 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27126
27127 2011-02-02 Joseph Myers <joseph@codesourcery.com>
27128
27129 * config/i386/djgpp.opt (posix): New Driver option.
27130
27131 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
27132
27133 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27134 Move to the unsupported targets list.
27135
27136 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
27137
27138 PR rtl-optimization/47525
27139 * df-scan.c: Update copyright years.
27140 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27141 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27142
27143 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27144
27145 * config/i386/sysv4.h (TARGET_VERSION): Remove.
27146 (SUBTARGET_RETURN_IN_MEMORY): Remove.
27147 (ASM_OUTPUT_ASCII): Remove.
27148 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27149
27150 2011-02-02 Jeff Law <law@redhat.com>
27151
27152 PR middle-end/47543
27153 * reload.c (find_reloads_address): Handle reg+d address where both
27154 components are invalid by reloading the entire address.
27155
27156 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27157 Richard Guenther <rguenther@suse.de>
27158
27159 PR tree-optimization/40979
27160 PR bootstrap/47044
27161 * passes.c (init_optimization_passes): After LIM call copy_prop
27162 and DCE to clean up.
27163 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27164
27165 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
27166
27167 PR tree-optimization/47576
27168 PR tree-optimization/47555
27169 * doc/invoke.texi (scev-max-expr-complexity): Documented.
27170 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27171 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27172 * tree-scalar-evolution.c (follow_ssa_edge): Use
27173 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27174
27175 2011-02-02 Richard Guenther <rguenther@suse.de>
27176
27177 PR tree-optimization/47566
27178 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27179
27180 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27181
27182 PR debug/47106
27183 PR debug/47402
27184 * tree-inline.c (declare_return_variable): Remove unused caller
27185 variable.
27186
27187 PR debug/47106
27188 PR debug/47402
27189 * tree-flow-inline.h (clear_is_used, is_used_p): New.
27190 * cfgexpand.c (account_used_vars_for_block): Use them.
27191 * tree-nrv.c (tree_nrv): Likewise.
27192 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27193 (dump_scope_block): Likewise.
27194 (remove_unused_locals): Likewise.
27195
27196 PR debug/47106
27197 PR debug/47402
27198 * tree-inline.c (declare_return_variable): Add result decl to
27199 local decls only once.
27200 * gimple-low.c (record_vars_into): Mark newly-created variables
27201 as referenced.
27202
27203 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
27204
27205 PR debug/47498
27206 PR debug/47501
27207 PR debug/45136
27208 PR debug/45130
27209 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27210 debug insns.
27211 (no_real_insns_p, schedule_block, set_priorities): Drop special
27212 treatment of boundary debug insns.
27213 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27214 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27215 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27216 (BOUNDARY_DEBUG_INSN_P): Likewise.
27217 (SCHEDULE_DEBUG_INSN_P): Likewise.
27218 * sched-rgn.c (init_ready_list): Drop special treatment of
27219 boundary debug insns.
27220 * final.c (rest_of_clean_state): Clear notes' BB.
27221
27222 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27223
27224 * config/openbsd.opt (assert=): New Driver option.
27225
27226 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27227
27228 * config/i386/nto.opt: New.
27229 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27230
27231 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27232
27233 * config/i386/netware.opt: New.
27234 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27235
27236 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27237
27238 * config/interix.opt (posix): New Driver option.
27239
27240 2011-02-01 DJ Delorie <dj@redhat.com>
27241
27242 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27243
27244 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27245 class for A0/A1.
27246
27247 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
27248
27249 PR tree-optimization/47561
27250 * toplev.c (process_options): Print the Graphite flags. Add
27251 flag_loop_flatten to the list of options requiring Graphite.
27252
27253 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27254
27255 * config/i386/cygming.opt (posix): New Driver option.
27256
27257 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27258
27259 * config/arm/vxworks.opt: New.
27260 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27261
27262 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27263
27264 * config/alpha/elf.opt: New.
27265 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27266 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27267
27268 2011-02-01 Richard Guenther <rguenther@suse.de>
27269
27270 PR tree-optimization/47559
27271 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27272 store-motion on references that can throw.
27273
27274 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
27275
27276 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27277 * tree-pass.h (TDF_CSELIB): New macro.
27278 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27279 cselib_lookup): Check for it rather than for TDF_DETAILS.
27280
27281 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
27282
27283 PR driver/47547
27284 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27285 is HOST_BIT_BUCKET.
27286
27287 * opts.c (finish_options): Don't add x_aux_base_name if it is
27288 HOST_BIT_BUCKET.
27289
27290 2011-02-01 Richard Guenther <rguenther@suse.de>
27291
27292 PR tree-optimization/47555
27293 Revert
27294 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
27295
27296 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27297
27298 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
27299
27300 PR gcc/46692
27301 * config/lm32/t-lm32: Add multilib for all CPU options.
27302
27303 2011-02-01 Richard Guenther <rguenther@suse.de>
27304
27305 PR tree-optimization/47541
27306 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27307 sure to have a field at offset zero.
27308
27309 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27310
27311 * config/arc/arc.opt (EB, EL): New Driver options.
27312
27313 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27314
27315 * config/alpha/osf5.opt: New.
27316 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27317
27318 2011-01-31 Joseph Myers <joseph@codesourcery.com>
27319
27320 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27321
27322 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
27323
27324 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27325 -floop-interchange.
27326 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27327 is an alias of -floop-interchange and that it requires the
27328 Graphite infrastructure.
27329 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27330 flag_loop_interchange based on the value of flag_tree_loop_linear.
27331
27332 2011-01-31 Jakub Jelinek <jakub@redhat.com>
27333 Richard Guenther <rguenther@suse.de>
27334
27335 PR tree-optimization/47538
27336 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27337 type instead of r1type, except for comparisons. For right
27338 shifts and comparisons punt if there are mismatches in
27339 sizetype vs. non-sizetype types.
27340
27341 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27342
27343 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27344 avx_runtime.
27345
27346 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27347
27348 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27349 version number.
27350 * configure: Regenerate.
27351
27352 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27353
27354 * configure.ac (gcc_cv_ld_static_option): Define.
27355 (gcc_cv_ld_dynamic_option): Define.
27356 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27357 instead.
27358 (HAVE_LD_STATIC_DYNAMIC): Update message.
27359 (LD_STATIC_OPTION): Define.
27360 (LD_DYNAMIC_OPTION): Define.
27361 * configure: Regenerate.
27362 * config.in: Regenerate.
27363 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27364 HAVE_LD_STATIC_DYNAMIC]: Use them.
27365
27366 2011-01-31 Nick Clifton <nickc@redhat.com>
27367
27368 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27369 registers inside interrupt handlers if the handler is not a leaf
27370 function.
27371
27372 2011-01-31 Nick Clifton <nickc@redhat.com>
27373
27374 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27375 reg_renumber returning an INVALID_REGNUM.
27376
27377 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27378
27379 PR libgcj/44341
27380 * doc/install.texi: Document host options discarded when cross
27381 configuring target libraries.
27382
27383 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
27384
27385 Reverted:
27386 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27387 PR debug/45136
27388 PR debug/45130
27389 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27390 debug insns.
27391 (no_real_insns_p, schedule_block, set_priorities): Drop special
27392 treatment of boundary debug insns.
27393 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27394 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27395 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27396 (BOUNDARY_DEBUG_INSN_P): Likewise.
27397 (SCHEDULE_DEBUG_INSN_P): Likewise.
27398 * sched-rgn.c (init_ready_list): Drop special treatment of
27399 boundary debug insns.
27400 * final.c (rest_of_clean-state): Clear notes' BB.
27401
27402 2011-01-31 Alan Modra <amodra@gmail.com>
27403
27404 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27405 toc relative expressions as we do in print_operand_address.
27406
27407 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
27408
27409 * doc/extend.texi: Follow spelling conventions.
27410 * doc/invoke.texi: Fix a typo.
27411
27412 2011-01-30 Joseph Myers <joseph@codesourcery.com>
27413
27414 * config/hpux11.opt: New.
27415 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27416 ia64*-*-hpux*): Use hpux11.opt.
27417
27418 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
27419
27420 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27421 to tmake_file.
27422
27423 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27424
27425 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27426 support sites.
27427
27428 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27429
27430 * doc/install.texi (Binaries): Remove outdated reference for
27431 Motorola 68HC11/68HC12 downloads.
27432
27433 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
27434
27435 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27436 Drepper's paper.
27437
27438 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
27439
27440 PR bootstrap/47147
27441 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27442 used by NetBSD.
27443
27444 2011-01-28 Ahmad Sharif <asharif@google.com>
27445
27446 * value-prof.c (check_counter): Corrected error message.
27447
27448 2011-01-29 Jie Zhang <jie@codesourcery.com>
27449
27450 * config/arm/arm.c (arm_legitimize_reload_address): New.
27451 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27452 arm_legitimize_reload_address.
27453 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27454
27455 2011-01-28 Ian Lance Taylor <iant@google.com>
27456
27457 * godump.c (go_define): Ignore macros whose definitions include
27458 two adjacent operands.
27459
27460 2011-01-28 Jakub Jelinek <jakub@redhat.com>
27461
27462 PR target/42894
27463 * varasm.c (force_const_mem): Store copy of x in desc->constant
27464 instead of x itself.
27465 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27466 itself into REG_EQUAL note.
27467
27468 2011-01-28 Joseph Myers <joseph@codesourcery.com>
27469
27470 * config/freebsd.opt (posix, rdynamic): New Driver options.
27471
27472 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27473
27474 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27475 -Bstatic/-Bdynamic.
27476 * configure: Regenerate.
27477
27478 2011-01-27 Joseph Myers <joseph@codesourcery.com>
27479
27480 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27481 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27482
27483 2011-01-27 Anatoly Sokolov <aesok@post.ru>
27484
27485 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27486 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27487 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27488 (s390_preferred_reload_class): Make static. Change return and
27489 'rclass' argument type to reg_class_t.
27490
27491 2011-01-27 Jan Hubicka <jh@suse.cz>
27492
27493 PR middle-end/46949
27494 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27495 (process_function_and_variable_attributes): Check defined weakrefs.
27496
27497 2011-01-27 Martin Jambor <mjambor@suse.cz>
27498
27499 PR tree-optimization/47228
27500 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27501 build_ref_for_offset.
27502
27503 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27504
27505 * config/spu/spu-elf.h (ASM_SPEC): Remove.
27506
27507 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
27508
27509 PR rtl-optimization/46856
27510 * postreload.c (reload_combine_recognize_const_pattern): Do not
27511 separate cc0 setter and user on cc0 targets.
27512
27513 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
27514
27515 PR c/43082
27516 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27517 passed a VOID_TYPE expression, immediately emit an error and
27518 return error_mark_node.
27519
27520 2011-01-26 Jeff Law <law@redhat.com>
27521
27522 PR rtl-optimization/47464
27523 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27524 rather than may_trap_p as needed.
27525
27526 2011-01-26 DJ Delorie <dj@redhat.com>
27527
27528 PR rtl-optimization/46878
27529 * combine.c (insn_a_feeds_b): Check for the implicit cc0
27530 setter/user dependency as well.
27531
27532 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
27533
27534 PR rtl-optimization/44469
27535 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27536 after removing trivially dead basic blocks.
27537
27538 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27539
27540 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27541 * config/frv/frv.h (LINK_SPEC): Likewise.
27542 * config/i386/netware.h (LINK_SPEC): Likewise.
27543 * config/m68k/linux.h (ASM_SPEC): Likewise.
27544 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27545 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27546 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27547 * config/sparc/linux.h (ASM_SPEC): Likewise.
27548 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27549 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27550
27551 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27552
27553 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27554 * config/frv/frv.h (ASM_SPEC): Likewise.
27555 * config/m68k/linux.h (ASM_SPEC): Likewise.
27556 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27557 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27558 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27559 * config/sparc/linux.h (ASM_SPEC): Likewise.
27560 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27561 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27562
27563 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27564
27565 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27566 * config/frv/frv.h (LINK_SPEC): Likewise.
27567 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27568
27569 2011-01-26 Joseph Myers <joseph@codesourcery.com>
27570
27571 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27572 * config/frv/frv.h (ASM_SPEC): Likewise.
27573 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27574 * config/m68k/linux.h (ASM_SPEC): Likewise.
27575 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27576 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27577 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27578 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27579 * config/sparc/linux.h (ASM_SPEC): Likewise.
27580 * config/sparc/linux64.h (ASM_SPEC): Likewise.
27581 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27582 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27583
27584 2011-01-26 Steve Ellcey <sje@cup.hp.com>
27585
27586 PR target/46997
27587 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27588 (*mux2): Ditto.
27589 (vec_extract_evenodd_help): Ditto.
27590 (vec_extract_evenv4hi): Ditto.
27591 (vec_extract_oddv4hi): Ditto.
27592 (vec_interleave_lowv2si): Ditto.
27593 (vec_interleave_highv2si): Ditto.
27594 (vec_extract_evenv2si): Ditto.
27595 (vec_extract_oddv2si: Ditto.
27596 (vec_pack_trunc_v2si): Ditto.
27597
27598 2011-01-22 Jan Hubicka <jh@suse.cz>
27599
27600 PR target/47237
27601 * cgraph.h (cgraph_local_info): New field can_change_signature.
27602 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27603 signature can change.
27604 (ipcp_estimate_growth): Call sequence simplify only if calle signature
27605 can change.
27606 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27607 (cgraph_function_versioning): We can not change signature of functions
27608 that don't allow that.
27609 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27610 (lto_input_node): Likewise.
27611 * ipa-inline.c (compute_inline_parameters): Compute
27612 local.can_change_signature.
27613 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27614 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27615 functions that can not change signature.
27616 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27617 init_cumulative_args): Do not use local calling conventions
27618 for functions that can not change signature.
27619
27620 2011-01-22 Jan Hubicka <jh@suse.cz>
27621
27622 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27623
27624 2011-01-26 Richard Guenther <rguenther@suse.de>
27625
27626 PR tree-optimization/47190
27627 * cgraphunit.c (process_common_attributes): New function.
27628 (process_function_and_variable_attributes): Use it.
27629
27630 2011-01-26 Richard Guenther <rguenther@suse.de>
27631
27632 PR lto/47423
27633 * cgraphbuild.c (record_eh_tables): Record reference to personality
27634 function.
27635
27636 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
27637
27638 PR debug/45454
27639 * sel-sched.c (moveup_expr): Don't let debug insns prevent
27640 non-debug insns from moving up.
27641
27642 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27643
27644 PR target/40125
27645 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27646 t-dlldir{,-x} fragment for build and add it to tmake_file.
27647 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27648 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27649 * config/i386/t-dlldir: New file.
27650 (SHLIB_DLLDIR): Define.
27651 * config/i386/t-dlldir-x: New file.
27652 (SHLIB_DLLDIR): Define.
27653 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27654 (SHLIB_INSTALL): Use it.
27655
27656 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
27657
27658 PR target/47246
27659 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27660 lower bound of the allowed Thumb-2 coprocessor load/store
27661 index range to -256. Add explaining comment.
27662
27663 2011-01-25 Ian Lance Taylor <iant@google.com>
27664
27665 * godump.c (go_define): Improve lexing of macro expansion to only
27666 accept expressions which match Go spec.
27667
27668 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
27669
27670 PR c++/43601
27671 * tree.c (handle_dll_attribute): Handle it.
27672 * doc/extend.texi (@item dllexport): Mention it.
27673 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27674
27675 2011-01-25 Ian Lance Taylor <iant@google.com>
27676
27677 PR tree-optimization/26854
27678 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27679 (decl_jump_unsafe): Move higher in file, with no other change.
27680 (bind): Set has_jump_unsafe_decl if appropriate.
27681 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27682 (check_earlier_gotos): Likewise.
27683 (c_check_switch_jump_warnings): Likewise.
27684
27685 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
27686
27687 * doc/invoke.texi (Warning Options): Add missing hyphen.
27688 (-fprofile-dir): Minor grammatical fixes.
27689 (-fbranch-probabilities): Likewise.
27690
27691 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
27692
27693 PR debug/45136
27694 PR debug/45130
27695 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27696 debug insns.
27697 (no_real_insns_p, schedule_block, set_priorities): Drop special
27698 treatment of boundary debug insns.
27699 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27700 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27701 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27702 (BOUNDARY_DEBUG_INSN_P): Likewise.
27703 (SCHEDULE_DEBUG_INSN_P): Likewise.
27704 * sched-rgn.c (init_ready_list): Drop special treatment of
27705 boundary debug insns.
27706 * final.c (rest_of_clean-state): Clear notes' BB.
27707
27708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27709
27710 * Makefile.in (LAMBDA_H): Removed.
27711 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27712 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27713 lambda-trans.o, and tree-loop-linear.o.
27714 (lto-symtab.o): Remove dependence on LAMBDA_H.
27715 (tree-loop-linear.o): Remove rule.
27716 (lambda-mat.o): Same.
27717 (lambda-trans.o): Same.
27718 (lambda-code.o): Same.
27719 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27720 (tree-vect-slp.o): Same.
27721 * hwint.h (gcd): Moved here.
27722 (least_common_multiple): Same.
27723 * lambda-code.c: Removed.
27724 * lambda-mat.c: Removed.
27725 * lambda-trans.c: Removed.
27726 * lambda.h: Removed.
27727 * tree-loop-linear.c: Removed.
27728 * lto-symtab.c: Do not include lambda.h.
27729 * omega.c (gcd): Removed.
27730 * passes.c (init_optimization_passes): Remove pass_linear_transform.
27731 * tree-data-ref.c (print_lambda_vector): Moved here.
27732 (lambda_vector_copy): Same.
27733 (lambda_matrix_copy): Same.
27734 (lambda_matrix_id): Same.
27735 (lambda_vector_first_nz): Same.
27736 (lambda_matrix_row_add): Same.
27737 (lambda_matrix_row_exchange): Same.
27738 (lambda_vector_mult_const): Same.
27739 (lambda_vector_negate): Same.
27740 (lambda_matrix_row_negate): Same.
27741 (lambda_vector_equal): Same.
27742 (lambda_matrix_right_hermite): Same.
27743 * tree-data-ref.h: Do not include lambda.h.
27744 (lambda_vector): Moved here.
27745 (lambda_matrix): Same.
27746 (dependence_level): Same.
27747 (lambda_transform_legal_p): Removed declaration.
27748 (lambda_collect_parameters): Same.
27749 (lambda_compute_access_matrices): Same.
27750 (lambda_vector_gcd): Same.
27751 (lambda_vector_new): Same.
27752 (lambda_vector_clear): Same.
27753 (lambda_vector_lexico_pos): Same.
27754 (lambda_vector_zerop): Same.
27755 (lambda_matrix_new): Same.
27756 * tree-flow.h (least_common_multiple): Removed declaration.
27757 * tree-parloops.c (lambda_trans_matrix): Moved here.
27758 (LTM_MATRIX): Same.
27759 (LTM_ROWSIZE): Same.
27760 (LTM_COLSIZE): Same.
27761 (LTM_DENOMINATOR): Same.
27762 (lambda_trans_matrix_new): Same.
27763 (lambda_matrix_vector_mult): Same.
27764 (lambda_transform_legal_p): Same.
27765 * tree-pass.h (pass_linear_transform): Removed declaration.
27766 * tree-ssa-loop.c (tree_linear_transform): Removed.
27767 (gate_tree_linear_transform): Removed.
27768 (pass_linear_transform): Removed.
27769 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27770 flag_loop_interchange.
27771
27772 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27773
27774 PR tree-optimization/47265
27775 PR tree-optimization/47443
27776 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27777 if name still has some uses.
27778
27779 2011-01-25 Martin Jambor <mjambor@suse.cz>
27780
27781 PR tree-optimization/47382
27782 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27783 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27784
27785 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
27786
27787 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27788 sjlj_except_unwind_info.
27789
27790 2011-01-25 Richard Guenther <rguenther@suse.de>
27791
27792 PR tree-optimization/47426
27793 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27794 visible functions results escape.
27795
27796 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27797
27798 PR target/45701
27799 * config/arm/arm.c (any_sibcall_uses_r3): New function.
27800 (arm_get_frame_offsets): Use it.
27801
27802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27803 Jakub Jelinek <jakub@redhat.com>
27804
27805 PR tree-optimization/47271
27806 * tree-if-conv.c (bb_postdominates_preds): New.
27807 (if_convertible_bb_p): Call bb_postdominates_preds.
27808 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27809 (predicate_scalar_phi): Call bb_postdominates_preds.
27810
27811 2011-01-25 Nick Clifton <nickc@redhat.com>
27812
27813 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27814 * config/rx/rx.c (rx_function_value): Likewise.
27815 (rx_promote_function_mode): Likewise.
27816 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27817 in order to make it legitimate.
27818 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27819 make sure that the first operand is the same as the result register.
27820 (addsi3_unspec): Delete.
27821 (subdi3): Do not accept immediate operands.
27822 (subdi3_internal): Likewise.
27823
27824 2011-01-25 Jeff Law <law@redhat.com>
27825
27826 PR rtl-optimization/37273
27827 * ira-costs.c (scan_one_insn): Detect constants living in memory and
27828 handle them like argument loads from stack slots. Do not double
27829 count memory for memory constants and argument loads from stack slots.
27830
27831 2011-01-25 Jakub Jelinek <jakub@redhat.com>
27832
27833 PR tree-optimization/47427
27834 PR tree-optimization/47428
27835 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27836 coalesce if the new root var would be TREE_READONLY.
27837
27838 2011-01-25 Richard Guenther <rguenther@suse.de>
27839
27840 PR middle-end/47414
27841 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27842 correct type for TBAA.
27843
27844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27845
27846 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27847 (close_phi_written_to_memory): Call for_each_index with
27848 dr_indices_valid_in_loop.
27849
27850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27851
27852 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27853 when it is initialized.
27854
27855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27856
27857 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27858 call to graphite_find_data_references_in_stmt.
27859 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27860 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
27861 call to graphite_find_data_references_in_stmt.
27862 (analyze_drs_in_stmts): Same.
27863 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27864 in which the scalar analysis of indices is performed.
27865 (create_data_ref): Same. Update call to dr_analyze_indices.
27866 (find_data_references_in_stmt): Update call to create_data_ref.
27867 (graphite_find_data_references_in_stmt): Same.
27868 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27869 declaration.
27870 (create_data_ref): Same.
27871 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
27872 call to create_data_ref.
27873
27874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27875
27876 * graphite-sese-to-poly.c (build_poly_scop): Move
27877 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
27878
27879 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27880
27881 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
27882 VAR_DECL, PARM_DECL, and RESULT_DECL.
27883
27884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27885
27886 * graphite-dependences.c (reduction_dr_1): Allow several reductions
27887 in a reduction PBB.
27888 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
27889 that have already been marked as PBB_IS_REDUCTION.
27890
27891 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27892
27893 * graphite-scop-detection.c (same_close_phi_node): New.
27894 (remove_duplicate_close_phi): New.
27895 (make_close_phi_nodes_unique): New.
27896 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
27897
27898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27899
27900 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
27901 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
27902 of both data references to be the same.
27903
27904 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27905
27906 * graphite-dependences.c (build_lexicographical_constraint): Remove
27907 the gdim parameter.
27908 (build_lexicographical_constraint): Adjust call to
27909 ppl_powerset_is_empty.
27910 (dependence_polyhedron): Same.
27911 (graphite_legal_transform_dr): Same.
27912 (graphite_carried_dependence_level_k): Same.
27913 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
27914 parameter.
27915 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
27916
27917 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27918
27919 * graphite-sese-to-poly.c
27920 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
27921 (close_phi_written_to_memory): New.
27922 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
27923 and unshare_expr.
27924
27925 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27926
27927 * doc/install.texi: Update the expected version number of PPL to 0.11.
27928 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
27929 #if PPL_VERSION_MINOR < 11.
27930
27931 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27932
27933 * graphite-dependences.c: Include graphite-cloog-util.h.
27934 (new_poly_ddr): Inlined into dependence_polyhedron.
27935 (free_poly_ddr): Moved close by new_poly_ddr.
27936 (dependence_polyhedron_1): Renamed dependence_polyhedron.
27937 Early return NULL when ppl_powerset_is_empty returns true.
27938 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
27939 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
27940 (graphite_legal_transform_dr): Call new_poly_ddr.
27941 (graphite_carried_dependence_level_k): Same.
27942 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
27943 (dot_transformed_deps_stmt_1): Removed.
27944 (dot_deps_stmt_1): Call dot_deps_stmt_2.
27945 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
27946 (dot_deps_1): Call dot_deps_2.
27947 * Makefile.in (graphite-dependences.o): Add missing dependence on
27948 graphite-cloog-util.h.
27949
27950 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27951
27952 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
27953 (build_lexicographical_constraint): Same.
27954 (dependence_polyhedron_1): Same.
27955 (graphite_legal_transform_dr): Same.
27956 (graphite_carried_dependence_level_k): Same.
27957 * graphite-ppl.c (ppl_powerset_is_empty): New.
27958 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
27959 * tree-data-ref.c (dump_data_reference): Print the basic block index.
27960
27961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27962
27963 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
27964 the "a followed by b" relation and document it.
27965
27966 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27967
27968 * graphite-dependences.c (build_lexicographical_constraint): Stop the
27969 iteration when the bag of constraints is empty.
27970
27971 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27972
27973 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
27974
27975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27976
27977 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
27978 nest and two loop depths as parameters.
27979 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
27980 lst_perfect_nestify.
27981
27982 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27983
27984 * graphite-dependences.c (print_pddr): Call
27985 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
27986
27987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
27988
27989 * graphite-ppl.c (debug_gmp_value): New.
27990 * graphite-ppl.h (debug_gmp_value): Declared.
27991
27992 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
27993
27994 * doc/install.texi: Document availability of cloog-0.16.
27995
27996 2011-01-25 Vladimir Kargov <kargov@gmail.com>
27997
27998 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
27999 invalid postdominance info.
28000
28001 2011-01-24 Jan Hubicka <jh@suse.cz>
28002
28003 PR c/21659
28004 * doc/extend.texi (weak pragma): Drop claim that it must
28005 appear before definition.
28006 * varasm.c (merge_weak, declare_weak): Only sanity check
28007 that DECL is not output at a time it is declared weak.
28008
28009 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
28010
28011 * machmode.def: Fixed comments.
28012
28013 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
28014
28015 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28016
28017 2011-01-24 Paul Koning <ni1d@arrl.net>
28018
28019 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28020 WORDS_BIG_ENDIAN.
28021
28022 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
28023
28024 PR target/46519
28025 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28026 (block_info): Add scanned and prev.
28027 (move_or_delete_vzeroupper_2): Return if the basic block
28028 has been scanned and the upper 128bit state is unchanged
28029 from the last scan.
28030 (move_or_delete_vzeroupper_1): Return true if the exit
28031 state is changed.
28032 (move_or_delete_vzeroupper): Visit basic blocks using the
28033 work-list based algorithm based on vt_find_locations in
28034 var-tracking.c.
28035
28036 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28037
28038 2011-01-24 Nick Clifton <nickc@redhat.com>
28039
28040 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28041 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28042 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
28043 then define __v850e1__.
28044 * doc/invoke.texi: Document -mv850es.
28045
28046 2011-01-24 Richard Henderson <rth@redhat.com>
28047
28048 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28049 compound unordered comparisons.
28050 * config/rx/rx.c (rx_split_fp_compare): Remove.
28051 * config/rx/rx-protos.h: Update.
28052 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28053 (cbranchsf4): Don't call rx_split_fp_compare.
28054 (*cbranchsf4): Use rx_split_cbranch.
28055 (*cmpsf): Don't accept "i" constraint.
28056 (*conditional_branch): Only valid after reload.
28057 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
28058
28059 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28060
28061 PR target/47385
28062 * config/rs6000/altivec.md (vector constant splitters): Add
28063 support for creating vector single precision constants if -mvsx is
28064 used and we would create the constant using Altivec primitives.
28065
28066 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
28067 Richard Sandiford <rdsandiford@googlemail.com>
28068
28069 PR rtl-optimization/47166
28070 * reload1.c (emit_reload_insns): Disable the spill_reg_store
28071 mechanism for PRE_MODIFY and POST_MODIFY.
28072 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28073 reloadreg.
28074
28075 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
28076
28077 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28078
28079 2011-01-22 Jan Hubicka <jh@suse.cz>
28080
28081 PR lto/47333
28082 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28083
28084 2011-01-22 Jan Hubicka <jh@suse.cz>
28085
28086 PR tree-optimization/43884
28087 PR lto/44334
28088 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28089 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28090
28091 2011-01-22 Anatoly Sokolov <aesok@post.ru>
28092
28093 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28094 * config/s390/s390.c (s390_register_move_cost,
28095 s390_memory_move_cost): New.
28096 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28097
28098 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28099
28100 PR middle-end/47401
28101 * except.c (sjlj_assign_call_site_values): Move setting the
28102 crtl->uses_eh_lsda flag to ...
28103 (sjlj_mark_call_sites): ... here.
28104 (sjlj_emit_function_enter): Support NULL dispatch label.
28105 (sjlj_build_landing_pads): In a function with no landing pads
28106 that still has must-not-throw regions, generate code to register
28107 a personality function with empty LSDA.
28108
28109 2011-01-21 Richard Henderson <rth@redhat.com>
28110
28111 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28112
28113 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28114
28115 * compare-elim.c: New file.
28116 * Makefile.in (OBJS-common): Add it.
28117 (compare-elim.o): New.
28118 * common.opt (fcompare-elim): New.
28119 * opts.c (default_options_table): Add OPT_fcompare_elim.
28120 * tree-pass.h (pass_compare_elim_after_reload): New.
28121 * passes.c (init_optimization_passes): Add it.
28122 * recog.h: Protect against re-inclusion.
28123 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28124 * doc/invoke.texi (-fcompare-elim): Document it.
28125 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28126 * doc/tm.texi: Rebuild.
28127
28128 2011-01-22 Nick Clifton <nickc@redhat.com>
28129
28130 * config/rx/rx.md (cstoresf4): Pass comparison operator to
28131 rx_split_fp_compare.
28132
28133 2011-01-22 Nick Clifton <nickc@redhat.com>
28134
28135 * config/rx/rx.md (UNSPEC_CONST): New.
28136 (deallocate_and_return): Wrap the amount popped off the stack in
28137 an UNSPEC_CONST in order to stop it being rejected by
28138 -mmax-constant-size.
28139 (pop_and_return): Add a "(return)" rtx.
28140 (call): Drop the immediate operand.
28141 (call_internal): Likewise.
28142 (call_value): Likewise.
28143 (call_value_internal): Likewise.
28144 (sibcall_internal): Likewise.
28145 (sibcall_value_internal): Likewise.
28146 (sibcall): Likewise. Generate an explicit call using
28147 sibcall_internal.
28148 (sibcall_value): Likewise.
28149 (mov<>): FAIL if a constant operand is not legitimate.
28150 (addsi3_unpsec): New pattern.
28151
28152 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28153 (ok_for_max_constant): New function.
28154 (gen_safe_add): New function.
28155 (rx_expand_prologue): Use gen_safe_add.
28156 (rx_expand_epilogue): Likewise.
28157 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
28158 UNSPEC CONSTs.
28159
28160 2011-01-21 Jeff Law <law@redhat.com>
28161
28162 PR tree-optimization/47053
28163 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28164 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28165 statements are deleted.
28166 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
28167 is nonempty, then purge dead edges and cleanup the CFG.
28168
28169 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28170
28171 PR debug/47402
28172 Temporarily revert:
28173 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28174 PR debug/47106
28175 * tree-dfa.c (create_var_ann): Mark variable as used.
28176
28177 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28178
28179 PR middle-end/45566
28180 * except.c (convert_to_eh_region_ranges): Emit queued no-region
28181 notes from other section in hot/cold partitioning even if
28182 last_action is -3. Increment call_site_base.
28183
28184 PR rtl-optimization/47366
28185 * fwprop.c (forward_propagate_into): Return bool. If
28186 any changes are made, -fnon-call-exceptions is used and
28187 REG_EH_REGION note is present, call purge_dead_edges
28188 and return true if it purged anything.
28189 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28190 any EH edges were purged.
28191
28192 2011-01-21 Jeff Law <law@redhat.com>
28193
28194 PR rtl-optimization/41619
28195 * caller-save.c (setup_save_areas): Break out code to determine
28196 which hard regs are live across calls by examining the reload chains
28197 so that it is always used.
28198 Eliminate code which checked REG_N_CALLS_CROSSED.
28199
28200 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28201
28202 PR tree-optimization/47355
28203 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28204 NOP has non-debug uses beyond PHIs in new_bb.
28205
28206 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
28207
28208 PR debug/47106
28209 * cfgexpand.c (account_used_vars_for_block): Only account vars
28210 that are annotated as used.
28211 (estimated_stack_frame_size): Don't set TREE_USED.
28212 * tree-dfa.c (create_var_ann): Mark variable as used.
28213
28214 2011-01-21 Richard Guenther <rguenther@suse.de>
28215
28216 PR middle-end/47395
28217 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28218
28219 2011-01-21 Richard Guenther <rguenther@suse.de>
28220
28221 PR tree-optimization/47365
28222 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28223 (vn_reference_lookup_pieces): Adjust.
28224 (vn_reference_lookup): Likewise.
28225 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28226 (vn_reference_lookup_3): Only look through kills if in
28227 VN_WALKREWRITE mode.
28228 (vn_reference_lookup_pieces): Adjust.
28229 (vn_reference_lookup): Likewise.
28230 (visit_reference_op_load): Likewise.
28231 (visit_reference_op_store): Likewise.
28232 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28233 (compute_avail): Likewise.
28234 (eliminate): Likewise.
28235
28236 2011-01-21 Jakub Jelinek <jakub@redhat.com>
28237
28238 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28239 DECL_IGNORED_P non-reg vars if they are used.
28240
28241 PR tree-optimization/47391
28242 * varpool.c (const_value_known_p): Return false if
28243 decl is volatile.
28244
28245 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
28246
28247 PR bootstrap/47215
28248 * config/i386/i386.c (ix86_local_alignment): Handle
28249 case for va_list_type_node is nil.
28250 (ix86_canonical_va_list_type): Likewise.
28251
28252 2011-01-21 Alan Modra <amodra@gmail.com>
28253
28254 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28255 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28256
28257 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28258
28259 * config/arm/arm.md (define_attr type): Rename f_load
28260 and f_store to f_fpa_load and f_fpa_store. Update.
28261 (write_conflict): Deal with rename fallout.
28262 (*push_fp_multi): Likewise.
28263 * config/arm/fpa.md (f_load): Use f_fpa_load.
28264 (f_store): Use f_fpa_store.
28265 (*movsf_fpa): Likewise.
28266 (*movdf_fpa): Likewise.
28267 (*movxf_fpa): Likewise.
28268 (*thumb2_movsf_fpa): Likewise.
28269 (*thumb2_movdf_fpa): Likewise.
28270 (*thumb2_movxf_fpa): Likewise.
28271 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28272 f_loadd and f_stored.
28273 (*thumb2_movdi_vfp): Likewise.
28274 (*thumb2_movsf_vfp): Fix attribute to f_loads.
28275 (*thumb2_movsi_vfp): Likewise.
28276 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28277 Use f_loads instead of f_load.
28278 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28279
28280 2011-01-20 Anatoly Sokolov <aesok@post.ru>
28281
28282 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28283 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28284 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28285 (xtensa_mode_dependent_address_p): New function.
28286 (constantpool_address_p): Make static. Change return type to bool.
28287 Change argument type to const_rtx. Use CONST_INT_P predicate.
28288
28289 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
28290
28291 PR debug/46583
28292 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28293
28294 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28295
28296 PR debug/47283
28297 * cfgexpand.c (expand_debug_expr): Instead of generating
28298 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28299 etc. handling.
28300
28301 2011-01-20 Richard Guenther <rguenther@suse.de>
28302
28303 PR middle-end/47370
28304 * tree-inline.c (remap_gimple_op_r): Recurse manually for
28305 the pointer operand of MEM_REFs.
28306
28307 2011-01-20 Jakub Jelinek <jakub@redhat.com>
28308
28309 PR tree-optimization/46130
28310 * ipa-split.c (consider_split): If return_bb contains non-virtual
28311 PHIs other than for retval or if split_function would not adjust it,
28312 refuse to split.
28313
28314 2011-01-20 Richard Guenther <rguenther@suse.de>
28315
28316 PR tree-optimization/47167
28317 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28318 Revert previous change, only avoid enumeral type changes.
28319
28320 2011-01-19 Mike Stump <mikestump@comcast.net>
28321
28322 * doc/tm.texi.in (BRANCH_COST): Englishify.
28323 * doc/tm.texi (BRANCH_COST): Likewise.
28324
28325 2011-01-19 Dodji Seketeli <dodji@redhat.com>
28326
28327 PR c++/47291
28328 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28329 (gen_scheduled_generic_parms_dies): New functions.
28330 (gen_struct_or_union_type_die): Schedule template parameters DIEs
28331 generation for the end of CU compilation.
28332 (dwarf2out_finish): Generate template parameters DIEs here.
28333
28334 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28335
28336 PR debug/46240
28337 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28338 debug bind stmt on merge edges.
28339
28340 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28341
28342 PR debug/47079
28343 PR debug/46724
28344 * function.c (instantiate_expr): Instantiate incoming rtl of
28345 implicit arguments, and recurse on VALUE_EXPRs.
28346 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28347 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28348
28349 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
28350
28351 * c-parser.c (c_parser_for_statement): Initialize
28352 collection_expression.
28353
28354 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28355
28356 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28357
28358 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28359
28360 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28361 (LINK_SHLIB_SPEC): Don't use %(link_path).
28362 (SUBTARGET_EXTRA_SPECS): Remove link_path.
28363
28364 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28365
28366 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28367 (NO_SHARED_LIB_SUPPORT): Remove.
28368 (LINK_SHLIB_SPEC): Remove one conditional definition.
28369
28370 2011-01-19 Joseph Myers <joseph@codesourcery.com>
28371
28372 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28373 %{call_shared}.
28374 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28375 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28376 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28377 %{call_shared} and conditionals on these options not being passed.
28378 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28379 %{call_shared}.
28380
28381 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28382
28383 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28384 simplify.
28385
28386 * ipa-split.c: Spelling fixes.
28387
28388 2011-01-19 Richard Henderson <rth@redhat.com>
28389
28390 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28391 (*mulsi3): Likewise.
28392
28393 * longlong.h [__mn10300__] (count_leading_zeros): New.
28394 [__mn10300__] (umul_ppmm, smul_ppmm): New.
28395 [__mn10300__] (add_ssaaaa, subddmmss): New.
28396 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28397 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28398
28399 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28400
28401 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28402
28403 2011-01-19 Richard Henderson <rth@redhat.com>
28404
28405 * config/mn10300/mn10300.md (addsi3_flags): New.
28406 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28407 (subsi3_flags, subc_internal, subdi3): New.
28408 (subdi3_internal, *subdi3_degenerate): New.
28409 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28410
28411 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28412 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28413 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
28414 * config/mn10300/mn10300-protos.h: Update.
28415 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28416 (return_ret): Likewise. Rename from return_internal_regs.
28417 (return_internal): Remove.
28418
28419 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28420 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28421 (mn10300_legitimate_constant_p): Likewise.
28422 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28423 (mn10300_frame_size): New.
28424 (mn10300_expand_prologue): Use it.
28425 (mn10300_expand_epilogue): Likewise.
28426 (mn10300_initial_offset): Likewise.
28427 * config/mn10300/mn10300-protos.h: Update.
28428 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28429 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28430 (prologue, epilogue, return_internal): Tidy output code.
28431 (mn10300_store_multiple_operation, return): Likewise.
28432 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28433 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28434 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28435 (load_pic, am33_load_pic): New.
28436 (mn10300_load_pic0, mn10300_load_pic1): New.
28437
28438 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28439 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28440 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28441 (cc_flags_for_mode, cc_flags_for_code): New.
28442 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28443 overflow flag is not valid. Validate that the flags we need
28444 for the comparison are valid.
28445 (mn10300_output_cmp): Remove.
28446 (mn10300_output_add): New.
28447 (mn10300_select_cc_mode): Use cc_flags_for_code.
28448 (mn10300_split_cbranch): New.
28449 (mn10300_match_ccmode): New.
28450 (mn10300_split_and_operand_count): New.
28451 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28452 to the function.
28453 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28454 (addsi3): ... here. Use mn10300_output_add.
28455 (*addsi3_flags): New.
28456 (*am33_subsi3, *mn10300_subsi3): Merge...
28457 (subsi3): ... here. Use attribute isa.
28458 (*subsi3_flags): New.
28459 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
28460 when possible.
28461 (*am33_andsi3, *mn10300_andsi3): Merge...
28462 (andsi3): ... here.
28463 (*andsi3_flags): New.
28464 (andsi3 splitters): New.
28465 (*am33_iorsi3, *mn10300_iorsi3): Merge...
28466 (iorsi3): ... here.
28467 (*iorsi3_flags): New.
28468 (*am33_xorsi3, *mn10300_xorsi3): Merge...
28469 (xorsi3): ... here.
28470 (*xorsi3_flags): New.
28471 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28472 (one_cmplsi2): ... here.
28473 (*one_cmplsi2_flags): New.
28474 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
28475 instead of "dax" in constraints. Use mn10300_split_cbranch.
28476 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
28477 use matching constraints to eliminate a self-comparison.
28478 (*integer_conditional_branch): Rename from integer_conditional_branch.
28479 Use int_mode_flags to match CC_REG.
28480 (*cbranchsi4_btst, *btstsi): New.
28481 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
28482 mn10300_split_cbranch.
28483 (*am33_cmpsf): Rename from am33_cmpsf.
28484 (*float_conditional_branch): Rename from float_conditional_branch.
28485 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28486 (zero_extendqisi2): ... here.
28487 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28488 (zero_extendhisi2): ... here.
28489 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28490 (extendqisi2): ... here.
28491 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28492 (extendhisi2): ... here.
28493 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28494 (ashlsi3): ... here.
28495 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28496 (lshrsi3): ... here.
28497 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28498 (ashrsi3): ... here.
28499 (consecutive add peephole): Remove.
28500 * config/mn10300/predicates.md (label_ref_operand): New.
28501 (int_mode_flags): New.
28502 (CCZN_comparison_operator): New.
28503
28504 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28505 (throughput_42_latency_43): New reservation.
28506 (mulsidi3, umulsidi3): New expanders.
28507 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
28508 the MDR register to allocation; separately allocate the low and
28509 high parts of the DImode result.
28510 (umulsidi3_internal): Similarly.
28511 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28512 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
28513 (udivsi3, umodsi3): Remove.
28514 (udivmodsi4, divmodsi4): New expanders.
28515 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
28516 (*divmodsi4): Simiarly.
28517 (ext_internal): New.
28518
28519 * config/mn10300/constraints.md ("z"): New constraint.
28520 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28521 (FIXED_REGISTERS): Don't fix MDR.
28522 (CALL_USED_REGSITERS): Reformat nicely.
28523 (REG_ALLOC_ORDER): Add MDR.
28524 (enum regclass): Add MDR_REGS.
28525 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28526 (IRA_COVER_CLASSES): Add MDR_REGS.
28527 (REGNO_REG_CLASS): Handle MDR_REG.
28528 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28529 (mn10300_register_move_cost): Likewise.
28530 * config/mn10300/mn10300.md (MDR_REG): New.
28531 (*movsi_internal): Handle moves to/from MDR_REGS.
28532
28533 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28534 POST_MODIFY.
28535 (mn10300_secondary_reload): Tidy combination reload classes.
28536 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28537 addresses for AM33. Allow symbolic offsets for reg+imm.
28538 (mn10300_regno_in_class_p): New.
28539 (mn10300_legitimize_reload_address): New.
28540 * config/mn10300/mn10300.h (enum reg_class): Remove
28541 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28542 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
28543 SP_OR_GENERAL_REGS.
28544 (REG_CLASS_NAMES): Update to match.
28545 (REG_CLASS_CONTENTS): Likewise.
28546 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28547 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28548 (REGNO_IN_RANGE_P): Remove.
28549 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28550 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28551 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28552 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28553 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28554 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28555 (REGNO_GENERAL_P): New.
28556 (HAVE_POST_MODIFY_DISP): New.
28557 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28558 (LEGITIMIZE_RELOAD_ADDRESS): New.
28559 * config/mn10300/mn10300-protos.h: Update.
28560
28561 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28562 DATA_REGS for AM33 stack-pointer destination.
28563 (mn10300_preferred_output_reload_class): Likewise.
28564 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28565 into a form appropriate for ...
28566 (TARGET_SECONDARY_RELOAD): New.
28567 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28568 * config/mn10300/mn10300-protos.h: Update.
28569 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28570 reload_insi; use the "A" constraint for the scratch; handle AM33
28571 moves of sp to non-address registers.
28572
28573 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28574 (*movqi_internal): ... here.
28575 (*am33_movhi, *mn10300_movhi): Merge into...
28576 (*movhi_internal): ... here.
28577 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
28578 as the source/destination of moves from/to SP.
28579 (movsf): Only allow for AM33-2.
28580 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28581 any integer constant constraint. Only allow for AM33-2. Tidy
28582 all of the alternative outputs.
28583 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28584 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
28585 for MN103.
28586 (udivsi3, umodsi3): New patterns for MN103 only.
28587
28588 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
28589
28590 * doc/tm.texi.in: Spell out that a lack of register class unions
28591 can lead to ICEs.
28592 * doc/tm.texi: Regenerate.
28593
28594 2011-01-19 Jakub Jelinek <jakub@redhat.com>
28595
28596 PR rtl-optimization/47337
28597 * dce.c (check_argument_store): New function.
28598 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
28599
28600 PR tree-optimization/47290
28601 * tree-eh.c (infinite_empty_loop_p): New function.
28602 (cleanup_empty_eh): Use it.
28603
28604 2011-01-18 Steve Ellcey <sje@cup.hp.com>
28605
28606 PR target/46997
28607 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28608 (a64_expand_widen_sum): Ditto.
28609 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28610 (vec_extract_evenodd_help): Ditto.
28611 (vec_extract_evenv4hi): Ditto.
28612 (vec_extract_oddv4hi): Ditto.
28613 (vec_extract_evenv2si): Ditto.
28614 (vec_extract_oddv2si): Ditto.
28615 (vec_extract_evenv2sf): Ditto.
28616 (vec_extract_oddv2sf): Ditto.
28617 (vec_pack_trunc_v4hi: Ditto.
28618 (vec_pack_trunc_v2si): Ditto.
28619 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28620 (vec_interleave_highv8qi): Ditto.
28621 (mix1_r): Ditto.
28622 (vec_extract_oddv8qi): Ditto.
28623 (vec_interleave_lowv4hi): Ditto.
28624 (vec_interleave_highv4hi): Ditto.
28625 (vec_interleave_lowv2si): Ditto.
28626 (vec_interleave_highv2si): Ditto.
28627
28628 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28629
28630 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28631 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28632 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
28633 (pa_c_mode_for_suffix): New.
28634 (TARGET_EXPAND_BUILTIN): Define.
28635 (TARGET_C_MODE_FOR_SUFFIX): Define.
28636 (pa_builtins): Define.
28637 (pa_init_builtins): Register __float128 type and init new support
28638 builtins.
28639 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28640 * config/pa/quadlib.c (_U_Qfcopysign): New.
28641
28642 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
28643
28644 PR middle-end/46894
28645 * explow.c (allocate_dynamic_stack_space): Do not assume more than
28646 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28647 are defined.
28648
28649 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28650
28651 PR tree-optimization/47179
28652 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28653 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28654
28655 2011-01-18 Richard Guenther <rguenther@suse.de>
28656
28657 PR rtl-optimization/47216
28658 * emit-rtl.c: Include tree-flow.h.
28659 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28660 of replicating it with different semantics.
28661 * Makefile.in (emit-rtl.o): Adjust.
28662
28663 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28664
28665 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28666 (cortex_a9_dp): Handle neon types correctly.
28667
28668 2011-01-18 Jakub Jelinek <jakub@redhat.com>
28669
28670 PR rtl-optimization/47299
28671 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28672 subtarget. Use normal multiplication if both operands are constants.
28673 * expmed.c (expand_widening_mult): Don't try to optimize constant
28674 multiplication if op0 has VOIDmode. Convert op1 constant to mode
28675 before using it.
28676
28677 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28678
28679 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
28680 spacing after 'e.g.', typos, comma, hyphenation.
28681
28682 2011-01-17 Richard Henderson <rth@redhat.com>
28683
28684 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28685 (rx_restricted_mem_operand): New.
28686 (rx_shift_operand): Use register_operand.
28687 (rx_source_operand, rx_compare_operand): Likewise.
28688 * config/rx/rx.md (addsi3_flags): New expander.
28689 (adddi3): Rewrite as expander.
28690 (adc_internal, *adc_flags, adddi3_internal): New patterns.
28691 (subsi3_flags): New expander.
28692 (subdi3): Rewrite as expander.
28693 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28694
28695 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28696 (rx_init_builtins): Remove sat builtin.
28697 (rx_expand_builtin): Likewise.
28698 * config/rx/rx.md (ssaddsi3): New.
28699 (*sat): Rename from sat. Represent the CC_REG input.
28700
28701 * config/rx/predicates.md (rshift_operator): New.
28702 * config/rx/rx.c (rx_expand_insv): Remove.
28703 * config/rx/rx-protos.h: Update.
28704 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
28705 operand to the canonical position.
28706 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28707 (*bitclr, *bitclr_in_memory): Similarly.
28708 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28709 (insv): Retain the zero_extract in the expansion.
28710
28711 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28712 (bswaphi2, bitinvert, revw): Likewise.
28713
28714 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28715 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28716 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28717 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28718 (bitset, bitset_in_memory): Likewise.
28719 (bitinvert, bitinvert_in_memory): Likewise.
28720 (bitclr, bitclr_in_memory): Likewise.
28721 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28722 (rx_strend, rx_cmpstrn): Likewise.
28723 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
28724 (bitop peep2 patterns): Remove.
28725
28726 * config/rx/rx.c (rx_match_ccmode): New.
28727 * config/rx/rx-protos.h: Update.
28728 * config/rx/rx.md (abssi2): Clobber, don't set flags.
28729 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28730 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28731 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28732 (fix_truncsfsi2, floatsisf2): Likewise.
28733 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28734 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28735 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28736 (*subsi3_flags, *xorsi3_flags): New.
28737
28738 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28739
28740 * config/rx/rx.c (rx_print_operand): Remove workaround for
28741 unsplit comparison operations.
28742
28743 * config/rx/rx.md (movsicc): Split after reload.
28744 (*movsicc): Merge *movsieq and *movsine via match_operator.
28745 (*stcc): New pattern.
28746
28747 * config/rx/rx.c (rx_float_compare_mode): Remove.
28748 * config/rx/rx.h (rx_float_compare_mode): Remove.
28749 * config/rx/rx.md (cstoresi4): Split after reload.
28750 (*sccc): New pattern.
28751
28752 * config/rx/predicates.md (label_ref_operand): New.
28753 (rx_z_comparison_operator): New.
28754 (rx_zs_comparison_operator): New.
28755 (rx_fp_comparison_operator): New.
28756 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28757 Validate that the flags are set properly for the comparison.
28758 (rx_gen_cond_branch_template): Remove.
28759 (rx_cc_modes_compatible): Remove.
28760 (mode_from_flags): New.
28761 (flags_from_code): Rename from flags_needed_for_conditional.
28762 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28763 (rx_select_cc_mode): Likewise.
28764 (rx_split_fp_compare): New.
28765 (rx_split_cbranch): New.
28766 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28767 (*cbranchsi4): Use match_operator and rx_split_cbranch.
28768 (*cbranchsf4): Similarly.
28769 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
28770 match_operator and rx_split_cbranch.
28771 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28772 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
28773 (*cmpsi): Rename from cmpsi.
28774 (*tstsi): Rename from tstsi.
28775 (*cmpsf): Rename from cmpsf; use CC_Fmode.
28776 (*conditional_branch): Rename from conditional_branch.
28777 (*reveresed_conditional_branch): Remove.
28778 (b<code>): Remove expander.
28779 * config/rx/rx-protos.h: Update.
28780
28781 * config/rx/rx.c (rx_compare_redundant): Remove.
28782 * config/rx/rx.md (cmpsi): Don't use it.
28783 * config/rx/rx-protos.h: Update.
28784
28785 * config/rx/rx-modes.def (CC_F): New mode.
28786 * config/rx/rx.c (rx_select_cc_mode): New.
28787 * config/rx/rx.h (SELECT_CC_MODE): Use it.
28788 * config/rx/rx-protos.h: Update.
28789
28790 2011-01-17 Richard Henderson <rth@redhat.com>
28791
28792 * except.c (dump_eh_tree): Fix stray ; after for statement.
28793
28794 2011-01-17 Richard Guenther <rguenther@suse.de>
28795
28796 PR tree-optimization/47313
28797 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28798 handling before copying the body. Properly deal with
28799 by-reference result in SSA form.
28800
28801 2011-01-17 Ian Lance Taylor <iant@google.com>
28802
28803 PR target/47219
28804 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28805 (struct_value_alias_set): Don't define.
28806 (sparc_option_override): Don't set sparc_sr_alias_set and
28807 struct_value_alias_set.
28808 (save_or_restore_regs): Use gen_frame_mem rather than calling
28809 set_mem_alias_set.
28810 (sparc_struct_value_rtx): Likewise.
28811
28812 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
28813
28814 PR target/47318
28815 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28816 (_mm_maskstore_pd): Likewise.
28817 (_mm_maskload_ps): Likewise.
28818 (_mm_maskstore_ps): Likewise.
28819 (_mm256_maskload_pd): Change mask to __m256i.
28820 (_mm256_maskstore_pd): Likewise.
28821 (_mm256_maskload_ps): Likewise.
28822 (_mm256_maskstore_ps): Likewise.
28823
28824 * config/i386/i386-builtin-types.def: Updated.
28825 (ix86_expand_special_args_builtin): Likewise.
28826
28827 * config/i386/i386.c (bdesc_special_args): Update
28828 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28829 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28830 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28831 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28832
28833 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28834 Use <avxpermvecmode> on mask register.
28835 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28836
28837 2011-01-17 Olivier Hainque <hainque@adacore.com>
28838 Michael Haubenwallner <michael.haubenwallner@salomon.at>
28839 Eric Botcazou <ebotcazou@adacore.com>
28840
28841 PR target/46655
28842 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28843 if <= USHRT_MAX in 32-bit mode.
28844
28845 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28846
28847 * doc/install.texi (Configuration, Specific): Wrap long
28848 lines in examples. Allow line wrapping in long options
28849 and URLs where beneficial for PDF output.
28850
28851 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
28852
28853 * config/mips/mips.c (mips_classify_symbol): Don't return
28854 SYMBOL_PC_RELATIVE for nonlocal labels.
28855
28856 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
28857
28858 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28859
28860 2011-01-15 Jan Hubicka <jh@suse.cz>
28861
28862 PR tree-optimization/47276
28863 * ipa.c (function_and_variable_visibility): Do not try to mark alias
28864 declarations as needed.
28865
28866 2011-01-15 Martin Jambor <mjambor@suse.cz>
28867
28868 * common.opt (fdevirtualize): New flag.
28869 * doc/invoke.texi (Option Summary): Document it.
28870 * opts.c (default_options_table): Add devirtualize flag.
28871 * ipa-prop.c (detect_type_change): Return immediately if
28872 devirtualize flag is not set.
28873 (detect_type_change_ssa): Likewise.
28874 (compute_known_type_jump_func): Likewise.
28875 (ipa_analyze_virtual_call_uses): Likewise.
28876
28877 2011-01-14 Martin Jambor <mjambor@suse.cz>
28878
28879 PR tree-optimization/45934
28880 PR tree-optimization/46302
28881 * ipa-prop.c (type_change_info): New type.
28882 (stmt_may_be_vtbl_ptr_store): New function.
28883 (check_stmt_for_type_change): Likewise.
28884 (detect_type_change): Likewise.
28885 (detect_type_change_ssa): Likewise.
28886 (compute_complex_assign_jump_func): Check for dynamic type change.
28887 (compute_complex_ancestor_jump_func): Likewise.
28888 (compute_known_type_jump_func): Likewise.
28889 (compute_scalar_jump_functions): Likewise.
28890 (ipa_analyze_virtual_call_uses): Likewise.
28891 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
28892
28893 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28894
28895 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
28896 * config/i386/i386.opt (msse5): New Alias.
28897
28898 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28899
28900 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28901 * config/sparc/linux64.h (CC1_SPEC): Likewise.
28902 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28903 * config/sparc/sparc.h (CC1_SPEC): Likewise.
28904
28905 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28906
28907 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
28908 -mcpu options.
28909 * config/sparc/linux64.h (CC1_SPEC): Likewise.
28910 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28911 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
28912 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
28913 Likewise.
28914 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
28915
28916 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28917
28918 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
28919
28920 2011-01-14 Mike Stump <mikestump@comcast.net>
28921
28922 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
28923 * config/fr30/fr30.md: Likweise
28924 (movsi_push): Likewise.
28925 (movsi_pop): Likewise.
28926 (enter_func): Likewise.
28927 * config/moxie/moxie.md (movsi_push): Likewise.
28928 (movsi_pop): Likewise.
28929
28930 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28931
28932 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
28933 %{no_archive} %{exact_version}.
28934 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
28935 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
28936 %{no_archive} %{exact_version}.
28937 * config/mips/openbsd.h (LINK_SPEC): Likewise.
28938 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
28939 * config/mips/vxworks.h: Likewise.
28940
28941 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28942
28943 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
28944
28945 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28946
28947 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
28948 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
28949
28950 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28951
28952 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
28953 -nodefaultlib.
28954
28955 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28956
28957 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
28958 for mcpu not cpu.
28959 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
28960 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
28961 not cpu.
28962 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
28963 Don't handle -shlib.
28964
28965 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28966
28967 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
28968 (CC1_SPEC): Don't handle -profile.
28969
28970 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28971
28972 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
28973 * config/mips/mips.h (CC1_SPEC): Likewise.
28974
28975 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28976
28977 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
28978 * config/mips/mips.h (CC1_SPEC): Likewise.
28979
28980 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28981
28982 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
28983 * config/m32r/linux.h (LINK_SPEC): Likewise.
28984 * config/mips/linux.h (LINK_SPEC): Likewise.
28985 * config/mips/linux64.h (LINK_SPEC): Likewise.
28986 * config/sparc/linux.h (LINK_SPEC): Likewise.
28987 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
28988 LINK_SPEC): Likewise.
28989 * config/xtensa/linux.h (LINK_SPEC): Likewise.
28990
28991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28992
28993 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
28994 %{version:-v}.
28995 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
28996
28997 2011-01-14 Joseph Myers <joseph@codesourcery.com>
28998
28999 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29000 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29001
29002 2011-01-14 Joseph Myers <joseph@codesourcery.com>
29003
29004 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29005
29006 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29007
29008 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29009 supports -Bstatic/-Bdynamic.
29010 * configure: Regenerate.
29011
29012 2011-01-14 Jan Hubicka <jh@suse.cz>
29013 Jack Howarth <howarth@bromo.med.uc.edu>
29014
29015 PR target/46037
29016 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29017 when checking debug_info_level. Test write_symbols instead of
29018 debug_hooks->var_location when setting flag_var_tracking_uninit.
29019
29020 2011-01-14 Richard Guenther <rguenther@suse.de>
29021
29022 PR tree-optimization/47179
29023 * target.def (ref_may_alias_errno): New target hook.
29024 * targhooks.h (default_ref_may_alias_errno): Declare.
29025 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29026 (default_ref_may_alias_errno): New function.
29027 * target.h (struct ao_ref_s): Declare.
29028 * tree-ssa-alias.c: Include target.h.
29029 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29030 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29031 (targhooks.o): Likewise.
29032 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29033 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29034
29035 2011-01-14 Richard Guenther <rguenther@suse.de>
29036
29037 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
29038
29039 2011-01-14 Richard Guenther <rguenther@suse.de>
29040
29041 PR tree-optimization/47280
29042 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29043 return CFG changes.
29044 (tree_ssa_forward_propagate_single_use_vars): Deal with
29045 CFG changes from associate_plusminus.
29046
29047 2011-01-14 Richard Guenther <rguenther@suse.de>
29048
29049 PR middle-end/47281
29050 Revert
29051 2011-01-11 Richard Guenther <rguenther@suse.de>
29052
29053 PR tree-optimization/46076
29054 * tree-ssa.c (useless_type_conversion_p): Conversions from
29055 unprototyped to empty argument list function types are useless.
29056
29057 2011-01-14 Richard Guenther <rguenther@suse.de>
29058
29059 PR tree-optimization/47286
29060 * tree-ssa-structalias.c (new_var_info): Register variables are global.
29061
29062 2011-01-14 Martin Jambor <mjambor@suse.cz>
29063
29064 PR middle-end/46823
29065 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29066
29067 2011-01-13 Anatoly Sokolov <aesok@post.ru>
29068
29069 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29070 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29071 * config/xtensa/xtensa.c (xtensa_libcall_value,
29072 xtensa_function_value_regno_p): New functions.
29073 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29074
29075 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
29076
29077 PR c++/47213
29078 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29079 PE specific hook.
29080 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29081 New function prototype.
29082 * config/i386/winnt.c (i386_pe_assemble_visibility):
29083 Warn only if attribute was specified by user.
29084
29085 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29086
29087 PR target/47251
29088 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29089 floating point.
29090 (floatunsdidf2_fcfidu): Ditto.
29091
29092 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29093
29094 * config/s390/s390.c (print_operand_address): Replace 'error' with
29095 'output_operand_lossage'.
29096 (print_operand): Likewise.
29097
29098 2011-01-13 Jeff Law <law@redhat.com>
29099
29100 PR rtl-optimization/39077
29101 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29102 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29103 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29104 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29105 * gcse.c (prune_insertions_deletions): New function.
29106 (compute_pre_data): Use it.
29107
29108 2011-01-13 Dodji Seketeli <dodji@redhat.com>
29109
29110 PR debug/PR46973
29111 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29112 static function.
29113 (prune_unused_types_mark): Use it.
29114
29115 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
29116
29117 PR rtl-optimization/45352
29118 * sel-sched.c: Update copyright years.
29119 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29120 in the advancing loop when we have issued issue_rate insns.
29121
29122 2011-01-12 Richard Henderson <rth@redhat.com>
29123
29124 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29125 (TARGET_MD_ASM_CLOBBERS): New.
29126
29127 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29128 (TARGET_DELEGITIMIZE_ADDRESS): New.
29129
29130 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29131 (clzsi2, *bsch): New patterns.
29132
29133 * config/mn10300/mn10300.md (INT): New mode iterator.
29134 (*mov<INT>_clr): New pattern, and peep2 to generate it.
29135
29136 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29137 flag_split_wide_types.
29138
29139 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29140 (mn10300_trampoline_init): Rewrite without a template, an immediate
29141 load and a direct branch.
29142 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29143
29144 2011-01-12 Anatoly Sokolov <aesok@post.ru>
29145
29146 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29147 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29148 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29149 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29150
29151 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
29152
29153 PR debug/47209
29154 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29155 of type.
29156
29157 2011-01-12 Jan Hubicka <jh@suse.cz>
29158
29159 PR driver/47244
29160 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29161 (PLUGIN_COND_CLOSE): New macro.
29162 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29163
29164 2011-01-12 Richard Guenther <rguenther@suse.de>
29165
29166 PR lto/47259
29167 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29168 register variables in a MEM_REF.
29169
29170 2011-01-12 Joseph Myers <joseph@codesourcery.com>
29171
29172 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29173 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29174 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29175 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29176 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29177 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29178 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29179 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29180 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29181 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29182 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29183 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29184 * config/gnu-user.h: New. Copied from linux.h.
29185 (LINUX_TARGET_STARTFILE_SPEC): Rename to
29186 GNU_USER_TARGET_STARTFILE_SPEC.
29187 (LINUX_TARGET_ENDFILE_SPEC): Rename to
29188 GNU_USER_TARGET_ENDFILE_SPEC.
29189 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29190 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29191 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29192 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29193 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29194 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29195 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29196 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29197 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29198 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29199 * config/arm/linux-eabi.h (CC1_SPEC): Use
29200 GNU_USER_TARGET_CC1_SPEC.
29201 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29202 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29203 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29204 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29205 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29206 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29207 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29208 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29209
29210 2011-01-12 Richard Guenther <rguenther@suse.de>
29211
29212 PR other/46946
29213 * doc/invoke.texi (ffast-math): Document it is turned on
29214 with -Ofast.
29215
29216 2011-01-12 Jan Hubicka <jh@suse.cz>
29217
29218 PR tree-optimization/47233
29219 * opts.c (common_handle_option): Disable ipa-reference with profile
29220 feedback.
29221
29222 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29223
29224 * c-parser.c (c_parser_objc_at_property_declaration): Improved
29225 error message.
29226
29227 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
29228
29229 * c-parser.c (c_lex_one_token): Updated and reindented some
29230 comments. No changes in code.
29231
29232 2011-01-11 Ian Lance Taylor <iant@google.com>
29233
29234 * godump.c (go_output_var): Don't output the variable if there is
29235 already a type with the same name.
29236
29237 2011-01-11 Ian Lance Taylor <iant@google.com>
29238
29239 * godump.c (go_format_type): Don't generate float80.
29240
29241 2011-01-11 Richard Henderson <rth@redhat.com>
29242
29243 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29244 declaration. Rewrite for both speed and size.
29245 (mn10300_address_cost_1): Remove.
29246 (mn10300_register_move_cost): New.
29247 (mn10300_memory_move_cost): New.
29248 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
29249 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
29250 extensions, shifts, BSWAP, CLZ.
29251 (mn10300_wide_const_load_uses_clr): Remove.
29252 (TARGET_REGISTER_MOVE_COST): New.
29253 (TARGET_MEMORY_MOVE_COST): New.
29254 * config/mn10300/mn10300-protos.h: Update.
29255 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29256
29257 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29258 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29259 * config/mn10300/mn10300-protos.h: Update.
29260 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29261 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29262 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29263 (*test_int_bitfield, *test_byte_bitfield): Remove.
29264 (*bit_test, *subreg_bit_test): Remove.
29265 * config/mn10300/predicates.md (const_8bit_operand): Remove.
29266
29267 * config/mn10300/constraints.md ("c"): Rename from "A".
29268 ("A", "D"): New constraint letters.
29269 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29270 (fmssf4, fnmasf4, fnmssf4): Likewise.
29271
29272 * config/mn10300/mn10300.md (isa): New attribute.
29273 (enabled): New attribute.
29274
29275 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29276 (abssf2, negsf2): Define only for hardware fp.
29277 (sqrtsf2): Reformat.
29278 (addsf3, subsf3, mulsf3): Merge expander and insn.
29279
29280 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29281 (DEBUGGER_AUTO_OFFSET): Remove.
29282 (DEBUGGER_ARG_OFFSET): Remove.
29283
29284 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29285 Emit register stores with the same offsets as the hardware.
29286 (mn10300_store_multiple_operation): Don't check that the register
29287 save offsets are monotonic.
29288 * config/mn10300/mn10300-protos.h: Update.
29289
29290 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29291
29292 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29293 in terms of the value on the stack, not the MDR register.
29294
29295 2011-01-11 Jan Hubicka <jh@suse.cz>
29296
29297 PR lto/45721
29298 PR lto/45375
29299 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29300 (symbol_alias_set_destroy, symbol_alias_set_contains,
29301 propagate_aliases_backward): Declare.
29302 * lto-streamer-out.c (struct sets): New sturcture.
29303 (trivally_defined_alias): New function.
29304 (output_alias_pair_p): Rewrite.
29305 (output_unreferenced_globals): Fix output of alias pairs.
29306 (produce_symtab): Likewise.
29307 * ipa.c (function_and_variable_visibility): Set weak alias destination
29308 as needed in lto.
29309 * varasm.c (symbol_alias_set_t): Remove.
29310 (symbol_alias_set_destroy): Export.
29311 (propagate_aliases_forward, propagate_aliases_backward): New functions
29312 based on ...
29313 (compute_visible_aliases): ... this one; remove.
29314 (trivially_visible_alias): New
29315 (trivially_defined_alias): New.
29316 (remove_unreachable_alias_pairs): Rewrite.
29317 (finish_aliases_1): Reorganize code checking if alias is defined.
29318 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29319 in LTO mode.
29320
29321 2011-01-11 Richard Guenther <rguenther@suse.de>
29322
29323 PR tree-optimization/46076
29324 * tree-ssa.c (useless_type_conversion_p): Conversions from
29325 unprototyped to empty argument list function types are useless.
29326
29327 2011-01-11 Richard Guenther <rguenther@suse.de>
29328
29329 PR middle-end/45235
29330 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29331 volatile MEMs as MEM_READONLY_P.
29332
29333 2011-01-11 Richard Guenther <rguenther@suse.de>
29334
29335 PR tree-optimization/47239
29336 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29337
29338 2011-01-11 Jeff Law <law@redhat.com>
29339
29340 PR tree-optimization/47086
29341 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29342 IVs from statements that might throw.
29343
29344 2011-01-10 Jan Hubicka <jh@suse.cz>
29345
29346 PR lto/45375
29347 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29348
29349 2011-01-10 Jan Hubicka <jh@suse.cz>
29350
29351 PR lto/45375
29352 * profile.c (read_profile_edge_counts): Ignore profile inconistency
29353 when correcting profile.
29354
29355 2011-01-10 Jan Hubicka <jh@suse.cz>
29356
29357 PR lto/46083
29358 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29359 DECL_FINI_PRIORITY.
29360 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29361 Restore DECL_FINI_PRIORITY.
29362
29363 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29364
29365 * doc/gimple.texi: Fix quoting of multi-word return values in
29366 @deftypefn statements. Ensure presence of return value. Wrap
29367 overlong @deftypefn lines.
29368 (is_gimple_operand, is_gimple_min_invariant_address): Remove
29369 descriptions of removed functions.
29370 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29371 of multi-word return value in @deftypefn statement.
29372
29373 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29374
29375 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29376 (Conditional Expressions, Logical Operators)
29377 (Statement and operand traversals): Do not indent smallexample
29378 code. Fix duplicate function argument in example.
29379
29380 2011-01-10 Jeff Law <law@redhat.com>
29381
29382 PR tree-optimization/47141
29383 * ipa-split.c (split_function): Handle case where we are
29384 returning a value and the return block has a virtual operand phi.
29385
29386 2011-01-10 Jan Hubicka <jh@suse.cz>
29387
29388 PR tree-optimization/47234
29389 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29390 (pass_feedback_split_functions): Declare.
29391 * passes.c (init_optimization_passes): Add ipa-split as subpass of
29392 tree-profile.
29393 * ipa-split.c (gate_split_functions): Update comments; disable
29394 split-functions for profile_arc_flag and branch_probabilities.
29395 (gate_feedback_split_functions): New function.
29396 (execute_feedback_split_functions): New function.
29397 (pass_feedback_split_functions): New global var.
29398
29399 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
29400
29401 PR lto/46760
29402 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29403 calling gimple_call_set_cannot_inline.
29404
29405 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
29406
29407 * config/darwin-sections.def: Remove unused section.
29408
29409 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
29410
29411 PR c++/47218
29412 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29413
29414 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
29415
29416 PR objc/47232
29417 * c-parser.c (c_parser_declaration_or_fndef): Improved
29418 error message.
29419
29420 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
29421
29422 * config/i386/winnt.c (i386_pe_start_function): Make sure
29423 to switch back to function's section.
29424
29425 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
29426
29427 PR gcc/46902
29428 PR testsuite/46912
29429 * plugin.c: Move include of dlfcn.h from here...
29430 * system.h: ... to here.
29431
29432 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29433
29434 * doc/cpp.texi (C++ Named Operators): Fix markup for header
29435 file name.
29436 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29437 two extra empty pages in PDF output.
29438
29439 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
29440
29441 PR objc/47078
29442 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29443 for error recovery purposes behave as if it was not specified so
29444 that the default type is usd.
29445
29446 2011-01-07 Jan Hubicka <jh@suse.cz>
29447
29448 PR tree-optmization/46469
29449 * ipa.c (function_and_variable_visibility): Clear needed flags on
29450 nodes with external decls; handle weakrefs merging correctly.
29451
29452 2011-01-07 Joseph Myers <joseph@codesourcery.com>
29453
29454 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29455 not false.
29456
29457 2011-01-07 Jan Hubicka <jh@suse.cz>
29458
29459 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29460 and no longer claim that gold is required for linker plugin.
29461 * configure: Regenerate.
29462 * gcc.c (PLUGIN_COND): New macro.
29463 (LINK_COMMAND_SPEC): Use it.
29464 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29465 * config.in (HAVE_LTO_PLUGIN): New.
29466 * configure.ac (--with-lto-plugin): New parameter; autodetect
29467 HAVE_LTO_PLUGIN.
29468
29469 2011-01-07 Jan Hubicka <jh@suse.cz>
29470
29471 PR tree-optimization/46367
29472 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29473 when we can update original.
29474 (cgraph_mark_inline_edge): Sanity check.
29475 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29476
29477 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29478
29479 * config/spu/spu.h (ASM_COMMENT_START): Define.
29480
29481 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
29482
29483 PR driver/42445
29484 * gcc.c (%>S): New.
29485 (SWITCH_KEEP_FOR_GCC): Likewise.
29486 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29487 (do_spec_1): Handle "%>".
29488
29489 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29490
29491 2011-01-07 Jakub Jelinek <jakub@redhat.com>
29492
29493 PR target/47201
29494 * config/i386/i386.c (ix86_delegitimize_address): If
29495 simplify_gen_subreg fails, return orig_x.
29496
29497 PR bootstrap/47187
29498 * value-prof.c (gimple_stringop_fixed_value): Handle
29499 lhs of the call properly.
29500
29501 2011-01-07 Jan Hubicka <jh@suse.cz>
29502
29503 PR lto/45375
29504 * lto-opt.c (lto_reissue_options): Set flag_shlib.
29505
29506 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29507
29508 * target.def (function_switched_text_sections): New hook.
29509 * doc/tm.texi: Regenerated.
29510 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29511 * final.c (default_function_switched_text_sections): New.
29512 (final_scan_insn): Call function_switched_text_sections when a
29513 mid-function section change occurs.
29514 * output.h (default_function_switched_text_sections): Declare.
29515 * config/darwin-protos.h (darwin_function_switched_text_sections):
29516 Likewise.
29517 * config/darwin.c (darwin_function_switched_text_sections): New.
29518 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29519
29520 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
29521
29522 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
29523 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
29524 the secondary code fragment when outputting for DWARF == 2.
29525
29526 2011-01-07 Anatoly Sokolov <aesok@post.ru>
29527
29528 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29529 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29530 Remove.
29531 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29532 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29533
29534 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
29535
29536 PR debug/46704
29537 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29538 when it is not empty.
29539
29540 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
29541
29542 Bobcat Enablement
29543 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29544 (case ${target}): Add btver1.
29545 * config/i386/driver-i386.c (host_detect_local_cpu): Let
29546 -march=native recognize btver1 processors.
29547 * config/i386/i386-c.c (ix86_target_macros_internal): Add
29548 btver1 def_and_undef
29549 * config/i386/i386.c (struct processor_costs btver1_cost): New
29550 btver1 cost table.
29551 (m_BTVER1): New definition.
29552 (m_AMD_MULTIPLE): Includes m_BTVER1.
29553 (initial_ix86_tune_features): Add btver1 tune.
29554 (processor_target_table): Add btver1 entry.
29555 (static const char *const cpu_names): Add btver1 entry.
29556 (software_prefetching_beneficial_p): Add btver1.
29557 (ix86_option_override_internal): Add btver1 instruction sets.
29558 (ix86_issue_rate): Add btver1.
29559 (ix86_adjust_cost): Add btver1.
29560 * config/i386/i386.h (TARGET_BTVER1): New definition.
29561 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29562 (enum processor_type): Add PROCESSOR_BTVER1.
29563 * config/i386/i386.md (define_attr "cpu"): Add btver1.
29564
29565 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29566
29567 PR target/43309
29568 * config/i386/i386.c (legitimize_tls_address)
29569 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29570 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29571 (tls_initial_exec_64_sun): New pattern.
29572
29573 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
29574
29575 * doc/invoke.texi (Overall Options): Improve wording and markup
29576 of the description of -wrapper.
29577
29578 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29579
29580 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29581 rdynamic, threads): New Driver options.
29582
29583 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29584
29585 PR target/38118
29586 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29587 if coming from .tdata.
29588 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29589
29590 2011-01-06 Jan Hubicka <jh@suse.cz>
29591
29592 PR lto/47188
29593 * collect2.c (main): Do not enable LTOmode when plugin is active.
29594
29595 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29596
29597 PR other/45915
29598 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29599 --version output if supported.
29600 * configure: Regenerate.
29601
29602 2011-01-06 Joseph Myers <joseph@codesourcery.com>
29603
29604 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29605 Driver options.
29606
29607 2011-01-06 Jakub Jelinek <jakub@redhat.com>
29608
29609 PR c/47150
29610 * c-convert.c (convert): When converting a complex expression
29611 other than COMPLEX_EXPR to a different complex type, ensure
29612 c_save_expr is called instead of save_expr, unless in_late_binary_op.
29613 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29614 when converting COMPLEX_TYPE.
29615
29616 2011-01-06 Ira Rosen <irar@il.ibm.com>
29617
29618 PR tree-optimization/47139
29619 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29620 only the last reduction value is used outside the loop. Update
29621 documentation.
29622
29623 2011-01-05 Joseph Myers <joseph@codesourcery.com>
29624
29625 * config/rtems.opt: New.
29626 * config.gcc (*-*-rtems*): Use rtems.opt.
29627
29628 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
29629
29630 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29631 processors do not support 3DNow instructions.
29632
29633 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29634
29635 * config/spu/spu.c (spu_option_override): Set parameter
29636 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29637
29638 2011-01-05 Jan Hubicka <jh@suse.cz>
29639
29640 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29641 at the command line.
29642
29643 2011-01-05 Martin Jambor <mjambor@suse.cz>
29644
29645 PR lto/47162
29646 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29647 deltas on streamed outgoing edges.
29648 (output_node_opt_summary): Output info for outgoing edges only when
29649 the node is in new parameter set.
29650 (output_cgraph_opt_summary): New parameter set, passed to the two
29651 aforementioned functions. Update its forward declaration and its
29652 callee too.
29653
29654 2011-01-05 Tom Tromey <tromey@redhat.com>
29655
29656 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29657 operator to c_finish_omp_atomic.
29658 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29659 (build_unary_op): Update.
29660 (build_modify_expr): Update.
29661 (build_asm_expr): Update.
29662
29663 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29664
29665 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29666 newly inserted insns.
29667 (pad_bb): Likewise.
29668 (spu_emit_branch_hint): Likewise.
29669 (insert_hbrp_for_ilb_runout): Likewise.
29670 (spu_machine_dependent_reorg): Call df_finish_pass after
29671 schedule_insns returns.
29672
29673 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29674
29675 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29676
29677 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
29678
29679 PR tree-optimization/47005
29680 * tree-sra.c (struct access): Add 'non_addressable' bit.
29681 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29682 (decide_one_param_reduction): Return 0 if the parameter is passed by
29683 reference and one of the accesses in the group is non_addressable.
29684
29685 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29686
29687 PR tree-optimization/47056
29688 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29689 (mark_load): Likewise. Handle FUNCTION_DECL specially.
29690 (mark_store): Likewise. Pass STMT to ipa_record_reference.
29691
29692 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
29693
29694 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29695 initializer. Skip view conversions from aggregate types.
29696
29697 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
29698
29699 PR bootstrap/47055
29700 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29701
29702 2011-01-04 Philipp Thomas <pth@suse.de>
29703
29704 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29705 obvious typo.
29706
29707 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29708
29709 * function.c (thread_prologue_and_epilogue_insns): Do not crash
29710 on empty epilogue sequences.
29711
29712 2011-01-04 Joseph Myers <joseph@codesourcery.com>
29713
29714 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29715 non-static): New Driver options.
29716
29717 2011-01-04 Jie Zhang <jie@codesourcery.com>
29718
29719 PR driver/47137
29720 * gcc.c (default_compilers[]): Set combinable field to 0
29721 for all assembly languages.
29722
29723 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
29724
29725 * config/mips/loongson3a.md: New file.
29726 * config/mips/mips.md: Include loongson3a.md.
29727 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29728 TUNE_LOONGSON_3A.
29729
29730 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
29731
29732 PR middle-end/47017
29733 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29734 instead of convert_memory_address_addr_space on the base expression.
29735
29736 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29737
29738 * config/spu/spu.c (spu_option_override): Update error text
29739 for bad -march= / -mtune= values.
29740
29741 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29742
29743 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29744 if branch-hint optimization will be performed.
29745
29746 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29747
29748 PR tree-optimization/47148
29749 * ipa-split.c (split_function): Convert arguments to
29750 DECL_ARG_TYPE if possible.
29751
29752 PR tree-optimization/47155
29753 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29754 when computing uns.
29755
29756 PR rtl-optimization/47157
29757 * combine.c (try_combine): If undobuf.other_insn becomes
29758 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29759 and set *new_direct_jump_p too.
29760
29761 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
29762
29763 PR tree-optimization/47021
29764 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29765
29766 2011-01-03 Jakub Jelinek <jakub@redhat.com>
29767
29768 * gcc.c (process_command): Update copyright notice dates.
29769 * gcov.c (print_version): Likewise.
29770 * gcov-dump.c (print_version): Likewise.
29771 * mips-tfile.c (main): Likewise.
29772 * mips-tdump.c (main): Likewise.
29773
29774 2011-01-03 Martin Jambor <mjambor@suse.cz>
29775
29776 PR tree-optimization/46801
29777 * tree-sra.c (type_internals_preclude_sra_p): Check whether
29778 aggregate fields start at byte boundary instead of the bit-field flag.
29779
29780 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
29781
29782 PR driver/47137
29783 * gcc.c (main): Revert revision 168407.
29784
29785 2011-01-03 Martin Jambor <mjambor@suse.cz>
29786
29787 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29788
29789 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29790
29791 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29792 vector optab to expand vector/scalar shift, update gimple to vector.
29793
29794 2011-01-03 Martin Jambor <mjambor@suse.cz>
29795
29796 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29797 a thunk.
29798
29799 2011-01-03 Martin Jambor <mjambor@suse.cz>
29800
29801 PR tree-optimization/46984
29802 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29803 HOST_WIDE_INT.
29804 (cgraph_create_indirect_edge): Fixed line length.
29805 (cgraph_indirect_call_info): Declare.
29806 (cgraph_make_edge_direct) Update declaration.
29807 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29808 (cgraph_create_indirect_edge): Use it.
29809 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
29810 callees.
29811 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29812 the new thunk_delta representation.
29813 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29814 HOST_WIDE_INT.
29815 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29816 (ipa_read_indirect_edge_info): Likewise.
29817 * lto-cgraph.c (output_edge_opt_summary): New function.
29818 (output_node_opt_summary): Call it on all outgoing edges.
29819 (input_edge_opt_summary): New function.
29820 (input_node_opt_summary): Call it on all outgoing edges.
29821
29822 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
29823
29824 PR driver/47137
29825 * gcc.c (main): Don't check have_o when settting combine_inputs.
29826
29827 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
29828
29829 * regrename.c: Add general comment describing the pass.
29830 (struct du_head): Remove 'length' field.
29831 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29832 (regrename_optimize): Do not sort chains. Rework comments, add others.
29833 Force renaming to the preferred class (if any) in the first pass and do
29834 not consider registers that belong to it in the second pass.
29835 (create_new_chain): Do not set 'length' field.
29836 (scan_rtx_reg): Likewise.
29837
29838 2011-01-02 Jakub Jelinek <jakub@redhat.com>
29839
29840 PR tree-optimization/47140
29841 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29842 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29843 to bit_value_binop.
29844
29845 PR rtl-optimization/47028
29846 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29847 parm_birth_insn instead of at the beginning of first bb.
29848
29849 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
29850
29851 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29852 Remove the word "see" before "@pxref".
29853 * doc/rtl.texi: Remove the word "see" before "@pxref".
29854
29855 2011-01-01 Jan Hubicka <jh@suse.cz>
29856
29857 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29858 memory.
29859
29860 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
29861
29862 PR target/38662
29863 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29864
29865 \f
29866 Copyright (C) 2011 Free Software Foundation, Inc.
29867
29868 Copying and distribution of this file, with or without modification,
29869 are permitted in any medium without royalty provided the copyright
29870 notice and this notice are preserved.