Check if MASK_/TARGET_ macros defined for extra_masks
[gcc.git] / gcc / ChangeLog
1 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR bootstrap/52878
4 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
5 extra_masks.
6
7 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
8
9 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
10 (*addsi_2_zext): Ditto.
11 (*add<mode>_3): Ditto.
12 (*addsi_3_zext): Ditto.
13 (*add<mode>_5): Ditto.
14
15 2012-04-23 Andrew Pinski <apinski@cavium.com>
16
17 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
18 (C & B) to (A OP0) & B.
19
20 2012-04-23 Martin Jambor <mjambor@suse.cz>
21
22 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
23 temporaries created for a bitfield (reverting revision 122014).
24
25 2012-04-23 Richard Guenther <rguenther@suse.de>
26
27 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
28 the condition using is_gimple_condexpr and avoid the not necessary
29 boolification.
30 (set_prologue_iterations): Likewise.
31 (vect_loop_versioning): Likewise.
32
33 2012-04-23 Richard Guenther <rguenther@suse.de>
34
35 PR tree-optimization/53070
36 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
37 (main_tree_if_conversion): Verify we succeeded in that.
38
39 2012-04-23 Jan Hubicka <jh@suse.cz>
40
41 * lto-symtab.c (lto_cgraph_replace_node): Do not call
42 mark_reahcable_node.
43 * cgraph.c (cgraph_remove_node): Do not clear reachable.
44 (cgraph_mark_reachable_node): Remove.
45 (cgraph_mark_force_output_node): Do not set reachable.
46 (dump_cgraph_node): Do not dump reachable.
47 (cgraph_create_virtual_clone): Do not set reachable.
48 * cgraph.h (cgraph_node): Remove reachable flag.
49 (varpool_node): Remove reachable flag.
50 (cgraph_mark_if_needed): Remove.
51 (cgraph_mark_reachable_node): Remove.
52 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
53 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
54 reachable.
55 (cgraph_add_new_function): Likewise.
56 (cgraph_mark_if_needed): Remove.
57 (cgraph_analyze_function): Do not set target as reachable.
58 (process_function_and_variable_attributes): Do not care about
59 dllexport.
60 (cgraph_analyze_functions): Do not set reachable flags.
61 (cgraph_mark_functions_to_output): Do not check reachability.
62 (cgraph_copy_node_for_versioning): Do not set reachable flag.
63 (dbxout_expand_expr): Update.
64 * c-decl.c (merge_decls): Do not track changed externs.
65 * ipa.c: Include pointer-set.h
66 (enqueue_cgraph_node): Use reachable pointer set.
67 (process_references): Likewise.
68 (cgraph_remove_unreachable_nodes): Likewise.
69 (whole_program_function_and_variable_visibility): Do not recompute
70 reachable.
71 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
72
73 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
74
75 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
76
77 2012-04-23 Richard Guenther <rguenther@suse.de>
78
79 PR c/53060
80 * c-typeck.c (build_binary_op): Fix typo.
81
82 2012-04-23 Jakub Jelinek <jakub@redhat.com>
83
84 PR tree-optimizations/52891
85 * tree-vect-patterns.c (adjust_bool_pattern): Use
86 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
87 but with non-standard precision.
88
89 2012-04-22 Jan Hubicka <jh@suse.cz>
90
91 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
92 tree refs.
93
94 2012-04-22 Jan Hubicka <jh@suse.cz>
95
96 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
97 * cgraphbuild.c (record_reference, record_type_list, mark_address,
98 mark_load, mark_store): Do not mark varpool nodes as needed.
99 * cgraph.c (cgraph_new_nodes): Remove.
100 (cgraph_create_function_alias): Do not mark nodes as reachable.
101 (cgraph_add_thunk): Likewise.
102 (cgraph_mark_reachable_node): Do not manage the queue.
103 * cgraph.h (cgraph_node): Remove next_needed.
104 (varpool_nodes_queue): Remove next_needed and prev_needed.
105 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
106 (cgraph_new_nodes): Declare.
107 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
108 (varpool_analyze_pending_decls): Remove.
109 (varpool_analyze_node): New.
110 (varpool_mark_needed_node): Remove.
111 (varpool_first_variable, varpool_next_variable): New inlines.
112 (varpool_first_static_initializer, varpool_next_static_initializer):
113 Update.
114 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
115 (varpool_first_defined_variable): New inline.
116 (varpool_next_defined_variable): New inline
117 (FOR_EACH_VARIABLE): Reimplement.
118 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
119 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
120 needed flag.
121 * cgraphunit.c (cgraph_new_nodes): Declare here.
122 (enqueue_node): New function.
123 (cgraph_process_new_functions): update for new
124 node set; when constructing cgraph enqueue node for processing.
125 (cgraph_add_new_function): Use new node set.
126 (process_function_and_variable_attributes): Do not set varpool needed
127 flags.
128 (referred_to_p): New function.
129 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
130 when varpool is in construction.
131 (cgraph_analyze_functions): Rewrite.
132 (cgraph_expand_all_functions): Update.
133 (cgraph_output_in_order): Do not analyze pending decls; do not set
134 needed flags.
135 (cgraph_optimize): Do not analyze pending decls.
136 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
137 in other partition; do not mark node as needed.
138 * dwarf2out.c (reference_to_unused): Use analyzed flag.
139 (premark_types_used_by_global_vars_helper): Likewise.
140 * ipa.c (process_references): Do not call varpool_mark_needed_node.
141 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
142 cgrpah queues.
143 (function_and_variable_visibility): Do not mark node as needed.
144 (whole_program_function_and_variable_visibility): Likewise.
145 * Makefile.in (gt-varpool.h): No longer needed.
146 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
147 (ipa_write_summaries): Do not use needed flag.
148 * varpool.c: Do not include gt-varpool.h
149 (x_varpool_nodes_queue, x_varpool_last_needed_node,
150 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
151 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
152 Remove.
153 (varpool_remove_node): Do not update the lists.
154 (dump_varpool_node): Do not dump needed flag.
155 (varpool_enqueue_needed_node): Remove.
156 (varpool_mark_needed_node): Remove.
157 (varpool_reset_queue): Remove.
158 (varpool_finalize_decl): Move to cgraphunit.c
159 (varpool_analyze_node): New functions based on former
160 varpool_analyze_pending_decls.
161 (varpool_analyze_pending_decls): Remove.
162 (varpool_assemble_decl): Do not update the lists.
163 (enqueue_node): New function.
164 (varpool_remove_unreferenced_decls): Rewrite.
165 (varpool_empty_needed_queue): Remove.
166 (add_new_static_var): Do not mark node as needed.
167 (varpool_create_variable_alias): Handle expansion state
168 creation.
169 * except.c (output_ttype): Do not mark node as needed.
170 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
171 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
172 Likewise.
173 * tree-switch-conversion.c (build_one_array): Likewise.
174
175 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
176
177 PR c/44774
178 * doc/invoke.texi (pedantic): Rename to Wpedantic.
179 * common.opt (Wpedantic): New.
180 (pedantic): Alias Wpedantic.
181 * diagnostic.c (warning_at): Likewise.
182 * c-decl.c (diagnose_mismatched_decls): Likewise.
183 (build_array_declarator): Likewise.
184 (mark_forward_parm_decls):
185 (check_bitfield_type_and_width): Likewise.
186 (grokdeclarator): Likewise.
187 (grokfield): Likewise.
188 (finish_struct): Likewise.
189 (build_enumerator): Likewise.
190 (store_parm_decls_oldstyle): Likewise.
191 (declspecs_add_qual): Likewise.
192 (declspecs_add_type): Likewise.
193 (finish_declspecs): Likewise.
194 * c-typeck.c (composite_type): Likewise.
195 (comp_target_types): Likewise.
196 (build_array_ref): Likewise.
197 (pointer_diff): Likewise.
198 (build_unary_op): Likewise.
199 (build_conditional_expr): Likewise.
200 (build_c_cast): Likewise.
201 (convert_for_assignment): Likewise.
202 (maybe_warn_string_init): Likewise.
203 (digest_init): Likewise.
204 (pop_init_level): Likewise.
205 (set_init_index): Likewise.
206 (c_finish_goto_label): Likewise.
207 (c_finish_return): Likewise.
208 (do_case): Likewise.
209 (build_binary_op): Likewise.
210 * c-parser.c (static): Likewise.
211 (c_parser_external_declaration): Likewise.
212 (c_parser_declaration_or_fndef): Likewise.
213 (c_parser_static_assert_declaration_no_se): Likewise.
214 (c_parser_enum_specifier): Likewise.
215 (c_parser_struct_or_union_specifier): Likewise.
216 (c_parser_struct_declaration): Likewise.
217 (c_parser_alignas_specifier): Likewise.
218 (c_parser_braced_init): Likewise.
219 (c_parser_initelt): Likewise.
220 (c_parser_compound_statement_nostart): Likewise.
221 (c_parser_conditional_expression): Likewise.
222 (c_parser_alignof_expression): Likewise.
223 (c_parser_postfix_expression): Likewise.
224 (c_parser_postfix_expression_after_paren_): Likewise.
225 (c_parser_objc_class_instance_variables): Likewise.
226 (c_parser_objc_method_definition): Likewise.
227 (c_parser_objc_methodprotolist): Likewise.
228
229 2012-04-22 Ian Lance Taylor <iant@google.com>
230
231 * godump.c (go_output_typedef): Dump size of structs.
232
233 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
234
235 Correcting transform_to_exit_first_loop + fix to PR46886
236 * tree-parloops.c (transform_to_exit_first_loop): Remove
237 setting of number of iterations according to the loop pattern.
238 Duplicate from entry to exit->src instead of loop->latch.
239 (pallelize_loops): Remove the condition preventing do-while loops.
240 * tree-cfg.c (bool bb_in_region_p): New.
241 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
242 Adjust redirection of the duplicated iteration.
243
244 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
245
246 PR bootstrap/53021
247 * rtl.def (ADDRESS): Use "i" rather than "w".
248 * rtl.h (find_base_term): Delete.
249 (may_be_sp_based_p): Declare.
250 * rtl.c (rtx_code_size): Remove ADDRESS special case.
251 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
252 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
253 * alias.c: ...here.
254 (find_base_term): Make static.
255 (may_be_sp_based_p): New function.
256 * dse.c (record_store): Use it.
257 * store-motion.c (store_killed_in_insn): Likewise.
258
259 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
260
261 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
262
263 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
264
265 PR 35441
266 * c-typeck.c (inform_declaration): New.
267 (build_function_call_vec): Do not pretty-print
268 expressions when caret is enabled.
269 (convert_arguments): Use inform_declaration.
270
271 2012-04-20 Jim Meyering <meyering@redhat.com>
272
273 * genmodes.c (make_complex_modes): Don't truncate a mode name of
274 length 7 or more when prepending a "C". Suggested by Richard Guenther.
275
276 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
277
278 PR rtl-optimization/44214
279 * fold-const.c (exact_inverse): New function.
280 (fold_binary_loc): Fold vector and complex division by constant into
281 multiply by recripocal with flag_reciprocal_math; fold vector division
282 by constant into multiply by reciprocal with exact inverse.
283
284 2012-04-20 Jan Hubicka <jh@suse.cz>
285
286 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
287 force flags.
288 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
289 (cgraph_remove_node): Update.
290 (cgraph_mark_needed_node): Remove.
291 (cgraph_mark_force_output_node): New.
292 (dump_cgraph_node): Do not dump needed flag.
293 (cgraph_node_cannot_be_local_p_1): Update.
294 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
295 * cgraph.h (symtab_node_base): Add force_output flag.
296 (cgraph_node): Remove needed flag.
297 (varpool_node): Remove force_output flag.
298 (cgraph_mark_needed_node): Remove.
299 (cgraph_mark_force_output_node): New.
300 (cgraph_only_called_directly_or_aliased_p,
301 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
302 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
303 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
304 (cgraph_add_new_function): Update.
305 (cgraph_mark_if_needed): Update.
306 (verify_cgraph_node): Update.
307 (cgraph_analyze_function): Alias target is reachable.
308 (process_function_and_variable_attributes): Update: externally_visible
309 flag makes function reachable.
310 (cgraph_analyze_functions): Update dumping.
311 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
312 input_overwrite_node, input_varpool_node): Update streaming.
313 * lto-streamer-out.c (produce_symtab): Use force_output.
314 * ipa.c (process_references): Weakrefs must be processed.
315 (cgraph_remove_unreachable_nodes): Likewise; update for new
316 force_output flag.
317 (varpool_externally_visible_p): Weakrefs are externally visible
318 even if they are not.
319 (function_and_variable_visibility): Update; when processing alias
320 pair force the targets to be output.
321 (whole_program_function_and_variable_visility): Use
322 mark_reachable_node.
323 * trans-mem.c (ipa_tm_mark_needed_node): Remove
324 (ipa_tm_mark_force_output_node): New function.
325 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
326 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
327 aliases.
328 * varasm.c (mark_decl_referenced): Update.
329 (find_decl_and_mark_needed): Remove.
330 (find_decl): New function.
331 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
332 alias targets as needed.
333 (dump_tm_clone_pairs): Update.
334 * tree-inline.c (copy_bb): Update check.
335 * symtab.c (dump_symtab_base): Dump force_output.
336 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
337 * passes.c (execute_todo): Fix dumping.
338 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
339 (varpool_analyze_pending_decls): Alias target is reachable.
340 (varpool_create_variable_alias): Finalize weakrefs.
341
342 2012-04-20 Jakub Jelinek <jakub@redhat.com>
343
344 PR bootstrap/53021
345 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
346 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
347 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
348 macros instead of constants.
349 * dse.c (record_store): Check for SP ADDRESS by comparing
350 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
351 XEXP to be stack_pointer_rtx.
352
353 2012-04-20 Richard Guenther <rguenther@suse.de>
354
355 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
356 update_call_from_tree when propagating into a call.
357
358 2012-04-20 Alan Modra <amodra@gmail.com>
359
360 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
361 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
362 sp_offset to frame_off. Move world save code earlier.
363
364 2012-04-20 Richard Guenther <rguenther@suse.de>
365
366 PR tree-optimization/53050
367 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
368 Do only one transform on COND_EXPRs at the same time.
369
370 2012-04-19 Jan Hubicka <jh@suse.cz>
371
372 * symtab.c (dump_symtab_base): Revert accidental checkin.
373
374 2012-04-20 Alan Modra <amodra@gmail.com>
375
376 PR target/53040
377 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
378 static chain, set REST_INLINE_FPRS too.
379
380 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
381
382 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
383 nodes.
384
385 2012-04-20 Richard Guenther <rguenther@suse.de>
386
387 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
388 loops that can never run more often than the vectorization factor.
389
390 2012-04-19 Jan Hubicka <jh@suse.cz>
391
392 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
393
394 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
395
396 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
397
398 2012-04-19 Jim Meyering <meyering@redhat.com>
399
400 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
401 We verified above that the string(including trailing NUL) fits in buf,
402 so just use memcpy.
403
404 2012-04-19 Richard Guenther <rguenther@suse.de>
405
406 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
407 for dumping DECL_SECTION_NAME.
408
409 2012-04-19 Michael Matz <matz@suse.de>
410
411 PR middle-end/52977
412 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
413 (struct tree_vector): Adjust GTY length.
414 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
415
416 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
417 members.
418 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
419 caller emitted the length calulation already.
420 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
421 before handling any of the fields for structs.
422
423 2012-04-19 Richard Guenther <rguenther@suse.de>
424
425 PR tree-optimization/53031
426 * tree-vrp.c (adjust_range_with_scev): Revert back to
427 using max_loop_iterations.
428
429 2012-04-19 Michael Matz <matz@suse.de>
430
431 * diagnostic.c (emit_diagnostic): Move va_end call after user
432 of the va_list.
433 (warning, warning_at, pedwarn, permerror): Ditto.
434
435 2012-04-19 Richard Guenther <rguenther@suse.de>
436
437 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
438 array access.
439
440 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
441
442 PR target/53033
443 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
444 the case *(X+const).
445
446 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
447
448 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
449
450 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
451
452 PR c/52283/37985
453 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
454 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
455
456 2012-04-19 Richard Guenther <rguenther@suse.de>
457
458 PR rtl-optimization/44688
459 * loop-iv.c (determine_max_iter): Only return max_iter.
460 (iv_number_of_iterations): Also use the recorded loop bound
461 on the maximum number of iterations.
462 * loop-unroll.c (decide_unroll_runtime_iterations): Use
463 max_iter to avoid unrolling loops that do not roll.
464 (decide_unroll_stupid): Likewise.
465
466 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
467
468 * targhooks.c (default_case_values_threshold): Fix code style nit.
469
470 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
471 case range and type folding from here...
472 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
473 type, as documented in tree.def.
474
475 2012-04-18 Jan Hubicka <jh@suse.cz>
476
477 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
478 Declare.
479 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
480 cgraph hash and same comdat groups.
481 (cgraph_optimize): Verify symbol table.
482 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
483 (dissolve_same_comdat_group_list): Work on symtab nodes.
484 (function_and_variable_visibility): Dissolve variable same comdat group
485 lists, too.
486 * symtab.c: Include timevar.h
487 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
488
489 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
490
491 * tree-switch-conversion.c (info): Remove global pass info.
492 (check_range, check_process_case, check_final_bb, create_temp_arrays,
493 free_temp_arrays, gather_default_values, build_constructors,
494 array_value_type, build_one_array, build_arrays, gen_def_assigns,
495 fix_phi_nodes, gen_inbound_check): Pass info around from ...
496 (process_switch): ... here. Unify message format. Return a const
497 char pointer to the failure reason message.
498 (do_switchconv): Unify message format. Update process_switch usage.
499
500 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
501 * tree-cfg.c (edge_to_cases): Fix documentation.
502
503 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
504
505 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
506
507 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
508
509 PR tree-optimization/52976
510 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
511 (possibly_move_powi): New function.
512 (rewrite_expr_tree): Call possibly_move_powi.
513 (rewrite_expr_tree_parallel): Likewise.
514 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
515 call add_to_ops_vec instead.
516
517 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
518
519 PR tree-optimization/52976
520 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
521 (decrement_power): Likewise.
522 (propagate_op_to_single_use): Likewise.
523 (zero_one_operation): Handle __builtin_pow* calls in linearized
524 expression trees; factor logic into propagate_op_to_single_use.
525 (undistribute_ops_list): Allow operands with repeat counts > 1.
526
527 2012-04-18 Richard Guenther <rguenther@suse.de>
528
529 PR tree-optimization/44688
530 * cfgloop.h (record_niter_bound): Declare.
531 * tree-ssa-loop-niter.c (record_niter_bound): Export.
532 Update the estimation with the upper bound here...
533 (estimate_numbers_of_iterations_loop): ... instead of here.
534 Do not forcefully reset a recorded upper bound.
535 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
536 Record the maximum number of loop iterations of the prologue loop.
537
538 2012-04-18 Jan Hubicka <jh@suse.cz>
539
540 * lto-symtab.c (lto_cgraph_replace_node): Update.
541 * cgraphbuild.c (record_reference, record_type_list,
542 record_eh_tables, mark_address, mark_load, mark_store): Update.
543 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
544 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
545 Update.
546 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
547 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
548 * reload.c: Fix typo in comment.
549 * rtlanal.c: Likewise.
550 * tree-emultls.c (gen_emutls_addr): Update.
551 * ipa-reference.c (analyze_function): Update.
552 * cgraphunit.c (cgraph_analyze_function,
553 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
554 Update.
555 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
556 (ipa_remove_reference): Likewise.
557 (ipa_remove_all_refering): Rename to ...
558 (ipa_remove_all_referring): ... this one; update.
559 (ipa_dump_references): Update.
560 (ipa_dump_referring): Update.
561 (ipa_clone_references): Update.
562 (ipa_clone_refering): Rename to ...
563 (ipa_clone_referring): ... this one; update.
564 (ipa_ref_cannot_lead_to_return): Update.
565 (ipa_ref_has_aliases_p): Update.
566 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
567 forward typedefs.
568 (ipa_ref_type): Remove.
569 (ipa_ref_ptr_u): Remove.
570 (ipa_ref): Remove referencing, refered, refered_index, refering_type
571 and refered_type; add referring, referred and referred_index.
572 (ipa_ref_list): Rename refering to referring.
573 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
574 ipa_clone_references, ipa_clone_referring): Update prototypes.
575 * lto-cgraph.c (referenced_from_other_partition_p): Update.
576 (lto_output_ref): Update.
577 (add_references): Update.
578 (input_varpool_node): Update.
579 (input_refs): Update.
580 * ipa-ref-inline.h (ipa_ref_node): Update.
581 (ipa_ref_varpool_node): Update.
582 (ipa_ref_referring_node): Update.
583 (ipa_ref_referring_varpool_node): Update.
584 (ipa_ref_referring_ref_list): Update.
585 (ipa_ref_referred_ref_list): Update.
586 (ipa_ref_list_first_referring): Update.
587 (ipa_empty_ref_list): Update.
588 (ipa_ref_list_refering_iterate): Rename to ...
589 (ipa_ref_list_referring_iterate): ... this one.
590 * cse.c: Update comment.
591 * ipa-utils.c (ipa_reverse_postorder): Update.
592 * tree-ssa-alias.c: Update.
593 * ipa-inline.c (reset_edge_caches): Update.
594 (update_caller_keys): Update.
595 * ipa-inline.h: Update comments.
596 * jump.c: Update comment.
597 * alias.c: Likewise.
598 * ipa.c (process_references): Update.
599 (cgraph_remove_unreachable_nodes): Likewise.
600 (ipa_discover_readonly_nonaddressable_var): Likewise.
601 (cgraph_address_taken_from_non_vtable_p): Likewise.
602 * trans-mem.c (ipa_tm_execute): Update.
603 * simplify-rtx.c: Fix comment.
604 * rtl.c: Fix comment.
605 * symtab.c (symtab_unregister_node): Update.
606 * varpool.c (dump_varpool_node): Update.
607 (varpool_analyze_pending_decls): Update.
608 (assemble_aliases): Update.
609 (varpool_for_node_and_aliases): Update.
610
611 2012-04-18 Richard Guenther <rguenther@suse.de>
612
613 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
614 use_undefined_p parameter.
615 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
616 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
617 Likewise.
618 (estimate_numbers_of_iterations): Likewise.
619 (estimated_loop_iterations): Adjust.
620 (max_loop_iterations): Likewise.
621 (scev_probably_wraps_p): Likewise.
622 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
623 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
624 not max_loop_iterations.
625 (execute_vrp): Remove explicit number of iterations estimation.
626
627 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
628
629 * config/i386/linux-common.h: New.
630
631 * config.gcc: Add i386/linux-common.h before
632 all i386/linux.h and i386/linux64.h usages.
633
634 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
635 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
636 * config/i386/gnu-user64.h: Likewise.
637
638 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
639 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
640 (GNU_USER_TARGET_MATHFILE_SPEC): New.
641 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
642
643 2012-04-18 Jan Hubicka <jh@suse.cz>
644
645 * cgraph.c (cgraph_node_name): Remove.
646 (dump_cgraph_node): Use dump_symtab_base; reformat.
647 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
648 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
649 Declare.
650 (cgraph_node_name, varpool_node_name): Remove.
651 (cgraph_node_asm_name, varpool_node_asm_name,
652 cgraph_node_name, varpool_node_name): New.
653 * tree-pass.h (TODO_dump_cgraph): Rename to ...
654 (TODO_dump_symtab): ... this one.
655 * ipa-cp (pass_ipa_cp): Update.
656 * ia-reference.c (generate_summary, read_write_all_from_decl,
657 propagate, ipa_reference_read_optimization_summary): Update.
658 * cgraphunit.c (cgraph_analyze_functions): Update.
659 (cgraph_optimize): Update.
660 * ipa-ref.c (ipa_dump_references): Update.
661 (ipa_dump_refering): Update.
662 * ipa-inline.c (pass_ipa_inline): Update.
663 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
664 * ipa.c (pass_ipa_function_visibility,
665 pass_ipa_whole_program_visibility): Update.
666 * tree-sra.c (pass_early_ipa_sra): Update.
667 * symtab.c: Include langhooks.h
668 (symtab_node_asm_name): New.
669 (symtab_node_name): New.
670 (symtab_type_names): New static var.
671 (dump_symtab_base): New.
672 (dump_symtab_node, dump_symtab): New.
673 (debug_symtab_node, debug_symtab): New.
674 * tree-ssa-structalias.c: Dump symbol table.
675 * pases.c (execute_todo): Handle TODO_dump_symtab instead
676 of TODO_dump_cgraph.
677 * varpoo.c (varpool_node_name): Remove.
678 (dump_varpool_node): Use dump_symtab_base; reformat.
679
680 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
681
682 * doc/invoke.texi (Language Independent Options): @item should be
683 before @opindex.
684
685 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
686
687 PR bootstrap/53021
688 * rtl.c (rtx_code_size): Handle ADDRESS.
689
690 2012-04-17 Tom de Vries <tom@codesourcery.com>
691
692 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
693 is not a STMT_LIST.
694
695 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
696
697 PR target/53020
698 * config/i386/sync.md (atomic_<code><mode>): Rename to
699 atomic_<logic><mode>.
700
701 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
702
703 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
704 * alias.c (reg_base_value): Expand and update comment.
705 (arg_base_value): New variable.
706 (unique_id): Move up file.
707 (unique_base_value, unique_base_value_p, known_base_value_p): New.
708 (find_base_value): Use arg_base_value and known_base_value_p.
709 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
710 (find_base_term): Use known_base_value_p.
711 (base_alias_check): Use unique_base_value_p.
712 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
713 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
714
715 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
716
717 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
718
719 2012-04-17 Michael Matz <matz@suse.de>
720
721 PR tree-optimization/18437
722 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
723 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
724 (vect_check_strided_load): Declare.
725 * tree-vect-data-refs.c (vect_check_strided_load): New function.
726 (vect_analyze_data_refs): Use it to accept strided loads.
727 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
728
729 2012-04-17 Richard Guenther <rguenther@suse.de>
730
731 PR middle-end/53011
732 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
733 loops when redirecting an entry or latch edge.
734
735 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
736
737 * sel-sched.c (sel_global_init): Revert previous change.
738
739 2012-04-17 Richard Guenther <rguenther@suse.de>
740
741 * tree-flow.h (array_at_struct_end_p): Move declaration ...
742 * tree.h (array_at_struct_end_p): ... here.
743 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
744 * expr.c (array_at_struct_end_p): ... here. Rewrite.
745
746 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
747
748 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
749 COST_TABLE): Remove.
750 (estimate_case_costs): Remove.
751 (expand_case): Do not call estimate_case_costs
752 to set use_cost_table.
753 (balance_case_nodes): Do not use use_cost_table.
754
755 2012-04-16 Jan Hubicka <jh@suse.cz>
756
757 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
758 (hash_node, eq_node): Remove.
759 (cgraph_create_node): Do not handle hashtable.
760 (cgraph_get_node): Remove.
761 (cgraph_insert_node_to_hashtable): Remove.
762 (hash_node_by_assembler_name): Remove.
763 (eq_assembler_name): Remove.
764 (cgraph_node_for_asm): Rewrite.
765 (cgraph_find_replacement_node): Break out from ...
766 (cgraph_remove_node): ... here; do not maintain hashtables.
767 (change_decl_assembler_name): Remove.
768 (cgraph_clone_node): Do not maintain hashtables.
769 * cgraph.h (const_symtab_node): New typedef.
770 (cgraph_insert_node_to_hashtable): Remove.
771 (symtab_get_node, symtab_node_for_asm,
772 symtab_insert_node_to_hashtable): Declare.
773 (cgraph_find_replacement_node): Declare.
774 (cgraph_get_node, varpool_get_node): Turn into inlines.
775 (cgraph, varpool): Work sanely on NULL pointers.
776 (FOR_EACH_SYMBOL): New walker.
777 * ipa-inline-transform.c (save_inline_function_body): Use
778 symtab_insert_node_to_hashtable.
779 * symtab.c: Include ggc.h and diagnostics.h
780 (symtab_hash, assembler_name_hash): New static vars;
781 (hash_node, eq_node, hash_node_by_assembler_name,
782 eq_assembler_name, insert_to_assembler_name_hash,
783 unlink_from_assembler_name_hash): New.
784 (symtab_register_node): Update hashtables.
785 (symtab_insert_node_to_hashtable): New.
786 (symtab_unregister_node): Update hashtables.
787 (symtab_get_node): New.
788 (symtab_node_for_asm): New.
789 (change_decl_assembler_name): New.
790 * Makefile.in (symtab.o): Needs GTY.
791 * varpool.c (varpool_hash): Remove.
792 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
793 (varpool_node): Rewrite using varpool_get_node.
794 (varpool_remove_node): DO not maintain hashtables.
795 (varpool_node_for_asm): Rewrite.
796
797 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
798
799 * doc/invoke.texi: Copy-edit to put verbs in the present tense
800 when describing the current behavior of GCC.
801
802 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
803
804 * genemit.c (gen_exp): Remove ADDRESS handling.
805 * genoutput.c (scan_operands): Likewise.
806 * genpeep.c (match_rtx): Likewise.
807 * genrecog.c (add_to_sequence): Likewise.
808
809 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
810
811 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
812
813 2012-04-16 Martin Jambor <mjambor@suse.cz>
814
815 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
816 bit-fields.
817
818 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
819
820 PR target/51819
821 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
822 hints for 'A' operand types.
823
824 2012-04-16 Jan Hubicka <jh@suse.cz>
825
826 * cgraph.h (symtab_node_base): Add next and previous pointers.
827 (cgraph_node): Remove next and preivous pointers.
828 (varpool_node): Likewise; remove next/previous GTY marker;
829 it is not type safe.
830 (symtab_node_def): Update GTY marker
831 (x_cgraph_nodes, cgraph_nodes): Remove.
832 (symtab_nodes): New function.
833 (cgraph_order): Rename to ...
834 (symtab_order): ... this one.
835 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
836 Declare.
837 (x_varpool_nodes, varpool_nodes): Remove.
838 (FOR_EACH_STATIC_VARIABLE): Update.
839 (symtab_function_p, symtab_variable_p): New function.
840 (FOR_EACH_VARIABLE): Update.
841 (varpool_first_variable, varpool_next_variable): New functions.
842 (FOR_EACH_VARIABLE): Update.
843 (cgraph_first_defined_function): Update.
844 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
845 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
846 (cgraph_first_function, cgraph_next_function): New.
847 (FOR_EACH_FUNCTION): Update.
848 (cgraph_first_function_with_gimple_body,
849 cgraph_next_function_with_gimple_body): Update.
850 * symtab.c: New file.
851 * cgraph.c: Update copyright dates.
852 (x_cgraph_nodes, cgraph_order): Remove.
853 (NEXT_FREE_NODE): Update.
854 (SET_NEXT_FREE_NODE): New.
855 (cgraph_create_node_1): Remove common code.
856 (cgraph_create_node): Remove common code; call symtab_register_node.
857 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
858 (cgraph_add_asm_node): Update.
859 (cgraph_clone_node): Register new node.
860 * cgraphunit.c (process_function_and_variable_attributes): Update.
861 (cgraph_analyze_functions): Update.
862 (cgraph_analyze_functions): Update.
863 (cgraph_output_in_order): Update.
864 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
865 Update.
866 * ipa-inline.c (recursive_inlining): Update.
867 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
868 * ipa.c (cgraph_remove_unreachable_nodes): Update.
869 * Makefile.in: Add symtab.o
870 * varpool.c (x_varpool_nodes): Remove
871 (varpool_node): Remove common code; call symtab_register_node.
872 (varpool_remove_node): Remove common code; call symtab_unregister_node.
873
874 2012-04-16 Richard Guenther <rguenther@suse.de>
875
876 PR middle-end/52977
877 * tree.h (VECTOR_CST_NELTS): Adjust.
878 (struct tree_vector): Add explicit length field.
879 (make_vector_stat): Declare.
880 (make_vector): Define.
881 * tree.c (make_vector_stat): New function.
882 (build_vector_stat): Use it.
883 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
884
885 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
886
887 PR tree-optimization/52976
888 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
889 (undistribute_ops_list): Ops with repeat counts aren't eligible for
890 undistribution.
891 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
892
893 2012-04-16 Jan Hubicka <jh@suse.cz>
894
895 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
896 New macros.
897 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
898 walkers to walk cgraph and varpool.
899 * cgraph.c (cgraph_node_for_asm): Likewise.
900 (dump_cgraph): Likewise.
901 * value-prof.c (init_node_map): Likewise.
902 * tree.c (free_lang_data_in_cgraph): Likewise.
903 * tree-emutls.c: (ipa_lower_emutls): Likewise.
904 * ipa-reference.c (generate_summary, propagate): Likewise.
905 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
906 cgraph_mark_functions_to_output, cgraph_output_in_order,
907 output_weakrefs, cgraph_materialize_all_clones,
908 cgraph_optimize): Likewise.
909 * lto-cgraph.c (merge_profile_summaries): Likewise.
910 (input_cgraph): Likewise.
911 * ipa-pure-const.c (generate_summary): Likewise.
912 (propagate): Likwise.
913 * ipa-utils.c (ipa_reduced_postorder): Likewise.
914 (ipa_free_postorder_info): Likewise.
915 (ipa_reverse_postorder): Likewise.
916 * ipa-inline.c (ipa_inline): Likewise.
917 * matrix-reorg.c (find_matrices_decl): Likewise.
918 (matrix_reorg): Likewise.
919 * tree-vectorizer.c (increase_alignment): Likewise.
920 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
921 (function_and_variable_visibility): Likewise.
922 (whole_program_function_and_variable_visibility): Likewise.
923 (ipa_cdtor_merge): Likewise.
924 * trans-mem.c (ipa_tm_execute): Likewise.
925 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
926 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
927 (ipa_print_all_params): Likewise.
928 (ipa_update_after_lto_read): Likewise.
929 * tree-profie.c (tree_profiling): Likewise.
930 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
931 * passes.c (dump_passes): Likewise.
932 (do_per_function): Likewise.
933 (ipa_write_summaries): Likewise.
934 * varpool.c (dump_varpool): Likewise.
935 (varpool_node_for_asm): Likewise.
936 (varpool_assemble_pending_decls): Likewise.
937
938 2012-04-16 Richard Guenther <rguenther@suse.de>
939
940 PR tree-optimization/52975
941 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
942 condition but always mark it with TRUTH_NOT_EXPR.
943
944 2012-04-16 Richard Guenther <rguenther@suse.de>
945
946 PR tree-optimization/52975
947 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
948 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
949 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
950 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
951
952 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
953
954 * config/i386/sse.md (ssse3_plusminus): New code iterator.
955 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
956 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
957 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
958 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
959 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
960 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
961
962 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
963 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
964 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
965 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
966 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
967 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
968
969 (xop_plus): New code iterator.
970 (macs): New code attribute.
971 (macds): Ditto.
972 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
973 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
974 iterator.
975 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
976 xop_plus code iterator.
977 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
978 xop_plus code iterator.
979 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
980 xop_plus code iterator.
981 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
982 xop_plus code iterator.
983
984 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
985 any_extend code iterator.
986 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
987 any_extend code iterator.
988 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
989 any_extend code iterator.
990 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
991 any_extend code iterator.
992 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
993 any_extend code iterator.
994 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
995 any_extend code iterator.
996
997 2012-04-14 Tom de Vries <tom@codesourcery.com>
998
999 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
1000 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
1001 DELETED_LABEL note, and move it to ...
1002 * cfgrtl.c (delete_insn): ... here. Change return type to void.
1003 (delete_insn_and_edges): Likewise.
1004 (delete_insn_chain): Handle new return type of delete_insn. Delete
1005 chain backwards rather than forwards.
1006 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
1007 void.
1008 * cfglayout.c (fixup_reorder_chain): Delete unused label.
1009
1010 2012-04-14 Jan Hubicka <jh@suse.cz>
1011
1012 * cgraph.h: Update copyrights;
1013 (symtab_node): Turn to union typedef.
1014 (symtab_node_base): New structure.
1015 (symtab_type): Add SYMTAB_SYMBOL tag.
1016 (cgraph_node): Annotate some pinters with nested_ptr.
1017 (varpool_node): Likewise.
1018 (cgraph_local_info): Remove lto_file_data
1019 and externally_visible.
1020 (cgraph_node): Remove decl; same_comdat_group list;
1021 aux; ref_list; order; address_taken; reachable_from_other_parittion,
1022 in_other_partition; resolution.
1023 (varpool_node): Remove decl; same_comdat_group;
1024 ref_list; lto_file_data; aux; order; resolution; externally_visible;
1025 used_from_other_partition; in_other_partition.
1026 (symtab_node_def): New union.
1027 (cgraph, varpool): Update.
1028 (varpool_first_static_initializer, varpool_next_static_initializer,
1029 cgraph_only_called_directly_or_aliased_p,
1030 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
1031 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
1032 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
1033 field references.
1034 * cgraph.c: Likewise.
1035 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
1036 * cgraphbuild.c: Likewise.
1037 * lto-symtab.c: Likewise.
1038 * c-gimplify.c: Likewise.
1039 * value-prof.c: Likewise.
1040 * tree.c: Likewise.
1041 * ipa-cp.c: Likewise.
1042 * tree-emutls.c: Likewise.
1043 * ipa-inline-transform.c: Likwise.
1044 * ipa-reference.c: Likewise.
1045 * cgraphunit.c: Likewise.
1046 * ipa-ref.c: Likewise.
1047 * lto-cgraph.c: Likewise.
1048 * ipa-ref-inline.h: Likewise.
1049 * ipa-pure-const.c: Likewise.
1050 * lto-streamer-out.c: Likewise.
1051 * ipa-utils.c: Likewise.
1052 * ipa-inline.c: Likewise.
1053 * matrix-reorg.c: Likewise.
1054 * tree-eh.c: Likewise.
1055 * tree-vectorizer.c: Likewise.
1056 * ipa-split.c: Likewise.
1057 * ipa.c: Likewise.
1058 * trans-mem.c: Likewise.
1059 * ipa-inline-analysis.c: Likewise.
1060 * gimplify.c: Likewise.
1061 * cfgexpand.c: Likewise.
1062 * tree-sra.c: Likewise.
1063 * ipa-prop.c: Likewise.
1064 * varasm.c: Likewise.
1065 * tree-nested.c: Likewise.
1066 * tree-inline.c: Likewise.
1067 * tree-profile.c: Likewise.
1068 * tree-ssa-structalias.c: Likewise.
1069 * passes.c: Likewise.
1070 * varpool.c: Likewise.
1071
1072 2012-04-14 Tom de Vries <tom@codesourcery.com>
1073
1074 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
1075 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
1076 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
1077 of find_edge.
1078 (gsi_advance_fw_nondebug_nonlocal): New function.
1079 (local_def): Removed function.
1080 (same_succ_hash): Use stmt_local_def.
1081 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
1082 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
1083
1084 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
1085
1086 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
1087 and __ILP32__ for x32.
1088
1089 2012-04-13 Martin Jambor <mjambor@suse.cz>
1090
1091 PR middle-end/52939
1092 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
1093 fold_ctor_reference returns a zero constant.
1094
1095 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
1096
1097 * config.gcc: Add i386/gnu-user-common.h before all
1098 i386/gnu-user.h and i386/gnu-user64.h usages.
1099
1100 * config/i386/gnu-user-common.h: New.
1101
1102 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
1103 (CC1_SPEC): Likewise.
1104 (ENDFILE_SPEC): Likewise.
1105 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
1106 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
1107 (TARGET_OS_CPP_BUILTINS): Likewise.
1108 (LIBGCC2_HAS_TF_MODE): Likewise.
1109 (LIBGCC2_TF_CEXT): Likewise.
1110 (TF_SIZE): Likewise.
1111 (TARGET_ASM_FILE_END): Likewise.
1112 (STACK_CHECK_MOVING_SP): Likewise.
1113 (STACK_CHECK_STATIC_BUILTIN): Likewise.
1114 * config/i386/gnu-user64.h: Likewise.
1115
1116 2012-04-13 Martin Jambor <mjambor@suse.cz>
1117
1118 * expr.c (expand_expr_real_1): Pass type, not the expression, to
1119 set_mem_attributes for a memory temporary. Do not call the function
1120 for the memory temporary created for a bitfield.
1121
1122 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
1123
1124 PR debug/48866
1125 * df.h (enum debug_temp_where): New.
1126 (dead_debug_init, dead_debug_finish) Declare.
1127 (dead_debug_add, dead_debug_insert_temp): Declare.
1128 (struct dead_debug_use, struct dead_debug): Moved from...
1129 * df-problems.c: ... here.
1130 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
1131 to a debug temp.
1132 (df_create_unused_note): Likewise.
1133 (df_set_dead_notes_for_mw): Move comment where it belongs.
1134 (dead_debug_init): Export.
1135 (dead_debug_reset_uses): New, factored out of...
1136 (dead_debug_finish): ...this. Export.
1137 (dead_debug_reset): Remove.
1138 (dead_debug_add): Export.
1139 (dead_debug_insert_before): Rename to...
1140 (dead_debug_insert_temp): ... this. Add where argument. Export.
1141 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
1142 Return insertion count.
1143 (df_note_bb_compute): Adjust.
1144 * dce.c (word_dce_process_block): Adjust dead debug uses.
1145 (dce_process_block): Likewise.
1146
1147 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
1148
1149 * df-problems.c (df_note_bb_compute): Do not take note of
1150 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
1151
1152 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
1153
1154 PR debug/51570
1155 * var-tracking.c (expand_depth): New type.
1156 (onepart_aux, expand_loc_callback_data): Change depth type to it.
1157 (loc_exp_dep_alloc): Adjust initializer.
1158 (update_depth): Use new type. Add entryvals.
1159 (vt_expand_var_loc_chain): Take note of expansions with
1160 ENTRY_VALUEs, but don't accept them right away. Run an optional
1161 second pass accepting the minimum ENTRY_VALUE count found in the
1162 first pass.
1163 (vt_expand_loc_callback, INIT_ELCD): Adjust.
1164
1165 2012-04-13 Tom de Vries <tom@codesourcery.com>
1166
1167 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
1168 parameters vuse and vuse_escaped.
1169 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
1170 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
1171 vuse1 != vuse2.
1172
1173 2012-04-13 Richard Guenther <rguenther@suse.de>
1174
1175 PR tree-optimization/52969
1176 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
1177 the condition for the COND_EXPR and handle predicate negation
1178 by swapping the COND_EXPR arms.
1179
1180 2012-04-13 Nick Clifton <nickc@redhat.com>
1181
1182 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
1183 TODO_dump_func flag.
1184
1185 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
1186
1187 PR rtl-optimization/52203
1188 PR rtl-optimization/52715
1189
1190 Revert the 2012-03-07 fix for PR 52203.
1191 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
1192 the insn does not modify DFA right before issuing, adjust
1193 issue_rate accordingly.
1194
1195 2012-04-13 Richard Guenther <rguenther@suse.de>
1196
1197 PR c/52549
1198 * c-typeck.c (pointer_diff): Remove bogus assert.
1199
1200 2012-04-13 Richard Guenther <rguenther@suse.de>
1201
1202 PR c/52862
1203 * convert.c (convert_to_pointer): Remove special-casing of zero.
1204
1205 2012-04-13 Joey Ye <joey.ye@arm.com>
1206
1207 * config/arm/constraints.md (Pe): New constraint.
1208 * config/arm/arm.md: New split for imm 256-510.
1209
1210 2012-04-13 Terry Guo <terry.guo@arm.com>
1211
1212 * config/arm/arm-cores.def: Added core cortex-m0plus.
1213 * config/arm/arm-tune.md: Regenerated.
1214 * config/arm/arm-tables.opt: Regenerated.
1215 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
1216
1217 2012-04-13 Alan Modra <amodra@gmail.com>
1218
1219 PR target/52828
1220 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
1221 tie regs on destination of sets. Delete forward declaration.
1222 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
1223 (rs6000_emit_prologue): Likewise.
1224 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
1225 and gen_stack_tie.
1226 (is_mem_ref): Use tie_operand to recognise stack ties.
1227 * config/rs6000/predicates.md (tie_operand): New.
1228 * config/rs6000/rs6000.md (restore_stack_block): Generate new
1229 stack tie rtl.
1230 (restore_stack_nonlocal): Likewise.
1231 (stack_tie): Update.
1232 (frame_tie): Delete.
1233
1234 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1235
1236 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
1237 HOST_WIDE_INT_PRINT_DEC in format strings.
1238
1239 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
1240
1241 PR target/52932
1242 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
1243 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
1244 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
1245 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
1246 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
1247 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
1248 avx2_permvarv8si using VI4F_256 mode iterator.
1249 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
1250 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
1251 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
1252 gen_avx2_permvarv8sf.
1253 (expand_vec_perm_pshufb): Ditto.
1254
1255 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1256
1257 PR target/52775
1258 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
1259 the list of options to enable the FCFID instruction.
1260 (TARGET_EXTRA_BUILTINS): Adjust comment.
1261
1262 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1263
1264 PR tree-optimization/18589
1265 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
1266 (operand_entry): Add count field.
1267 (add_repeat_to_ops_vec): New function.
1268 (completely_remove_stmt): Likewise.
1269 (remove_def_if_absorbed_call): Likewise.
1270 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
1271 (acceptable_pow_call): New function.
1272 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
1273 entries with repeat counts when found.
1274 (repeat_factor_d): New struct and associated typedefs.
1275 (repeat_factor_vec): New static vector variable.
1276 (compare_repeat_factors): New function.
1277 (get_reassoc_pow_ssa_name): Likewise.
1278 (attempt_builtin_powi): Likewise.
1279 (reassociate_bb): Call attempt_builtin_powi.
1280 (fini_reassoc): Two new calls to statistics_counter_event.
1281
1282 2012-04-12 Richard Guenther <rguenther@suse.de>
1283
1284 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
1285 * cgraph.h (tree_rest_of_compilation): Remove.
1286 * cgraph.c (cgraph_add_new_function): Move ...
1287 * cgraphunit.c (cgraph_add_new_function): ... here.
1288 (tree_rest_of_compilation): Make static.
1289 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
1290 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
1291 gate_all_early_local_passes, execute_all_early_local_passes,
1292 pass_early_local_passes, gate_all_early_optimizations,
1293 pass_all_early_optimizations): Move ...
1294 * passes.c (gate_all_optimizations, pass_all_optimizations,
1295 gate_all_early_local_passes, execute_all_early_local_passes,
1296 pass_early_local_passes, gate_all_early_optimizations,
1297 pass_all_early_optimizations): ... here.
1298 * tree-optimize.c (execute_free_datastructures): Remove.
1299 * tree-flow.h (execute_free_datastructures): Remove.
1300 * tree-optimize.c (execute_init_datastructures,
1301 pass_init_datastructures): Move ...
1302 * tree-ssa.c (execute_init_datastructures,
1303 pass_init_datastructures): ... here.
1304 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
1305 execute_free_datastructures.
1306
1307 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
1308
1309 * dbgcnt.def (ira_move): New counter.
1310 * ira-int.h (ira_create_new_reg): Declare function.
1311 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
1312 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
1313 no longer static. All callers changed.
1314 * ira.c: Include "dbgcnt.h".
1315 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
1316 move_unallocated_pseudos): New static functions.
1317 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
1318 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
1319 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
1320 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
1321 to the pseudos generated in find_moveable_pseudos.
1322 * Makefile.in (ira.o): Add $(DBGCNT_H).
1323
1324 2012-04-12 Richard Guenther <rguenther@suse.de>
1325
1326 PR tree-optimization/52943
1327 * tree-chrec.h (chrec_is_positive): Remove.
1328 * tree-scalar-evolution.c (chrec_is_positive): Move ...
1329 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
1330 Return false for a constant zero instead of negative.
1331 (analyze_siv_subscript_cst_affine): Handle zero difference
1332 in the initial condition explicitely.
1333
1334 2012-04-12 Richard Guenther <rguenther@suse.de>
1335
1336 * tree-parloops.c (parallelize_loops): Also consult the upper
1337 bound for the number of iterations.
1338 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
1339 (loop_prefetch_arrays): Likewise.
1340
1341 2012-04-12 Richard Guenther <rguenther@suse.de>
1342
1343 * cfgloop.h (estimated_loop_iterations_int): Ditch
1344 'conservative' parameter.
1345 (max_stmt_executions_int): Likewise.
1346 (estimated_loop_iterations): Likewise.
1347 (max_stmt_executions): Likewise.
1348 (max_loop_iterations): Declare.
1349 (max_loop_iterations_int): Likewise.
1350 (estimated_stmt_executions): Likewise.
1351 (estimated_stmt_executions_int): Likewise.
1352 * tree-ssa-loop-niter.c (estimated_loop_iterations):
1353 Split parts to ...
1354 (max_loop_iterations): ... this.
1355 (estimated_loop_iterations_int): Split parts to ...
1356 (max_loop_iterations_int): ... this.
1357 (max_stmt_executions_int): Split parts to ...
1358 (estimated_stmt_executions_int): ... this.
1359 (max_stmt_executions): Split parts to ...
1360 (estimated_stmt_executions): ... this.
1361 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
1362 * predict.c (predict_loops): Likewise.
1363 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
1364 (analyze_siv_subscript_cst_affine): Likewise.
1365 (compute_overlap_steps_for_affine_1_2): Likewise.
1366 (analyze_subscript_affine_affine): Likewise.
1367 (init_omega_for_ddr_1): Likewise.
1368 * tree-parloops.c (parallelize_loops): Likewise.
1369 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1370 (may_eliminate_iv): Likewise.
1371 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
1372 (loop_prefetch_arrays): Likewise.
1373 * tree-vrp.c (adjust_range_with_scev): Likewise.
1374
1375 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
1376
1377 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
1378 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
1379 Fix line width.
1380 (dump_table): Use bool type for need_align and have_df variables.
1381 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
1382 (regs_used): Remove register modifier.
1383 (barrier_align): Move variables slot, credit, jump_to_next
1384 into if block above for loop. Use bool type for jump_to_next.
1385 (sh_function_arg): Use NULL_RTX instead of 0.
1386
1387 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
1388
1389 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
1390 (bswapsi2): New expander.
1391
1392 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
1393
1394 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
1395 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
1396
1397 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 PR rtl-optimization/52876
1400 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
1401 Don't call mark_reg_pointer for incompatible pointer sign extension.
1402
1403 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
1404 directly.
1405
1406 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
1407
1408 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
1409 comparisons against TYPE_PRECISION.
1410 * tree-ssa-forwprop.c (combine_conversions): Likewise.
1411
1412 2012-04-11 Xinliang David Li <davidxl@google.com>
1413
1414 * tree-passes.h: Remove TODO_dump_func.
1415 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
1416 * trans-mem.c: Remove TODO_dump_func.
1417 * ira.c: Remove TODO_dump_func.
1418
1419 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 * config/i386/i386.c (ix86_option_override_internal): Check
1422 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
1423 after TARGET_64BIT is updated.
1424
1425 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
1426
1427 * config/sh/sh.h: Remove old secondary reload code.
1428
1429 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
1430
1431 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
1432 (ready_reorder): ... this function.
1433
1434 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
1435
1436 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
1437 sched_init calls.
1438
1439 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
1440 insns so that no other insn is queued for a time before them.
1441
1442 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
1443 unknown.
1444
1445 2012-04-11 Richard Guenther <rguenther@suse.de>
1446
1447 PR middle-end/52621
1448 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
1449 consider loop nesting.
1450 (evolution_function_is_univariate_p): Properly check the remainder
1451 for chrecs.
1452
1453 2012-04-11 Richard Guenther <rguenther@suse.de>
1454
1455 PR middle-end/52918
1456 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
1457
1458 2012-04-11 Nick Clifton <nickc@redhat.com>
1459
1460 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
1461 information, if requested.
1462
1463 * config/rx/rx.c (rx_expand_prologue): Likewise.
1464
1465 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
1466 Michael Matz <matz@suse.de>
1467
1468 PR target/16458
1469 * rtlanal.c (unsigned_reg_p): New function.
1470 Update copyright notice dates.
1471 * rtl.h (unsigned_reg_p): Prototype it.
1472 Update copyright notice dates.
1473 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
1474 Update comment.
1475 * expr.c (expand_expr_real_1): Set register attributes.
1476 * stmt.c (expand_case): Likewise.
1477
1478 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
1479
1480 PR target/50751
1481 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
1482 consider_sh2a and allow_zero.
1483 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
1484 (disp_addr_displacement): New function.
1485 (sh_address_cost): Use disp_addr_displacement function instead
1486 of DISP_ADDR_OFFSET.
1487 (sh_legitimate_address_p): Adapt to changed
1488 sh_legitimate_index_p declaration.
1489 (sh_find_mov_disp_adjust): Remove HImode check.
1490 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
1491 disp_addr_displacement and max_mov_insn_displacement.
1492 (max_mov_insn_displacement): Remove HImode check.
1493 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
1494 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
1495 * config/sh/constraints.md (K05, K13): New constraints.
1496 (K12): Correct comment.
1497 (Sdd): Do not use DISP_ADDR_P macro.
1498 (Snd, Sbw): Use satisfies_constraint_Sdd.
1499 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
1500 (*extendhisi2_compact, movhi_i): Remove.
1501 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
1502 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
1503 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
1504 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
1505 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
1506 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
1507 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
1508 CONST_OK_FOR_Kxx.
1509 Add new peepholes for HImode displacement addressing.
1510
1511 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
1512
1513 * config/sh/sh.h (SIDI_OFF): Remove.
1514 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
1515 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
1516 or operand_subword.
1517
1518 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1519
1520 PR target/52624
1521 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
1522 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
1523 * doc/md.texi (Standard Names): Add bswap.
1524 * builtin-types.def (BT_UINT16): New primitive type.
1525 (BT_FN_UINT16_UINT16): New function type.
1526 * builtins.def (BUILT_IN_BSWAP16): New.
1527 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
1528 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
1529 expand_builtin_bswap.
1530 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
1531 (fold_builtin_1): Likewise.
1532 (is_inexpensive_builtin): Likewise.
1533 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
1534 missing bits for bswap to libcall code.
1535 * tree.c (build_common_tree_nodes): Build uint16_type_node.
1536 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
1537 (uint16_type_node): New define.
1538 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
1539 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
1540 above builtin.
1541 (rs6000_init_builtins): Likewise.
1542 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
1543
1544 2012-04-11 Tristan Gingold <gingold@adacore.com>
1545
1546 * doc/extend.texi (Type Attributes): Move paragraph.
1547
1548 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1549
1550 PR 24985
1551 * diagnostic.h (show_caret): Declare.
1552 (caret_max_width): Declare.
1553 (diagnostic_show_locus): Declare.
1554 * diagnostic.c (diagnostic_initialize): Initialize to false.
1555 (diagnostic_show_locus): New.
1556 (diagnostic_report_diagnostic): Call it.
1557 (getenv_columns): New.
1558 (adjust_line): New.
1559 (diagnostic_set_caret_max_width): New.
1560 * input.c (read_line): New.
1561 (location_get_source_line): New.
1562 * input.h (location_get_source_line): Declare.
1563 * toplev.c (general_init): Initialize show_caret from options.
1564 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
1565 * opts.c (common_handle_option): Likewise.
1566 * pretty-print.h (pp_get_prefix): New.
1567 (pp_base_get_prefix): New.
1568 * common.opt (fdiagnostics-show-caret): New option.
1569 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
1570
1571 2012-04-11 Richard Guenther <rguenther@suse.de>
1572
1573 PR rtl-optimization/52881
1574 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
1575
1576 2012-04-11 Richard Guenther <rguenther@suse.de>
1577
1578 PR tree-optimization/52912
1579 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
1580 manipulation code we are threading through a loop header
1581 to an exit destination.
1582
1583 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1584
1585 * tree.h (warn_if_unused_value): Move declaration from here.
1586 * stmt.c (warn_if_unused_value): Move definition from here.
1587
1588 2010-04-10 Michael Matz <matz@suse.de>
1589
1590 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
1591 grouped_stores.
1592 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
1593 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
1594 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
1595 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
1596 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
1597 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
1598 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
1599 (vect_record_strided_load_vectors): Rename to
1600 vect_record_grouped_load_vectors.
1601 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1602 Rename use of above macros.
1603 (vect_verify_datarefs_alignment): Ditto.
1604 (vector_alignment_reachable_p): Ditto.
1605 (vect_peeling_hash_get_lowest_cost): Ditto.
1606 (vect_enhance_data_refs_alignment): Ditto.
1607 (vect_analyze_group_access): Ditto and rename stride to groupsize.
1608 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
1609 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
1610 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
1611 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
1612 (vect_record_strided_load_vectors): Rename to
1613 vect_record_grouped_load_vectors.
1614 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
1615 (destroy_loop_vec_info): Ditto.
1616 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
1617 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
1618 (vect_analyze_slp): Ditto.
1619 (new_bb_vec_info): Ditto.
1620 (destroy_bb_vec_info): Ditto.
1621 (vect_schedule_slp_instance): Ditto and rename strided_store to
1622 grouped_store.
1623 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
1624 vect_cost_group_size.
1625 (vect_model_store_cost): Rename use of above macros and call
1626 to vect_cost_strided_group_size.
1627 (vect_model_load_cost): Ditto.
1628 (vectorizable_store): Ditto, rename strided_store to grouped_store
1629 and calls to renamed tree-vectorizer.h functions.
1630 (vectorizable_load): Ditto.
1631 (vect_transform_stmt): Rename use of above macros and strided_store
1632 to grouped_store.
1633
1634 2012-04-10 Jan Hubicka <jh@suse.cz>
1635
1636 * cgraph.h: Remove misledaing comment on ipa-ref.h.
1637 (symtab_type): New enum.
1638 (symtab_node): New structure.
1639 (cgraph_node, varpool_node): Add symbol base type.
1640 (cgraph, varpool): New accestor functions.
1641 * cgraph.c (cgraph_create_node_1): Set symbol type.
1642 * varpool.c (varpool_node): Set symbol type.
1643
1644 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1645 Richard Sandiford <rdsandiford@googlemail.com>
1646
1647 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
1648
1649 2012-04-10 Richard Guenther <rguenther@suse.de>
1650
1651 PR middle-end/52888
1652 * gimple-low.c (gimple_check_call_args): Properly account for
1653 compatible aggregate types.
1654
1655 2012-04-10 Richard Guenther <rguenther@suse.de>
1656
1657 * toplev.h (tree_rest_of_compilation): Remove.
1658 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1659 * cgraph.h (tree_rest_of_compilation): Declare.
1660 * tree-optimize.c (tree_rest_of_compilation): Move ...
1661 * cgraphunit.c (tree_rest_of_compilation): ... here.
1662 * cgraph.c (cgraph_add_new_function): Adjust.
1663 * Makefile.in (tree-optimize.o): Adjust.
1664 (cgraphunit.o): Likewise.
1665
1666 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1667
1668 PR tree-optimization/52870
1669 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
1670 presumed pattern statement is within the same loop or basic block.
1671
1672 2012-04-10 Tristan Gingold <gingold@adacore.com>
1673
1674 * gengtype.c (main): Make uintptr_t a known type.
1675
1676 2012-04-10 Richard Guenther <rguenther@suse.de>
1677
1678 * tree-pass.h (tree_lowering_passes): Remove.
1679 * tree-optimize.c (tree_lowering_passes): Remove.
1680 * cgraph.c (cgraph_add_new_function): Inline relevant parts
1681 of tree_lowering_passes, avoid redundant call of early local passes.
1682 * cgraphunit.c (cgraph_lower_function): Fold into ...
1683 (cgraph_analyze_function): ... its single caller. Inline
1684 relevant parts of tree_lowering_passes.
1685
1686 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
1687
1688 PR other/52777
1689 * config/pa/pa.opt: Remove SIO and GNU_LD.
1690
1691 2012-04-09 Jan Hubicka <jh@suse.cz>
1692
1693 PR lto/52722
1694 PR lto/51765
1695 PR lto/52634
1696 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
1697 boundary, add its target too.
1698 * lto.c (add_references_to_partition): Add also aliased nodes.
1699 (add_cgraph_node_to_partition,
1700 add_varpool_node_to_partition): Work on nodes, not functions/variables;
1701 when adding alias, add also the aliased object.
1702
1703 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
1704
1705 PR target/52883
1706 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
1707 VOIDmode immediate operands.
1708 * config/i386/constraints.md (Wz): New constraint.
1709 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
1710
1711 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
1712
1713 PR target/52717
1714 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
1715 the DECL generated for the special GOT helper.
1716
1717 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
1718
1719 * config/sh/constraints.md: Update list of constraints in
1720 comment block.
1721 (Sr0): Remove unused memory constraint.
1722
1723 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1724
1725 * tree-pretty-print.h: Update comment.
1726
1727 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
1728
1729 * config/sh/sh.md: Use braced string notation where applicable.
1730 (*prefetch_i4, prefetch_m2a): Merge into ...
1731 (*prefetch): ... this new insn.
1732
1733 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
1734
1735 * config/sh/sh.h (high_life_started): Remove
1736 * config/sh/predicates.md (general_movdst_operand): Use
1737 'reload_in_progress' instead of 'high_life_started'.
1738 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
1739 divsi_inv_fp): Likewise.
1740
1741 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
1742
1743 * config/sh/sh-protos.h (prepare_move_operands): Return void
1744 instead of int.
1745 * config/sh/sh.c (prepare_move_operands): Likewise.
1746 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
1747
1748 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
1749
1750 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
1751 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
1752 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
1753 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
1754 commutative_float_operator, noncommutative_float_operator,
1755 sh_handle_pragma): Remove.
1756
1757 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
1758
1759 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
1760 Use @option markup on command-line options. Use @samp markup on
1761 literal keywords to options. Use @code markup on code fragments.
1762 Use other markup in preference to quotation marks in the text.
1763 Add markup to some passages without any.
1764
1765 2012-04-06 Mike Stump <mikestump@comcast.net>
1766
1767 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
1768
1769 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
1770
1771 * config/sh/sh.c (hi_const): Remove.
1772 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
1773 of hi_const.
1774
1775 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
1776
1777 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
1778 to bool.
1779 * config/sh/sh.c (sh_expand_t_scc): Likewise.
1780 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
1781 calling sh_expand_t_scc.
1782
1783 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
1784
1785 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
1786 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
1787 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
1788 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
1789 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
1790 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
1791 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
1792 sh2a_is_function_vector_call): Use bool as return type.
1793 (sh_pass_in_reg_p): Remove.
1794 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
1795 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
1796 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
1797 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
1798 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
1799 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
1800 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
1801 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
1802 sh_loads_bankedreg_p): Use bool as return type.
1803 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
1804 'register' modifier.
1805
1806 2012-04-06 Matt Turner <mattst88@gmail.com>
1807
1808 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
1809
1810 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
1811
1812 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
1813 of the destination isn't also a FP_REGS register.
1814
1815 2012-04-05 Teresa Johnson <tejohnson@google.com>
1816 H.J. Lu <hongjiu.lu@intel.com>
1817
1818 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
1819 * config/i386/i386.md (move immediate to memory peephole2):
1820 Add cases for HImode move when LCP stall avoidance is needed.
1821 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1822 X86_TUNE_LCP_STALL entry.
1823
1824 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
1825
1826 PR target/52882
1827 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
1828 CONST_INT operands, zero-extended with AND.
1829
1830 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
1831
1832 PR target/50751
1833 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
1834 first argument instead of mode size. Move displacement calculations
1835 to ...
1836 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
1837 ... these new functions.
1838 (disp_adjust): Remove max_mov_disp field.
1839 (sh_legitimate_index_p): Use max_mov_insn_displacement and
1840 mov_insn_alignment_mask.
1841 (sh_address_cost): Use max_mov_insn_displacement.
1842
1843 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
1844
1845 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
1846 (arch_enabled): Handle new arch types.
1847 (one_cmpldi2): Add NEON support.
1848
1849 2012-04-05 Richard Guenther <rguenther@suse.de>
1850
1851 * gimple.c (walk_gimple_op): Compute val_only for the LHS
1852 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
1853 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
1854 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
1855 ... here and make static.
1856 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
1857 Remove.
1858
1859 2012-04-05 Richard Guenther <rguenther@suse.de>
1860
1861 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
1862 basic-block before removing it.
1863
1864 2012-04-05 Richard Guenther <rguenther@suse.de>
1865
1866 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
1867 version namespace as we release the freelist.
1868
1869 2012-04-05 Richard Guenther <rguenther@suse.de>
1870
1871 * tree-nrv.c (tree_nrv): Release VDEFs.
1872 * tree-sra.c (sra_modify_constructor_assign): Likewise.
1873 (sra_modify_assign): Likewise.
1874 * tree-vect-stmts.c (vect_remove_stores): Likewise.
1875 * tree-vect-loop.c (vect_transform_loop): Likewise.
1876 * tree-ssa-dom.c (optimize_stmt): Likewise.
1877 * tree-vect-slp.c (vect_schedule_slp): Likewise.
1878 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1879
1880 2012-04-05 Richard Guenther <rguenther@suse.de>
1881
1882 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
1883 cleanup.
1884 * gimple.h (gsi_remove): Adjust.
1885 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
1886 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
1887 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
1888 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
1889 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
1890 * tree-ssa-pre.c (eliminate): Likewise.
1891
1892 2012-04-04 Mike Stump <mikestump@comcast.net>
1893
1894 * doc/rtl.texi (const_double): Document as sign-extending.
1895 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
1896 * emit-rtl.c (immed_double_int_const): Refine to state the
1897 value is signed.
1898 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
1899 CONST_DOUBLE integers.
1900 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
1901 negative values are converted. Fix conversions bigger than
1902 HOST_BITS_PER_WIDE_INT.
1903 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
1904 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
1905 * explow.c (plus_constant_mode): Add.
1906 (plus_constant): Implement with plus_constant_mode.
1907 * rtl.h (plus_constant_mode): Add.
1908
1909 2012-04-04 Richard Guenther <rguenther@suse.de>
1910
1911 PR tree-optimization/52808
1912 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
1913 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
1914
1915 2012-04-04 Tristan Gingold <gingold@adacore.com>
1916
1917 * expr.c (expand_expr_real_2): Handle larger sizetype in
1918 POINTER_PLUS_EXPR.
1919
1920 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
1921
1922 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
1923 to m2a-single instead of m2e.
1924
1925 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
1926
1927 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
1928 Change type of BITOFFSET to signed. Make sure the lower bound of
1929 the computed range is non-negative by adjusting OFFSET and BITPOS.
1930 (expand_assignment): Adjust call to get_bit_range.
1931
1932 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1933
1934 * h8300/h8300.c (h8300_current_function_monitor_function_p):
1935 New function. Added to check monitor functions.
1936 (h8300_option_override): Modified to generate error/warning
1937 messages for invalid combinations of different command line
1938 options.
1939 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
1940 save EXR on stack for monitor function in case of H8S target
1941 when "-mno-exr" is passed.
1942 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
1943 Add prototype.
1944 * doc/invoke.texi: Document H8S options.
1945
1946 2012-04-03 Tristan Gingold <gingold@adacore.com>
1947
1948 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
1949 of gcc_AC_FUNC_MMAP_BLACKLIST.
1950 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
1951 * Makefile.in (aclocal_deps): Add mmap.m4.
1952 * configure: Regenerate.
1953 * aclocal.m4: Regenerate.
1954
1955 2012-04-03 Richard Guenther <rguenther@suse.de>
1956
1957 PR tree-optimization/52808
1958 * tracer.c (tail_duplicate): Return whether we have duplicated
1959 any block.
1960 (tracer): If we have duplicated any block, cleanup the CFG.
1961 * cfghooks.c (duplicate_block): If we duplicated a loop
1962 header but not its loop, destroy the loop because it now has
1963 multiple entries.
1964 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
1965 the cfg manipulation routines we are not creating a multiple
1966 entry loop.
1967
1968 2012-04-03 Tristan Gingold <gingold@adacore.com>
1969
1970 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
1971 'byte' alignment.
1972 (vms_c_common_override_options): Allow parameterless variadic
1973 functions.
1974
1975 2012-04-03 Jakub Jelinek <jakub@redhat.com>
1976
1977 PR tree-optimization/52835
1978 * tree-data-ref.c (build_rdg): Return NULL if
1979 compute_data_dependences_for_loop failed.
1980
1981 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
1982
1983 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
1984 for REAL_CST as well.
1985 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
1986 In the bitfield case, if the value is a REAL_CST, convert it first to
1987 an INTEGER_CST.
1988
1989 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
1990
1991 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
1992 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
1993 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
1994
1995 * config/i386/biarchx32.h: New.
1996
1997 2012-04-02 Anatoly Sokolov <aesok@post.ru>
1998
1999 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
2000 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2001 (arm_preferred_reload_class): New function.
2002
2003 2012-04-02 Richard Guenther <rguenther@suse.de>
2004
2005 PR tree-optimization/52756
2006 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
2007 (thread_through_loop_header): After threading through the loop latch
2008 remove the split part from the loop and clear further threading
2009 opportunities that would create a multiple entry loop.
2010
2011 2012-04-02 Richard Guenther <rguenther@suse.de>
2012
2013 PR rtl-optimization/52800
2014 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
2015 CLEANUP_CFG_CHANGED.
2016
2017 2012-04-02 Richard Guenther <rguenther@suse.de>
2018
2019 PR middle-end/52803
2020 * loop-init.c (gate_handle_loop2): Destroy loops here if
2021 we don't enter RTL loop optimizers.
2022
2023 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
2024
2025 Partially revert:
2026 2012-03-29 Richard Guenther <rguenther@suse.de>
2027
2028 * rtl.h (extended_count): Remove.
2029 * combine.c (extended_count): Remove.
2030
2031 2012-04-02 Dodji Seketeli <dodji@redhat.com>
2032
2033 PR c++/40942
2034 * pt.c (more_specialized_fn): Don't apply decay conversion to
2035 types of function parameters.
2036
2037 2012-04-02 Tristan Gingold <gingold@adacore.com>
2038
2039 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
2040 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
2041 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
2042 (ggc_pch_this_base): Use uintptr_t instead of size_t.
2043
2044 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 PR bootstrap/52784
2047 * config/i386/i386.c (ix86_option_override_internal): Don't
2048 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
2049
2050 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
2051
2052 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
2053 (stmt_can_make_abnormal_goto): Use it.
2054 (is_ctrl_altering_stmt): Likewise.
2055
2056 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
2057 Kaz Kojima <kkojima@gcc.gnu.org>
2058
2059 * config/sh/sh.c (push_regs): Skip banked registers when
2060 resbank attribute is specified.
2061 (sh_expand_epilogue): Likewise.
2062
2063 2012-03-30 Richard Henderson <rth@redhat.com>
2064
2065 PR debug/52727
2066 * combine-stack-adj.c (prev_active_insn_bb): New.
2067 (next_active_insn_bb): New.
2068 (force_move_args_size_note): New.
2069 (combine_stack_adjustments_for_block): Use it.
2070
2071 2012-03-30 Richard Henderson <rth@redhat.com>
2072
2073 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
2074 (ix86_expand_vector_init_duplicate): Initialize it.
2075 (expand_vec_perm_palignr): Likewise.
2076 (ix86_expand_vec_perm_const): Likewise.
2077 (ix86_vectorize_vec_perm_const_ok): Likewise.
2078 (expand_vec_perm_blend): Use it.
2079 (expand_vec_perm_vpermil): Likewise.
2080 (expand_vec_perm_pshufb): Likewise.
2081 (expand_vec_perm_1): Likewise.
2082 (expand_vec_perm_pshuflw_pshufhw): Likewise.
2083 (expand_vec_perm_interleave2): Likewise.
2084 (expand_vec_perm_vpermq_perm_1): Likewise.
2085 (expand_vec_perm_vperm2f128): Likewise.
2086 (expand_vec_perm_interleave3): Likewise.
2087 (expand_vec_perm_vperm2f128_vblend): Likewise.
2088 (expand_vec_perm_vpshufb2_vpermq): Likewise.
2089 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
2090 (expand_vec_perm_broadcast): Likewise.
2091 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
2092
2093 2012-03-30 Richard Henderson <rth@redhat.com>
2094
2095 * dwarf2out.c (gen_variable_die): Initialize off.
2096
2097 2012-03-30 Tristan Gingold <gingold@adacore.com>
2098
2099 * config/vms/vms-f.c: New file.
2100 * config/vms/t-vms (vms-f.o): New rule.
2101 * config.gcc (*-*-*vms*): Define fortran_target_objs.
2102
2103 2012-03-30 Richard Guenther <rguenther@suse.de>
2104
2105 PR tree-optimization/52754
2106 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2107 propagate arbitrary addresses into really plain dereferences.
2108
2109 2012-03-30 Richard Guenther <rguenther@suse.de>
2110
2111 PR middle-end/52772
2112 * except.c (emit_to_new_bb_before): Move loop updating ...
2113 (dw2_build_landing_pads): ... here. Use a proper block for
2114 querying the loop father.
2115
2116 2012-03-30 Tristan Gingold <gingold@adacore.com>
2117
2118 * config/ia64/ia64.c (ia64_section_type_flags): Remove
2119 common_object attribute handling.
2120 (SECTION_VMS_OVERLAY): Remove
2121 (ia64_vms_common_object_attribute): Replace abort with an assert.
2122 Do not set DECL_SECTION_NAME.
2123 (ia64_vms_output_aligned_decl_common): Handle common_object
2124 attribute.
2125 (ia64_vms_elf_asm_named_section): Remove.
2126 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
2127
2128 2012-03-30 Richard Guenther <rguenther@suse.de>
2129
2130 PR middle-end/52786
2131 * double-int.c (rshift_double): Remove not needed cast.
2132
2133 2012-03-30 Richard Guenther <rguenther@suse.de>
2134
2135 * tree-affine.h (print_aff): Remove.
2136 * tree-affine.c (print_aff): Make static.
2137 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
2138 (get_references_in_stmt): Likewise.
2139 (print_direction_vector): Likewise.
2140 (print_dir_vectors): Likewise.
2141 (print_dist_vectors): Likewise.
2142 (dump_subscript): Likewise.
2143 (dump_ddrs): Likewise.
2144 (dump_dist_dir_vectors): Likewise.
2145 (dump_data_references): Likewise.
2146 (dump_data_dependence_relation): Likewise.
2147 (dump_data_dependence_direction): Likewise.
2148 (dump_rdg_vertex): Likewise.
2149 (dump_rdg_component): Likewise.
2150 (debug_ddrs): Declare.
2151 (struct data_ref_loc_d): Move ...
2152 * tree-data-ref.c (struct data_ref_loc_d): ... here.
2153 (get_references_in_stmt): Make static.
2154 (dump_data_references): Likewise.
2155 (dump_subscript): Likewise.
2156 (print_direction_vector): Likewise.
2157 (print_dir_vectors): Likewise.
2158 (print_dist_vectors): Likewise.
2159 (dump_data_dependence_relation): Likewise.
2160 (dump_dist_dir_vectors): Likewise.
2161 (dump_ddrs): Likewise.
2162 (dump_rdg_vertex): Likewise.
2163 (dump_rdg_component): Likewise.
2164 (debug_ddrs): New function.
2165 (access_matrix_get_index_for_parameter): Remove.
2166
2167 2012-03-30 Tristan Gingold <gingold@adacore.com>
2168
2169 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
2170 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
2171 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
2172 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
2173 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
2174 (vms_patch_builtins): Handle new flags
2175 * config/vms/vms-crtlmap.map: Completed using nm on
2176 c and math system libraries.
2177 * config/vms/make-crtlmap.awk: Handle any number of flags.
2178
2179 2012-03-30 Martin Jambor <mjambor@suse.cz>
2180
2181 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
2182 is a builtin_stack_save in a dominating BB.
2183
2184 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
2185
2186 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
2187 crossing 128bit lane boundary.
2188
2189 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
2190
2191 * ira-color.c (setup_left_conflict_sizes_p): Process all
2192 conflicting objects.
2193
2194 2012-03-29 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR tree-optimization/52760
2197 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
2198 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
2199
2200 2012-03-29 Richard Guenther <rguenther@suse.de>
2201
2202 * cgraph.h (cgraph_materialize_all_clones): Remove.
2203 (reset_inline_failed): Likewise.
2204 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
2205 * cgraphbuild.c (reset_inline_failed): Remove.
2206 * rtl.h (cse_main): Remove.
2207 (extended_count): Likewise.
2208 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
2209 (cse_main): Make static.
2210 * combine.c (extended_count): Remove.
2211 (dump_combine_stats): Mark as DEBUG_FUNCTION.
2212 * basic-block.h (reorder_basic_blocks): Remove.
2213 * bb-reorder.c (reorder_basic_blocks): Make static.
2214 * Makefile.in (dse.o): Remove dse.h dependency.
2215 * dse.h: Remove.
2216 * dse.c (gate_dse): Remove.
2217 (clear_alias_mode_eq): Likewise.
2218 (clear_alias_mode_hash): Likewise.
2219 (dse_record_singleton_alias_set): Likewise.
2220 (dse_invalidate_singleton_alias_set): Likewise.
2221
2222 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
2223
2224 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
2225 crtbegin_so%O%s for -shared.
2226 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
2227
2228 2012-03-29 Richard Guenther <rguenther@suse.de>
2229
2230 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
2231 (add_to_value): Remove.
2232 (print_value_expressions): Likewise.
2233 * tree-ssa-pre.c (add_to_value): Make static.
2234 (print_value_expressions): Likewise.
2235 * gimple.h (gimple_adjust_this_by_delta): Remove.
2236 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
2237
2238 2012-03-29 Richard Guenther <rguenther@suse.de>
2239
2240 PR middle-end/50708
2241 * double-int.h (rshift_double): Remove.
2242 * double-int.c (lshift_double): Use absu_hwi to make count positive.
2243 (rshift_double): Make static, take unsigned count argument,
2244 remove handling of negative count argument.
2245 (double_int_rshift): Dispatch to lshift_double.
2246
2247 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
2248
2249 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
2250 OPTION_MASK_ABI_64.
2251
2252 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
2253 (SPEC_X32): Likewise.
2254 (MULTILIB_DEFAULTS): Likewise.
2255
2256 * config/i386/i386.c (isa_opts): Remove -m64.
2257 (ix86_target_string): Properly handle -m32/-m64/-mx32.
2258 (ix86_option_override_internal): Properly
2259 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
2260 handle -m32, -m64 and -mx32.
2261
2262 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
2263 with OPTION_ABI_X32. Moved after TARGET_LP64.
2264 (TARGET_LP64): Changed to OPTION_ABI_64.
2265
2266 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
2267 (mx32): Replace ISA_X32 with ABI_X32.
2268
2269 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
2270
2271 * tree.c (tree_size) <VECTOR_CST>: New case.
2272
2273 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
2274
2275 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
2276 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
2277
2278 2012-03-28 Jakub Jelinek <jakub@redhat.com>
2279
2280 PR middle-end/52691
2281 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
2282 __builtin_va_start to __builtin_next_arg if the latter is
2283 builtin_decl_explicit_p rather than when it is not.
2284
2285 PR middle-end/52750
2286 * tree-vect-generic.c (vector_element): Perform multiplication
2287 for pos in bitsizetype type instead of idx type.
2288
2289 2012-03-28 Richard Guenther <rguenther@suse.de>
2290
2291 * loop-init.c (loop_optimizer_init): If loops are preserved
2292 perform incremental initialization of required loop features.
2293 (loop_optimizer_finalize): If loops are to be preserved only
2294 clean up optional loop features.
2295 (rtl_loop_done): Forcefully free loops here.
2296 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
2297 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
2298 to existing loops.
2299 (construct_init_block): Likewise.
2300 (construct_exit_block): Likewise.
2301 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
2302 the CFG after expanding.
2303 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
2304 If we needed to calculate them, free them afterwards.
2305 * tree-pass.h (PROP_loops): New define.
2306 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
2307 * basic-block.h (CLEANUP_CFG_CHANGED): New.
2308 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
2309 (cleanup_cfg): If we did something and have loops around, fix them up.
2310 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
2311 with CLEANUP_CFG_CHANGED.
2312 * cfghooks.c (merge_blocks): If we merge a loop header into
2313 its predecessor, update the loop structure.
2314 (duplicate_block): If we copy a loop latch, adjust loop state
2315 to note we may have multiple latches.
2316 (delete_basic_block): Mark loops for fixup if we remove a loop.
2317 * cfganal.c (forwarder_block_p): Protect loop latches, headers
2318 and preheaders.
2319 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
2320 (cfg_layout_can_merge_blocks_p): Likewise.
2321 * cprop.c (bypass_block): If we create a loop with multiple
2322 entries, mark it for removal.
2323 * except.c (emit_to_new_bb_before): Add the new basic-block
2324 to existing loops.
2325 * tree-eh.c (lower_resx): Likewise.
2326 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
2327 (expand_omp_taskreg): Likewise.
2328 * tree-inline.c (initialize_cfun): Likewise.
2329 * tree-mudflap.c (add_bb_to_loop): Prototype.
2330 (mf_build_check_statement_for): Properly add new basic-blocks
2331 to existing loops.
2332 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
2333 if we remove a loop.
2334 (thread_through_loop_header): Likewise.
2335 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
2336 new basic-blocks to existing loops.
2337 (expand_transaction): Likewise.
2338 * Makefile.in (except.o): Add $(CFGLOOP_H).
2339 (expr.o): Likewise.
2340 (cgraph.o): Likewise.
2341 (cprop.o): Likewise.
2342 (cfgexpand.o): Likewise.
2343 (cfganal.o): Likewise.
2344 (trans-mem.o): Likewise.
2345 (tree-eh.o): Likewise.
2346
2347 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
2348
2349 PR target/52692
2350 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
2351 (avr_builtin_decl): New static function.
2352 (struct avr_builtin_description, avr_bdesc): Move up.
2353 Add GTY marker. Add field fndecl. Remove redundant field id.
2354 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
2355 (avr_expand_builtin): Code cleanup because .id is removed.
2356
2357 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
2358
2359 PR target/52737
2360 * config.gcc (tm_file): Remove avr/multilib.h.
2361
2362 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
2363
2364 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
2365 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
2366 * config/avr/t-avr: Remove generation of multilib.h.
2367 * config/avr/t-multilib: Regenerate.
2368 * config/avr/multilib.h: Remove.
2369 * config/avr/avr.opt (-msp8): New option.
2370 (avr_sp8): New variable.
2371 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
2372 * config/avr/avr.h (AVR_HAVE_SPH): New define.
2373 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
2374 (avr_device_to_sp8): New prototype.
2375 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
2376 (DRIVER_SELF_SPECS): New define.
2377 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
2378 __AVR_SP8__, __AVR_HAVE_SPH__.
2379 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
2380 AVR_HAVE_8BIT_SP to decide if SP_H is present.
2381 (avr_file_start): Ditto.
2382
2383 2012-03-28 Jakub Jelinek <jakub@redhat.com>
2384
2385 PR target/52736
2386 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
2387 instead of 8 in adjust_address.
2388
2389 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
2390
2391 PR middle-end/51893
2392 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
2393 targets.
2394
2395 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
2396
2397 PR target/50751
2398 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
2399 Rearrange conditional logic. Move displacement address calculations
2400 to ...
2401 (sh_find_mov_disp_adjust): ... this new function.
2402
2403 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
2404
2405 * config/arm/arm.opt (mapcs): Remove MaskExists.
2406 * config/cris/linux.opt (mno-gotplt): Likewise.
2407 * config/i386/i386.opt (mhard-float): Likewise.
2408 (msse4): Likewise.
2409 (mno-sse4): Likewise.
2410 * config/m68k/m68k.opt (mhard-float): Likewise.
2411 * config/mep/mep.op (mcop32): Likewise.
2412 * config/pa/pa-hpux.opt (msio): Likewise.
2413 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
2414 * config/picochip/picochip.opt (mlittle): Likewise.
2415 * config/sh/sh.opt (mrenesas): Likewise.
2416 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
2417 * config/sparc/sparc.opt (mhard-float): Likewise.
2418 * config/v850/v850.opt (mv850es): Likewise.
2419 * config/vax/vax.opt (mg-float): Likewise.
2420
2421 2012-03-27 Martin Jambor <mjambor@suse.cz>
2422
2423 PR middle-end/52693
2424 * tree-sra.c (sra_modify_assign): Do not call
2425 load_assign_lhs_subreplacements when working with an unscalarizable
2426 region.
2427
2428 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
2429
2430 PR target/52698
2431 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
2432 New prototype.
2433 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
2434 * config/i386/i386.c: Include reload.h.
2435 (ix86_legitimize_reload_address): New function.
2436
2437 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
2438
2439 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
2440 hasn't been allocated. Define a target macro for Mask and
2441 InverseMask if it hasn't been defined. Remove MaskExists handling.
2442
2443 * doc/options.texi: Remove MaskExists.
2444
2445 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
2446
2447 PR target/52667
2448 * config/sh/sh.c (find_barrier): Add equality check of last_got
2449 to avoid going above orig insn. Update comments.
2450
2451 2012-03-27 Richard Guenther <rguenther@suse.de>
2452
2453 PR middle-end/52720
2454 * fold-const.c (try_move_mult_to_index): Handle &x.array more
2455 explicitely.
2456
2457 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
2458
2459 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
2460 of a unit before computing the offset in units.
2461 * expr.c (get_bit_range): Return the null range if the enclosing record
2462 is part of a larger bit field.
2463
2464 2012-03-27 Tristan Gingold <gingold@adacore.com>
2465
2466 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
2467 * config/ia64/ia64.md: Remove mode in template.
2468 Sign extend operand in expand_simple_binop.
2469 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
2470 CASE_VECTOR_MODE instead of TARGET_ILP32.
2471 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
2472
2473 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
2474
2475 * varasm.c (assemble_external): #if 0 out the new assert from the
2476 previous commit, it breaks the Java and Go front ends.
2477
2478 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
2479
2480 * toplev.c (check_global_declaration_1): Do not call assemble_external.
2481 * expr.c (emit_block_move_libcall_fn): Likewise.
2482 (clear_storage_libcall_fn): Likewise.
2483 (expand_expr_addr_expr_1): Likewise.
2484 (expand_expr_real_1): Likewise.
2485 * calls.c (rtx_for_function_call): Likewise.
2486
2487 * varasm.c (assemble_external): Assert this function is only called
2488 during or after expanding to RTL.
2489
2490 2012-03-26 Martin Jambor <mjambor@suse.cz>
2491
2492 PR tree-optimization/50052
2493 * tree-sra.c (tree_non_aligned_mem_p): Removed.
2494 (tree_non_aligned_mem_for_access_p): Likewise.
2495 (build_accesses_from_assign): Removed strict alignment requirements
2496 checks.
2497 (access_precludes_ipa_sra_p): Likewise.
2498
2499 2012-03-26 Richard Guenther <rguenther@suse.de>
2500
2501 PR tree-optimization/52701
2502 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
2503 compute and set the evolution part of PHI nodes.
2504
2505 2012-03-26 Richard Guenther <rguenther@suse.de>
2506
2507 PR tree-optimization/52721
2508 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
2509
2510 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
2511
2512 PR tree-optimization/52686
2513 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
2514 WIDEN_LSHIFT_EXPR.
2515
2516 2012-03-26 Tristan Gingold <gingold@adacore.com>
2517
2518 * config/alpha/vms.h (LINK_SPEC): Simplify.
2519 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
2520 (NAME__MAIN, SYMBOL__MAIN): Remove.
2521 (VMS_DEBUG_MAIN_POINTER): Remove.
2522 * config/ia64/vms.h: Likewise.
2523 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
2524 code to vms.c. Call vms_start_function.
2525 * config/ia64/ia64.c (ia64_start_function): Likewise.
2526 * config/vms/vms-protos.h (vms_start_function): Declare.
2527 * config/vms/vms.c (vms_start_function): New function.
2528 * config/vms/vms.h (MATH_LIBRARY): Define.
2529 (VMS_DEBUG_MAIN_POINTER): Define.
2530
2531 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
2532
2533 PR rtl-optimization/52629
2534 * reload1.c (count_pseudo): Short-circuit common case.
2535 (count_spilled_pseudo): Return early for pseudos without hard regs.
2536 Assert that the pseudo has got a hard reg before manipulating it.
2537
2538 2012-03-24 Jan Hubicka <jh@suse.cz>
2539
2540 PR lto/51663
2541 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
2542 (decide_is_variable_needed): Do not handle toplevel reorder here.
2543 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
2544 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
2545 even at -O0.
2546
2547 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
2548
2549 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
2550 and str_bitsize instead of more convoluted expressions.
2551
2552 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
2553
2554 PR target/52610
2555 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
2556
2557 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
2558
2559 PR target/52656
2560 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
2561
2562 2012-03-23 Martin Jambor <mjambor@suse.cz>
2563
2564 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
2565
2566 2012-03-23 Richard Guenther <rguenther@suse.de>
2567
2568 PR tree-optimization/52678
2569 * tree-vectorizer.h (struct _stmt_vec_info): Add
2570 loop_phi_evolution_part member.
2571 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
2572 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
2573 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
2574 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2575 Use the cached evolution part and the PHI nodes value from
2576 the loop preheader edge instead of re-analyzing the evolution.
2577
2578 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2579
2580 * config/mips/mips-tables.opt: Update.
2581 * config/mips/mips.md (processor): Add xlp.
2582 * config/mips/mips-cpus.def: Add xlp.
2583 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
2584 5KF for now.
2585 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
2586 * doc/invoke.texi: Mention XLP.
2587
2588 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2589
2590 PR middle-end/52547
2591 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
2592 on any new_local_var_chain vars declared during recursing on
2593 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
2594
2595 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
2596
2597 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
2598 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
2599 (ASM_OUTPUT_LOCAL): Ditto.
2600 (ASM_OUTPUT_COMMON): Remove.
2601 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
2602 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
2603
2604 2012-03-22 Jan Hubicka <jh@suse.cz>
2605
2606 PR middle-end/51737
2607 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
2608 parameter.
2609 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
2610 * ipa-inline-transform.c (save_inline_function_body): Remove
2611 copied clone if needed.
2612 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
2613
2614 2012-03-22 Richard Guenther <rguenther@suse.de>
2615
2616 PR middle-end/52666
2617 * fold-const.c (fold_ternary_loc): Fix typo.
2618
2619 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
2620
2621 PR target/52496
2622 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
2623 (unspecv): Add UNSPECV_MEMORY_BARRIER.
2624 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
2625 (delay_cycles_1, delay_cycles_2): Ditto.
2626 (delay_cycles_3, delay_cycles_4): Ditto.
2627 (nopv, *nopv): Ditto.
2628 (sleep, *sleep): Ditto.
2629 (wdr, *wdr): Ditto.
2630
2631 2012-03-22 Richard Guenther <rguenther@suse.de>
2632
2633 PR tree-optimization/52548
2634 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
2635 because of clobbers.
2636 (prune_clobbered_mems): New function.
2637 (compute_antic_aux): Use it to prune ANTIC_OUT.
2638 (compute_partial_antic_aux): Use it to prune PA_IN.
2639 (compute_avail): Only insert expressions into EXP_GEN that are not
2640 invalidated when translated up to the beginning of the block.
2641
2642 2012-03-22 Richard Guenther <rguenther@suse.de>
2643
2644 PR tree-optimization/52638
2645 * tree-vect-stmts.c (vect_init_vector_1): New function, split
2646 out from ...
2647 (vect_init_vector): ... here. Handle scalar vector inits.
2648 (vect_get_vec_def_for_operand): Adjust.
2649 (vectorizable_load): Likewise.
2650
2651 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
2652
2653 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
2654 (alpha*-*-freebsd*): Ditto.
2655 (alpha*-*-netbsd*): Ditto.
2656 (alpha*-*-openbsd*): Ditto.
2657 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
2658 (DWARF2_DEBUGGING_INFO): Remove.
2659 (PREFERRED_DEBUGGING_TYPE): Remove.
2660 (ASM_FINAL_SPEC): Remove.
2661 (IDENT_ASM_OP): Remove.
2662 (ASM_OUTPUT_IDENT): Remove.
2663 (SKIP_ASM_OP): Remove.
2664 (ASM_OUTPUT_SKIP): Remove.
2665 (ALIGN_ASM_OP): Remove.
2666 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
2667 (ASM_OUTPUT_CASE_LABEL): Remove.
2668 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
2669 (COMMON_ASM_OP): Remove.
2670 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
2671 (ASCII_DATA_ASM_OP): Remove.
2672 (READONLY_DATA_SECTION_ASM_OP): Remove.
2673 (INIT_SECTION_ASM_OP): Remove.
2674 (FINI_SECTION_ASM_OP): Remove.
2675 (ASM_SECTION_START_OP): Remove.
2676 (ASM_OUTPUT_SECTION_START_FILE): Remove.
2677 (TARGET_ASM_NAMED_SECTION): Remove.
2678 (TARGET_ASM_SELECT_SECTION): Remove.
2679 (MAKE_DECL_ONE_ONLY): Remove.
2680 (TYPE_ASM_OP): Remove.
2681 (SIZE_ASM_OP): Remove.
2682 (ASM_WEAKEN_LABEL): Remove.
2683 (TYPE_OPERAND_FMT): Remove.
2684 (ASM_DECLARE_RESULT): Remove.
2685 (ASM_DECLARE_OBJECT_NAME): Remove.
2686 (ASM_FINISH_DECLARE_OBJECT): Remove.
2687 (ELF_ASCII_ESCAPES): Remove.
2688 (ELF_STRING_LIMIT): Remove.
2689 (STRING_ASM_OP): Remove.
2690 (ASM_OUTPUT_EXTERNAL): Remove.
2691 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
2692 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
2693 before define.
2694 (ASM_DECLARE_FUNCTION_NAME): Ditto.
2695 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
2696 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
2697 (ASM_OUTPUT_SKIP): Ditto.
2698 (READONLY_DATA_SECTION_ASM_OP): Remove.
2699 (USER_LABEL_PREFIX): Remove.
2700 (ASM_OUTPUT_ASCII): Remove.
2701 (ASM_OUTPUT_CASE_LABEL): Remove.
2702 (NO_DOLLAR_IN_LABEL): Undefine.
2703
2704 2012-03-22 Richard Guenther <rguenther@suse.de>
2705
2706 PR tree-optimization/52459
2707 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
2708 PHI insertion for calls.
2709
2710 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
2711
2712 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
2713 find_sets_in_insn, canonicalize_insn): Split out from ...
2714 (cse_insn): ... here.
2715 (invalidate_from_clobbers): Take an insn instead of the pattern.
2716
2717 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
2718
2719 PR target/52479
2720 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
2721 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
2722 * config/sh/sh.md (sindf2, cosdf2): Remove.
2723
2724 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
2725
2726 PR target/52642
2727 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
2728 prologue for unwinder and profiler.
2729
2730 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
2731
2732 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
2733 Introduce emul_name to select the right linker emulation for
2734 powerpc64-*-freebsd*.
2735 * configure: Regenerate.
2736 * config.gcc: Add bits to support powerpc64-*-freebsd*.
2737 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
2738 * config/rs6000/freebsd64.h: New file.
2739 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
2740 POWERPC_FREEBSD.
2741 (rs6000_savres_strategy): Likewise.
2742 (rs6000_savres_routine_name): Likewise.
2743 (rs6000_elf_file_end): Likewise.
2744 * config/rs6000/t-freebsd64: New file.
2745 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
2746 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
2747
2748 * config/rs6000/freebsd64.h: Remove duplicated entries from last
2749 commit.
2750 * config/rs6000/t-freebsd64: Likewise.
2751
2752 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
2753
2754 PR rtl-optimization/52543
2755 PR target/52461
2756 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
2757 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
2758 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
2759 (avr_load_libgcc_p): Restrict to __flash loads.
2760 (avr_out_lpm): Only handle 1-byte loads from __flash.
2761 (avr_load_lpm): New function.
2762 (avr_find_unused_d_reg): Remove.
2763 (avr_out_lpm_no_lpmx): Remove.
2764 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
2765 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
2766 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
2767 (load_<mode>, load_<mode>_clobber): New insns.
2768 (mov<mode>): For multi-byte move from non-generic
2769 16-bit address spaces: Expand to load_<mode> resp.
2770 load_<mode>_clobber.
2771 (load<mode>_libgcc): Remove expander.
2772 (split-lpmx): Remove split.
2773
2774 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
2775
2776 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
2777 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
2778 All callers changed.
2779 (Fixed_core_reg): New feature.
2780 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
2781 disassembly.
2782 * neon-testgen.ml: Handle Fixed_core_reg.
2783
2784 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
2785
2786 * config/arm/arm.c (thumb2_reorg): Add complete support
2787 for 16-bit instructions.
2788 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
2789
2790 2012-03-21 Richard Guenther <rguenther@suse.de>
2791
2792 PR tree-optimizer/52636
2793 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
2794 to the appropriate type.
2795
2796 2012-03-21 Richard Guenther <rguenther@suse.de>
2797
2798 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
2799 dependencies.
2800 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
2801 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
2802 * passes.c (init_optimization_passes): Remove pass_init_function,
2803 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
2804 * tree-pass.h (pass_init_function): Remove.
2805 (pass_jump): Remove.
2806 (pass_initial_value_sets): Remove.
2807 (pass_unshare_all_rtl): Remove.
2808 * integrate.c (pass_initial_value_sets): Remove.
2809 * emit-rtl.c (pass_unshare_all_rtl): Remove.
2810 * tree.h (init_function_for_compilation): Remove.
2811 * function.c (init_function_for_compilation): Remove.
2812 (pass_init_function): Remove.
2813 * cfgcleanup.c (rest_of_handle_jump): Remove.
2814 (pass_jump): Remove.
2815
2816 2012-03-20 Jason Merrill <jason@redhat.com>
2817
2818 * tree-streamer-in.c (streamer_alloc_tree): Call
2819 ggc_alloc_zone_cleared_tree_node instead of
2820 ggc_alloc_zone_cleared_tree_node_stat.
2821
2822 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
2823
2824 * doc/extend.texi (Template Instantiation): Remove anachronisms.
2825
2826 2012-03-20 Jakub Jelinek <jakub@redhat.com>
2827
2828 PR target/52607
2829 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
2830 (ix86_expand_vec_perm_const_1): Call it.
2831
2832 * config/i386/i386.c (vselect_insn): New variable.
2833 (init_vselect_insn): New function.
2834 (expand_vselect, expand_vselect_insn): Add testing_p argument.
2835 Call init_vselect_insn if vselect_insn is NULL. Adjust
2836 PATTERN (vselect_insn), instead of creating a new insn each time,
2837 only emit a copy of it if not testing and recog has been successful.
2838 (expand_vec_perm_pshufb, expand_vec_perm_1,
2839 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
2840 callers.
2841
2842 PR target/52607
2843 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
2844 ("enabled" attribute): Handle avx2 and noavx2 isas.
2845 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
2846 New insns.
2847 (vec_dup<mode>): Add avx2 =x,x alternative.
2848 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
2849 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
2850 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
2851 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
2852 for V8SFmode.
2853 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
2854 if possible, handle also V8SFmode.
2855
2856 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
2857
2858 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
2859 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
2860 reg_or_zero_operand predicate.
2861 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
2862
2863 2012-03-20 Jakub Jelinek <jakub@redhat.com>
2864
2865 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
2866 If operand isn't UNSPEC, return 0.
2867
2868 2012-03-20 Richard Guenther <rguenther@suse.de>
2869
2870 * tree-pass.h (pass_rtl_eh): Remove.
2871 * except.c (gate_handle_eh): Likewise.
2872 (rest_of_handle_eh): Likewise.
2873 (pass_rtl_eh): Likewise.
2874 (finish_eh_generation): Export.
2875 * except.h (finish_eh_generation): Declare.
2876 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
2877 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
2878 after expanding stack alignment. Instead of compacting blocks
2879 call cleanup_cfg.
2880
2881 2012-03-20 Richard Guenther <rguenther@suse.de>
2882
2883 * stor-layout.c (finish_bitfield_representative): Fallback
2884 to conservative maximum size if the padding up to the next
2885 field cannot be computed as a constant.
2886 (finish_bitfield_layout): If we cannot compute the distance
2887 between the start of the bitfield representative and the
2888 bitfield member start a new representative.
2889 * expr.c (get_bit_range): The distance between the start of
2890 the bitfield representative and the bitfield member is zero
2891 if the field offsets are not constants.
2892
2893 2012-03-20 Tristan Gingold <gingold@adacore.com>
2894
2895 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
2896 convert in lowercase.
2897 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
2898 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
2899 * stor-layout.c (sizetype_tab): Adjust.
2900 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
2901 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
2902 instead of type_kind_last.
2903 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
2904 instead of size_int_kind.
2905 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
2906 * doc/tm.texi: Regenerate.
2907 * defaults.h (SIZETYPE): Provide a default value.
2908 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
2909 (SIZETYPE): Define.
2910
2911 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
2912
2913 * config/sh/sh.md: Use braced string notation where applicable.
2914
2915 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
2916
2917 * config/i386/i386.md (allocate_stack): Simplify.
2918
2919 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
2920
2921 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
2922 copy_to_mode_reg (Pmode, ...).
2923 (expand_builtin_frame_address): Ditto.
2924 * expr.c (emit_block_move_via_libcall): Ditto.
2925 (set_storage_via_libcall): Ditto.
2926
2927 * config/i386/i386.c (ix86_expand_movmem): Ditto.
2928 (ix86_expand_setmem): Ditto.
2929 (ix86_trampoline_init): DItto.
2930 * config/i386/i386.md (cmpstrnsi): Ditto.
2931
2932 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
2933
2934 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
2935 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
2936 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
2937 (SH Options): Likewise.
2938
2939 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
2940
2941 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
2942 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
2943 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
2944 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
2945 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
2946
2947 Revert:
2948 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2949
2950 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
2951 * config/i386/i386.c (ix86_decompose_address): Use
2952 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
2953 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
2954 thread pointer to a register.
2955
2956 Revert:
2957 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
2958
2959 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
2960 if Pmode != word_mode.
2961 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
2962 Pmode == SImode for TARGET_X32.
2963
2964 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
2965 (tls_initial_exec_x32): Likewise.
2966
2967 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
2968
2969 PR target/50751
2970 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
2971 DISP_ADDR_OFFSET): New macros.
2972 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
2973 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
2974 (sh_legitimize_address): Add QImode displacement handling.
2975 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
2976 vector subregs.
2977 (sh_secondary_reload): Add QImode displacement handling.
2978 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
2979 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
2980 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
2981 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
2982 to register operands only.
2983 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
2984 (extendqihi2): Change insn to expander.
2985 (*extendqihi2_compact_reg): New insn.
2986 (movqi_i, movqi): Replace with ...
2987 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
2988 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
2989 Add new peepholes for QImode displacement addressing.
2990
2991 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
2992
2993 PR c++/14710
2994 * doc/invoke.texi: Document -Wuseless-cast.
2995
2996 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
2997
2998 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
2999 * tree.h (handled_component_p): Reorder cases.
3000 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
3001 not initialize unsignedp.
3002 (loc_list_from_tree): Likewise.
3003 (fortran_common): Likewise.
3004 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3005
3006 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
3007
3008 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
3009 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
3010 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
3011 (ix86_split_long_move): Ditto.
3012 (legitimize_tls_address): Use ix86_gen_sub3.
3013 (construct_plt_address): Assert that Pmode == DImode.
3014
3015 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
3016
3017 * config/i386/i386.md: Remove empty predicates and/or constraints.
3018 * config/i386/sync.md: Ditto.
3019 * config/i386/sse.md: Ditto.
3020 * config/i386/mmx.md: Ditto.
3021 * config/i386/pentium.md: Ditto.
3022 * config/i386/athlon.md: Ditto.
3023
3024 2012-03-16 Richard Guenther <rguenther@suse.de>
3025
3026 PR tree-optimization/52603
3027 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
3028 comment.
3029
3030 Revert
3031 2012-03-14 Richard Guenther <rguenther@suse.de>
3032
3033 PR tree-optimization/52571
3034 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3035 flag_section_anchors check ...
3036 (vect_can_force_dr_alignment_p): ... here.
3037
3038 2012-03-16 Martin Jambor <mjambor@suse.cz>
3039
3040 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
3041 memory through MEM_REFs by calling extract_bit_field.
3042
3043 2012-03-16 Richard Guenther <rguenther@suse.de>
3044
3045 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
3046 and REFERENCE_TYPE interpretations.
3047 (can_native_interpret_type_p): New function.
3048 (fold_ternary_loc): Use native encode/interpret to fold
3049 BIT_FIELD_REFs of constants.
3050
3051 2012-03-16 Richard Guenther <rguenther@suse.de>
3052
3053 PR middle-end/52584
3054 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
3055 of vector constants and constructors.
3056
3057 2012-03-16 Richard Guenther <rguenther@suse.de>
3058
3059 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3060 VIEW_CONVERT_EXPR to convert constants.
3061 (vect_is_simple_use): Treat all constants as vec_constant_def.
3062
3063 2012-03-16 Richard Guenther <rguenther@suse.de>
3064 Kai Tietz <ktietz@redhat.com>
3065
3066 PR middle-end/48814
3067 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
3068 side-effects completely in the pre-queue and use a temporary
3069 for the result.
3070
3071 2012-03-16 Richard Guenther <rguenther@suse.de>
3072
3073 * stor-layout.c (finish_bitfield_representative): Fall back
3074 to the conservative maximum size if we cannot compute the
3075 size of the tail padding.
3076
3077 2012-03-16 Tristan Gingold <gingold@adacore.com>
3078
3079 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
3080 __CRTL_VER and __VMS_VER.
3081 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
3082 and vms_c_get_vms_ver.
3083 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
3084 functions.
3085 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
3086 (VMS_DEFAULT_VMS_VER): Define.
3087 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
3088 (VMS_DEFAULT_VMS_VER): Define.
3089
3090 2012-03-16 Richard Guenther <rguenther@suse.de>
3091
3092 * tree-vect-loop.c (get_initial_def_for_induction): Use
3093 build_constructor directly.
3094 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
3095 build_vector_from_val.
3096 * tree.c (build_vector_from_val): Avoid creating a constructor
3097 first when we want a constant vector.
3098
3099 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3100
3101 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
3102
3103 2012-03-16 Richard Guenther <rguenther@suse.de>
3104
3105 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
3106 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
3107 (struct tree_vector): Remove elements member, add variable size
3108 elts array member.
3109 (build_vector_stat): Declare.
3110 (build_vector): Define in terms of build_vector_stat.
3111 * tree.c (build_vector): Rename to ...
3112 (build_vector_stat): ... this. Take array of trees as parameter.
3113 (build_vector_from_ctor): Adjust.
3114 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
3115 initializer_zerop): Adjust.
3116 * cfgexpand.c (expand_debug_expr): Likewise.
3117 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
3118 const_vector_from_tree): Likewise.
3119 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
3120 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
3121 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
3122 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
3123 (lto_input_ts_vector_tree_pointers): Adjust.
3124 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
3125 (write_ts_vector_tree_pointers): Adjust.
3126 * varasm.c (const_hash_1, compare_constant, copy_constant,
3127 output_constant): Adjust.
3128 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
3129 * print-tree.c (print_node): Adjust.
3130 * tree-pretty-print.c (dump_generic_node): Adjust.
3131 * tree-vect-generic.c (uniform_vector_p, vector_element,
3132 lower_vec_perm): Adjust.
3133 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
3134 * tree-vect-slp.c (vect_get_constant_vectors,
3135 vect_transform_slp_perm_load): Adjust.
3136 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
3137 * expmed.c (make_tree): Adjust.
3138 * config/i386/i386.c (ix86_expand_builtin): Adjust.
3139 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
3140 and implementation.
3141 (sparc_fold_builtin): Adjust.
3142
3143 2012-03-16 Tristan Gingold <gingold@adacore.com>
3144
3145 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
3146 * config/vms/vms-stdint.h: New file.
3147
3148 2012-03-16 Tristan Gingold <gingold@adacore.com>
3149
3150 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
3151 (ia64-hp-*vms*): Replaced by ...
3152 (*-*-*vms*): ... This new entry.
3153
3154 2012-03-15 Jakub Jelinek <jakub@redhat.com>
3155
3156 PR target/52568
3157 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
3158 (ix86_expand_vec_perm_const_1): Use it.
3159
3160 PR target/52568
3161 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
3162 (avx2_permv4df): Remove.
3163 (avx2_permv4di): Macroize into...
3164 (avx2_perm<mode>): ... this using VI8F_256 iterator.
3165 (avx2_permv4di_1): Macroize into...
3166 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
3167
3168 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3169
3170 * combine.c (apply_distributive_law): Do not distribute SUBREG.
3171
3172 2012-03-15 Ira Rosen <irar@il.ibm.com>
3173 Ulrich Weigand <ulrich.weigand@linaro.org>
3174
3175 * tree-vect-patterns.c (widened_name_p): Rename to ...
3176 (type_conversion_p): ... this. Add new argument to determine
3177 if it's a promotion or demotion operation. Check for
3178 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
3179 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
3180 widened_name_p.
3181 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
3182 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
3183 Likewise.
3184 (vect_recog_mixed_size_cond_pattern): Likewise and allow
3185 non-constant then and else clauses.
3186
3187 2012-03-15 Ira Rosen <irar@il.ibm.com>
3188 Ulrich Weigand <ulrich.weigand@linaro.org>
3189
3190 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
3191 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
3192 vect_pattern_recog.
3193 * tree-vect-patterns.c (widened_name_p): Pass basic block
3194 info to vect_is_simple_use.
3195 (vect_recog_dot_prod_pattern): Fail for basic blocks.
3196 (vect_recog_widen_sum_pattern): Likewise.
3197 (vect_handle_widen_op_by_const): Support basic blocks.
3198 (vect_operation_fits_smaller_type,
3199 vect_recog_over_widening_pattern): Likewise.
3200 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
3201 Update call to vect_is_simple_use.
3202 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
3203 Add printing.
3204 (check_bool_pattern): Add an argument, update call to
3205 vect_is_simple_use and the recursive calls.
3206 (vect_recog_bool_pattern): Update relevant function calls.
3207 Add printing.
3208 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
3209 (vect_pattern_recog_1): Check for reduction only in loops.
3210 (vect_pattern_recog): Add new argument. Support basic blocks.
3211 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
3212 info to vect_is_simple_use_1.
3213 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
3214 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
3215
3216 2012-03-15 Jakub Jelinek <jakub@redhat.com>
3217 Andrew Pinski <apinski@cavium.com>
3218
3219 PR middle-end/52592
3220 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
3221 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
3222 calls instead of __builtin_ir{int,ound}*.
3223
3224 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3225
3226 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
3227 documentation.
3228
3229 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3230
3231 * config.gcc (target_type_format_char): New. Document it. Set it for
3232 arm*-*-* .
3233 * configure.ac (gnu_unique_option): Use target_type_format_char
3234 in test. Comment rationale.
3235 * configure: Regenerate .
3236
3237 2012-03-15 Jakub Jelinek <jakub@redhat.com>
3238
3239 PR tree-optimization/52267
3240 * tree-vrp.c (masked_increment): New function.
3241 (register_edge_assert_for_2): Derive ASSERT_EXPRs
3242 from (X & CST1) cmp CST2 tests.
3243
3244 2012-03-15 Richard Guenther <rguenther@suse.de>
3245
3246 PR middle-end/52580
3247 * tree-data-ref.c (subscript_dependence_tester_1): Check
3248 all dimensions for non-conflicting access functions.
3249
3250 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3251
3252 PR c++/44783
3253 * doc/invoke.texi [C++ Language Options]: Document
3254 -ftemplate-backtrace-limit.
3255
3256 2012-03-15 Tristan Gingold <gingold@adacore.com>
3257
3258 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
3259 before a parameter.
3260
3261 2012-03-15 Tristan Gingold <gingold@adacore.com>
3262
3263 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
3264 use DW_OP_call_frame_cfa.
3265
3266 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
3267
3268 PR target/50797
3269 * config/i386/i386-opts.h (pmode): New.
3270
3271 * config/i386/i386.c (ix86_option_override_internal): Properly
3272 check and set ix86_pmode.
3273
3274 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
3275
3276 * config/i386/i386.opt (maddress-mode=): New.
3277
3278 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
3279
3280 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3281
3282 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
3283 (dwarf2out_do_cfi_asm): Likewise.
3284 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
3285 handling.
3286 (add_data_member_location_attribute): Likewise.
3287 (gen_array_type_die): Likewise.
3288 (gen_subprogram_die): Likewise.
3289 (gen_producer_string): Likewise.
3290 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
3291 Remove MIPS_DEBUGGING_INFO handling.
3292 (sdb_debug_hooks): Likewise.
3293 (sdbout_begin_block): Likewise.
3294 (sdbout_end_block): Likewise.
3295 (sdbout_begin_prologue): Likewise.
3296 (sdbout_start_source_file): Likewise.
3297 (sdbout_end_source_file): Likewise.
3298 (sdbout_init): Likewise.
3299 * system.h (MIPS_DEBUGGING_INFO): Poison.
3300
3301 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3302
3303 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
3304 (alpha_file_start) [MS_STAMP]: Remove.
3305
3306 * config/alpha/elf.h (TARGET_GAS): Remove.
3307 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
3308 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
3309 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
3310 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
3311 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
3312 (alpha*-*-freebsd*): Likewise.
3313 (alpha*-*-netbsd*): Likewise.
3314 (alpha*-*-openbsd*): Likewise.
3315 (alpha*-*-*): Remove target_cpu_default2.
3316 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
3317 handling.
3318 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
3319 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
3320 * config/alpha/alpha.c (print_operand): Always assume
3321 TARGET_AS_SLASH_BEFORE_SUFFIX.
3322 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
3323 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
3324 ("*builtin_setjmp_receiver_er_1"): Remove.
3325 * config/alpha/alpha.opt (malpha-as): Remove.
3326 (mgas): Ignore.
3327 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
3328 -malpha-as, -mgas.
3329 Remove DEC Unix reference.
3330
3331 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
3332 (EXTENDED_COFF): Remove.
3333 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
3334 (EXTENDED_COFF): Don't undef.
3335 * config/alpha/alpha.c (alpha_file_start): Always assume
3336 OBJECT_FORMAT_ELF.
3337 Don't set targetm.asm_file_start_file_directive.
3338 [!OBJECT_FORMAT_ELF]: Remove.
3339 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3340
3341 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
3342 (DBX_DEBUGGING_INFO): Remove.
3343 (MIPS_DEBUGGING_INFO): Remove.
3344 (PREFERRED_DEBUGGING_TYPE): Remove.
3345 (DBX_OUTPUT_SOURCE_LINE): Remove.
3346 (SDB_OUTPUT_SOURCE_LINE): Remove.
3347 (DBX_CONTIN_LENGTH): Remove.
3348 (NO_DBX_FUNCTION_END): Remove.
3349 (ASM_STABS_OP): Remove.
3350 (ASM_STABN_OP): Remove.
3351 (ASM_STABD_OP): Remove.
3352 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
3353 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
3354 (PUT_SDB_DEF): Remove.
3355 (PUT_SDB_PLAIN_DEF): Remove.
3356 (PUT_SDB_TYPE): Remove.
3357 (sdb_label_count): Remove.
3358 (PUT_SDB_BLOCK_START): Remove.
3359 (PUT_SDB_BLOCK_END): Remove.
3360 (PUT_SDB_FUNCTION_START): Remove.
3361 (PUT_SDB_FUNCTION_END): Remove.
3362 (PUT_SDB_EPILOGUE_END): Remove.
3363 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
3364 (MIPS_DEBUGGING_INFO): Don't undef.
3365 (DBX_DEBUGGING_INFO): Don't undef.
3366 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
3367 (MIPS_DEBUGGING_INFO): Don't undef.
3368 (DBX_DEBUGGING_INFO): Don't undef.
3369 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
3370 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
3371 handling.
3372 (alpha_start_function): Likewise.
3373 (sdb_label_count): Remove.
3374 (alpha_output_filename): Remove DBX_DEBUG handling.
3375 (alpha_file_start): Likewise.
3376
3377 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3378
3379 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
3380 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
3381 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
3382 Solaris 8 support.
3383 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
3384 (ld_tls_support): Remove Solaris 8 references.
3385 (lwp_dir, lwp_spec): Remove support for alternate thread library.
3386 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
3387 * configure: Regenerate.
3388 * config.in: Regenerate.
3389
3390 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
3391 * config/i386/sol2.h: Remove Solaris 8 references.
3392
3393 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
3394 (i?86-*-solaris2.9): ... this.
3395 Remove Solaris 8 references.
3396 (Specific, *-*-solaris2*): Document Solaris 8 removal.
3397 Remove Solaris 8 references.
3398
3399 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3400
3401 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
3402 (mips-sgi-irix6.5*): Remove.
3403 * config.host (mips-sgi-irix*): Remove.
3404 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
3405 (set_have_as_tls): Remove *-*-irix6*.
3406 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
3407 * configure: Regenerate.
3408
3409 * config/mips/iris6.h: Remove.
3410 * config/mips/iris6.opt: Remove.
3411 * config/mips/t-irix6: Remove.
3412
3413 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
3414 (TARGET_IRIX6): Remove.
3415 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
3416 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
3417 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
3418 handling.
3419 (mips_file_start): Likewise.
3420 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
3421
3422 * config/mips/driver-native.c [__sgi__]: Remove.
3423 (host_detect_local_cpu) [__sgi__]: Remove.
3424
3425 * config/mips/gnu-user.h: Remove iris5.h reference.
3426
3427 * config/mips/mips-modes.def: Remove IRIX 6 reference.
3428 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
3429 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
3430 Remove.
3431
3432 * gcc.c (main): Move asm_debug initialization ...
3433 (asm_debug): ... here.
3434
3435 * ginclude/stddef.h (__STDDEF_H__): Don't define.
3436
3437 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
3438 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
3439 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
3440 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
3441 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
3442 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
3443 Remove.
3444 * doc/tm.texi: Regenerate.
3445
3446 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
3447 IRIX 6 reference.
3448 (MIPS Options, -march): Remove IRIX reference.
3449 * doc/install.texi (Binaries, SGI IRIX): Remove.
3450 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
3451 of section.
3452 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
3453
3454 2012-03-14 Martin Jambor <mjambor@suse.cz>
3455
3456 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
3457 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
3458 (expand_expr_real_1): Do not handle misalignment if modifier is
3459 EXPAND_WRITE.
3460
3461 2012-03-14 Richard Guenther <rguenther@suse.de>
3462
3463 PR middle-end/52584
3464 * tree-vect-generic.c (type_for_widest_vector_mode): Take
3465 element type instead of mode, use build_vector_type_for_mode
3466 instead of the langhook, build a vector of proper signedness.
3467 (expand_vector_operations_1): Adjust.
3468
3469 2012-03-14 Richard Guenther <rguenther@suse.de>
3470
3471 PR middle-end/52582
3472 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
3473 a cgraph node for a FUNCTION_DECL that comes from a constructor.
3474 (gimple_get_virt_method_for_binfo): Likewise.
3475
3476 2012-03-14 Richard Guenther <rguenther@suse.de>
3477
3478 PR tree-optimization/52571
3479 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3480 flag_section_anchors check ...
3481 (vect_can_force_dr_alignment_p): ... here. Do not re-align
3482 DECL_COMMON variables.
3483
3484 2012-03-14 Richard Guenther <rguenther@suse.de>
3485
3486 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
3487 * stor-layout.c (start_bitfield_representative): New function.
3488 (finish_bitfield_representative): Likewise.
3489 (finish_bitfield_layout): Likewise.
3490 (finish_record_layout): Call finish_bitfield_layout.
3491 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
3492 for QUAL_UNION_TYPE fields.
3493 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
3494 Stream DECL_BIT_FIELD_REPRESENTATIVE.
3495 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
3496
3497 PR middle-end/52080
3498 PR middle-end/52097
3499 PR middle-end/48124
3500 * expr.c (get_bit_range): Unconditionally extract bitrange
3501 from DECL_BIT_FIELD_REPRESENTATIVE.
3502 (expand_assignment): Adjust call to get_bit_range.
3503
3504 2012-03-14 Richard Guenther <rguenther@suse.de>
3505
3506 PR middle-end/52578
3507 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
3508 the outermost conversion is a sign-change only.
3509 (fold_binary_loc): Disregard widening and sign-changing
3510 conversions when we determine if two variables are equal
3511 for reassociation.
3512 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
3513 (T1)x if the outermost conversion is a sign-change only.
3514
3515 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
3516
3517 Revert:
3518 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
3519
3520 * config/i386/predicates.md (constant_call_address_operand): Declare
3521 as special predicate. Update all uses.
3522
3523 2012-03-13 Jakub Jelinek <jakub@redhat.com>
3524
3525 PR c/52577
3526 * c-parser.c (c_parser_postfix_expression)
3527 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
3528
3529 * config/i386/smmintrin.h: Avoid /* within a comment.
3530 * config/i386/nmmintrin.h: Likewise.
3531
3532 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
3533
3534 * config/i386/i386.md (xbegin): Remove constraint from expander.
3535
3536 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
3537
3538 * config/i386/predicates.md (constant_call_address_operand): Declare
3539 as special predicate. Update all uses.
3540 * config/i386/i386.md: Remove mode from constant_call_address_operand
3541 predicates.
3542 * config/i386/i386.c (ix86_output_call_insn): Call
3543 constant_call_address_operand with VOIDmode.
3544
3545 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
3546
3547 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
3548 AND zero extended address correctly.
3549
3550 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
3551
3552 * config/i386/predicates.md (tls_symbolic_operand): Declare as
3553 special predicate.
3554 (tls_modbase_operand): Ditto.
3555 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
3556 tls_modbase_operand predicates.
3557
3558 2012-03-13 Martin Jambor <mjambor@suse.cz>
3559
3560 * expr.c (expand_assignment): Handle misaligned scalar writes to
3561 memory through top-level MEM_REFs by calling store_bit_field.
3562
3563 2012-03-13 Richard Guenther <rguenther@suse.de>
3564
3565 PR middle-end/52134
3566 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
3567 if Y is a constant multiple of 1 << CST.
3568
3569 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
3570
3571 PR target/52488
3572 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
3573 offset (size) to a value the insns can deal with.
3574 (expand_epilogue): Ditto.
3575
3576 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3577
3578 * config/arm/neon.ml (ops): Fixup expected instructions for
3579 unsigned vector compares.
3580
3581 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
3582
3583 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
3584 addresses only when %reg is not in word mode.
3585
3586 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3587
3588 * config/microblaze/microblaze.md: Fix typo.
3589 * tree-if-conv.c: Likewise.
3590 * tree-vect-patterns.c: Likewise.
3591
3592 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3593
3594 * config.gcc (extra_passes): Remove.
3595 * configure.ac (extra_passes): Don't substitute.
3596 * configure: Regenerate.
3597 * Makefile.in (EXTRA_PASSES): Remove.
3598 (GCC_PASSES): Remove $(EXTRA_PASSES).
3599 (MOSTLYCLEANFILES): Likewise.
3600 (native): Likewise.
3601 (install-common): Likewise.
3602
3603 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
3604
3605 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
3606 * config/i386/i386.c (ix86_decompose_address): Use
3607 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
3608 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
3609 thread pointer to a register.
3610
3611 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
3612
3613 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
3614 on tls_symbolic_operand.
3615 (tls_global_dynamic_64_<mode>): Likewise.
3616
3617 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
3618
3619 PR other/52545
3620 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
3621 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
3622
3623 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
3624
3625 PR target/52499
3626 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
3627 type from reg_class_t to enum reg_class.
3628 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
3629
3630 2012-03-12 Andrew Pinski <apinski@cavium.com>
3631
3632 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
3633 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
3634 (value_replacement): Likewise.
3635 (empty_block_p): Check also if the PHIs for the block are empty.
3636
3637 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
3638
3639 PR target/52148
3640 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
3641 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
3642 r184615 from 2012-02-28.
3643
3644 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
3645
3646 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
3647 (ix86_gen_tls_local_dynamic_base_64): Likewise.
3648 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
3649 and ix86_gen_tls_local_dynamic_base_64.
3650 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
3651 ix86_gen_tls_local_dynamic_base_64.
3652
3653 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
3654 (*tls_global_dynamic_64_<mode>): This.
3655 (tls_global_dynamic_64): Renamed to ...
3656 (tls_global_dynamic_64_<mode>): This.
3657 (*tls_local_dynamic_base_64): Renamed to ...
3658 (*tls_local_dynamic_base_64_<mode>): This.
3659 (tls_local_dynamic_base_64): Renamed to ...
3660 (tls_local_dynamic_base_64_<mode>): This.
3661
3662 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
3663
3664 * config/i386/i386.c (ix86_option_override_internal): Properly
3665 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
3666 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
3667 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
3668 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
3669
3670 * config/i386/sse.md (sse3_monitor64): Renamed to ...
3671 (sse3_monitor64_<mode>): This.
3672
3673 2012-03-12 Tristan Gingold <gingold@adacore.com>
3674
3675 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
3676 (ia64_function_arg_advance): Ditto.
3677
3678 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3679
3680 * config.gcc (mips*-*-openbsd*): Remove.
3681 * config/mips/openbsd.h: Remove.
3682 * config/mips/sdb.h: Remove.
3683
3684 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
3685 * config/mips/mips.c (sdb_label_count): Remove.
3686 (mips_debugger_offset): Remove #if 0 code.
3687 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
3688 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
3689
3690 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3691
3692 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
3693 binutils reference.
3694 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
3695 Update binutils references.
3696 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
3697 Update binutils reference.
3698 Update Sun as/GNU ld caveat.
3699 Document binutils largefile requirement for LTO plugin.
3700 Remove reference to alternate libpthread.
3701
3702 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3703
3704 * config.gcc (alpha*-dec-osf5.1*): Remove.
3705 * config.host (alpha*-dec-osf*): Remove.
3706 * configure.ac (*-*-osf*): Remove.
3707 (alpha*-dec-osf*): Remove.
3708 * configure: Regenerate.
3709
3710 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
3711 config/alpha/va_list.h, config/alpha/x-osf: Remove.
3712
3713 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
3714 * config/alpha/alpha.c (struct machine_function): Update comment.
3715 (alpha_start_function): Remove Tru64 UNIX as handling for
3716 max_frame_size.
3717 * config/alpha/alpha.md ("exception_receiver"): Remove
3718 TARGET_LD_BUGGY_LDGP.
3719 ("*exception_receiver_2"): Likewise.
3720 * except.c (finish_eh_generation): Remove Tru64 reference.
3721 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
3722 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
3723 * target.def (handle_pragma_extern_prefix): Remove.
3724
3725 * Makefile.in (mips-tfile.o-warn): Remove.
3726 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
3727 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
3728 * mips-tdump.c, mips-tfile.c: Remove.
3729
3730 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
3731 extern_prefix.
3732 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
3733 (Specific, alpha*-dec-osf5.1): Note removal.
3734 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
3735 Remove.
3736 * doc/tm.texi: Regenerate.
3737 * doc/trouble.texi (Cross-Compiler Problems): Remove.
3738
3739 2012-03-12 Richard Guenther <rguenther@suse.de>
3740
3741 * config/arm/arm.c (neon_dereference_pointer): Do not call
3742 covert during RTL expansion.
3743
3744 2012-03-12 Tristan Gingold <gingold@adacore.com>
3745
3746 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
3747 Options. Mention -mpointer-size.
3748
3749 2012-03-12 Richard Guenther <rguenther@suse.de>
3750
3751 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
3752 build_nonstandard_integer_type.
3753
3754 2012-03-12 Richard Guenther <rguenther@suse.de>
3755
3756 * tree.c (signed_or_unsigned_type_for): Use
3757 build_nonstandard_integer_type.
3758 (signed_type_for): Adjust documentation.
3759 (unsigned_type_for): Likewise.
3760 * tree-pretty-print.c (dump_generic_node): Use standard names
3761 for non-standard integer types if available.
3762
3763 2012-03-12 Tristan Gingold <gingold@adacore.com>
3764
3765 * config/vms/vms.opt: Add vms-opts.h header.
3766 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
3767 target mask.
3768 (-mvms-return-codes): Document.
3769 (-mpointer-size): New option.
3770 (vms_pointer_size): Add enumeration.
3771 * config/vms/vms-opts.h: New file.
3772 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
3773 __INITIAL_POINTER_SIZE.
3774 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
3775 (C_COMMON_OVERRIDE_OPTIONS): Define.
3776 (DWARF2_ADDR_SIZE): Define.
3777 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
3778 * config/vms/vms-protos.h (vms_c_common_override_options):
3779 New prototype.
3780 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
3781 if -mno-pointer-size.
3782 (vms_c_common_override_options): New function.
3783 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
3784 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
3785 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
3786 and flag_vms_pointer_size.
3787 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
3788 * config.gcc (*-*-*vms*): Define xm_file.
3789 (alpha*-dec-*vms*): Do not define xm_file.
3790 (alpha64-dec-*vms*): Remove.
3791 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
3792 and tmake_file.
3793
3794 2012-03-12 Jakub Jelinek <jakub@redhat.com>
3795
3796 PR tree-optimization/51721
3797 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
3798 if (int) unsvar cmp CST.
3799
3800 2012-03-12 Richard Guenther <rguenther@suse.de>
3801
3802 * tree-sra.c (create_access_replacement): Only rename the replacement
3803 if we can rewrite it into SSA form. Properly mark register typed
3804 replacements that we cannot rewrite with TREE_ADDRESSABLE.
3805 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
3806 for aggregate or BLKmode results.
3807
3808 2012-03-12 Jakub Jelinek <jakub@redhat.com>
3809
3810 PR tree-optimization/52533
3811 * tree-vrp.c (register_edge_assert_for_2): Use double_int
3812 type for mask, only handle shifts by non-zero in-range
3813 shift count, for LE_EXPR and GT_EXPR if new_val is
3814 maximum, don't add the assertion.
3815
3816 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
3817
3818 * doc/invoke.texi: Document -mrtm option.
3819 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
3820 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
3821 (ix86_handle_option): Handle OPT_mrtm.
3822 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
3823 xtestintrin.h.
3824 (x86_64-*-*): Ditto.
3825 * i386-builtin-types.def (INT_FTYPE_VOID): New.
3826 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3827 __RTM__ if needed.
3828 (ix86_target_string): Define -mrtm option.
3829 (PTA_RTM): New.
3830 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
3831 Handle new option.
3832 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
3833 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
3834 IX86_BUILTIN_XTEST.
3835 (bdesc_special_args): Ditto.
3836 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
3837 (ix86_expand_special_args_builtin): Handle new built-in type.
3838 (ix86_expand_builtin): Handle XABORT instruction.
3839 * config/i386/i386.h (TARGET_RTM): New.
3840 * config/i386/i386.md (UNSPECV_XBEGIN): New.
3841 (UNSPECV_XEND): Ditto.
3842 (UNSPECV_XABORT): Ditto.
3843 (UNSPECV_XTEST): Ditto.
3844 (xbegin): Ditto.
3845 (xbegin_1): Ditto.
3846 (xend): Ditto.
3847 (xabort): Ditto
3848 (xtest): Ditto.
3849 (xtest_1): Ditto.
3850 * config/i386/i386.opt (mrtm): New.
3851 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
3852 * config/i386/rtmintrin.h: New header.
3853 * config/i386/xtestintrin.h: Ditto.
3854
3855 2012-03-12 Tristan Gingold <gingold@adacore.com>
3856
3857 * ginclude/stddef.h: Adjust previous patch.
3858 Use __VMS__ instead of VMS.
3859
3860 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
3861
3862 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
3863 Also convert sequences with CC setting arithmetic instruction.
3864
3865 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
3866
3867 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
3868 from C Language Options to Preprocessor Options.
3869 (C Dialect Options): Move -no-integrated-cpp documentation
3870 from here...
3871 (Preprocessor Options): ...to here. Rewrite the description
3872 so it makes more sense, and remove discussion of merging front ends.
3873
3874 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
3875
3876 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
3877 needed for loop.
3878 (ix86_expand_setmem): Likewise.
3879
3880 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
3881
3882 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
3883 convert_to_mode.
3884
3885 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
3886
3887 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
3888 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
3889
3890 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
3891
3892 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
3893
3894 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
3895
3896 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
3897 TARGET_64BIT.
3898
3899 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
3900 Uros Bizjak <ubizjak@gmail.com>
3901
3902 * config/i386/predicates.md (call_insn_operand): Allow
3903 constant_call_address_operand in Pmode only.
3904 (sibcall_insn_operand): Ditto.
3905 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
3906 (*call_vzeroupper): Ditto.
3907 (*sibcall): Ditto.
3908 (*sibcall_vzeroupper): Ditto.
3909 (*call_value): Ditto.
3910 (*call_value_vzeroupper): Ditto.
3911 (*sibcall_value): Ditto.
3912 (*sibcall_value_vzeroupper): Ditto.
3913 (*indirect_jump): Ditto.
3914 (*tablejump_1): Ditto.
3915 (indirect_jump): Convert memory address to word mode for TARGET_X32.
3916 (tablejump): Ditto.
3917 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
3918 to word mode.
3919
3920 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
3921
3922 PR target/51244
3923 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
3924 Use movrt_negc instead of negc pattern for non-SH2A.
3925 (*movnegt): Remove.
3926 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
3927
3928 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
3929
3930 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
3931 if Pmode != word_mode.
3932 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
3933 Pmode == SImode for TARGET_X32.
3934
3935 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
3936 (tls_initial_exec_x32): Likewise.
3937
3938 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
3939
3940 PR rtl-optimization/52528
3941 * combine.c (can_combine_p): Add setting of subst_low_luid
3942 before call to expand_field_assignment().
3943
3944 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
3945
3946 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
3947 and related program names.
3948
3949 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
3950
3951 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
3952
3953 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
3954
3955 PR target/52530
3956 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
3957 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
3958 to set code to 'q'.
3959 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
3960 (*movdi_internal_rex64): Use %E operand modifier for lea.
3961 (*movsi_internal): Ditto.
3962 (*lea_1): Ditto.
3963 (*lea<mode>_2): Ditto.
3964 (*lea_{3,4,5,6}_zext): Ditto.
3965 (*tls_global_dynamic_32_gnu): Ditto.
3966 (*tls_global_dynamic_64): Ditto.
3967 (*tls_dynamic_gnu2_lea_32): Ditto.
3968 (*tls_dynamic_gnu2_lea_64): Ditto.
3969 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
3970
3971 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3972
3973 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
3974 redefine to be NULL if the current bit-size is different from the
3975 configured bit-size.
3976
3977 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
3978 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
3979 set the default tuning. Add asserts to make sure the cpu and tune
3980 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
3981 test whether the index is set, instead of > 0.
3982 (rs6000_file_start): Do not reset the default cpu if the current
3983 bit-size is different from the configured bit-size.
3984
3985 2012-03-09 Tristan Gingold <gingold@adacore.com>
3986
3987 * config/vms/vms-crtlmap.map: Add comments.
3988 Add entries needed to build Ada RTS.
3989
3990 2012-03-09 Tristan Gingold <gingold@adacore.com>
3991
3992 * ginclude/stddef.h: Do not define __size_t on VMS.
3993
3994 2012-03-09 Tristan Gingold <gingold@adacore.com>
3995
3996 * c-tree.h (c_default_pointer_mode): New variable.
3997 * c-decl.c (c_default_pointer_mode): New variable.
3998 (c_build_pointer_type): New function.
3999 (grokdeclarator): Call c_build_pointer_type instead
4000 of build_pointer_type.
4001
4002 * config/vms/vms-c.c: Include c-tree.h
4003 (saved_pointer_mode): New variable.
4004 (handle_pragma_pointer_size): New function.
4005 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
4006 (vms_c_register_pragma): Register __pointer_size and
4007 __required_pointer_size pragmas.
4008
4009 2012-03-09 Tristan Gingold <gingold@adacore.com>
4010
4011 * config/vms/vms-c.c (vms_construct_include_filename): New function.
4012 (vms_c_register_includes): Reference it.
4013
4014 2012-03-09 Andrew Pinski <apinski@cavium.com>
4015
4016 PR middle-end/51988
4017 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
4018 print_generic_expr.
4019 (tree_ssa_phiopt_worker): Go through all the PHIs for
4020 value_replacement instead of just the singleton one.
4021 (value_replacement): Change return type to int. Return 0 instead of
4022 false.
4023 Allow the middle basic block to contain more than just the defining
4024 statement.
4025 Handle non empty middle basic blocks.
4026 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
4027
4028 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
4029
4030 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
4031 array reference and component reference.
4032 (analyze_scalar_evolution_for_address_of): New.
4033
4034 2012-03-08 Jie Zhang <jzhang918@gmail.com>
4035
4036 PR target/49862
4037 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
4038 (hwloop_pattern_reg): Fix set but not used warning.
4039 (bfin_reorg_loops): Remove unused parameter.
4040 (bfin_reorg): Update use of bfin_reorg_loops.
4041
4042 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
4043
4044 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
4045 with integer parameters in registers.
4046 (gen_push): Push register in word_mode instead of Pmode.
4047 (ix86_emit_save_regs): Likewise.
4048 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
4049 (gen_pop): Pop register in word_mode instead of Pmode.
4050 (ix86_emit_restore_regs_using_pop): Likewise.
4051 (ix86_expand_prologue): Replace Pmode with word_mode for push
4052 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
4053 restore RAX and R10 in word_mode.
4054 (ix86_emit_restore_regs_using_mov): Restore integer registers
4055 in word_mode.
4056 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
4057 word_mode.
4058 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
4059 (ix86_split_long_move): Likewise.
4060
4061 * config/i386/i386.md (W): New.
4062 (*push<mode>2_prologue): Replace :P with :W.
4063 (*pop<mode>1): Likewise.
4064 (*pop<mode>1_epilogue): Likewise.
4065 (push/pop peephole2): Use word_mode scratch registers.
4066
4067 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
4068
4069 * config/i386/predicates.md (indirect_branch_operand): Simplify.
4070
4071 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
4072
4073 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
4074 for constants in [-63,63].
4075
4076 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
4077
4078 PR target/52530
4079 Revert:
4080 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
4081
4082 * config/i386/i386.c (ix86_print_operand_address): Only handle
4083 zero-extended DImode addresses.
4084
4085 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4086
4087 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
4088 * configure: Regenerate.
4089
4090 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
4091
4092 PR target/52496
4093 * config/avr/avr.c (avr_mem_clobber): New static function.
4094 (avr_expand_delay_cycles): Add memory clobber operand to
4095 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
4096 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
4097 (enable_interrupt, disable_interrupt): New expander.
4098 (nopv, sleep, wdr): New expanders.
4099 (delay_cycles_1): Add memory clobber.
4100 (delay_cycles_2): Add memory clobber.
4101 (delay_cycles_3): Add memory clobber.
4102 (delay_cycles_4): Add memory clobber.
4103 (cli_sei): New insn from former "enable_interrupt",
4104 "disable_interrupt" with memory clobber.
4105 (*wdt): New insn from former "wdt" with memory clobber.
4106 (*nopv): Similar, but for "nopv".
4107 (*sleep): Similar, but for "sleep".
4108
4109 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
4110 Kaz Kojima <kkojima@gcc.gnu.org>
4111
4112 PR target/52503
4113 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
4114 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
4115 (SUBTARGET_OVERRIDE_OPTIONS): Define.
4116
4117 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
4118
4119 * config/i386/predicates.md (x86_64_zext_general_operand): New.
4120 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
4121 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
4122
4123 2012-03-07 Walter Lee <walt@tilera.com>
4124
4125 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
4126 REG_CFA_* notes for the stack pointer.
4127 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
4128 EH_RETURN_STACKADJ_RTX.
4129 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
4130 generate REG_CFA_* notes for the stack pointer.
4131 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
4132 by EH_RETURN_STACKADJ_RTX.
4133
4134 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
4135
4136 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
4137 when __AVR_3_BYTE_PC__ is defined.
4138
4139 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
4140
4141 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
4142 (ix86_print_operand): Handle '^'.
4143 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
4144 using P mode iterator. Add %^ to asm template to conditionally emit
4145 addr32 prefix.
4146 (*rep_movdi_rex64): Ditto.
4147 (*strsetdi_rex_1): Ditto.
4148 (*rep_stosdi_rex64): Ditto.
4149 (*strmov{si,hi,qi}_1): Add %^ to asm template to
4150 conditionally emit addr32 prefix.
4151 (*rep_mov{si,qi}): Ditto.
4152 (*strset{si,hi,qi}): Ditto.
4153 (*rep_stos{si,qi}): Ditto.
4154 (*cmpstrnqi_nz_1): Ditto.
4155 (*cmpstrnqi_1): Ditto.
4156 (*strlenqi_1): Ditto.
4157
4158 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
4159
4160 * config/i386/i386.c (function_value_64): Return pointers in
4161 word_mode instead of Pmode.
4162 (ix86_promote_function_mode): Likewise.
4163
4164 2012-03-07 Richard Guenther <rguenther@suse.de>
4165
4166 * coverage.c (get_gcov_type): Use type_for_mode.
4167 (get_gcov_unsigned_t): Likewise.
4168 * expr.c (store_constructor): Use type_for_mode.
4169 (try_casesi): Likewise.
4170 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
4171 (add_standard_iv_candidates): Use standard type trees.
4172 * dojump.c (do_jump): Remove dead code.
4173
4174 2012-03-07 Richard Guenther <rguenther@suse.de>
4175
4176 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
4177
4178 2012-03-07 Richard Guenther <rguenther@suse.de>
4179
4180 * convert.c (strip_float_extensions): Move ...
4181 * tree.c (strip_float_extensions): ... here.
4182
4183 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
4184
4185 PR target/52484
4186 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
4187
4188 2012-03-07 Richard Guenther <rguenther@suse.de>
4189
4190 * omp-low.c (extract_omp_for_data): Use signed_type_for.
4191 (expand_omp_for_generic): Likewise.
4192 (expand_omp_for_static_nochunk): Likewise.
4193 (expand_omp_for_static_chunk): Likewise.
4194 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
4195 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
4196 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4197 Use unsigned_type_for.
4198 (vect_create_cond_for_align_checks): Use signed_type_for.
4199
4200 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
4201
4202 PR rtl-optimization/52203
4203 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
4204 all callers to pass NULL except ...
4205 (reset_sched_cycles_in_current_ebb): ... here, save the value
4206 in new variable 'empty'. Increase issue_rate only for
4207 non-empty insns.
4208
4209 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
4210
4211 PR target/51417
4212 * Makefile.in: Let install-gcc-ar depend on installdirs,
4213 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
4214 Don't double canonicalize if cross-compiling.
4215
4216 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
4217
4218 PR target/52506
4219 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
4220 to: RAMPZ, RAMPY, RAMPX, RAMPD.
4221 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
4222
4223 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
4224
4225 PR target/52505
4226 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
4227 from RAM.
4228 * config/avr/avr.md (xload_8): Adjust insn length.
4229
4230 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
4231
4232 PR target/52461
4233 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
4234 if RAMPZ affects reading from RAM.
4235
4236 2012-03-07 Richard Guenther <rguenther@suse.de>
4237
4238 PR pch/52518
4239 PR pch/38987
4240 * doc/invoke.texi (Precompiled Headers): Remove sentence that
4241 suggests you can include PCHs from inside another header.
4242
4243 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
4244
4245 PR middle-end/52515
4246 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
4247
4248 2012-03-07 Kai Tietz <ktietz@redhat.com>
4249
4250 * doc/invoke.texi (fwritable-relocated-rdata): Document
4251 new Cygwin/MinGW target option.
4252 * config/i386/winnt.c (i386_pe_unique_section): Ignore
4253 reloc if flag -fwritable-relocated-rdata is not set.
4254 (i386_pe_section_type_flags): Likewise.
4255 * config/i386/cygming.opt (fwritable-relocated-rdata):
4256 Add new flag variable flag_writable_rel_rdata.
4257
4258 2012-03-07 Richard Guenther <rguenther@suse.de>
4259
4260 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
4261 precision against gimple constraints.
4262
4263 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
4264
4265 PR middle-end/52372
4266 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
4267 variables.
4268 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
4269 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
4270 variables.
4271 (init_emit_regs): Move associated initialization to...
4272 (init_emit_once): ...here.
4273
4274 2012-03-06 Richard Henderson <rth@redhat.com>
4275
4276 * config/m68k/m68k.h (ISA_HAS_TAS): New.
4277 * config/m68k/sync.md (atomic_test_and_set): Use it.
4278 (atomic_test_and_set_1): Likewise.
4279
4280 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
4281
4282 PR target/50310
4283 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
4284 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
4285 (vector_ltgt<mode>): Likewise.
4286 (vector_ordered<mode>): Likewise.
4287 (vector_unordered<mode>): Likewise.
4288 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4289
4290 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
4291
4292 * trans-mem.c: New typedef for tm_region_p.
4293 Define vector types for tm_region_p.
4294 (tm_region_init): Replace region_worklist to a vector called
4295 bb_regions.
4296
4297 2012-03-06 Richard Guenther <rguenther@suse.de>
4298
4299 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
4300 MEM_REF with constant pointer operand.
4301
4302 2012-03-06 Richard Guenther <rguenther@suse.de>
4303
4304 PR middle-end/52493
4305 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
4306
4307 2012-03-06 Tristan Gingold <gingold@adacore.com>
4308
4309 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
4310 (external_model_kind): Improve documentation.
4311 (vms_pragma_extern_model): Handle relaxed_redef.
4312 (vms_c_register_pragma): Allow expansion for nomember_alignment.
4313
4314 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
4315
4316 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
4317 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
4318 Some more notes on EIND usage and reorder EIND subsection.
4319
4320 2012-03-06 Tristan Gingold <gingold@adacore.com>
4321
4322 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
4323 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
4324
4325 2012-03-06 Tristan Gingold <gingold@adacore.com>
4326
4327 * config/vms/t-vmsnative (version): Define.
4328 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
4329
4330 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
4331
4332 PR rtl-optimization/52250
4333 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
4334 to put note list into. Unconditionally call move_bb_info.
4335 (move_bb_info): Do not assert the blocks being in the same region,
4336 just drop the note list if they are not.
4337
4338 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
4339
4340 PR target/51244
4341 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
4342 and use unified expansion logic.
4343 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
4344 closer to the existing movt insn.
4345 (negc): Rename insn to *negc. Add new expander.
4346 (movnegt): Use xor pattern for T bit negation. Reserve helper
4347 constant for negc pattern.
4348 (*movnegt): New insn and splitter.
4349
4350 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
4351
4352 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
4353 PLUS_EXPR.
4354
4355 2012-03-05 Richard Henderson <rth@redhat.com>
4356
4357 * genemit.c (main): Include "target.h" in insn-emit.c.
4358 * Makefile.in (insn-emit.o): Depend on TARGET_H.
4359 * config/sh/sync.md (atomic_test_and_set): Reference
4360 targetm.atomic_test_and_set_trueval instead of
4361 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
4362
4363 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
4364
4365 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
4366 Make static.
4367
4368 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
4369
4370 * langhooks.c (add_builtin_type): New function.
4371 * langhooks.h (add_builtin_type): Export it.
4372 * config/mep/mep.c (mep_init_builtins): Use it.
4373 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
4374
4375 2012-03-05 Jakub Jelinek <jakub@redhat.com>
4376
4377 PR debug/51902
4378 * tree.h (BLOCK_SAME_RANGE): Define.
4379 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
4380 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
4381 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
4382 isn't equal to supercontext fragment's fragment chain.
4383 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
4384 fragment origin.
4385 (blocks_nreverse_all): Likewise.
4386 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
4387 BLOCK_SUPERCONTEXT to supercontext fragment instead of
4388 supercontext fragment's fragment origin.
4389 * dwarf2out.c (add_high_low_attributes): If stmt has the same
4390 range as its parent (or parents thereof etc.), use the parent's
4391 DW_AT_ranges value instead of creating a new .debug_ranges range.
4392
4393 2012-03-05 Richard Henderson <rth@redhat.com>
4394
4395 PR tree-opt/52242
4396 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
4397 * omp-low.c (expand_omp_atomic): Assume anything aligned to
4398 BIGGEST_ALIGNMENT is aligned.
4399
4400 2012-03-05 Richard Henderson <rth@redhat.com>
4401
4402 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
4403 * config/sh/sh.c: ... here.
4404
4405 2012-03-05 Richard Henderson <rth@redhat.com>
4406
4407 PR target/52481
4408 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
4409 instead of calling negqi2 directly.
4410
4411 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
4412
4413 PR middle-end/52463
4414 * trans-mem.c (tm_region_init): Use last_basic_block.
4415
4416 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
4417
4418 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
4419 * config/sh/sync.md (atomic_test_and_set): New expander.
4420 (tasb, atomic_test_and_set_soft): New insns.
4421 * config/sh/sh.opt (menable-tas): New option.
4422 * doc/invoke.texi (SH Options): Document it.
4423
4424 2012-03-05 Richard Guenther <rguenther@suse.de>
4425
4426 * cfgloop.c (verify_loop_structure): Verify dominators before
4427 using them.
4428 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
4429 dominators from here.
4430 * graphite-scop-detection.c (create_sese_edges): Likewise.
4431 * loop-doloop.c (doloop_optimize_loops): Likewise.
4432 * loop-init.c (loop_optimizer_init): Likewise.
4433 * loop-unroll.c (unroll_and_peel_loops): Likewise.
4434 * loop-unswitch.c (unswitch_loops): Likewise.
4435 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
4436 * tree-parloops.c (parallelize_loops): Likewise. Verify
4437 only when checking is enabled.
4438 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
4439
4440 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
4441
4442 * genautomata.c (parse_automata_opt): New static function.
4443 (initiate_automaton_gen): Remove all option handling code. Remove
4444 argc argument. All callers changed.
4445 (main): Call init_rtx_reader_args_cb with the new function as argument.
4446
4447 2012-03-05 Richard Guenther <rguenther@suse.de>
4448
4449 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
4450 * tree-if-conv.c (combine_blocks): Free post-dominator info
4451 after breaking it.
4452 * tree-parloops.c (create_parallel_loop): Free and re-compute
4453 dominator info after breaking it.
4454
4455 2012-03-05 Richard Guenther <rguenther@suse.de>
4456
4457 PR middle-end/52353
4458 * optabs.h (trapv_unoptab_p): New function.
4459 (trapv_binoptab_p): Likewise.
4460 * optabs.c (expand_binop): Use emit_libcall_block_1 with
4461 a proper equiv_may_trap argument.
4462 (expand_unop): Likewise.
4463 (emit_libcall_block_1): Take extra argument whether the
4464 instruction may trap. Renamed from ...
4465 (emit_libcall_block): ... this. New wrapper.
4466
4467 2012-03-05 Jakub Jelinek <jakub@redhat.com>
4468
4469 PR tree-optimization/51721
4470 * tree-vrp.c (register_edge_assert_for_2): If comparing
4471 lhs of right shift by constant with an integer constant,
4472 add ASSERT_EXPRs for the rhs1 of the right shift.
4473
4474 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
4475
4476 2012-03-05 Richard Guenther <rguenther@suse.de>
4477
4478 * tree.c (integer_zerop): Handle VECTOR_CSTs.
4479 (integer_onep): Likewise.
4480 (integer_all_onesp): Likewise.
4481
4482 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
4483
4484 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
4485
4486 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
4487
4488 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
4489 instead of TARGET_64BIT.
4490
4491 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
4492
4493 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
4494 adjust_stack_insn.
4495
4496 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
4497
4498 * config/i386/i386.c (ix86_print_operand_address): Only handle
4499 zero-extended DImode addresses.
4500
4501 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
4502
4503 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
4504 taken and cputaken as bool.
4505
4506 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
4507
4508 * config/i386/constraints.md (Ya): New internal constraint.
4509 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
4510 (*zero_extendsidi2_rex64): Add x,x alternative.
4511 (*zero_extendsidi2): Ditto. Add o,0 alternative.
4512 Remove flags reg clobber. Adjust corresponding splits.
4513 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
4514 zero_extendqisi2 expanders using SWI12 mode iterator.
4515 (zero_extend<mode>si2_and): Macroize insn from
4516 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
4517 splitters.
4518 (*zero_extend<mode>si2): Macroize insn from
4519 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
4520 (*zero_extend*2_movzbl_and): Remove insn patterns.
4521 (zero_extendqihi2_and): Merge corresponding splitter.
4522 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
4523 (*zero_extend*2_movzbl_and): Remove insn patterns.
4524 (*anddi_1): Split TYPE_IMOVX instructions.
4525 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
4526 (*andhi_1): Ditto.
4527 (and->zext splitter): Add splitter pattern.
4528 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
4529
4530 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
4531
4532 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
4533 x86-specific text.
4534 (Debugging Options): Likewise.
4535 (Optimize Options): Likewise.
4536 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
4537 with other architectures. Use official processor names with correct
4538 spelling/capitalization. Fix formatting and grammar issues.
4539 (i386 and x86-64 Windows Options): Similar cleanup here.
4540
4541 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
4542
4543 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
4544
4545 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
4546
4547 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
4548 DBX_REGISTER_NUMBER.
4549
4550 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
4551
4552 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
4553 operand is CONST_INT. Take COSTS_N_INSNS into account.
4554 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
4555 of shiftcosts.
4556
4557 2012-03-02 Richard Henderson <rth@redhat.com>
4558
4559 * optabs.c (expand_atomic_test_and_set): Honor
4560 atomic_test_and_set_trueval even when atomic_test_and_set
4561 optab is not in use.
4562
4563 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
4564
4565 PR target/48596
4566 PR target/48806
4567 * config/sh/sh.c (sh_register_move_cost): Increase cost between
4568 GENERAL_REGS and FP_REGS for SImode.
4569
4570 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
4571
4572 PR target/49486
4573 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
4574 (absdi2): New expander.
4575 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
4576
4577 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
4578
4579 * config/sh/sync.md (atomic_exchange<mode>): New expander.
4580 (atomic_exchange<mode>_soft): New insn.
4581
4582 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
4583
4584 * config/sh/sync.md: Update copyright notice dates.
4585 (atomic_compare_and_swap<mode>): Use SImode for return value instead
4586 of QImode.
4587 (atomic_compare_and_swap<mode>_soft): Likewise.
4588
4589 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
4590
4591 PR target/31640
4592 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
4593 * config/sh/sh.c: Update copyright notice dates.
4594 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
4595 alignment for TARGET_HARD_SH4.
4596 (sh_option_override): Reduce default function alignment. Set
4597 loop alignment to 4 bytes when not optimizing for size.
4598
4599 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
4600
4601 PR middle-end/50335
4602 * doc/invoke.texi (floop-flatten): Remove.
4603 * toplev.c (process_options): Remove references to flag_loop_flatten.
4604 * tree-ssa-loop.c (gate_graphite_transform): Same.
4605 * common.opt (floop-flatten): Obsolete.
4606 * graphite-poly.c (apply_poly_transforms): Remove reference to
4607 flag_loop_flatten.
4608 * Makefile.in (graphite-flattening.o): Remove.
4609 * graphite-flattening.c: Remove.
4610
4611 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
4612
4613 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
4614 having mode compatible with the mode of previous compare. Substitute
4615 compare mode of previous compare with the mode, compatible
4616 with eliminated and previous compare.
4617
4618 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
4619
4620 * config/rs6000/dfp.md (floatdidd2): New define_insn.
4621
4622 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
4623
4624 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
4625 compatible with CCGOCmode and CCGCmode.
4626
4627 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
4628
4629 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
4630
4631 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4632
4633 * config/arm/arm.c (arm_sat_operator_match): New function.
4634 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
4635 * config/arm/arm.md ("insn" attribute): Add "sat" value.
4636 ("SAT", "SATrev"): New code iterators.
4637 ("SATlo", "SAThi"): New code iterator attributes.
4638 ("*satsi_<SAT:code>"): New pattern.
4639 ("*satsi_<SAT:code>_shift"): Likewise.
4640 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
4641 and "shift" attributes.
4642 ("arm_usatsihi"): Add "insn" attribute.
4643 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
4644 by powers of two. Do not allow shift by 32.
4645
4646 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
4647
4648 PR target/46716
4649 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
4650 to pass the argument in the register of "natural" mode.
4651
4652 2012-03-02 Richard Guenther <rguenther@suse.de>
4653
4654 PR tree-optimization/52406
4655 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
4656 (struct indices): Add unconstrained_base member.
4657 (struct dr_alias): Remove unused vops member.
4658 (DR_UNCONSTRAINED_BASE): New define.
4659 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
4660 add indices to allow their disambiguation. Make DR_BASE_OBJECT
4661 be an artificial access that covers the whole indexed object,
4662 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
4663 plain decl base-objects to their MEM_REF variant.
4664 (dr_may_alias_p): When the base-object of either data reference
4665 has unknown size use only points-to information.
4666 (compute_affine_dependence): Make dumps easier to read and
4667 more verbose.
4668 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
4669 DR_REF when looking for packed references.
4670 (vect_supportable_dr_alignment): Likewise.
4671
4672 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
4673
4674 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
4675 Improve conditions for peepholes of loads followed by commutative
4676 operators.
4677 * config/arm/ldmstm.md: Regenerated.
4678
4679 2012-03-02 Richard Guenther <rguenther@suse.de>
4680
4681 * BASE-VER: Set to 4.8.0.
4682
4683 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
4684
4685 * config.gcc (obsolete): Add all ARM targets using the FPA.
4686 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
4687 * doc/install.texi: Avoid references to obsolete ARM ports.
4688
4689 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
4690
4691 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
4692
4693 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
4694 Joern Rennecke <joern.rennecke@embecosm.com>
4695
4696 * doc/extend.texi: Expand and update information on interrupt
4697 attribute for Epiphany.
4698
4699 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
4700
4701 * config/sh/sh-protos.h: Update copyright notice dates.
4702 * config/sh/sh.h: Likewise.
4703 * config/sh/sh.md: Likewise.
4704 * config/sh/constraints.md: Likewise.
4705 * config/sh/predicates.md: Likewise.
4706
4707 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
4708
4709 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
4710 * config/sh/sh.c (tertiary_reload_operand): Likewise.
4711
4712 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
4713
4714 * config/sh/constraints.md: Fix comment typo.
4715
4716 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4717
4718 PR target/52408
4719 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
4720 unsigned HOST_WIDE_INT.
4721 (zvdep_imm64): Likewise.
4722 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
4723 (vdepi_and): Likewise.
4724 Likewise for unamed 64-bit patterns.
4725 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
4726
4727 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
4728
4729 PR debug/52001
4730 PR rtl-optimization/52417
4731 * cselib.c (cselib_any_perm_equivs): New variable.
4732 (cselib_reset_table): Check that it's not set when not
4733 preserving constants.
4734 (cselib_add_permanent_equiv): Set it.
4735 (cselib_have_permanent_equivalences): New.
4736 (cselib_init, cselib_finish): Reset it.
4737 * cselib.h (cselib_have_permanent_equivalences): Declare.
4738 * alias.c (get_addr): Restore earlier behavior when there
4739 aren't permanent equivalences.
4740
4741 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
4742
4743 * config/mn10300/mn10300-modes.def: Fix copyright notice.
4744 * config/v850/v850-modes.def: Fix copyright notice.
4745
4746 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
4747
4748 * doc/extend.texi (AVR Built-in Functions): Document
4749 __builtin_avr_flash_segment.
4750
4751 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
4752 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
4753 (*split.flash_segment): New insn-and-split.
4754 * config/avr/avr.c (avr_init_builtins): Add local variables:
4755 const_memx_void_node, const_memx_ptr_type_node,
4756 char_ftype_const_memx_ptr.
4757
4758 2012-03-01 Jakub Jelinek <jakub@redhat.com>
4759
4760 PR tree-optimization/52445
4761 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
4762 add ssa_name_ver, offset and size fields and change store field
4763 to bool.
4764 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
4765 (add_or_mark_expr): Likewise. Only consider previous stores
4766 with the same size and offset.
4767 (nt_init_block): Only look at gimple_assign_single_p stmts,
4768 doesn't look at rhs2.
4769
4770 2012-03-01 Richard Guenther <rguenther@suse.de>
4771
4772 PR middle-end/52443
4773 * tree-cfg.c (verify_gimple_assign_unary): Allow any
4774 conversions from integral types to pointer types.
4775
4776 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
4777
4778 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
4779 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
4780 unintentionally removed in r184616.
4781
4782 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4783
4784 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
4785 3DNow from bdver1.
4786
4787 2012-02-29 Jakub Jelinek <jakub@redhat.com>
4788 Uros Bizjak <ubizjak@gmail.com>
4789
4790 PR target/52437
4791 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
4792 alternatives, add "e" constraint to the new last alternative
4793 and ! to last 3 alternatives.
4794
4795 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
4796
4797 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
4798 DW_AT_artificial attributes at the end of the processing.
4799 (gen_array_type_die): Likewise.
4800 (gen_enumeration_type_die): Likewise.
4801 (gen_struct_or_union_type_die): Likewise.
4802 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
4803 the parent type.
4804
4805 2012-02-29 Jakub Jelinek <jakub@redhat.com>
4806
4807 PR middle-end/52419
4808 * expr.c (expand_assignment): If doing misaligned store that doesn't
4809 cover all mode bits, perform a RMW cycle.
4810
4811 PR tree-optimization/52429
4812 * tree-parloops.c (separate_decls_in_region_debug): Return early
4813 if var is LABEL_DECL.
4814
4815 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4816
4817 PR tree-optimization/52424
4818 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
4819 calling dom_thread_across_edge.
4820
4821 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
4822
4823 * config/avr/avr.c: Move definition of TARGET macros to end of file.
4824
4825 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
4826
4827 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
4828 * config/avr/avr.c (avr_output_bld): Remove unused function.
4829 (avr_out_sbxx_branch): Use "%T" to print bit position.
4830
4831 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
4832
4833 * config/avr/avr.md: Untabify.
4834
4835 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
4836
4837 * config/avr/avr.md (eqne): New code iterator.
4838 (*dec-and-branchsi): Use it in text peephole's condition.
4839 (*dec-and-branchhi): Ditto.
4840 (*dec-and-branchqi): Ditto.
4841
4842 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
4843
4844 PR target/49939
4845 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
4846 the device does not have the skip-bug.
4847
4848 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
4849
4850 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
4851 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
4852 -mpretend-cmove): New.
4853
4854 2012-02-29 Jakub Jelinek <jakub@redhat.com>
4855
4856 PR bootstrap/52397
4857 * df.h (struct df_d): Adjust comment that hard_regs_live_count
4858 doesn't count DEBUG_INSN refs.
4859 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
4860 for DEBUG_INSN refs.
4861
4862 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4863
4864 Partially revert:
4865
4866 2012-02-20 Richard Guenther <rguenther@suse.de>
4867 PR tree-optimization/52298
4868 * tree-vect-stmts.c (vectorizable_load): Properly use
4869 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
4870
4871 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
4872
4873 PR middle-end/51752
4874 * gimple.h (gimple_in_transaction): New.
4875 (gimple_set_in_transaction): New.
4876 (struct gimple_statement_base): Add in_transaction field.
4877 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
4878 transaction loads.
4879 (tree_ssa_lim_initialize): Compute transaction bits.
4880 * tree.h (compute_transaction_bits): Protoize.
4881 * trans-mem.c (tm_region_init): Use the heap to store BB
4882 auxilliary data.
4883 (compute_transaction_bits): New.
4884
4885 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4886
4887 * gcc.c (display_help): Document --help=common and sort entries
4888 alphabetically.
4889
4890 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4891
4892 * doc/install.texi: Document check-$LANG specific shortcuts
4893
4894 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4895
4896 PR target/51534
4897 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
4898 and vcgtu.
4899 * config/arm/arm_neon.h: Regenerate.
4900 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
4901 (neon_vcgeu): New insn.
4902 (neon_vcgtu): Likewise.
4903 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
4904 (ops): Unsigned comparison intrinsics call a different builtin.
4905
4906 2012-02-28 Richard Guenther <rguenther@suse.de>
4907
4908 PR target/52407
4909 * config/i386/i386.c (ix86_expand_vector_set): Fix element
4910 ordering for the VEC_CONCAT for two element vectors for
4911 V2SFmode, V2SImode and V2DImode.
4912
4913 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
4914
4915 PR target/49448
4916 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
4917 detecting big-endian triplets.
4918
4919 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
4920
4921 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
4922 mode if there is no type information available.
4923
4924 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
4925
4926 PR tree-optimization/53207
4927 * doc/invoke.texi: Document as experimental and relying on graphite.
4928
4929 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
4930
4931 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
4932 of initializer to changes from r184614.
4933
4934 2012-02-28 Richard Guenther <rguenther@suse.de>
4935
4936 PR tree-optimization/52395
4937 * tree-sra.c (build_ref_for_offset): Also look at the base
4938 TYPE_ALIGN when figuring out the alignment of the replacement.
4939
4940 2012-02-28 Richard Guenther <rguenther@suse.de>
4941
4942 PR tree-optimization/52402
4943 * ipa-prop.c (ipa_modify_call_arguments): Properly use
4944 mis-aligned types when creating the accesses at the call site.
4945
4946 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
4947
4948 * config/avr/builtins.def: New file.
4949 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
4950 * config/avr/avr.c (enum avr_builtin_id): Use it.
4951 (avr_init_builtins): Use it. And use avr_bdesc.
4952 (bdesc_1arg): Remove.
4953 (bdesc_2arg): Remove.
4954 (bdesc_3arg): Remove.
4955 (struct avr_builtin_description): Add field n_args.
4956 (avr_bdesc): New static variable using builtins.def.
4957 (avr_expand_builtin): Use it.
4958 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
4959 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
4960 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
4961
4962 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
4963
4964 PR target/52148
4965 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
4966 match only one single hard register with respective hard reg rtx.
4967 (movmemx_<mode>): Ditto.
4968 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
4969 insn anatomy of movmem[x]_<mode>.
4970 (avr_out_movmem): Same for printing assembler and operand usage.
4971
4972 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
4973
4974 PR target/49868
4975 PR target/52261
4976 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
4977 address spaces located outside of device flash.
4978
4979 * config/avr/avr.h (base_arch_s): Remove field n_segments.
4980 (mcu_type_s): Add field n_flash.
4981 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
4982 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
4983 (AVR_MCU): Add N_FLASH argument.
4984 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
4985 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
4986 macro __FLASH<n> if that address space makes sense for the device.
4987 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
4988 outside of target flash.
4989 (avr_asm_named_section): Ditto.
4990 (avr_asm_select_section): Ditto.
4991 (avr_addr_space_convert): Ditto.
4992 (avr_emit_movmemhi): Ditto.
4993 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
4994 address space is outside of device flash.
4995 (avr_insert_attributes): Ditto.
4996 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
4997 avr_current_arch->n_segments.
4998
4999 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
5000
5001 PR target/52352
5002 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
5003 (*movabs<mode>_2): Likewise.
5004
5005 2012-02-27 Jakub Jelinek <jakub@redhat.com>
5006
5007 PR target/52375
5008 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
5009 s_register_operand in the test instead of REG_P. Don't call
5010 gen_reg_rtx if it won't be used.
5011
5012 PR tree-optimization/52376
5013 * ipa-split.c (split_function): Ignore CLOBBER stmts.
5014
5015 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
5016
5017 * ifcvt.c (noce_get_condition): Check condition variable is not
5018 small_register_classes_for_mode_p before accepting.
5019
5020 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
5021
5022 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
5023
5024 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5025
5026 Revert:
5027 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5028 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
5029 tuning parameters.
5030 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
5031
5032 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
5033
5034 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
5035
5036 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
5037
5038 * config/sh/predicates.md: Remove blank lines.
5039 * config/sh/sh.c: Fix typos in comments.
5040 * config/sh/constraints.md: Likewise.
5041 * config/sh/sh.md: Remove blank lines.
5042 Fix typos in comments. Use ;; as comment characters.
5043
5044 2012-02-26 Walter Lee <walt@tilera.com>
5045
5046 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
5047 (replace_mov_pcrel_step2): Ditto.
5048
5049 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
5050
5051 PR debug/52001
5052 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
5053 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
5054 and locs that reference values newer than the non-canonical value
5055 at hand. Return the canonical value as a worst case.
5056 (memrefs_conflict_p): Walk canonical value's locs.
5057
5058 PR debug/52001
5059 * cselib.c (preserve_only_constants): Rename to...
5060 (preserve_constants_and_equivs): ... this. Split out...
5061 (invariant_or_equiv_p): ... this. Preserve plus expressions
5062 of other preserved expressions too.
5063 (cselib_reset_table): Adjust.
5064 * var-tracking.c (reverse_op): Use canonical value to build
5065 reverse operation.
5066
5067 2012-02-23 Kai Tietz <ktietz@redhat.com>
5068
5069 * config/i386/i386.c (ix86_delegitimize_address): Handle
5070 UNSPEC_PCREL plus displacement.
5071
5072 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
5073
5074 PR target/52261
5075 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
5076 to test for unusedness in st X addressing.
5077
5078 2012-02-24 Richard Guenther <rguenther@suse.de>
5079
5080 PR middle-end/52361
5081 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
5082 (is_gimple_reg_type): Move inline ...
5083 * gimple.h (is_gimple_reg_type): ... here.
5084
5085 2012-02-24 Richard Guenther <rguenther@suse.de>
5086
5087 PR middle-end/52361
5088 * passes.c (execute_function_todo): When verifying SSA form
5089 verify gimple form first.
5090 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
5091
5092 2012-02-24 Richard Guenther <rguenther@suse.de>
5093
5094 PR middle-end/52355
5095 * fold-const.c (fold_addr_of_array_ref_difference): New function.
5096 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
5097
5098 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5099
5100 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
5101
5102 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5103
5104 * tree-phinodes.c (make_phi_node): Mark static.
5105 * tree-flow.h (make_phi_node): Remove extern decl.
5106 * doc/gimple.texi (make_phi_node): Remove documentation.
5107
5108 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5109
5110 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
5111 * tree-ssa-sccvn.c (print_scc): Ditto.
5112
5113 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5114
5115 * doc/passes.texi (Full redundancy elimination): Fix typo.
5116
5117 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5118
5119 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
5120
5121 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
5122
5123 PR bootstrap/52287
5124 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
5125
5126 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
5127
5128 PR c/52290
5129 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
5130
5131 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
5132
5133 * config/avr/avr.md (code_stdname): Add ior, xor.
5134 (xior): New code iterator.
5135 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
5136 (*<code_stdname><mode>qi.byte1-3): Ditto.
5137
5138 2012-02-23 Jakub Jelinek <jakub@redhat.com>
5139
5140 PR tree-optimization/52019
5141 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
5142 CLOBBER stmts.
5143
5144 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5145
5146 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
5147 HAVE_INITFINI_ARRAY to work around namespace pollution in
5148 certain versions of newlib system headers.
5149 * config.in: Regenerate.
5150 * configure: Regenerate.
5151 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
5152 instead of HAVE_INITFINI_ARRAY.
5153
5154 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
5155
5156 PR target/52330
5157 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
5158 is not offsettable memory reference.
5159
5160 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
5161
5162 PR target/18145
5163 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
5164 setting avr_need_clear_bss_p for __gnu_lto* symbols.
5165
5166 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
5167
5168 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
5169 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
5170
5171 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5172
5173 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
5174 library on Solaris 8 even without TLS support.
5175 * configure: Regenerate.
5176
5177 2012-02-22 Richard Guenther <rguenther@suse.de>
5178
5179 PR middle-end/52329
5180 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
5181 for GIMPLE_DEBUG stmts.
5182
5183 2012-02-22 Martin Jambor <mjambor@suse.cz>
5184
5185 PR middle-end/51782
5186 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
5187 according to the base object.
5188
5189 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
5190
5191 PR rtl-optimization/50063
5192 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
5193 and 2 (8-bit SP) in operand 2.
5194 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
5195 setup to use movhi_sp_r instead of vanilla move to write SP.
5196 Adjust REG_CFA notes to superseed unspec.
5197 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
5198 of vanilla move.
5199 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
5200 known to be off) only with TARGET_NO_INTERRUPTS. Never use
5201 irq_state 1 (IRQ known to be on) here.
5202
5203 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
5204
5205 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
5206 WORDS_BIG_ENDIAN.
5207 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
5208 assign_hard_reg): Likewise.
5209
5210 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
5211
5212 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
5213
5214 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
5215
5216 * config/avr/avr.md
5217 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
5218 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
5219
5220 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
5221
5222 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
5223 prototype from here to...
5224 * config/avr/avr.h: ...here.
5225
5226 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
5227
5228 PR target/52294
5229 * thumb2.md (thumb2_shiftsi3_short): Split register and
5230 immediate shifts. For register shifts tie operands 0 and 1.
5231 (peephole2 for above): Check that register-controlled shifts
5232 have suitably tied operands.
5233
5234 2012-02-21 Quentin Neill <quentin.neill@amd.com>
5235
5236 PR target/52137
5237 * config/i386/bdver1.md (bdver1_call, bdver1_push,
5238 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
5239 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
5240 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
5241 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
5242 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
5243 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
5244 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
5245 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
5246 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
5247 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
5248 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
5249 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
5250 bdver1_ssevector_avx256_unaligned_load,
5251 bdver1_ssevector_sse128_unaligned_load,
5252 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
5253 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
5254 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
5255 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
5256 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
5257 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
5258 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
5259 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
5260 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
5261 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
5262 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
5263 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
5264 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
5265 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
5266 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
5267 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
5268 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
5269 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
5270 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
5271 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
5272 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
5273 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
5274 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
5275 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
5276 bdver1_ssediv_double_load, bdver1_ssediv_double,
5277 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
5278 Add "bdver2" attribute.
5279
5280 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5281
5282 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
5283 default if possible and not specified otherwise.
5284
5285 2012-02-21 Richard Guenther <rguenther@suse.de>
5286
5287 PR middle-end/52314
5288 * gimplify.c (create_tmp_from_val): Use the main variant type
5289 for the type of the temporary we create.
5290
5291 2012-02-21 Richard Guenther <rguenther@suse.de>
5292
5293 PR tree-optimization/52324
5294 * gimplify.c (gimplify_expr): When re-gimplifying expressions
5295 do not gimplify a MEM_REF address operand if it is already
5296 in suitable form.
5297
5298 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5299
5300 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
5301 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
5302
5303 2012-02-21 Richard Guenther <rguenther@suse.de>
5304
5305 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
5306 nested_in_vect_loop.
5307
5308 2012-02-21 Jakub Jelinek <jakub@redhat.com>
5309
5310 PR tree-optimization/52318
5311 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
5312 vdef also to non-pure/const call stmts in the sequence.
5313
5314 2012-02-21 Tristan Gingold <gingold@adacore.com>
5315
5316 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
5317
5318 2012-02-20 David S. Miller <davem@davemloft.net>
5319
5320 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
5321 don't use the "rd %pc" instruction on v9 for PIC register loads.
5322
5323 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
5324
5325 PR middle-end/52141
5326 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
5327 in a transaction safe function.
5328
5329 2012-02-20 Kai Tietz <ktietz@redhat.com>
5330
5331 PR target/52238
5332 * stor-layout.c (place_field): Handle desired_align for
5333 ms-bitfields, too.
5334
5335 2012-02-20 Richard Guenther <rguenther@suse.de>
5336
5337 PR tree-optimization/52298
5338 * tree-vect-stmts.c (vectorizable_store): Properly use
5339 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
5340 outer loops.
5341 (vectorizable_load): Likewise.
5342 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5343 Access DR_STEP after ensuring it is not NULL.
5344
5345 2012-02-20 Jakub Jelinek <jakub@redhat.com>
5346
5347 PR tree-optimization/52286
5348 * fold-const.c (fold_binary_loc): For (X & C1) | C2
5349 optimization use double_int_to_tree instead of build_int_cst_wide,
5350 rewrite to use double_int vars.
5351
5352 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5353
5354 PR target/50166
5355 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
5356 Define _start.
5357 Remove -e 0 from $gcc_cv_ld invocation.
5358 Only use __GLIBC_PREREQ if defined.
5359 Enable on Solaris since Solaris 8 patch.
5360 (gcc_SUN_LD_VERSION): New macro.
5361 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
5362 gcc_SUN_LD_VERSION for version number format.
5363 * configure: Regenerate.
5364 * varasm.c (get_elf_initfini_array_priority_section): Set
5365 SECTION_NOTYPE for non-default priority.
5366 Use get_section instead of get_unnamed_section to emit
5367 .init_array/.fini_array with default priority.
5368
5369 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
5370
5371 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
5372 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
5373 (mips_start_unique_function, mips_output_mips16_rdhwr)
5374 (mips_code_end): New functions.
5375 (TARGET_ASM_CODE_END): Define.
5376
5377 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
5378
5379 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
5380 to stubs with non-sibling calls.
5381
5382 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
5383
5384 * doc/invoke.texi (-fira-* options): Copy-edit.
5385 (ira-* parameters): Copy-edit.
5386
5387 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
5388
5389 * doc/invoke.texi: Minor copy-edits to bring into conformance with
5390 GCC coding conventions.
5391
5392 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
5393
5394 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
5395 when used as adjectives.
5396
5397 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
5398
5399 * doc/invoke.texi: Clean up "that"/"which" confusion.
5400
5401 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
5402
5403 * system.h: Poison SMALL_REGISTER_CLASSES
5404 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
5405 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
5406
5407 2012-02-16 Jakub Jelinek <jakub@redhat.com>
5408
5409 PR tree-optimization/52285
5410 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
5411 when deciding if a call is a tail call or tail recursion.
5412
5413 2012-02-16 Kai Tietz <ktietz@redhat.com>
5414
5415 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
5416 interger-constant displacement for UNSPEC_PCREL.
5417
5418 2012-02-16 Jakub Jelinek <jakub@redhat.com>
5419
5420 PR rtl-optimization/52208
5421 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
5422 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
5423
5424 PR tree-optimization/52255
5425 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
5426 loop->header has virtual PHI, but exit_e->dest doesn't, add
5427 virtual PHI to exit_e->dest and adjust all uses after the loop.
5428
5429 PR debug/52260
5430 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
5431 children with clone_tree_hash, not after it.
5432
5433 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
5434
5435 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
5436 extended identifiers.
5437
5438 2012-02-16 Jakub Jelinek <jakub@redhat.com>
5439
5440 PR middle-end/51929
5441 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
5442 a same_body_alias, also test whether e->callee isn't a former
5443 or current clone of the decl this is a same body alias of.
5444
5445 PR translation/52264
5446 * cgraphunit.c (verify_cgraph_node): Fix a typo.
5447
5448 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
5449
5450 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
5451
5452 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5453
5454 PR target/52199
5455 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
5456 force_reg instead of copy_to_reg for better optimization. Force
5457 non-register or memory operands into a register.
5458
5459 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
5460
5461 * extend.texi: Reserve upper bits of memory model for future use.
5462
5463 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
5464 Anatoly Sokolov <aesok@post.ru>
5465 Eric Weddington <eric.weddington@atmel.com>
5466
5467 PR target/52261
5468 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
5469 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
5470 Rewrite initializers for .macro.
5471 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
5472 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
5473 atxmega32d4, atxmega32x1.
5474 avrxmega4: atxmega64a3, atxmega64d3.
5475 avrxmega5: atxmega64a1, atxmega64a1u.
5476 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
5477 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
5478 avrxmega7: atxmega128a1, atxmega128a1u.
5479 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
5480 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
5481 (struct base_arch_s): Rename reserved to xmega_p.
5482 Rename reserved2 to have_rampd.
5483 (AVR_XMEGA): New define.
5484 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
5485 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
5486 * config/avr/predicates.md (io_address_operand): Take into
5487 account SFR offset.
5488 (low_io_address_operand): Ditto.
5489 (high_io_address_operand): Ditto.
5490 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
5491 (enabled, movhi_sp_r): Use them.
5492 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
5493 cpp_define_formatted to built-in define __AVR_ARCH__.
5494 (__AVR_XMEGA__): New built-in define.
5495 (__AVR_HAVE_RAMPD__): New built-in define.
5496 (__AVR_HAVE_RAMPX__): New built-in define.
5497 (__AVR_HAVE_RAMPY__): New built-in define.
5498 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
5499
5500 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
5501 (avr_option_override): Initialize them.
5502 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
5503 (avr_init_expanders): Initialize them. No more block several calls.
5504 (emit_push_sfr): New static function.
5505 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
5506 Handle AVR_XMEGA.
5507 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
5508 (avr_print_operand): Print addreeses as symbols for
5509 RAMPX, RAMPY, RAMPD, CCP.
5510 (output_movhi): Handle AVR_XMEGA when writing to SP.
5511 (avr_out_movhi_mr_r_xmega): New static function.
5512 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
5513 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
5514 __RAMPD__, __CCP__ as needed.
5515
5516 * config/avr/multilib.h: Regenerate.
5517 * config/avr/t-multilib: Regenerate.
5518 * config/avr/avr-tables.opt: Regenerate.
5519
5520 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
5521
5522 PR tree-optimization/50561
5523 * graphite-flattening.c (lst_project_loop): Do not
5524 remove old scattering dimensions after flattening.
5525 (lst_do_flatten): Likewise.
5526
5527 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
5528
5529 * doc/extend.texi (AVR Built-in Functions): Remove doc for
5530 __builtin_avr_map8, __builtin_avr_map16.
5531 Document __builtin_avr_insert_bits.
5532
5533 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
5534 (insert_bits): New insn.
5535 (adjust_len.map_bits): Rename to insert_bits.
5536 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
5537 * avr-protos.h (avr_out_map_bits): Remove.
5538 (avr_out_insert_bits, avr_has_nibble_0xf): New.
5539 * config/avr/constraints.md (Cxf,C0f): New.
5540 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
5541 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
5542 New built-in define __BUILTIN_AVR_INSERT_BITS.
5543 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
5544 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
5545 (avr_move_bits): Rewrite.
5546 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
5547 functions.
5548 (avr_map_op_t): New typedef.
5549 (avr_map_op): New static variable.
5550 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
5551 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
5552 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
5553 (bdesc_3arg, avr_expand_triop_builtin): New.
5554 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
5555 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
5556 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
5557 (avr_map_equal_p, avr_map_sig_p): Remove.
5558 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
5559 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
5560 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
5561 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
5562 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
5563 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
5564
5565 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
5566
5567 * config/c6x/c6x.md (reserve_cycles): New attribute.
5568 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
5569 don't reserve functional units after the branch occurs.
5570
5571 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
5572
5573 PR middle-end/52142
5574 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
5575 functions into non-tm_pure functions.
5576
5577 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
5578
5579 PR lto/52178
5580 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
5581 (iterative_hash_canonical_type): Likewise.
5582 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
5583 the dead edges.
5584
5585 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
5586
5587 * haifa-sched.c (prune_ready_list): Ensure that if there is a
5588 sched-group insn, it either remains alone or the entire list is pruned.
5589
5590 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
5591
5592 * doc/install.texi (Prerequisites): Fix grammar.
5593 (Configuration): Likewise.
5594
5595 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
5596
5597 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
5598 MPC as part of GCC before describing configuring with --with-gmp etc.
5599 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
5600 sources are present.
5601
5602 2012-02-14 Jakub Jelinek <jakub@redhat.com>
5603
5604 PR debug/51950
5605 * dwarf2out.c (clone_tree_hash): New function.
5606 (copy_decls_walk): Use it instead of clone_tree.
5607
5608 2012-02-14 Richard Guenther <rguenther@suse.de>
5609
5610 PR tree-optimization/52244
5611 PR tree-optimization/51528
5612 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
5613 replacements for integral types.
5614
5615 2012-02-14 Walter Lee <walt@tilera.com>
5616
5617 * config.gcc: Handle tilegx and tilepro.
5618 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
5619 tilegx and tilepro.
5620 Add HAVE_AS_TLS check for tilegx and tilepro.
5621 * configure: Regenerate.
5622 * doc/contrib.texi: Add Mat Hostetter and self.
5623 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
5624 Document instruction intrinsics and network accessing intrinsics.
5625 (TILEPro Built-in Functions): New node. Document instruction
5626 intrinsics and network accessing intrinsics.
5627 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
5628 (Specific, tilepro-*-linux*): Likewise.
5629 * doc/invoke.texi (TILE-Gx Options): New section.
5630 (TILEPro Options): New section.
5631 * doc/md.texi (TILE-Gx): New section.
5632 (TILEPro): New section.
5633 * common/config/tilegx/tilegx-common.c: New file.
5634 * common/config/tilepro/tilepro-common.c: New file.
5635 * config/tilegx/constraints.md: New file.
5636 * config/tilegx/linux.h: New file.
5637 * config/tilegx/mul-tables.c: New file.
5638 * config/tilegx/predicates.md: New file.
5639 * config/tilegx/sync.md: New file.
5640 * config/tilegx/t-tilegx: New file.
5641 * config/tilegx/tilegx-builtins.h: New file.
5642 * config/tilegx/tilegx-c.c: New file.
5643 * config/tilegx/tilegx-generic.md: New file.
5644 * config/tilegx/tilegx-modes.def: New file.
5645 * config/tilegx/tilegx-multiply.h: New file.
5646 * config/tilegx/tilegx-protos.h: New file.
5647 * config/tilegx/tilegx.c: New file.
5648 * config/tilegx/tilegx.h: New file.
5649 * config/tilegx/tilegx.md: New file.
5650 * config/tilegx/tilegx.opt: New file.
5651 * config/tilepro/constraints.md: New file.
5652 * config/tilepro/gen-mul-tables.cc: New file.
5653 * config/tilepro/linux.h: New file.
5654 * config/tilepro/mul-tables.c: New file.
5655 * config/tilepro/predicates.md: New file.
5656 * config/tilepro/t-tilepro: New file.
5657 * config/tilepro/tilepro-builtins.h: New file.
5658 * config/tilepro/tilepro-c.c: New file.
5659 * config/tilepro/tilepro-generic.md: New file.
5660 * config/tilepro/tilepro-modes.def: New file.
5661 * config/tilepro/tilepro-multiply.h: New file.
5662 * config/tilepro/tilepro-protos.h: New file.
5663 * config/tilepro/tilepro.c: New file.
5664 * config/tilepro/tilepro.h: New file.
5665 * config/tilepro/tilepro.md: New file.
5666 * config/tilepro/tilepro.opt: New file.
5667
5668 2012-02-14 Jakub Jelinek <jakub@redhat.com>
5669
5670 PR tree-optimization/52210
5671 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
5672 vect_model_simple_cost with two entry vect_def_type array instead
5673 of an address of dt.
5674
5675 2012-02-14 Richard Guenther <rguenther@suse.de>
5676
5677 PR lto/52178
5678 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
5679 Do not stream DECL_QUALIFIER.
5680 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
5681 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
5682 (find_decls_types_r): Do not walk DECL_QUALIFIER.
5683
5684 2012-02-14 Jakub Jelinek <jakub@redhat.com>
5685
5686 PR c/52181
5687 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
5688 newdecl.
5689
5690 2012-02-13 Jakub Jelinek <jakub@redhat.com>
5691
5692 PR bootstrap/52172
5693 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
5694 * cselib.c (cselib_subst_to_values_from_insn): New function.
5695 * sched-deps.c (add_insn_mem_dependence,
5696 sched_analyze_1, sched_analyze_2): Use it.
5697
5698 2012-02-13 Jan Hubicka <jh@suse.cz>
5699
5700 PR middle-end/52214
5701 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
5702
5703 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
5704
5705 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
5706 (GTM_SELF_SPECS): Define if not already defined.
5707 (driver_self_specs): Add GTM_SELF_SPECS.
5708 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
5709 (GTM_SELF_SPECS): Define.
5710 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
5711 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
5712
5713 2012-02-13 Jakub Jelinek <jakub@redhat.com>
5714
5715 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
5716 away if seen.
5717
5718 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
5719
5720 PR middle-end/52230
5721 * omp-low.c (expand_omp_for): If a static schedule without chunk size
5722 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
5723
5724 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
5725
5726 PR c/52190
5727 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
5728
5729 2012-02-13 Richard Guenther <rguenther@suse.de>
5730
5731 PR translation/52211
5732 * passes.c (enable_disable_pass): Fix typo.
5733
5734 2012-02-13 Jakub Jelinek <jakub@redhat.com>
5735
5736 PR middle-end/52209
5737 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
5738 XOR for reduce_bit_field if type is unsigned.
5739
5740 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
5741
5742 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
5743 disallow changes from SFmode to mode with different size in FP regs.
5744
5745 2012-02-12 Robert Millan <rmh@gnu.org>
5746 Gerald Pfeifer <gerald@pfeifer.com>
5747
5748 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
5749 Tweak comment.
5750
5751 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
5752
5753 PR rtl-optimization/52175
5754 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
5755 to frame-related instructions.
5756
5757 2012-02-10 Jason Merrill <jason@redhat.com>
5758
5759 PR c++/51910
5760 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
5761 (demangle_new_symbols): Fill it.
5762 (scan_linker_output): Walk it.
5763 (start_tweaking): Split out from scan_linker_output.
5764 (maybe_tweak): Update sym->chosen.
5765 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
5766
5767 2012-02-11 Jakub Jelinek <jakub@redhat.com>
5768
5769 PR debug/52132
5770 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
5771
5772 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
5773
5774 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
5775 having the same mode as previous compare.
5776
5777 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
5778
5779 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
5780 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
5781 (nonlocal_goto_internal): Likewise.
5782 (nonlocal_goto): Emit a use and an indirect jump directly.
5783
5784 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
5785
5786 PR c/52190
5787 * doc/extend.texi : Update comments for __atomic_compare_exchange and
5788 __atomic_{is,always}_lock_free.
5789
5790 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
5791
5792 PR target/52146
5793 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
5794 negative constant address for TARGET_X32.
5795
5796 2012-02-10 Richard Henderson <rth@redhat.com>
5797
5798 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
5799 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
5800 for GIMPLE_TRANSACTION. Tidy if's into a switch.
5801
5802 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5803 Ira Rosen <irar@il.ibm.com>
5804
5805 PR tree-optimization/50031
5806 * targhooks.c (default_builtin_vectorization_cost): Handle
5807 vec_promote_demote.
5808 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
5809 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
5810 all types of reduction and pattern statements.
5811 (vect_estimate_min_profitable_iters): Likewise.
5812 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
5813 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
5814 for explicit realigns.
5815 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
5816 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
5817 vec_promote_demote.
5818 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5819 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
5820 vec_perm for VSX and handle vec_promote_demote.
5821
5822 2012-02-10 Jakub Jelinek <jakub@redhat.com>
5823
5824 PR middle-end/52177
5825 * builtins.c (fold_builtin_atomic_always_lock_free,
5826 expand_builtin_atomic_always_lock_free,
5827 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
5828 Return and/or test boolean_true_node/boolean_false_node instead of
5829 integer_one_node/integer_zero_node.
5830
5831 2012-02-10 Jan Hubicka <jh@suse.cz>
5832
5833 PR middle-end/48600
5834 * predict.c (predict_paths_for_bb): Prevent looping.
5835 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
5836
5837 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
5838
5839 * config/arm/arm.c (output_move_double): In one case properly
5840 count number of instructions that will be emitted.
5841
5842 2012-02-10 Richard Guenther <rguenther@suse.de>
5843
5844 PR translation/52193
5845 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
5846
5847 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
5848
5849 PR middle-end/52140
5850 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
5851
5852 2012-02-09 Jakub Jelinek <jakub@redhat.com>
5853
5854 PR debug/52165
5855 * var-tracking.c (emit_note_insn_var_location): If
5856 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
5857 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
5858 non-NOTE_DURING_CALL_P insn.
5859
5860 2012-02-09 Bin Cheng <bin.cheng@arm.com>
5861
5862 PR middle-end/51867
5863 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
5864
5865 2012-02-08 Magnus Granberg <zorry@gentoo.org>
5866
5867 PR driver/48524
5868 * gcc.c (switch_matches) Support switches with separated form,
5869 -D and -U.
5870
5871 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
5872
5873 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
5874 (SP_ADDR): Ditto.
5875 (RAMPZ_ADDR): Ditto.
5876 * config/avr/avr.c (avr_addr_t): New typedef.
5877 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
5878 (avr_init_expanders): Initialize it.
5879 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
5880 SREG_ADDR.
5881 (expand_epilogue): Ditto.
5882 (avr_print_operand): Ditto.
5883 (avr_file_start): Ditto.
5884 (avr_emit_movmemhi): Ditto.
5885
5886 2012-02-08 Richard Guenther <rguenther@suse.de>
5887
5888 PR tree-optimization/46886
5889 * tree-flow.h (do_while_loop_p): Declare.
5890 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
5891 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
5892
5893 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
5894
5895 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
5896 always succeed for integers larger than a native word.
5897
5898 2012-02-08 Richard Guenther <rguenther@suse.de>
5899
5900 PR rtl-optimization/52170
5901 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
5902 properly handle integer vector modes.
5903
5904 2012-02-08 Jakub Jelinek <jakub@redhat.com>
5905
5906 PR gcov-profile/52150
5907 * coverage.c: Include target.h.
5908 (build_var): Call targetm.strip_name_encoding on the assembler name.
5909 Change one _ into . or $ if the target allows it.
5910 * Makefile.in (coverage.o): Depend on $(TARGET_H).
5911
5912 PR rtl-optimization/52139
5913 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
5914 is a BARRIER after emit_insn_after_noloc, move BB_END
5915 to the last non-BARRIER insn before it.
5916
5917 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
5918
5919 PR middle-end/24306
5920 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
5921 (mips_gimplify_va_arg_expr): Call it instead of
5922 std_gimplify_va_arg_expr.
5923
5924 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5925
5926 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
5927 message for -mno-pointers-to-nested-function.
5928
5929 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
5930
5931 PR middle-end/51994
5932 * expr.c (get_inner_reference): If there is an offset, add a negative
5933 bit position to it (if any).
5934
5935 2012-02-07 Jakub Jelinek <jakub@redhat.com>
5936
5937 PR rtl-optimization/52060
5938 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
5939 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
5940 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
5941 and/or i0src_copy2 when needed.
5942
5943 2012-02-07 Jakub Jelinek <jakub@redhat.com>
5944
5945 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
5946 or LTOPLUGINSONAME if have_c.
5947
5948 * config/freebsd-spec.h: Add comment about what macros can be defined
5949 in this header.
5950 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
5951 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
5952 here instead.
5953
5954 2012-02-07 Richard Guenther <rguenther@suse.de>
5955
5956 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
5957 newline in -alias dumps.
5958
5959 2012-02-07 Kai Tietz <ktietz@redhat.com>
5960 Dave Korn <dave.korn.cygwin@gmail.com>
5961
5962 PR target/40068
5963 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
5964 Take care that typinfo gets dllexport-attribute.
5965
5966 2012-02-07 Jakub Jelinek <jakub@redhat.com>
5967
5968 PR middle-end/52074
5969 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
5970 if modifier < EXPAND_SUM call force_operand on the result.
5971
5972 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
5973
5974 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
5975 adding __forwarder_dst__ prefix if a forwarder_section attribute is
5976 present.
5977 (epiphany_function_type): Replace types for specific interrupts with
5978 EPIPHANY_FUNCTION_INTERRUPT.
5979 (EPIPHANY_INTERRUPT_P): Update.
5980 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
5981 New static function.
5982 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
5983 <disinterrupt>: Affects type identity.
5984 (epiphany_handle_interrupt_attribute): Handle variable number of
5985 arguments.
5986 (epiphany_compute_function_type): Update for new
5987 epiphany_function_type definition.
5988 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
5989 handlers with a longcall forwarder.
5990 (epiphany_start_function): Handle multiple interrupt arguments and/or
5991 forwarder_section attribute.
5992
5993 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
5994 libgloss.
5995
5996 2012-02-07 Alan Modra <amodra@gmail.com>
5997
5998 PR target/52107
5999 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
6000 subregs of TFmode.
6001
6002 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6003
6004 PR tree-optimization/50969
6005 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
6006 use vec_perm rather than vector_stmt.
6007 (vect_model_load_cost): Likewise.
6008 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
6009 vec_perm to be the same as other vector statements.
6010 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
6011 cost of vec_perm for TARGET_VSX.
6012
6013 2012-02-06 Richard Guenther <rguenther@suse.de>
6014
6015 PR tree-optimization/52115
6016 * tree-sra.c (access_has_replacements_p): New function.
6017 (sra_modify_assign): Use it to decide whether a use is uninitialized.
6018
6019 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
6020
6021 PR middle-end/52047
6022 * trans-mem.c (expand_call_tm): Add an assertion.
6023 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
6024 functions.
6025
6026 2012-02-06 Richard Guenther <rguenther@suse.de>
6027
6028 PR tree-optimization/50955
6029 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
6030 raise cost of expressions that replace an address with an
6031 expression based on a different pointer.
6032
6033 2012-02-06 Jakub Jelinek <jakub@redhat.com>
6034
6035 PR target/52129
6036 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
6037 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
6038
6039 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6040
6041 PR c++/48680
6042 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
6043 -Weffc++ and specify guidelines come from second edition.
6044
6045 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
6046
6047 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
6048 (sibcall_value_multiple_internal, call_split, call_internal_direct)
6049 (call_direct_split, call_value_split, call_value_internal_direct)
6050 (call_value_direct_split, call_value_multiple_split): Use jal and
6051 jal_macro attributes.
6052
6053 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
6054
6055 * reload1.c (reload_regs_reach_end_p): Replace with...
6056 (reload_reg_rtx_reaches_end_p): ...this function.
6057 (new_spill_reg_store): Update commentary.
6058 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
6059 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
6060 before setting new_spill_reg_store.
6061 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
6062 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
6063 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
6064 for non-spill reload registers.
6065
6066 2012-02-05 Ira Rosen <irar@il.ibm.com>
6067
6068 PR tree-optimization/52091
6069 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
6070 (vect_is_simple_use_1): Likewise.
6071 * tree-vect-loop.c (vectorizable_reduction): Update calls
6072 to vect_is_simple_use_1 and vect_is_simple_use.
6073 (vectorizable_live_operation): Likewise.
6074 * tree-vect-patterns.c (widened_name_p,
6075 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
6076 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
6077 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
6078 vectorizable_shift,vectorizable_operation, vectorizable_store,
6079 vectorizable_load): Likewise.
6080 (vect_is_simple_cond): Add an argument, pass it to
6081 vect_is_simple_use_1.
6082 (vectorizable_condition): Update calls to vect_is_simple_cond,
6083 vect_is_simple_use.
6084 (vect_is_simple_use): Add an argument, the statement in which
6085 OPERAND is used. Check that if OPERAND's def stmt is a double
6086 reduction phi node, the use is a phi node too.
6087 (vect_is_simple_use_1): Add an argument, pass it to
6088 vect_is_simple_use.
6089 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
6090 to vect_is_simple_use.
6091
6092 2012-02-04 Jakub Jelinek <jakub@redhat.com>
6093
6094 PR rtl-optimization/52095
6095 * modulo-sched.c (dump_insn_locator): New function.
6096 (loop_canon_p, sms_schedule): Use it.
6097
6098 PR rtl-optimization/52113
6099 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
6100 even for decomposable shift/zext insns.
6101
6102 2012-02-03 Jakub Jelinek <jakub@redhat.com>
6103 Zdenek Dvorak <ook@ucw.cz>
6104
6105 PR rtl-optimization/52092
6106 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
6107 on get_iv_value result.
6108
6109 2012-02-02 Andrew Pinski <apinski@cavium.com>
6110
6111 PR middle-end/47982
6112 PR middle-end/43967
6113 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
6114
6115 2012-02-02 Jakub Jelinek <jakub@redhat.com>
6116
6117 PR middle-end/48071
6118 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
6119
6120 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
6121
6122 PR rtl-optimization/49800
6123 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
6124 (sched_finish): Call regstat_free_n_sets_and_refs.
6125
6126 2012-02-02 Jia Liu <proljc@gmail.com>
6127
6128 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
6129 than operand 2.
6130
6131 2012-02-02 Jan Hubicka <jh@suse.cz>
6132 Tom de Vries <tom@codesourcery.com>
6133
6134 PR middle-end/51998
6135 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
6136 * varpool.c (varpool_analyze_pending_decls): Likewise.
6137
6138 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
6139 Jayant R Sonar <jayant.sonar@kpitcummins.com>
6140
6141 * config.gcc: Add cr16-* support.
6142
6143 * doc/extend.texi: Document cr16 extensions.
6144 * doc/install.texi: Document cr16 install.
6145 * doc/invoke.texi: Document cr16 options.
6146 * doc/md.texi: Document cr16 constraints.
6147
6148 * common/config/cr16/cr16-common.c: New file.
6149 * config/cr16/cr16.c: New file.
6150 * config/cr16/cr16.h: New file.
6151 * config/cr16/cr16.md: New file.
6152 * config/cr16/cr16.opt: New file.
6153 * config/cr16/cr16-protos.h: New file.
6154 * config/cr16/predicates.md: New file.
6155 * config/cr16/constraints.md: New file.
6156 * config/cr16/t-cr16: New file.
6157
6158 2012-02-02 Jakub Jelinek <jakub@redhat.com>
6159
6160 PR target/52086
6161 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
6162 that operands[2] is either immediate, or q_regs_operand.
6163
6164 PR tree-optimization/52073
6165 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
6166 a pattern stmt for pattern uses, ignore uses outside of the loop.
6167
6168 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
6169
6170 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
6171 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
6172 (OUT_AS1, OUT_AS2): Remove.
6173
6174 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
6175
6176 PR rtl-optimization/51374
6177 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
6178 to cross other volatile_refs_p insns.
6179
6180 2012-02-01 Richard Guenther <rguenther@suse.de>
6181
6182 * doc/invoke.texi (fno-inline): Clarify documentation.
6183 (finline-small-functions): Likewise.
6184 (finline-functions): Likewise.
6185 * common.opt (finline): Adjust comment and documentation.
6186 (finline-small-functions): Clarify documentation.
6187 (finline-functions): Likewise.
6188 (finline-functions-called-once): Likewise.
6189
6190 2012-02-01 Tristan Gingold <gingold@adacore.com>
6191
6192 * c-typeck.c (composite_type): Keep mode for pointers.
6193
6194 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
6195
6196 * function.h (regno_reg_rtx): Adjust comment.
6197 * reginfo.c (init_reg_modes_target): Only use the previous mode
6198 if it fits within one register. Remove MIPS comment.
6199
6200 2012-01-31 Jakub Jelinek <jakub@redhat.com>
6201
6202 PR bootstrap/52058
6203 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
6204
6205 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6206
6207 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
6208 to srak instruction.
6209
6210 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6211
6212 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
6213
6214 2012-01-31 Jakub Jelinek <jakub@redhat.com>
6215
6216 PR bootstrap/52041
6217 PR bootstrap/52039
6218 PR target/51974
6219 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
6220
6221 2012-01-31 Richard Guenther <rguenther@suse.de>
6222
6223 PR tree-optimization/51528
6224 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
6225 assigns.
6226
6227 2012-01-31 Jakub Jelinek <jakub@redhat.com>
6228
6229 PR bootstrap/52041
6230 PR bootstrap/52039
6231 PR target/51974
6232 * ree.c (add_removable_extension): Change def_map argument
6233 to unsigned *, store in def_map 1 + offset into *insn_list vector
6234 instead of pointers into the vector.
6235 (find_removable_extensions): Adjust caller.
6236
6237 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
6238
6239 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
6240 Transform all "* quoted-c-code" to { c-code }.
6241 Remove redundant test for "optimize" in combine patterns.
6242 Move (include "avr-dimode.md") to end of file.
6243
6244 2012-01-30 Bin Cheng <bin.cheng@arm.com>
6245
6246 PR target/51835
6247 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6248 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
6249
6250 2012-01-30 Richard Guenther <rguenther@suse.de>
6251
6252 PR tree-optimization/52028
6253 * tree-loop-distribution.c (ldist_gen): Properly update
6254 virtual SSA form.
6255
6256 2012-01-30 Jakub Jelinek <jakub@redhat.com>
6257
6258 PR debug/52027
6259 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
6260 set_cur_line_info_table if not emitting debug info.
6261
6262 PR tree-optimization/52046
6263 * tree-vect-patterns.c (check_bool_pattern): Give up if
6264 a comparison could throw.
6265
6266 PR debug/52048
6267 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
6268
6269 2012-01-30 Richard Guenther <rguenther@suse.de>
6270
6271 PR tree-optimization/52045
6272 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
6273 SSA form if cfgcleanup did anything.
6274
6275 2012-01-30 Richard Guenther <rguenther@suse.de>
6276
6277 PR tree-optimization/52045
6278 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
6279 before computing final todo.
6280
6281 2012-01-30 Richard Guenther <rguenther@suse.de>
6282
6283 PR tree-optimization/51528
6284 * tree-sra.c (sra_modify_assign): Re-factor in preparation
6285 for PR51528 fix.
6286
6287 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
6288
6289 * df-problems.c (df_kill_notes): Check that the use refers
6290 to the note under examination.
6291
6292 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
6293
6294 PR target/51920
6295 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
6296 parameter and use short-lived pseudos.
6297 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
6298 (sparc_expand_vector_init): Const-ify local variables and adjust
6299 calls to above functions.
6300
6301 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
6302
6303 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
6304
6305 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
6306
6307 * doc/invoke.texi: Make usage of "compile time" and
6308 "run time"/"runtime" consistent throughout the file.
6309
6310 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
6311
6312 * config/alpha/alpha.c (alpha_option_override): Default to
6313 full IEEE compliance mode for Go language.
6314
6315 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
6316
6317 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
6318 (LINK_SSP_SPEC): Define.
6319
6320 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6321
6322 PR target/51871
6323 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
6324 stubs.
6325
6326 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
6327
6328 * doc/invoke.texi: Correct hyphenation of "floating point",
6329 "double precision", and related terminology throughout the file.
6330
6331 2012-01-28 Jakub Jelinek <jakub@redhat.com>
6332
6333 PR target/52006
6334 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
6335 arm_general_register_operand predicate for operand 2 instead of
6336 register_operand.
6337
6338 2012-01-27 Ian Lance Taylor <iant@google.com>
6339
6340 PR go/47656
6341 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
6342 * builtins.c (expand_builtin_init_trampoline): Add onstack
6343 parameter. Change caller.
6344 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
6345 * tree.c (build_common_builtin_nodes): Declare
6346 __builtin_init_heap_trampoline.
6347
6348 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
6349
6350 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
6351 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
6352 * config/avr/avr.c: Ditto.
6353 (avr_regnames): Remove because unused.
6354 * config/avr/avr.md (*cpse.ne): New peephole.
6355 (*cpse.eq): New peephole from former cpse peepholes.
6356
6357 2012-01-27 Michael Eager <eager@eagercon.com>
6358
6359 * config/microblaze.c (microblaze_emit_compare): Correct
6360 test after pcmp instruction.
6361
6362 2012-01-27 Richard Guenther <rguenther@suse.de>
6363
6364 PR tree-optimization/52020
6365 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
6366
6367 2012-01-27 Richard Guenther <rguenther@suse.de>
6368
6369 * ipa-pure-const.c (check_stmt): Clobbers do not make a
6370 function non-const/pure.
6371
6372 2012-01-27 Richard Guenther <rguenther@suse.de>
6373
6374 PR tree-optimization/50444
6375 * tree-sra.c (build_ref_for_offset): Properly adjust the
6376 MEM_REF type for unaligned accesses.
6377
6378 2012-01-27 Richard Guenther <rguenther@suse.de>
6379
6380 PR tree-optimization/50444
6381 * expr.c (mem_ref_refers_to_non_mem_p): New function.
6382 (expand_assignment): Use it. Properly handle misaligned
6383 bases when expanding stores to component references.
6384 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
6385 refactor that case.
6386
6387 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
6388
6389 PR middle-end/51389
6390 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
6391 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
6392 * tree-data-ref.c (find_data_references_in_loop): Make static.
6393 (compute_all_dependences): Change return type to bool. Bail out
6394 for too many datarefs in a loop. Move the hunk resetting the data
6395 dependences vector from ...
6396 (compute_data_dependences_for_loop): ... here. Account for
6397 compute_all_dependences returning false.
6398 (compute_data_dependences_for_bb): Likewise.
6399 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
6400 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
6401
6402 2012-01-27 Richard Guenther <rguenther@suse.de>
6403
6404 PR middle-end/51959
6405 * expr.c (store_field): Use the alias-set of the scratch memory
6406 for storing to it.
6407
6408 2012-01-27 Tom de Vries <tom@codesourcery.com>
6409
6410 PR tree-optimization/51990
6411 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6412 WITH_SIZE_EXPR.
6413 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
6414
6415 2012-01-27 Jakub Jelinek <jakub@redhat.com>
6416
6417 PR debug/52001
6418 * var-tracking.c (reverse_op): Don't add any reverse operation
6419 if V already has any constant locations.
6420
6421 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
6422
6423 * doc/invoke.texi: Correct usage of "command line" (noun)
6424 vs "command-line" (adjective) throughout.
6425
6426 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
6427
6428 * doc/invoke.texi (Language Independent Options): Move
6429 -Wcoverage-mismatch blurb from here....
6430 (Warning Options): ...to here.
6431
6432 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
6433
6434 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6435 Set rs6000_always_hint to false for 476.
6436
6437 2012-01-27 Matthias Klose <doko@ubuntu.com>
6438
6439 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
6440 system root.
6441 * incpath.c (add_standard_paths): Likewise.
6442
6443 2012-01-27 Richard Henderson <rth@redhat.com>
6444
6445 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
6446 * config/m68k/sync.md (atomic_test_and_set): Rename from
6447 sync_test_and_setqi and adjust the operands.
6448 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
6449 and unconditionally enable.
6450
6451 2012-01-27 Richard Henderson <rth@redhat.com>
6452
6453 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
6454 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
6455 (ldstub): Rename from ldstubqi.
6456 (ldstub<I24MODE>): Remove.
6457
6458 2012-01-27 Richard Henderson <rth@redhat.com>
6459
6460 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
6461 * c-cppbuiltin.c (cpp_atomic_builtins): Define
6462 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
6463 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
6464 * doc/tm.texi: Rebuild.
6465
6466 2012-01-27 Richard Henderson <rth@redhat.com>
6467
6468 * optabs.c (gen_atomic_test_and_set): Remove default.
6469 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
6470
6471 2012-01-26 Jakub Jelinek <jakub@redhat.com>
6472
6473 PR rtl-optimization/51978
6474 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
6475 (combine_reaching_defs): Likewise.
6476 (struct re_info): Remove.
6477 (add_removable_extension): Remove x and data arguments,
6478 add insn, insn_list and def_map. Use the arguments directly
6479 instead of using struct re_info.
6480 (find_removable_extensions): Don't call add_removable_extension
6481 through note_stores, instead just call it with single_set
6482 result if non-NULL.
6483 (find_and_remove_re): Pass curr_cand->expr instead of
6484 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
6485
6486 2012-01-26 Michael Matz <matz@suse.de>
6487
6488 PR tree-optimization/46590
6489 * cfgexpand.c: Revert last change (r183305).
6490 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
6491 regs.
6492 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
6493 checking for emptiness.
6494
6495 2012-01-26 Jakub Jelinek <jakub@redhat.com>
6496
6497 PR middle-end/51895
6498 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
6499 non-addressable non-BLKmode base correctly.
6500
6501 2012-01-26 Michael Matz <matz@suse.de>
6502
6503 PR tree-optimization/48794
6504 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
6505 regions referenced from RESX/EH_DISPATCH.
6506
6507 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6508
6509 * config/s390/s390.h: Make BRANCH_COST an option.
6510 * config/s390/s390.opt: New option -mbranch-cost.
6511
6512 2012-01-26 Richard Henderson <rth@redhat.com>
6513
6514 Revert 2012-01-24 change:
6515 * trans-mem.c (requires_barrier): Do not instrument thread local
6516 variables and emit save/restore for them.
6517
6518 2012-01-25 Jakub Jelinek <jakub@redhat.com>
6519
6520 PR middle-end/51986
6521 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
6522 for pat == 0.
6523
6524 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
6525
6526 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
6527 ASM_OPERANDS.
6528
6529 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
6530
6531 PR target/49868
6532 Rename __pgm to __flash.
6533 Rename __pgm1 to __flash1.
6534 Rename __pgm2 to __flash2.
6535 Rename __pgm3 to __flash3.
6536 Rename __pgm4 to __flash4.
6537 Rename __pgm5 to __flash5.
6538 Rename __pgmx to __memx.
6539 * doc/extend.texi (AVR Named Address Spaces)
6540 Rename address space names as indicated above.
6541 * config/avr/avr.c (avr_addrspace): Ditto.
6542
6543 * config/avr/avr-protos.h
6544 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
6545 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
6546 * config/avr/predicates.md: Ditto.
6547 * config/avr/avr.c Ditto, and
6548 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
6549 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
6550
6551 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
6552 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
6553 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
6554 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
6555 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
6556 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
6557 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
6558 * config/avr/avr.c: Ditto.
6559 * config/avr/avr.md: Ditto.
6560
6561 2012-01-25 Jason Merrill <jason@redhat.com>
6562
6563 PR c++/51992
6564 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
6565
6566 2012-01-25 Jakub Jelinek <jakub@redhat.com>
6567
6568 PR tree-optimization/51987
6569 * tree-data-ref.c (get_references_in_stmt): Handle references in
6570 non-volatile GIMPLE_ASM.
6571
6572 2012-01-25 Richard Guenther <rguenther@suse.de>
6573
6574 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
6575 bases are dereferenced.
6576
6577 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
6578
6579 PR rtl-optimization/48374
6580 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
6581
6582 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
6583
6584 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
6585 compute_data_dependences_for_loop returns false.
6586 * tree-parloops.c (loop_parallel_p): Likewise.
6587
6588 2012-01-25 Richard Guenther <rguenther@suse.de>
6589
6590 * tree.h (get_pointer_alignment_1): Declare.
6591 * builtins.c (get_pointer_alignment_1): New function.
6592 (get_pointer_alignment): Use it.
6593
6594 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6595
6596 PR rtl-optimization/48308
6597 * combine.c (enum undo_kind): Add UNDO_LINKS.
6598 (struct undo): Add member l to other_contents and where.
6599 (do_SUBST_LINK): New.
6600 (SUBST_LINK): New.
6601 (try_combine): Handle LOG_LINKS for the dummy i1 case.
6602 (undo_all): Handle UNDO_LINKS.
6603
6604 2012-01-25 Richard Henderson <rth@redhat.com>
6605
6606 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
6607 mem inputs.
6608
6609 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6610
6611 * optabs.c (gen_atomic_test_and_set): Use each argument.
6612
6613 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6614
6615 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
6616 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
6617 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
6618 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
6619 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
6620 TARGET_PAIRED_SINGLE_FLOAT.
6621
6622 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6623
6624 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
6625 (in_struct, return_val): Remove MEM documentation.
6626 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
6627 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
6628 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
6629 and MEM_SCALAR.
6630 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6631 * cfgexpand.c (add_alias_set_conflicts): Likewise.
6632 * expr.c (store_field): Likewise.
6633 * function.c (assign_stack_temp_for_type): Likewise.
6634 * ifcvt.c (noce_try_cmove_arith): Likewise.
6635 * reload1.c (reload): Likewise.
6636 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
6637 (alpha_set_memflags): Likewise.
6638 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
6639
6640 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
6641
6642 * rtl.h (true_dependence, canon_true_dependence): Remove varies
6643 parameter.
6644 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
6645 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
6646 (true_dependence_1, true_dependence, canon_true_dependence): Remove
6647 varies parameter.
6648 * cselib.c (cselib_rtx_varies_p): Delete.
6649 (cselib_invalidate_mem): Update call to canon_true_dependence.
6650 * dse.c (record_store, check_mem_read_rtx): Likewise.
6651 (scan_reads_nospill): Likewise.
6652 * cse.c (check_dependence): Likewise.
6653 (cse_rtx_varies_p): Delete.
6654 * expr.c (safe_from_p): Update call to true_dependence.
6655 * ira.c (validate_equiv_mem_from_store): Likewise.
6656 (memref_referenced_p): Likewise.
6657 * postreload-gcse.c (find_mem_conflicts): Likewise.
6658 * sched-deps.c (sched_analyze_2): Likewise.
6659 * store-motion.c (load_kills_store): Likewise.
6660 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
6661 * gcse.c (mems_conflict_for_gcse_p): Likewise.
6662 (compute_transp): Update call to canon_true_dependence.
6663
6664 2012-01-25 Richard Henderson <rth@redhat.com>
6665
6666 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
6667 (maybe_emit_atomic_test_and_set): New.
6668 (expand_sync_lock_test_and_set): Use it.
6669 (expand_atomic_test_and_set): Likewise.
6670 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
6671 the implementation; clarify implementation defined details.
6672 * doc/md.texi (atomic_test_and_set): Document.
6673
6674 2012-01-25 Richard Henderson <rth@redhat.com>
6675
6676 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
6677
6678 2012-01-25 Richard Henderson <rth@redhat.com>
6679
6680 PR target/51968
6681 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
6682 to effect no-op split.
6683
6684 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
6685
6686 PR lto/51698
6687 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
6688 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
6689 (BT_FN_VOID_PTR_INT_SIZE): New.
6690 (BT_FN_UINT_UINT_VAR): Remove.
6691 (BT_FN_UINT32_UINT32_VAR): New.
6692 (BT_FN_DOUBLE_VPTR): Remove.
6693 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
6694
6695 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
6696 (_ITM_changeTransactionMode): Same.
6697 (_ITM_memmoveRtWt): Change return type to void.
6698 (_ITM_memcpyRtWt): Same.
6699 (_ITM_memsetW): Same.
6700 (_ITM_RaRD): Change types to double.
6701 (_ITM_RD): Same.
6702 (_ITM_RaWD): Same.
6703 (_ITM_RfWD): Same.
6704
6705 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
6706
6707 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
6708 Patrick Marlier <patrick.marlier@gmail.com>
6709
6710 * trans-mem.c (requires_barrier): Do not instrument thread local
6711 variables and emit save/restore for them.
6712
6713 2012-01-24 Jason Merrill <jason@redhat.com>
6714
6715 PR c++/51812
6716 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
6717 output static aliases.
6718
6719 2012-01-24 Jakub Jelinek <jakub@redhat.com>
6720
6721 PR driver/47249
6722 * common.opt (-pie, -shared, pie, shared): Change from Common to
6723 Driver.
6724 * gcc.c (display_help): Display help for -pie and -shared.
6725
6726 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
6727
6728 PR target/49868
6729 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
6730 Remove note on size/offset limitation.
6731 (AVR Variable Attributes): Add example how to read data located
6732 with progmem. Refer to named address spaces.
6733 * doc/invoke.texi (AVR Options): Fix typo.
6734
6735 2012-01-24 Richard Guenther <rguenther@suse.de>
6736
6737 Forward-port to trunk
6738 2010-09-21 Jakub Jelinek <jakub@redhat.com>
6739
6740 PR middle-end/45678
6741 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
6742 op0 isn't sufficiently aligned and there is movmisalignM
6743 insn for mode, use it to load op0 into a temporary register.
6744
6745 2012-01-24 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR target/51957
6748 * target.def (const_not_ok_for_debug_p): New hook.
6749 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
6750 documentation.
6751 * doc/tm.texi: Regenerated.
6752 * dwarf2out.c (const_ok_for_output_1): If
6753 targetm.const_not_ok_for_debug_p returns true, fail.
6754 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
6755 function.
6756 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
6757
6758 2012-01-23 Kai Tietz <ktietz@redhat.com>
6759
6760 PR target/51900
6761 * config/i386/predicates.md (symbolic_operand): Allow
6762 UNSPEC_PCREL as PIC expression for lea.
6763 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
6764 * config/i386/i386.c (ix86_delegitimize_address): Handle
6765 UNSPEC_PCREL for none-MEM, too.
6766
6767 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
6768
6769 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
6770 (ipa_tm_create_version_alias): Same.
6771
6772 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
6773
6774 PR libitm/51830
6775 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
6776 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
6777
6778 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
6779 Patrick Marlier <patrick.marlier@gmail.com>
6780 Iain Sandoe <developer@sandoe-acoustics.co.uk>
6781
6782 PR lto/51916
6783 * lto-wrapper.c (run_gcc): Pass the LTO section name to
6784 simple_object_start_read.
6785
6786 2012-01-23 Richard Guenther <rguenther@suse.de>
6787
6788
6789 PR tree-optimization/51895
6790 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
6791 parameter decomposition into BLKmode components.
6792
6793 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
6794
6795 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
6796 fake variables for restrict-qualified pointers whose pointed-to type
6797 contains a placeholder.
6798
6799 2012-01-23 Richard Guenther <rguenther@suse.de>
6800
6801 PR tree-optimization/51949
6802 * ipa-split.c (execute_split_functions): Do not split malloc functions.
6803
6804 2012-01-23 Jakub Jelinek <jakub@redhat.com>
6805
6806 PR rtl-optimization/51933
6807 * ree.c (transform_ifelse): Return true right away if dstreg is
6808 already wider or equal to cand->mode.
6809 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
6810 (make_defs_and_copies_lists): Remove defs_list and copies_list
6811 arguments, add state argument, just truncate state->work_list
6812 instead of always allocating and freeing the vector. Assert that
6813 get_defs succeeds instead of returning 2. Changed return type to bool.
6814 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
6815 have ext_src_mode, see if it has been modified already with the
6816 right kind of extension and has been extended before from the
6817 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
6818 just return true. Remember the original mode in state->modified array.
6819 (combine_reaching_defs): Add state argument. Don't allocate and
6820 free here def_list, copied_list and vec vectors, instead just
6821 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
6822 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
6823 Add state variable, clear vectors in it, initialize state.modified
6824 if needed. Free all the vectors at the end and state.modified too.
6825 Don't skip a candidate if the extension expression has been modified.
6826
6827 2012-01-22 Douglas B Rupp <rupp@gnat.com>
6828
6829 PR target/47096
6830 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
6831 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
6832 (extra_options) interix.opt -> i386/interix.opt"
6833 (extra_objs):Add winnt-stubs.o
6834 * configure.ac: Add interix to target_os .comm on PE check.
6835 * configure: Regenerate.
6836 * config/interix3.h: Delete and move bits to..
6837 * config/interix.h: Delete and move bits to..
6838 * config/i386/i386-interix3.h: Delete and move bits to..
6839 * config/i386/i386-interix.h: ..here.
6840 (TARGET_CPU_DEFAULT): Remove redefinition.
6841 (TARGET_ASM_CONSTRUCTOR): Undefine.
6842 (SUBTARGET_SWITCHES): Define for ms-bitfields.
6843 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
6844 (PTRDIFF_TYPE): Define.
6845 (LONG_DOUBLE_TYPE_SIZE): Define.
6846 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
6847 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6848 (TARGET_SECTION_TYPE_FLAGS): Define.
6849 (ASM_DECLARE_FUNCTION_NAME): Define.
6850 (ASM_OUTPUT_EXTERNAL): Define.
6851 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
6852 (ASM_OUTPUT_ALIGNED_BSS): Define.
6853 (PCC_BITFIELD_TYPE_MATTERS): Define.
6854 (USE_CONST_SECTION): Define.
6855 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
6856 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
6857 (SUPPORTS_ONE_ONLY): Remove.
6858 (I386_PE_STRIP_ENCODING): Define.
6859 * config/interix.opt: Delete and move bits to..
6860 * config/i386/interix.opt: ..here. New.
6861 (mpe-aligned-commons): Add.
6862 * config/i386/t-interix: Add copyright header.
6863 (winnt-stubs.o): Add rule.
6864
6865 2012-01-22 Jason Merrill <jason@redhat.com>
6866
6867 PR c++/51832
6868 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
6869 for extra name aliases.
6870
6871 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
6872
6873 PR rtl-optimization/51924
6874 * ree.c (combine_set_extension): Improve debugging message.
6875 (combine_reaching_defs): Likewise.
6876 (get_defs): Rename confusingly named variable.
6877 (find_and_remove_re): Skip a candidate if the extension expression has
6878 been modified.
6879
6880 2012-01-21 Robert Millan <rmh@gnu.org>
6881 Gerald Pfeifer <gerald@pfeifer.com>
6882
6883 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
6884 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
6885
6886 2012-01-20 Jakub Jelinek <jakub@redhat.com>
6887
6888 PR tree-optimization/51914
6889 * tree-vect-stmts.c (vectorizable_conversion): For
6890 cvt_type && modifier == WIDEN, put temporary with cvt_type
6891 at the beginning of vec_dsts and set vec_dest to temporary
6892 with vectype_out.
6893
6894 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
6895
6896 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
6897
6898 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
6899
6900 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
6901 * config/rs6000/rs6000.c: Likewise.
6902
6903 2012-01-20 Jakub Jelinek <jakub@redhat.com>
6904
6905 PR target/51915
6906 * config/arm/arm.c (arm_count_output_move_double_insns): Call
6907 output_move_double on a copy of operands array.
6908
6909 2012-01-20 Cary Coutant <ccoutant@google.com>
6910 Dodji Seketeli <dodji@redhat.com>
6911
6912 PR debug/45682
6913 * dwarf2out.c (copy_declaration_context): Return ref to parent
6914 of declaration DIE, if necessary.
6915 (remove_child_or_replace_with_skeleton): Add new parameter; update
6916 caller. Place skeleton DIE under parent DIE of original declaration.
6917 Move call to copy_declaration_context to here ...
6918 (break_out_comdat_types): ... from here.
6919
6920 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6921
6922 PR rtl-optimization/51856
6923 * reload.c (find_reloads_subreg_address): Set the address_reloaded
6924 flag to reloaded.
6925
6926 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6927
6928 PR target/51819
6929 * config/arm/arm.c (arm_print_operand): Correct output of alignment
6930 hints for neon loads and stores.
6931
6932 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
6933
6934 PR target/49868
6935 PR target/50887
6936 * doc/extend.texi (Named Address Spaces): Split into subsections.
6937 (AVR Named Address Spaces): New subsection.
6938 (M32C Named Address Spaces): New subsection.
6939 (RL78 Named Address Spaces): New subsection.
6940 (SPU Named Address Spaces): New subsection.
6941 (Variable Attributes): New anchor "AVR Variable Attributes".
6942 (AVR Variable Attributes): Rewrite and avoid wording
6943 "address space" in this context.
6944 * doc/invoke.texi (AVR Options): Rewrite and add documentation
6945 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
6946 (AVR Built-in Macros): New subsubsection therein.
6947 * doc/md.texi (AVR constraints): Remove "C04", "R".
6948
6949 2012-01-20 Richard Guenther <rguenther@suse.de>
6950
6951 PR tree-optimization/51903
6952 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
6953 when removing stmts.
6954
6955 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6956
6957 PR target/50313
6958 * config/arm/arm.c (arm_load_pic_register): Use
6959 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
6960 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
6961 (arm_pic_static_addr): Likewise.
6962 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
6963 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
6964 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
6965 (pic_load_addr_unified): New.
6966
6967 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
6968
6969 PR target/51106
6970 * function.c (instantiate_virtual_regs_in_insn): Use
6971 delete_insn_and_edges when removing a wrong asm insn.
6972
6973 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
6974
6975 PR rtl-optimization/40761
6976 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
6977 Add new member loop_num.
6978 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
6979 (ira_build): Remove the parameter.
6980
6981 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
6982 (ira.c): Do not build CFG loops for one region allocation. Remove
6983 argument from ira_build call.
6984
6985 * ira-build.c (init_loop_tree_node): New function.
6986 (create_loop_tree_nodes): Use it. Separate the case when CFG
6987 loops are not built.
6988 (more_one_region_p): Check current_loops.
6989 (finish_loop_tree_nodes): Separate the case when CFG loops are not
6990 built.
6991 (add_loop_to_tree): Process loop equal to NULL too.
6992 (form_loop_tree): Separate the case when CFG loops are not built.
6993 Use explicitly number for the root.
6994 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
6995 an assertion.
6996 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
6997 instead of loop->num.
6998 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
6999 (mark_all_loops_for_removal): Ditto.
7000 (remove_unnecessary_regions): Separate the case when CFG loops
7001 are not built.
7002 (ira_build): Remove the parameter. Use explicit number of regions
7003 when CFG loops are not built.
7004
7005 * ira-color.c (print_loop_title): Separate the case for the root node.
7006 Use loop_num instead of loop->num.
7007 (move_spill_restore): Use loop_num instead of loop->num.
7008
7009 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
7010 (change_loop): Ditto.
7011 (change_loop): Use loop_num instead of loop->num.
7012
7013 * ira-lives.c (process_bb_node_lives): Ditto.
7014
7015 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
7016
7017 * ira-conflicts.c (print_allocno_conflicts): Ditto.
7018
7019 2012-01-19 Jakub Jelinek <jakub@redhat.com>
7020
7021 PR libmudflap/40778
7022 * tree-mudflap.c (mf_artificial): New function.
7023 (execute_mudflap_function_ops, execute_mudflap_function_decls,
7024 mx_register_decls, mudflap_enqueue_decl): Use it.
7025
7026 PR target/51876
7027 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
7028 numbers in the insn pattern.
7029
7030 2012-01-19 Michael Matz <matz@suse.de>
7031
7032 PR tree-optimization/46590
7033 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
7034 use it in remembering which conflicts we already created.
7035 (add_scope_conflicts): Adjust call to above, (de)allocate helper
7036 bitmap.
7037
7038 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
7039
7040 PR lto/51280
7041 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
7042 (merge_and_complain): Same.
7043
7044 2012-01-19 Jakub Jelinek <jakub@redhat.com>
7045
7046 PR bootstrap/50237
7047 * config/initfini-array.h: Guard content of the header
7048 with #ifdef HAVE_INITFINI_ARRAY.
7049 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
7050 Add initfini-array.h to tm_file here.
7051 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
7052 * config.gcc: Don't add initfini-array.h to tm_file here.
7053 * configure: Regenerated.
7054
7055 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
7056
7057 PR rtl-optimization/51505
7058 * df-problems.c (df_kill_notes): New parameter live. Update comment.
7059 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
7060 (df_note_bb_compute): Update the call to df_kill_notes.
7061
7062 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
7063
7064 * trans-mem.c (requires_barrier): Remove call to is_global_var.
7065
7066 2012-01-18 Richard Guenther <rguenther@suse.de>
7067
7068 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
7069 of conversions to void *.
7070
7071 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7072 Richard Sandiford <rdsandiford@googlemail.com>
7073
7074 PR middle-end/50325
7075 PR middle-end/51192
7076 * optabs.h (simplify_expand_binop): Declare.
7077 * optabs.c (simplify_expand_binop): Make global.
7078 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
7079 endian targets if the source cannot be exactly covered by word
7080 mode chunks.
7081
7082 2012-01-17 Jakub Jelinek <jakub@redhat.com>
7083
7084 PR bootstrap/51872
7085 * hard-reg-set.h (struct hard_reg_set_container): New type.
7086 * target.h (struct hard_reg_set_container): Forward declare.
7087 * target.def (set_up_by_prologue): New target hook.
7088 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
7089 * doc/tm.texi: Regenerated.
7090 * function.c (thread_prologue_and_epilogue_insns): Change
7091 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
7092 Call targetm.set_up_by_prologue on it.
7093 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
7094 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
7095
7096 2012-01-17 Nick Clifton <nickc@redhat.com>
7097
7098 * config/rx/rx.c (rx_can_use_simple_return): New function.
7099 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
7100 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
7101
7102 2012-01-17 Richard Guenther <rguenther@suse.de>
7103
7104 PR middle-end/51782
7105 * expr.c (expand_assignment): Take address-space information
7106 from the address operand of MEM_REF and TARGET_MEM_REF.
7107 (expand_expr_real_1): Likewise.
7108
7109 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7110
7111 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
7112 reload dump is requested.
7113
7114 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
7115
7116 PR other/51165
7117 * trans-mem.c (requires_barrier): Call may_be_aliased.
7118
7119 2012-01-17 Jakub Jelinek <jakub@redhat.com>
7120
7121 PR tree-optimization/51877
7122 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
7123 call arguments and fndecls compare equal, instead return false if they
7124 don't. Return true only if lhs1 and lhs2 are either both NULL, or
7125 both SSA_NAMEs that are valueized the same, or they satisfy
7126 operand_equal_p.
7127
7128 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7129
7130 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
7131 Solaris 11+.
7132 * configure: Regenerate.
7133
7134 2012-01-16 Jan Hubicka <jh@suse.cz>
7135
7136 PR c/12245
7137 PR c++/14179
7138 * convert.c (convert_to_integer): Use fold_convert for
7139 converting an INTEGER_CST to integer type.
7140
7141 2012-01-16 Jason Merrill <jason@redhat.com>
7142
7143 PR c++/14179
7144 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
7145
7146 2012-01-16 Jakub Jelinek <jakub@redhat.com>
7147
7148 PR bootstrap/51860
7149 * config/s390/s390.c (s390_chunkify_start): Don't skip
7150 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
7151 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
7152 If insn is followed by NOTE_INSN_VAR_LOCATION or
7153 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
7154 Don't use location of note insns.
7155
7156 PR tree-optimization/51865
7157 * tree-inline.c (tree_function_versioning): Call remap_decl
7158 on DECL_RESULT whenever it has VOID_TYPE_P type.
7159
7160 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
7161
7162 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
7163 for calls to locally-binding MIPS16 functions if only the return
7164 type uses float regs.
7165
7166 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
7167 Richard Sandiford <rdsandiford@googlemail.com>
7168
7169 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
7170 (SYMBOL_32_HIGH): Likewise.
7171 (mips_output_tls_reloc_directive): Declare.
7172 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
7173 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
7174 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
7175 (mips_lo_relocs, mips_hi_relocs): Make extern.
7176 (mips16_stub_function): Move up file.
7177 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
7178 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
7179 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
7180 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
7181 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
7182 (mips_get_tp): Add MIPS16 support.
7183 (mips_legitimize_tls_address): Remove MIPS16 sorry().
7184 Generalize DTPREL and TPREL handling.
7185 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
7186 Add MIPS16 TLS support.
7187 (mips_output_tls_reloc_directive): New function.
7188 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
7189 * config/mips/predicates.md (symbolic_operand_with_high)
7190 (tls_reloc_operand): New predicates.
7191 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
7192 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
7193 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
7194 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
7195 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
7196 (*tls_get_tp_mips16_call_<mode>): Likewise.
7197
7198 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
7199
7200 PR rtl-optimization/51821
7201 * recog.c (peep2_find_free_register): Determine clobbered registers
7202 from insn pattern.
7203
7204 2012-01-14 Denis Chertykov <chertykov@gmail.com>
7205
7206 PR target/50925
7207 * config/avr/avr-protos.h: Revert change of 2012-01-09.
7208 * config/avr/avr.c: Likewise.
7209 * config/avr/avr.h: Likewise.
7210
7211 2012-01-13 Ian Lance Taylor <iant@google.com>
7212
7213 PR c++/50012
7214 * tree.h (TYPE_QUALS): Add cast to int.
7215 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
7216
7217 2012-01-13 Ian Lance Taylor <iant@google.com>
7218
7219 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
7220 comparing param_index to VEC_length result.
7221
7222 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
7223
7224 * c-decl.c: Do not include tree-mudflap.h
7225 * tree-optimize.c: Likewise.
7226 * Makefile.in: Update dependencies.
7227
7228 2012-01-13 Richard Guenther <rguenther@suse.de>
7229
7230 PR middle-end/8081
7231 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
7232 variable-sized result always use RSO.
7233
7234 2012-01-12 DJ Delorie <dj@redhat.com>
7235
7236 * cfgexpand.c (convert_debug_memory_address): Allow any valid
7237 pointer type, not just the default pointer type.
7238
7239 2012-01-09 Richard Henderson <rth@redhat.com>
7240 Denis Chertykov <chertykov@gmail.com>
7241
7242 PR target/50925
7243 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
7244 * config/avr/avr.c (avr_can_eliminate): Simplify.
7245 (avr_initial_elimination_offset): Likewise.
7246 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
7247 (expand_epilogue): Likewise.
7248 (avr_legitimize_address): Gut.
7249 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
7250 (avr_hard_regno_nregs): New.
7251 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
7252 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
7253 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
7254 add soft frame pointer.
7255 (CALL_USED_REGISTERS): Likewise.
7256 (REG_CLASS_CONTENTS): Likewise.
7257 (REGISTER_NAMES): Likewise.
7258 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
7259 (HARD_FRAME_POINTER_REGNUM): New.
7260 (FRAME_POINTER_REGNUM): Use soft frame pointer.
7261 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
7262 remove the HARD_FRAME_POINTER self-elimination.
7263
7264 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
7265
7266 PR target/51756
7267 * config/avr/avr.c (avr_encode_section_info): Test for absence of
7268 DECL_EXTERNAL when checking for initializers of progmem variables.
7269
7270 2012-01-12 Ira Rosen <irar@il.ibm.com>
7271
7272 PR tree-optimization/51799
7273 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
7274 that the last operation is a type demotion.
7275
7276 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
7277
7278 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
7279 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
7280
7281 2012-01-11 Jakub Jelinek <jakub@redhat.com>
7282
7283 PR bootstrap/51796
7284 * combine.c (distribute_notes): If i3 is a noreturn call,
7285 allow old_size to be equal to args_size and make sure the
7286 noreturn call gets REG_ARGS_SIZE note.
7287 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
7288 on noreturn calls even when the delta is 0.
7289
7290 2012-01-11 Nathan Sidwell <nathan@acm.org>
7291
7292 * gcov.c (STRING_SIZE): Remove.
7293 (generate_results): Erase annotations for source files with no
7294 coverage information.
7295 (read_line): New.
7296 (output_lines): Use it.
7297
7298 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
7299
7300 * gimple.h (gimplify_body): Remove first argument.
7301 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
7302 pointer set here, instead just pass DATA to walk_tree.
7303 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
7304 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
7305 (unvisit_body): Likewise, but with unmark_visited.
7306 (gimplify_body): Remove BODY_P argument and adjust.
7307 (gimplify_function_tree): Adjust call to gimplify_body.
7308 * omp-low.c (finalize_task_copyfn): Likewise.
7309
7310 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
7311
7312 * tree.h (build_function_decl_skip_args): Add boolean parameter.
7313 (build_function_type_skip_args): Delete.
7314 * tree.c (build_function_type_skip_args): Make static and add
7315 SKIP_RETURN parameter. Fix thinko in the handling of variants.
7316 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
7317 pass it to build_function_type_skip_args.
7318 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
7319 (tree_function_versioning): Likewise.
7320 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
7321 build_function_decl_skip_args.
7322 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
7323 and pass it to build_function_decl_skip_args/tree_function_versioning.
7324 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
7325 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7326 * trans-mem.c (ipa_tm_create_version): Likewise.
7327 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
7328 * tree-inline.c (declare_return_variable): Remove always-true test.
7329 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
7330 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
7331 * ipa-split.c (split_function): Skip the return value for the split
7332 part if it doesn't return.
7333
7334 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7335
7336 PR tree-optimization/49642
7337 * ipa-split.c (forbidden_dominators): New variable.
7338 (check_forbidden_calls): New function.
7339 (dominated_by_forbidden): Likewise.
7340 (consider_split): Check for forbidden dominators.
7341 (execute_split_functions): Initialize and free forbidden
7342 dominators info; call check_forbidden_calls.
7343
7344 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7345
7346 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
7347
7348 2012-01-11 Nick Clifton <nickc@redhat.com>
7349
7350 * config/rx/rx.md (return): Define pattern.
7351
7352 2012-01-11 Richard Guenther <rguenther@suse.de>
7353
7354 * doc/extend.texi (malloc attribute): Adjust according to
7355 implementation.
7356
7357 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
7358 Patrick Marlier <patrick.marlier@gmail.com>
7359
7360 PR middle-end/51516
7361 * trans-mem.c (get_cg_data): Traverse aliases if requested.
7362 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
7363 (ipa_tm_note_irrevocable): Same.
7364 (ipa_tm_scan_irr_block): Same.
7365 (ipa_tm_decrement_clone_counts): Same.
7366 (ipa_tm_scan_irr_function): Same.
7367 (ipa_tm_create_version_alias): Same.
7368 (ipa_tm_create_version): Same.
7369 (ipa_tm_transform_calls_redirect): Same.
7370 (ipa_tm_transform_calls): Same.
7371 (ipa_tm_transform_transaction): Same.
7372 (ipa_tm_execute): Same.
7373
7374 2012-01-10 Richard Guenther <rguenther@suse.de>
7375
7376 PR middle-end/51806
7377 * opts.c (common_handle_option): Handle -Werror.
7378
7379 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
7380
7381 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
7382 operand number.
7383
7384 2012-01-10 Jason Merrill <jason@redhat.com>
7385
7386 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
7387 information.
7388
7389 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7390
7391 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
7392 supports R_386_TLS_GD_PLT reloc.
7393 (gcc_cv_as_ix86_tlsldmplt): Check if linker
7394 supports R_386_TLS_LDM_PLT reloc.
7395 * configure: Regenerate.
7396 * config.in: Regenerate.
7397
7398 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
7399
7400 PR target/49868
7401 Extend __pgmx semantics to linearize memory.
7402 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
7403 determine if code comes inline or from libgcc.
7404 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
7405 (movmem_qi, movmem_qi): Set constraint #2 to "n".
7406 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
7407 (movmemx_qi, movmemx_hi): New insns.
7408 (xload_<mode>_libgcc): Rewrite to new insn condition.
7409 (xload_<mode>): Remove insns.
7410 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
7411 cases that don't satisfy avr_xload_libgcc_p().
7412 (avr_addr_space_convert): Allow converting in any direction.
7413 (avr_addr_space_subset_p): Return always true.
7414 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
7415 (avr_emit_movmemhi): Ditto.
7416 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
7417 (avr_out_movmem): Ditto.
7418 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
7419 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
7420 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
7421 (avr_encode_section_info): Encode 'progmem' in symbol flags.
7422 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
7423
7424 2012-01-10 Richard Guenther <rguenther@suse.de>
7425
7426 PR tree-optimization/50913
7427 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
7428 Require data-refs to be representable by Graphite with respect
7429 to any loop nest.
7430
7431 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
7432
7433 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
7434 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
7435
7436 2012-01-10 Tom de Vries <tom@codesourcery.com>
7437
7438 PR rtl-optimization/51271
7439 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
7440 handling annulled branch.
7441
7442 2012-01-10 Richard Henderson <rth@redhat.com>
7443
7444 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
7445 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
7446 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
7447 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
7448 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
7449 arm_expand_vec_perm_const): New.
7450 * config/arm/arm-protos.h: Update.
7451 * config/arm/neon.md (UNSPEC_VCONCAT): New.
7452 (*neon_vswp<VDQX>): New.
7453 (neon_vcombine<VDX>): Use neon_split_vcombine.
7454 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
7455 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
7456 (vec_perm<VE>): New.
7457
7458 2012-01-10 Richard Henderson <rth@redhat.com>
7459
7460 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
7461 use it if reload_completed.
7462 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
7463 arm_output_asm_insn, arm_process_output_memory_barrier,
7464 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
7465 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
7466 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
7467 arm_process_output_sync_insn, arm_output_sync_insn,
7468 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
7469 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
7470 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
7471 (emit_unlikely_jump): New.
7472 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
7473 (arm_split_atomic_op): New.
7474 * config/arm/arm-protos.h: Update.
7475 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
7476 (struct arm_sync_generator): Remove.
7477 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
7478 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
7479 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
7480 (VUNSPEC_LL, VUNSPEC_SC): New.
7481 (sync_result, sync_memory, sync_required_value, sync_new_value,
7482 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
7483 (attr length): Don't use arm_sync_loop_insns.
7484 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
7485 (movsfcc, movdfcc): Likewise.
7486 * config/arm/constraints.md (Ua): New.
7487 * config/arm/prediates.md (mem_noofs_operand): New.
7488 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
7489 (sync_clobber, sync_t2_reqd): Remove.
7490 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
7491 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
7492 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
7493 (arm_sync_compare_and_swap<SIDI>): Remove.
7494 (arm_sync_compare_and_swap<NARROW>): Remove.
7495 (arm_sync_lock_test_and_set<SIDI>): Remove.
7496 (arm_sync_lock_test_and_set<NARROW>): Remove.
7497 (arm_sync_new_<syncop><SIDI>): Remove.
7498 (arm_sync_new_<syncop><NARROW>): Remove.
7499 (arm_sync_new_nand<SIDI>): Remove.
7500 (arm_sync_new_nand<NARROW>): Remove.
7501 (arm_sync_old_<syncop><SIDI>): Remove.
7502 (arm_sync_old_<syncop><NARROW>): Remove.
7503 (arm_sync_old_nand<SIDI>): Remove.
7504 (arm_sync_old_nand<NARROW>): Remove.
7505 (*memory_barrier): Merge arm_output_memory_barrier.
7506 (atomic_compare_and_swap<QHSD>): New.
7507 (atomic_compare_and_swap<NARROW>_1): New.
7508 (atomic_compare_and_swap<SIDI>_1): New.
7509 (atomic_exchange<QHSD>): New.
7510 (cas_cmp_operand, cas_cmp_str): New.
7511 (atomic_op_operand, atomic_op_str): New.
7512 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
7513 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
7514 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
7515 (arm_load_exclusive<NARROW>): New.
7516 (arm_load_exclusivesi, arm_load_exclusivedi): New.
7517 (arm_store_exclusive<QHSD>): New.
7518
7519 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7520
7521 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
7522 reload patterns if -mvsx-scalar-memory.
7523
7524 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
7525 generated, even -mno-vsx-scalar-double was used.
7526 (vsx_xscvdpsp_scalar): Likewise.
7527 (vsx_xscvspdp_scalar2): Likewise.
7528
7529 2012-01-09 Tom de Vries <tom@codesourcery.com>
7530 Andrew Pinski <apinski@cavium.com>
7531
7532 PR debug/51471
7533 * reorg.c (fill_slots_from_thread): Don't speculate
7534 frame-related insns.
7535
7536 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
7537
7538 * sched-int.h (bb_note): Move to...
7539 * basic-block.h: ...here.
7540 * haifa-sched.c (bb_note): Move to...
7541 * cfgrtl.c: ...here.
7542 * function.c (next_block_for_reg): New function.
7543 (move_insn_for_shrink_wrap): Likewise.
7544 (prepare_shrink_wrap): Rewrite to use the above.
7545
7546 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
7547
7548 * gimple.c (is_gimple_non_addressable): Remove.
7549 * gimple.h: Remove is_gimple_non_addressable.
7550 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
7551 is_gimple_non_addressable.
7552 * trans-mem.c (expand_assign_tm): Same.
7553
7554 2012-01-09 Richard Guenther <rguenther@suse.de>
7555
7556 PR tree-optimization/51775
7557 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
7558 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
7559
7560 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7561
7562 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
7563 tuning parameters.
7564 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
7565
7566 2012-01-09 Richard Guenther <rguenther@suse.de>
7567
7568 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
7569
7570 2012-01-08 Jan Hubicka <jh@suse.cz>
7571
7572 PR tree-optimize/51680
7573 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
7574 on when known_vals needs to be computed; cleanup.
7575
7576 2012-01-08 Jan Hubicka <jh@suse.cz>
7577
7578 PR tree-optimize/51694
7579 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
7580
7581 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7582
7583 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
7584 for -std=c++98 and -std=c++11 too.
7585
7586 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
7587
7588 * cfgloop.c (cancel_loop): Add free() of bbs array.
7589
7590 2012-01-07 Jan Hubicka <jh@suse.cz>
7591
7592 PR tree-optimization/51600
7593 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
7594 that benefits small functions.
7595
7596 2012-01-07 Jan Hubicka <jh@suse.cz>
7597
7598 * ipa-inline.c (want_inline_small_function_p): Fix formating.
7599
7600 2012-01-07 Jan Hubicka <jh@suse.cz>
7601
7602 PR tree-optimization/51680
7603 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
7604 whose inlining reduce unit size.
7605
7606 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
7607
7608 PR bootstrap/51725
7609 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
7610 Add canonical node to containing_mem chain after the non-canonical
7611 one, even if there weren't any locs to propagate.
7612 (remove_useless_values): Keep only canonical values.
7613 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
7614 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
7615 canonicalize mem_chain elements that are not discarded.
7616
7617 2012-01-06 Jakub Jelinek <jakub@redhat.com>
7618
7619 PR target/47333
7620 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
7621 before emitting functions.
7622
7623 PR gcov-profile/50127
7624 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
7625 clear_aux_for_blocks.
7626
7627 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
7628
7629 PR debug/51746
7630 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
7631
7632 2012-01-06 Arnaud Charlet <charlet@adacore.com>
7633
7634 * c-decl.c (ext_block): Moved up.
7635 (collect_all_refs, for_each_global_decl): Take ext_block into account.
7636
7637 2012-01-06 Han Shen <shenhan@google.com>
7638
7639 Translate built-in include paths for sysroot.
7640 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
7641 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
7642
7643 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
7644 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
7645
7646 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
7647 control whether sysroot should be prepended to gxx include dir.
7648
7649 * configure: Regenerate.
7650
7651 2012-01-06 Torvald Riegel <triegel@redhat.com>
7652
7653 PR rtl-optimization/51771
7654 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
7655 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
7656
7657 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
7658
7659 PR tree-optimization/51315
7660 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
7661 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
7662
7663 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
7664
7665 PR target/51681
7666 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
7667 for shrp pattern. Correctly handle and fixup shift variable.
7668 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
7669
7670 2012-01-05 Jakub Jelinek <jakub@redhat.com>
7671
7672 PR debug/51762
7673 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
7674 note when !ACCUMULATE_OUTGOING_ARGS.
7675
7676 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
7677
7678 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
7679 condition.
7680 (extract_range_from_unary_expr_1): Avoid useless computations.
7681
7682 2012-01-05 Jakub Jelinek <jakub@redhat.com>
7683
7684 PR rtl-optimization/51767
7685 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
7686 of jump_block and add an extra edge for degenerated asm gotos.
7687
7688 PR middle-end/51768
7689 * stmt.c (check_unique_operand_names): Don't ICE during error
7690 reporting if i is from labels chain.
7691
7692 PR middle-end/44777
7693 * profile.c (branch_prob): Split bbs that have exit edge
7694 and need a fake entry edge too.
7695
7696 2012-01-05 Jan Hubicka <jh@suse.cz>
7697
7698 PR middle-end/49710
7699 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
7700 unlooping loops.
7701
7702 2012-01-05 Richard Guenther <rguenther@suse.de>
7703
7704 PR lto/50490
7705 * tree-streamer-out.c (write_ts_optimization): New function.
7706 (streamer_write_tree_body): Call it.
7707 * tree-streamer-in.c (lto_input_ts_optimization): New function.
7708 (streamer_read_tree_body): Call it.
7709 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
7710
7711 2012-01-05 Jakub Jelinek <jakub@redhat.com>
7712
7713 PR middle-end/51761
7714 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
7715 * gimplify.c (gimplify_cleanup_point_expr): Save and set
7716 in_cleanup_point_expr before gimplify_stmt call and restore it
7717 afterwards.
7718 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
7719 in_cleanup_point_expr is false.
7720
7721 2012-01-05 Richard Guenther <rguenther@suse.de>
7722
7723 PR middle-end/51764
7724 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
7725 to c.opt.
7726 * toplev.c (process_options): Reject combining mudflap and LTO.
7727 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
7728
7729 2012-01-05 Richard Guenther <rguenther@suse.de>
7730
7731 PR tree-optimization/51760
7732 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
7733 not VARYING.
7734 (bit_value_unop): Handle UNDEFINED operands.
7735 (bit_value_binop): Likewise.
7736
7737 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
7738
7739 * config/avr/avr.c (avr_replace_prefix): Remove.
7740 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
7741 (avr_asm_function_rodata_section): Ditto.
7742 (avr_asm_select_section): Ditto.
7743
7744 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7745
7746 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
7747 insertion.
7748
7749 2012-01-05 Jakub Jelinek <jakub@redhat.com>
7750
7751 PR bootstrap/51648
7752 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
7753 calls that have any non-fake successor edges.
7754
7755 PR debug/51746
7756 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
7757
7758 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
7759
7760 PR tree-optimization/51624
7761 * tree-sra.c (build_ref_for_model): When replicating a chain of
7762 COMPONENT_REFs, stop as soon as the offset would become negative.
7763
7764 2012-01-04 Jakub Jelinek <jakub@redhat.com>
7765
7766 PR debug/51695
7767 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
7768 in .debug_loc on the floor.
7769
7770 2012-01-04 Andrew Pinski <apinski@cavium.com>
7771
7772 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
7773
7774 2012-01-04 Andrew Pinski <apinski@cavium.com>
7775 Adam Nemet <anemet@caviumnetworks.com>
7776
7777 * config/mips/mips.md (size): Add SI and DI.
7778 (SIZE): New mode attribute.
7779 (U): New code attribute.
7780 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
7781 (mips_lbux_<mode>): Delete.
7782 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
7783 (mips_lhx): Use gen_mips_lhx_extsi.
7784 (mips_lhx_<mode>): Delete.
7785 (mips_lwx): Delete.
7786 (mips_l<size>x): New expand.
7787 (mips_lwx_<mode>): Delete.
7788 (mips_l<GPR:size>x_<P:mode>): New pattern.
7789 (*mips_lw<u>x_<P:mode>_ext): Likewise.
7790 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
7791 * config/mips/mips.c (mips_lx_address_p): New function.
7792 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
7793 (dsp64): New availability predicate.
7794 (mips_builtins): Add an entry for __builtin_mips_ldx.
7795 * config/mips/mips.h (ISA_HAS_LBX): New define.
7796 (ISA_HAS_LBUX): Likewise.
7797 (ISA_HAS_LHX): Likewise.
7798 (ISA_HAS_LHUX): Likewise.
7799 (ISA_HAS_LWX): Likewise.
7800 (ISA_HAS_LWUX): Likewise.
7801 (ISA_HAS_LDX): Likewise.
7802 * doc/extend.texi (__builtin_mips_ldx): Document.
7803
7804 2012-01-04 Tristan Gingold <gingold@adacore.com>
7805
7806 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
7807 when long pointers are used.
7808 * config.build (*-*-*vms*): Handle all OpenVMS targets.
7809 (alpha64-dec-*vms*, alpha*-dec-*vms*)
7810 (ia64-hp-*vms*): Remove.
7811 * config/vms/xm-vms64.h: Delete.
7812
7813 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
7814
7815 PR middle-end/51472
7816 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
7817
7818 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
7819
7820 * opts.c (finish_options): Remove duplicate sorry.
7821
7822 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
7823
7824 PR middle-end/51696
7825 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
7826 correctly.
7827
7828 2012-01-04 Richard Guenther <rguenther@suse.de>
7829
7830 PR middle-end/51750
7831 * tree.c (size_low_cst): New function.
7832 * tree.h (size_low_cst): Declare.
7833 * fold-const.c (fold_comparison): Use it to extract the low
7834 part of the POINTER_PLUS_EXPR offset.
7835
7836 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
7837
7838 Fix clearing ZERO_REG
7839 * config/avr/avr.md (cc): Add alternative "ldi".
7840 (movqi_insn): Use it in cc attribute.
7841 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
7842 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
7843 (output_reload_insisf): Use ZERO_REG to pre-clear register.
7844
7845 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7846
7847 * configure: Regenerate.
7848
7849 2012-01-04 Richard Guenther <rguenther@suse.de>
7850
7851 PR tree-optimization/49651
7852 * tree-ssa-structalias.c (type_can_have_subvars): New function.
7853 (var_can_have_subvars): Use it.
7854 (get_constraint_for_1): Only consider subfields if there can be any.
7855
7856 2012-01-03 Jakub Jelinek <jakub@redhat.com>
7857
7858 PR bootstrap/51725
7859 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
7860 to its new canonical_cselib_val and the cselib_val was in
7861 first_containing_mem chain, but the canonical_cselib_val was not,
7862 add the latter into the chain.
7863 (cselib_invalidate_mem): Compare canonical_cselib_val of
7864 addr_list chain elt with v.
7865
7866 PR pch/51722
7867 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
7868 dwarf2out_undef): Allocate e.info using ggc_strdup instead
7869 of xstrdup.
7870 (output_macinfo_op): Don't ggc_strdup fd->filename.
7871 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
7872 then ggc_strdup it. Don't free inc->info or cur->info.
7873 (output_macinfo): Don't free ref->info or file->info.
7874
7875 2012-01-03 Ira Rosen <irar@il.ibm.com>
7876
7877 PR tree-optimization/51269
7878 * tree-vect-loop-manip.c (set_prologue_iterations): Make
7879 first_niters a pointer.
7880 (slpeel_tree_peel_loop_to_edge): Likewise.
7881 (vect_do_peeling_for_loop_bound): Update call to
7882 slpeel_tree_peel_loop_to_edge.
7883 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
7884 here. Remove it from the parameters list.
7885 (vect_do_peeling_for_alignment): Update calls and compute
7886 wide_prolog_niters.
7887
7888 2012-01-03 Richard Guenther <rguenther@suse.de>
7889
7890 PR tree-optimization/51070
7891 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
7892 Properly handle calls.
7893
7894 2012-01-03 Richard Guenther <rguenther@suse.de>
7895
7896 PR tree-optimization/51692
7897 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
7898 the LHS of allocation stmts.
7899
7900 2012-01-03 Olivier Hainque <hainque@adacore.com>
7901
7902 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
7903
7904 2012-01-03 Olivier Hainque <hainque@adacore.com>
7905
7906 * collect2.c (main): In AIX specific computations for vector
7907 insertions, use CONST_CAST2 to cast from char ** to const char **.
7908
7909 2012-01-03 Richard Guenther <rguenther@suse.de>
7910
7911 PR debug/51650
7912 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
7913 the context of a limbo DIE when it does not already exist.
7914
7915 2012-01-03 Jakub Jelinek <jakub@redhat.com>
7916
7917 PR tree-optimization/51719
7918 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
7919 but direct call is, clear direct call's lhs and don't add fallthrough
7920 edge from dcall_bb to join_bb and PHIs.
7921
7922 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7923
7924 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
7925 the instructions emitted by the pattern.
7926 ("*TDC_insn_<mode>"): Add comment.
7927
7928 2012-01-03 Richard Guenther <rguenther@suse.de>
7929
7930 PR middle-end/51730
7931 * fold-const.c (fold_comparison): Properly canonicalize
7932 tree offset and HOST_WIDE_INT bit position.
7933
7934 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
7935
7936 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
7937 operands for extzv pattern.
7938
7939 2012-01-02 Jakub Jelinek <jakub@redhat.com>
7940
7941 PR bootstrap/51725
7942 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
7943 on mem_elt first.
7944
7945 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
7946
7947 * doc/invoke.texi (-flto and related options): Copy-edit.
7948
7949 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7950
7951 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
7952
7953 2012-01-02 Jakub Jelinek <jakub@redhat.com>
7954
7955 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
7956 New patterns.
7957
7958 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7959
7960 * expr.h (move_by_pieces_ninsns): Declare.
7961 * expr.c (move_by_pieces_ninsns): Make external.
7962 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
7963 (mips_store_by_pieces_p): Likewise.
7964 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
7965 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
7966 * config/mips/mips.c (mips_move_by_pieces_p): New function.
7967 (mips_store_by_pieces_p): Likewise.
7968
7969 2012-01-02 Jakub Jelinek <jakub@redhat.com>
7970
7971 * passes.c (register_one_dump_file): Free full_name.
7972
7973 * reload1.c (reload): Don't allocate reg_max_ref_width here.
7974 (calculate_elim_costs_all_insns): Free offsets_at and
7975 offsets_known_at at the end and clear the pointers.
7976
7977 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
7978
7979 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
7980 this option introduced in r180739.
7981
7982 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
7983
7984 PR target/51345
7985 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
7986 (tmake_file target=avr): Add avr/t-multilib.
7987
7988 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
7989 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
7990 * config/avr/genmultilib.awk: New file.
7991 * config/avr/t-multilib: New auto-generated file.
7992 * config/avr/multilib.h: New auto-generated file.
7993 * config/avr/t-avr (AVR_MCUS): New variable.
7994 (genopt.sh): Use it.
7995 (s-mlib): Depend on t-multilib.
7996 (t-multilib, multilib.h): New dependencies.
7997 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
7998 (MULTILIB_OPTIONS): Remove.
7999 (MULTILIB_MATCHES): Remove.
8000 (MULTILIB_DIRNAMES): Remove.
8001 (MULTILIB_EXCEPTIONS): Remove:
8002 * config/avr/genopt.sh: Don't use hard coded file name;
8003 pass AVR_MCUS from t-avr instead.
8004
8005 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
8006
8007 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
8008
8009 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
8010
8011 Implement light-weight DImode support.
8012 * config/avr/avr-dimode.md: New file.
8013 * config/avr/avr.md: Include it.
8014 (adjust_len): Add plus64, compare64.
8015 (HIDI): Remove code iterator.
8016 (code_stdname): New code attribute.
8017 (rotx, rotsmode): Remove DI.
8018 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
8019 as code iterator.
8020 * config/avr/avr-protos.h (avr_have_dimode): New.
8021 (avr_out_plus64, avr_out_compare64): New.
8022 * config/avr/avr.c (avr_out_compare): Handle DImode.
8023 (avr_have_dimode): New variable definition and initialization.
8024 (avr_out_compare64, avr_out_plus64): New functions.
8025 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
8026 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
8027 (avr_compare_pattern): Skip DImode comparisons.
8028
8029 2012-01-02 Revital Eres <revital.eres@linaro.org>
8030
8031 * ddg.c (def_has_ccmode_p): New function.
8032 (add_cross_iteration_register_deps,
8033 create_ddg_dep_from_intra_loop_link): Call it.
8034
8035 2012-01-02 Richard Guenther <rguenther@suse.de>
8036
8037 PR other/51679
8038 * invoke.texi (fassociative-math): Remove spurious paranthesis.
8039
8040 2012-01-01 Jakub Jelinek <jakub@redhat.com>
8041
8042 * gcc.c (process_command): Update copyright notice dates.
8043 * gcov.c (print_version): Likewise.
8044 * gcov-dump.c (print_version): Likewise.
8045 * mips-tfile.c (main): Likewise.
8046 * mips-tdump.c (main): Likewise.
8047
8048 2012-01-01 Ira Rosen <irar@il.ibm.com>
8049
8050 PR tree-optimization/51704
8051 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
8052 a use is inside the basic block or loop before accessing its vect info.
8053
8054 2012-01-01 Jan Hubicka <jhjh@suse.cz>
8055
8056 PR rtl-optimization/51069
8057 * cfgloopmanip.c (remove_path): Removing path making irreducible
8058 region unconditional makes BB part of the region.
8059
8060 2012-01-01 Jakub Jelinek <jakub@redhat.com>
8061
8062 PR tree-optimization/51683
8063 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
8064 calls with side-effects.
8065 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8066 \f
8067 Copyright (C) 2012 Free Software Foundation, Inc.
8068
8069 Copying and distribution of this file, with or without modification,
8070 are permitted in any medium without royalty provided the copyright
8071 notice and this notice are preserved.