]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
The main function for epilogue RTL generation, used by expand epilogue
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
c3635784 12012-06-18 Ian Bolton <ian.bolton@arm.com>
2 Sameera Deshpande <sameera.deshpande@arm.com>
3 Greta Yorsh <greta.yorsh@arm.com>
4
5 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
6 * config/arm/arm.c (arm_expand_epilogue): New function.
7 * config/arm/arm.md (epilogue): Update condition and code.
8 (sibcall_epilogue): Likewise.
9
d7757711 102012-06-18 Ian Bolton <ian.bolton@arm.com>
11 Sameera Deshpande <sameera.deshpande@arm.com>
12 Greta Yorsh <greta.yorsh@arm.com>
13
14 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
15 * config/arm/arm.md (arm_addsi3) Add an alternative.
16
1a0b0f12 172012-06-18 Ian Bolton <ian.bolton@arm.com>
18 Sameera Deshpande <sameera.deshpande@arm.com>
19 Greta Yorsh <greta.yorsh@arm.com>
20
21 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New
22 define_insn.
23 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
24 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
25
426be8c5 262012-06-18 Ian Bolton <ian.bolton@arm.com>
27 Sameera Deshpande <sameera.deshpande@arm.com>
28 Greta Yorsh <greta.yorsh@arm.com>
29
30 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
31 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
32 (pop_multiple_with_return, ldr_with_return) Likewise.
33 * config/arm/predicates.md (pop_multiple_return) New special predicate.
34 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
35 * config/arm/arm.c (arm_output_multireg_pop) New function.
36 (arm_emit_multi_reg_pop): New function.
37
d0e38b85 382012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
39
40 * config/arm/arm.c (ldm_stm_operation_p): Require SP
41 as base register for loads if SP is in the register list.
42
897c6e08 432012-06-18 Richard Guenther <rguenther@suse.de>
44
45 PR tree-optimization/53693
46 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
47 Reject operands with more than one use.
48
7c74ee50 492012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
50
51 PR tree-optimization/53703
52 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
53 correctly set bb_for_def[12].
54
6789e11c 552012-06-18 Steven Bosscher <steven@gcc.gnu.org>
56
57 * config/vax/vax.h (VMS_TARGET): Remove.
58
04dbf3c4 592012-06-18 Richard Guenther <rguenther@suse.de>
60
61 * tree-vrp.c (extract_range_from_assert): Split out range
62 intersecting code.
63 (intersect_ranges): New function.
64 (vrp_intersect_ranges): Likewise.
65
91f7d5ff 662012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
67
68 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
69 r187965.
70
65729bd0 712012-06-18 Tejas Belagod <tejas.belagod@arm.com>
72
73 * doc/md.texi: Document int iterators.
74 * read-rtl.c (ints): New iterator group.
75 (find_int): Int iterator group callback.
76 (apply_int_iterator): Likewise.
77 (apply_iterators): Traverse int iterator table and add all the used
78 iterators to list.
79 (initialize_iterators): Initialize data structures and callbacks for int
80 iterators.
81 (read_rtx): Parse and read mappings for int iterators.
82 (read_rtx_code): Record int iterator usage.
83
fe265396 842012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
85
86 PR middle-end/53698
87 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
88 performing an addition.
89
21eb4639 902012-06-17 Steven Bosscher <steven@gcc.gnu.org>
91
92 * output.h (split_double): Move prototype to rtl.h.
93 (constructor_static_from_elts_p): Move prototype to tree.c.
94 * rtl.h (split_double): Moved here from output.h.
95 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
96 * final.c (split_double): Move from here ...
97 * rtlanal.c (split_double): ... to here.
98 * expr.c: Do not include output.h.
99
1fe976c3 1002012-06-17 Steven Bosscher <steven@gcc.gnu.org>
101
102 * cfglayout.h: Remove.
103 * cfglayout.c: Remove.
104 * function.h (struct function): Remove x_last_location field.
105 * function.c: Do not include cfglayout.h.
106 (expand_function_start): Do not call no-op force_next_line_note.
107 (expand_function_end): Likewise.
108 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
109 (unlink_insn_chain): Moved here from cfglayout.c.
110 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
111 into_cfg_layout_mode, outof_cfg_layout_mode,
112 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
113 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
114 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
115 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
116 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
117 cfg_layout_finalize): Likewise.
118 (rtl_can_remove_branch_p): Likewise.
119 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
120 (duplicate_insn_chain): Likewise.
121 (force_next_line_note): Remove prototype.
122 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
123 (last_location): Remove #define to emit.x_last_location.
124 (force_next_line_note): Remove no-op function.
125 (init_emit): Don't set x_last_location.
126 (block_locators_locs, block_locators_blocks, locations_locators_locs,
127 locations_locators_vals, prologue_locator, epilogue_locator,
128 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
129 Move POD to here from cfglayout.c.
130 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
131 set_curr_insn_source_location, get_curr_insn_source_location,
132 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
133 locator_scope, insn_scope, locator_location, locator_line, insn_line,
134 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
135 * cfghooks.h: Remove double-include protection.
136 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
137 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
138 * final.c: Do not include cfglayout.h.
139 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
140 (reemit_insn_block_notes): Likewise. Make static.
141 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
142 operation_could_trap_p, tree_could_throw_p): Move from here...
143 * tree.h: ... to here.
144 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
145 * profile.c: Do not include cfghooks.h.
146 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
147 * modulo-sched.c: Likewise.
148 * loop-unswitch.c: Do not include cfglayout.h.
149 * sched-ebb.c: Likewise.
150 * tracer.c: Likewise.
151 * ddg.c: Likewise.
152 * tree-vect-loop-manip.c: Likewise.
153 * loop-init.c: Likewise.
154 * dwarf2out.c: Likewise.
155 * hw-doloop.c: Likewise.
156 * loop-unroll.c: Likewise.
157 * cfgcleanup.c: Likewise.
158 * bb-reorder.c: Likewise.
159 * sched-rgn.c: Likewise.
160 * tree-cfg.c: Likewise.
161 * config/alpha/alpha.c: Likewise.
162 * config/spu/spu.c: Likewise.
163 * config/sparc/sparc.c: Likewise.
164 * config/sh/sh.c: Likewise.
165 * config/c6x/c6x.c: Likewise.
166 * config/ia64/ia64.c: Likewise.
167 * config/rs6000/rs6000.c: Likewise.
168 * config/score/score.c: Likewise.
169 * config/mips/mips.c: Likewise.
170 * config/bfin/bfin.c: Likewise.
171 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
172 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
173 * config/spu/t-spu-elf (spu.o: $): Likewise.
174 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
175
aedb7bf8 1762012-06-17 Steven Bosscher <steven@gcc.gnu.org>
177
178 * cfgloop.h: Do not include rtl.h.
179 (enum iv_extend_code): New.
180 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
181 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
182 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
183 an IV_EXTEND_CODE to an RTX_CODE.
184 (dump_iv_info): Update for rtx_iv field type change.
185 (iv_constant): Likewise.
186 (iv_subreg): Likewise.
187 (iv_extend): Likewise.
188 (iv_neg): Likewise.
189 (iv_add): Likewise.
190 (iv_mult): Likewise.
191 (iv_shift): Likewise.
192 (get_biv_step_1): Likewise.
193 (get_biv_step): Likewise.
194 (iv_analyze_biv): Likewise.
195 (get_iv_value): Likewise.
196 (shorten_into_mode): Likewise.
197 (canonicalize_iv_subregs): Likewise.
198 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
199 of MAY_HAVE_DEBUG_INSNS.
200 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
201 * tree-ssa-loop-prefetch.c: Likewise.
202
f80de6c2 2032012-06-17 Steven Bosscher <steven@gcc.gnu.org>
204
205 * expmed.c (ceil_log2): Move from here...
206 * hwint.c: ... to here for older GCCs...
207 * hwint.h: ... and here for newer GCCs.
208 * rtl.h (ceil_log2): Remove prototype.
209
210 * tree-phinodes.c: Do not include rtl.h.
211 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
212
6df83406 2132012-06-17 Steven Bosscher <steven@gcc.gnu.org>
214
215 * config/cris/cris.h (TARGET_ELF): Remove.
216 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
217 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
218 (LOCAL_LABEL_PREFIX): Likewise.
219 * config/cris/cris.c (cris_target_asm_named_section): Remove.
220 (cris_option_override): Simpify using TARGET_ELF==1.
221 (cris_file_start): Likewise.
222 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
223
30f58bc8 2242012-06-17 Uros Bizjak <ubizjak@gmail.com>
225
226 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
227
39e8019f 2282012-06-16 Eric Botcazou <ebotcazou@adacore.com>
229
230 PR middle-end/53590
231 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
232
30f58bc8 2332012-06-15 Easwaran Raman <eraman@google.com>
ff447f48 234
235 * passes.c (init_optimization_passes): Remove pass_call_cdce
236 from its current position and insert after pass_dce.
237
6dc33d02 2382012-06-15 Walter Lee <walt@tilera.com>
239
240 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
241
187cc7c7 2422012-06-15 Richard Earnshaw <rearnsha@arm.com>
243
244 * arm.c (note_invalid_constants): Don't return a result.
245 (arm_memory_load_p): Delete function.
246 (arm_const_double_rtx): Delete iterator variable i;
247 (fp_immediate_constant): Likewise.
248 (fp_const_from_val): Likewise.
249
250 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
251
bf0cb017 2522012-06-15 Marc Glisse <marc.glisse@inria.fr>
253
254 PR c++/51033
255 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
256 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
257
d0acfa59 2582012-06-15 Georg-Johann Lay <avr@gjlay.de>
259
260 * config/avr/avr.c (avr_default_expand_builtin): New function.
261 (avr_expand_builtin): Use it.
262 (avr_expand_unop_builtin): Remove.
263 (avr_expand_binop_builtin): Remove.
264 (avr_expand_triop_builtin): Remove.
265
fc3c948c 2662012-06-15 Michael Matz <matz@suse.de>
267
268 PR middle-end/38474
269 * cfgexpand.c (add_alias_set_conflicts): Remove.
270 (expand_used_vars): Don't call it.
271 (aggregate_contains_union_type): Remove.
272 * function.c (n_temp_slots_in_use): New static data.
273 (make_slot_available, assign_stack_temp_for_type): Update it.
274 (init_temp_slots): Zero it.
275 (remove_unused_temp_slot_addresses): Use it for quicker removal.
276 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
277
930802aa 2782012-06-15 Michael Matz <matz@suse.de>
279
280 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
281 argument, don't emit assign statement if value is directly usable.
282 (gimplify_expr): Adjust.
283
8f1c7d19 2842012-06-15 Michael Matz <matz@suse.de>
285
286 * gimplify.c (gimplify_modify_expr): Fold generated statements.
287 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
288
bc8c1f83 2892012-06-15 Richard Guenther <rguenther@suse.de>
290
291 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
292 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
293 we assert for in set_value_range to VR_VARYING.
294
d86c91f6 2952012-06-15 Richard Earnshaw <rearnsha@arm.com>
296
297 * arm.md (addsf3, adddf3): Use s_register_operand.
298 (subsf3, subdf3): Likewise.
299 (mulsf3, muldf3): Likewise.
300 (difsf3, divdf3): Likewise.
301 (movsfcc, movdfcc): Likewise.
302 * predicates.md (f_register_operand): Delete.
303 (arm_float_rhs_operand): Delete.
304 (arm_float_add_operand): Delete.
305 (arm_float_compare_operand): Use s_register_operand when
306 there's no VFP.
307 (cirrus_register_operand): Delete.
308 (cirrus_fp_register): Delete.
309 (cirrus_shift_const): Delete.
310 (cmpdi_operand): Remove Maverick support.
311 * constraints.md (f, v, H): Delete constraints.
312 (G): Update documentation.
313 * arm.c (fp_consts_inited): Convert to bool.
314 (strings_fp): Delete.
315 (values_fp): Delete.
316 (value_fp0): New variable.
317 (init_fp_table): Simplify logic.
318 (arm_const_double_rtx): Likewise.
319 (fp_immediate_constant): Likewise.
320 (fp_const_from_val): Likewise.
321 (neg_const_double_rtx_ok_for_fpa): Delete.
322 * doc/md.texi (ARM constraints): Update documentation.
323
38682b67 3242012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
325
326 PR tree-optimization/53636
327 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
328 stride when doing basic-block vectorization.
329
53d84863 3302012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
331
332 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
333 into VEC_PERM_EXPR.
334
127cb1cd 3352012-06-15 Jakub Jelinek <jakub@redhat.com>
336
eca8fccf 337 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
338 allocate and free bbs array for the SLP case.
339
127cb1cd 340 PR tree-optimization/51581
341 * expr.h (choose_multiplier): New prototype.
342 * expmed.c (choose_multiplier): No longer static.
343 Change multiplier_ptr from rtx * to UHWI *.
344 (expand_divmod): Adjust callers.
30f58bc8 345 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
127cb1cd 346 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
347 argument to new_stmt_vec_info. Attempt to optimize also divisions
348 by non-pow2 constants if integer vector division isn't supported.
349 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
350 don't look at pattern stmts and sequences.
351
bc0dfc8d 3522012-06-15 Eric Botcazou <ebotcazou@adacore.com>
353
354 PR middle-end/53590
355 * common.opt (-fdelete-dead-exceptions): New switch.
356 * doc/invoke.texi (Code Gen Options): Document it.
357 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
358 insn_could_throw_p predicate. Do not skip an insn that could throw
359 if dead exceptions can be deleted.
360 (insn_live_p): Likewise, do not return true in that case.
361 * dce.c (can_alter_cfg): New flag.
362 (deletable_insn_p): Do not return false for an insn that can throw if
363 the CFG can be altered and dead exceptions can be deleted.
364 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
365 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
366 predicate. Do not preserve an insn that could throw if dead exceptions
367 can be deleted.
368 * function.h (struct function): Add can_delete_dead_exceptions flag.
369 * function.c (allocate_struct_function): Set it.
370 * lto-streamer-in.c (input_struct_function_base): Stream it.
371 * lto-streamer-out.c (input_struct_function_base): Likewise.
372 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
373 statement that could throw as necessary if dead exceptions can be
374 deleted.
375
9abfe9e2 3762012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
377
378 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
379
e5952d20 3802012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
381
382 PR target/53568
383 * config/sh/sh.md: Add peephole for swapbsi2.
384 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
385
60c519ac 3862012-06-14 Uros Bizjak <ubizjak@gmail.com>
387
e3b79a3d 388 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
97c56fb6 389 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
60c519ac 390
4fb62579 3912012-06-14 Jakub Jelinek <jakub@redhat.com>
392
393 PR target/53639
394 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
395
b805622c 3962012-06-14 Richard Earnshaw <rearnsha@arm.com>
397
398 * arm.c (arm_cirrus_insn_p): Delete.
399 (cirrus_reorg): Delete.
400 (arm_reorg): Don't call cirrus_reorg.
401 (arm_final_prescan_insn_p): Don't check for cirrus insns.
402 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
403 (adddi3, subdi3): Remove Maverick support.
404 (arm_adddi3): Likewise.
405 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
406 (addsf3, adddf3): Likewise.
407 (subsf3, subdf3): Likewise.
408 (mulsf3, muldf3): Likewise.
409 (ashldi3, ashrdi3, lshrdi3): Likewise.
410 (floatsisf2, floatsidf2): Likewise.
411 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
412 (arm_movdi, thumb1_movdi_insn): Likewise.
413 (arm_cmpdi_insn): Likewise.
414 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
415 (cirrus.md): Don't include.
416 * cirrus.md: Delete file.
417 * t-arm (MD_INCLUDES): Remove cirrus.md.
418
37bd48b8 4192012-06-14 Eric Botcazou <ebotcazou@adacore.com>
420
421 * dwarf2out.c (function_possibly_abstracted_p): New static function.
422 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
423 cgraph_function_possibly_inlined_p.
424 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
425 (process_scope_var): Do not emit concrete instances of abstracted
426 nested functions from here.
427 (gen_decl_die): Emit the abstract instance if the function is possibly
428 abstracted and not only possibly inlined.
429 (dwarf2out_finish): Find the first non-abstract parent instance and
430 attach concrete instances on the limbo list to it.
431
994606f8 4322012-06-14 Richard Earnshaw <rearnsha@arm.com>
433
434 * arm.md (divsf3, divdf3): Remove FPA support.
435 (negsf2, negdf2): Likewise.
436 (sqrtsf2, sqrtdf2): Likewise.
437 (movdfcc): Likewise.
438 (modsf3, moddf3, movxf): Delete.
439 (push_fp_multi): Delete.
440 (fpa.md): Don't include it.
441 * fpa.md: Delete file.
442 * t-arm (MD_INCLUDES): Remove fpa.md.
443
f4ac3f3e 4442012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
445
446 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
447 (cost_for_stmt): Remove decl.
448 (vect_get_single_scalar_iteration_cost): Correct typo in name.
449 * tree-vect-loop.c (vect_get_cost): Remove.
450 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
451 vect_get_stmt_cost rather than vect_get_cost.
452 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
453 vect_get_cost.
454 (vect_estimate_min_profitable_iters): Correct typo in call to
455 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
456 than vect_get_cost.
457 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
458 vect_get_cost.
459 (vect_model_induction_cost): Likewise.
460 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
461 typo in call to vect_get_single_scalar_iteration_cost.
462 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
463 (cost_for_stmt): Remove unnecessary function.
464 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
465
d5bd3ab2 4662012-06-14 Richard Earnshaw <rearnsha@arm.com>
467
468 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
fc3c948c 469 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
d5bd3ab2 470 * arm-tables.opt: Regenerated.
fc3c948c 471 * doc/invoke.texi: Remove references to deleted options.
d5bd3ab2 472
320bbcd2 4732012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
474
60c519ac 475 * config/h8300/genmova.sh: Modified to add offset bits of
320bbcd2 476 mova/Sz assembly instruction for memory access.
477 * config/h8300/h8300.c: Likewise.
478 * config/h8300/mova.md: Likewise.
479
901e08a3 4802012-06-12 Christian Bruel <christian.bruel@st.com>
481
482 PR target/53621
483 * config/sh/sh.c (sh_option_override): Don't force
484 flag_omit_frame_pointer and maccumulate_outgoing_args.
485 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
486
748eb1f9 4872012-06-14 Richard Guenther <rguenther@suse.de>
488
489 * tree-vrp.c (VR_INITIALIZER): New define.
490 (ranges_from_anti_range): New function.
491 (extract_range_from_binary_expr_1): Decompose operations on
492 VR_ANTI_RANGEs to operations on VR_RANGE.
493 (extract_range_from_unary_expr_1): Likewise.
494 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
495 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
496 extract_range_from_cond_expr, adjust_range_with_scev,
497 vrp_visit_assignment_or_call, vrp_visit_phi_node,
498 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
499
1fa4dd5c 5002012-06-13 Richard Henderson <rth@redhat.com>
501
502 * hwint.h (HOST_WIDEST_INT_C): New.
503 (HOST_WIDE_INT_C): New.
504 (HOST_WIDE_INT_1): Use it.
505 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
506
c573c1b5 5072012-06-13 Alexandre Oliva <aoliva@redhat.com>
508
509 PR debug/49888
510 * var-tracking.c: Include alias.h.
511 (overlapping_mems): New struct.
512 (drop_overlapping_mem_locs): New.
513 (clobber_overlapping_mems): New.
514 (var_mem_delete_and_set, var_mem_delete): Call it.
515 (val_bind): Likewise, but only if modified.
516 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
517 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
518
df226854 5192012-06-13 Alexandre Oliva <aoliva@redhat.com>
520
521 PR debug/47624
522 * var-tracking.c (loc_exp_dep_pool): New.
523 (vt_emit_notes): Create and release the pool.
524 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
525 (emit_notes_in_bb): Likewise.
526 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
527 (notify_dependents_of_changed_value): Likewise.
528 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
529 variables don't have a VAR_LOC_DEP_LST.
530 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
531 VALUEs or MEMs of VALUEs.
532
5ea3fd4b 5332012-06-13 Alexandre Oliva <aoliva@redhat.com>
534
535 PR debug/52983
536 PR debug/48866
537 * dce.c (word_dce_process_block): Insert debug temps only if the
538 insn is not marked.
539 (dce_process_block): Likewise, and if debug.used is not empty,
540 and only after iterating over all DEFs that might mark the insn.
541
4015e18c 5422012-06-13 Alexandre Oliva <aoliva@redhat.com>
543
544 * common.opt (ftree-coalesce-inlined-vars): New.
545 (ftree-coalesce-vars): New.
546 * doc/invoke.texi: Document them.
547 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
548 Implement them.
549
f5d566ff 5502012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
551
552 * read-rtl.c (mapping): Remove index field. Add current_value field.
553 Define heap vectors.
554 (iterator_group): Fix long line. Remove num_builtins field and
555 uses_iterator fields. Make apply_iterator take a void * parameter.
556 (iterator_use, atttribute_use): New structures.
557 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
558 (current_iterators, iterator_uses, attribute_uses): New variables.
559 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
560 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
561 (map_attr_string, apply_iterator_to_string): Remove iterator
562 and value parameters. Look through all current iterator values
563 for a matching attribute.
564 (mode_attr_index, apply_mode_maps): Delete.
565 (apply_iterator_to_rtx): Replace with...
566 (copy_rtx_for_iterators): ...this new function.
567 (uses_iterator_p, apply_iterator_traverse): Delete.
568 (apply_attribute_uses, add_current_iterators, apply_iterators): New
569 functions.
570 (add_mapping): Remove index field. Set current_value field.
571 (initialize_iterators): Don't set num_builtins and uses_iterator_p
572 fields.
573 (find_iterator): Delete.
574 (record_iterator_use, record_attribute_use): New functions.
575 (record_potential_iterator_use): New function.
576 (check_code_iterator): Remove handling of bellwether codes.
577 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
578 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
579 parameter. Use the first code iterator value instead of the
60c519ac 580 bellwether_codes array. Use record_potential_iterator_use for modes.
f5d566ff 581
81170d79 5822012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
583
584 PR target/53568
585 * config/sh/sh.md (bswapsi2): New expander.
586 (swapbsi2): New insn.
587
df8c2b2d 5882012-06-13 H.J. Lu <hongjiu.lu@intel.com>
589
590 PR target/53647
591 * config/i386/i386.c (ix86_tune_cost): New variable.
592 (ix86_option_override_internal): Set ix86_tune_cost. Use
593 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
594 l1_cache_size and l2_cache_size.
595
72940ce4 5962012-06-13 Richard Guenther <rguenther@suse.de>
597
598 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
599 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
600 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
601 VR_ANTI_RANGE with VR_ANTI_RANGE.
602
295f5c5c 6032012-06-13 Richard Earnshaw <rearnsha@arm.com>
604
605 * config.gcc (unsupported): Move obsoleted FPA-based configurations
606 here from ...
607 (obsolete): ... here.
608 (arm*-*-freebsd*): Remove.
609 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
610 (arm*-*-uclinux*): Likewise.
611 (arm*-*-ecos-elf): Remove.
612 (arm*-*-rtems*): Remove.
613 (arm*-*-elf): Remove.
614 (arm*-wince-pe*): Remove.
615 (arm, --with-fpu): Remove support for fpa and Maverick variants.
616 * arm/ecos-elf.h: Delete.
617 * arm/t-strongarm-elf: Delete.
618 * arm/rtems-elf.h: Delete.
619 * arm/wince-pe.h: Delete.
620 * arm/pe.c: Delete.
621 * arm/pe.h: Delete.
622 * arm/t-wince-pe: Delete.
623
6f0ddab1 6242012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
625
626 PR tree-optimization/53647
627 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
628 targets with no defined cache line size.
629
d13adc77 6302012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
631
632 * targhooks.c (default_builtin_vectorized_conversion): Handle
633 vec_construct, using vectype to base cost on subparts.
634 * target.h (enum vect_cost_for_stmt): Add vec_construct.
635 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
636 instead of scalar_to-vec.
637 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
638 vec_construct in same way as default for now.
639 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
640 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
641 Handle vec_construct, including special case for 32-bit loads.
642
6b8f7c28 6432012-06-13 Xinyu Qi <xyqi@marvell.com>
644
645 * config/arm/arm.c (FL_IWMMXT2): New define.
646 (arm_arch_iwmmxt2): New variable.
647 (arm_option_override): Enable use of iWMMXt with VFP.
648 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
649 Thumb mode. Set arm_arch_iwmmxt2.
650 (arm_expand_binop_builtin): Accept VOIDmode op.
651 (enum arm_builtins): Revise built-in fcode.
652 (IWMMXT2_BUILTIN): New define.
653 (IWMMXT2_BUILTIN2): Likewise.
654 (iwmmx2_mbuiltin): Likewise.
655 (builtin_description bdesc_2arg): Revise built in declaration.
656 (builtin_description bdesc_1arg): Likewise.
657 (arm_init_iwmmxt_builtins): Revise built in initialization.
658 (arm_expand_builtin): Revise built in expansion.
659 (arm_output_iwmmxt_shift_immediate): New function.
660 (arm_output_iwmmxt_tinsr): Likewise.
661 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
662 (arm_output_iwmmxt_tinsr): Likewise.
663 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
664 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
665 (rorv4hi3, rorv2si3, rordi3): Likewise.
666 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
667 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
668 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
669 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
670 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
671 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
672 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
673 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
674 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
675 (ror<mode>3, ror<mode>3_di): Likewise.
676 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
677 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
678 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
679 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
680 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
681 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
682 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
683 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
684 (All instruction patterns): Add wtype attribute.
685 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
686 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
687 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
688 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
689 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
690 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
691 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
692 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
693 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
694 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
695 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
696 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
697 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
698 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
699 (iwmmxt2.md): Include.
700 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
701 (TARGET_IWMMXT2): New define.
702 (TARGET_REALLY_IWMMXT2): Likewise.
703 (arm_arch_iwmmxt2): Declare.
704 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
705 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
706 Use C name-mangling for intrinsics.
707 (__v8qi): Redefine.
708 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
709 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
710 (_m_from_int): Likewise.
711 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
712 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
713 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
714 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
715 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
716 (_mm_tbcst_pi32): Likewise.
717 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
718 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
719 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
720 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
721 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
722 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
723 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
724 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
725 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
726 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
727 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
728 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
729 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
730 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
731 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
732 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
733 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
734 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
735 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
736 (_m_to_int): New define.
737 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
738 * config/arm/arm-arches.def (iwmmxt2): Likewise.
739 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
740 iwmmxt2.md.
741 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
742 (arch): Add "iwmmxt2".
743 (arch_enabled): Handle "iwmmxt2".
744 (wtype): New attribute.
745 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
746 (UNSPEC_WALIGNI): New unspec.
747 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
748 * config/arm/iterators.md (VMMX2): New mode_iterator.
749 * config/arm/marvell-f-iwmmxt.md: New file.
750 * config/arm/iwmmxt2.md: New file.
751
4269c49c 7522012-06-12 Jakub Jelinek <jakub@redhat.com>
753
754 PR c/53532
755 PR c/51034
756 PR c/53196
757 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
758 if type isn't complete.
759
5a909fae 7602012-06-12 Uros Bizjak <ubizjak@gmail.com>
761
762 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
763
84dabd71 7642012-06-12 Richard Henderson <rth@redhat.com>
765
766 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
767 iterator instead of INT.
5a909fae 768
239e9670 7692012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
770
771 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
772 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
773 declaration.
774 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
775 (tree_ssa_phiopt): Call gate_hoist_loads.
776 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
777 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
778 hoist_adjacent_loads.
779 (local_mem_dependence): New function.
780 (hoist_adjacent_loads): Likewise.
781 (gate_hoist_loads): Likewise.
782 * common.opt (fhoist-adjacent-loads): New switch.
783 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
784
658f1736 7852012-06-12 Michael Matz <matz@suse.de>
786
787 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
788 (nonoverlapping_memrefs_p): Don't call it here ...
789 (true_dependence_1): ... but here.
790
cbc80ce5 7912012-06-12 Richard Guenther <rguenther@suse.de>
792
793 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
794 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
795 and MEM_SIZE only refines it. Reflect that and be less conservative
796 if either of the latter is not known.
797
92f67f6e 7982012-06-12 Jakub Jelinek <jakub@redhat.com>
799
800 PR rtl-optimization/53589
801 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
802 discovery even when e->dest != target. If any LABEL_REF points
803 to e->dest label, redirect it to target's label.
804
c8ad18ed 8052012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
806
807 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
808 condition for generating REG_FRAME_RELATED_EXPR note.
809 (pop): Add code for generating REG_CFA_RESTORE,
810 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
811 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
812 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
813
3ea24468 8142012-06-11 Richard Henderson <rth@redhat.com>
815
ac0eec87 816 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
817 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
818
3ea24468 819 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
820
7bc65ea7 8212012-06-12 Hans-Peter Nilsson <hp@axis.com>
822
823 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
824 Mention that this hook needs to be defined for native TLS.
825 * doc/tm.texi: Regenerate.
826
8c20007a 8272012-06-11 Mike Stump <mikestump@comcast.net>
828
829 * emit-rtl.c (init_emit_once): Iterate through the
830 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
831 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
832 all the MIN_MODE_PARTIAL_INT modes anymore.
833
cf9b5bbc 8342012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
835
836 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
837
117f8975 8382012-06-11 Roland McGrath <mcgrathr@google.com>
839
840 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
841 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
842 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
843 operand.
844
658a6fb7 8452012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
846
847 PR target/53511
848 * config/sh/sh.md (fmasf4): New expander.
849 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
850 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
851 * config/sh/sh.opt (mfused-madd): Remove.
852 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
853 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
854 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
855 as extra options.
856 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
857 descriptions.
858
dfed30bc 8592012-06-11 Richard Henderson <rth@redhat.com>
860
861 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
862
8f6a4a62 8632012-06-11 Richard Guenther <rguenther@suse.de>
864
865 PR middle-end/53470
866 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
867 replace it with the first non-BLOCK context.
868
557f718e 8692012-06-11 Richard Guenther <rguenther@suse.de>
870
871 * alias.c (aliases_everything_p): Remove.
872 (DIFFERENT_ALIAS_SETS_P): Likewise.
873 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
874 Do not use aliases_everything_p or special-case ANDs. Do not
875 special-case BLKmode moves.
876 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
5a909fae 877 - for SCATCH only.
557f718e 878
32354eaf 8792012-06-09 Hans-Peter Nilsson <hp@axis.com>
880
881 Fix CRIS build errors with --enable-build-with-cxx.
882 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
883 variable "and" to "andop".
884 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
885 temporary variable for memory model, passing C++-type-correct
886 parameter type to expand_mem_thread_fence.
887 ("atomic_compare_and_swap<mode>"): Ditto.
888
76cdbc6d 8892012-06-09 Richard Henderson <rth@redhat.com>
890
891 PR c++/53602
892 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
893 (pass_jump): Rename from pass_jump2.
894 (execute_jump2, pass_jump2): New.
895 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
896 perform cfg cleanup here. Move the test of PUSH_ROUNDING
897 and ACCUMULATE_OUTGOING_ARGS test...
898 (gate_handle_stack_adjustments): ... here.
899 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
900 Place new pass_jump2 after pass_stack_adjustments.
901 * tree-pass.h (pass_jump): Declare.
902
86018455 9032012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
904
905 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
906 count trucation.
907
f62cadce 9082012-06-08 Richard Henderson <rth@redhat.com>
909
ca8a2f4e 910 PR c++/53602
911 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
912 note to a clobber insn when no other insn is available.
f62cadce 913
6d8ed506 9142012-06-08 Georg-Johann Lay <avr@gjlay.de>
915
916 * config/avr/avr.c (avr_case_values_threshold): Return 7.
917
7bfdbc17 9182012-06-07 Andreas Schwab <schwab@linux-m68k.org>
919
920 * genhooks.c (main): Set progname.
921 (emit_documentation): Remove variable found_start, always bail out
922 when a place is missing.
ca8a2f4e 923 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
7bfdbc17 924
ab129075 9252012-06-07 Jakub Jelinek <jakub@redhat.com>
926
927 PR middle-end/53580
ca8a2f4e 928 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
929 call walk_gimple_seq_mod instead of walk_gimple_seq.
ab129075 930 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
931 scan_omp_for, scan_omp_sections, scan_omp_single,
932 execute_lower_omp): Adjust callers.
933 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
934 returns false, replace stmt with GIMPLE_NOP.
935 (check_omp_nesting_restrictions): Instead of issuing warnings,
936 issue errors and return false if any errors were reported.
937
b37a3600 9382012-06-06 Steven Bosscher <steven@gcc.gnu.org>
939
940 * doc/invoke.texi (fconserve-space): Remove documentation.
941
98da658b 9422012-06-06 Edmar Wienskoski <edmar@freescale.com>
943
944 * config/rs6000/rs6000-tables.opt: Regenerated.
945
f689d33d 9462012-06-06 Richard Guenther <rguenther@suse.de>
947
948 PR tree-optimization/53081
949 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
950 (adjacent_dr_p): ... this and make it work for reads, too.
951 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
952 (struct partition_s): Change main_stmt to main_dr, add
953 secondary_dr member.
954 (build_size_arg_loc): Change to date data-reference and not
955 gimplify here.
956 (build_addr_arg_loc): New function split out from ...
957 (generate_memset_builtin): ... here. Use it and simplify.
958 (generate_memcpy_builtin): New function.
959 (generate_code_for_partition): Adjust.
ca8a2f4e 960 (classify_partition): Streamline pattern detection. Detect memcpy.
f689d33d 961 (ldist_gen): Adjust.
962 (tree_loop_distribution): Adjust seed statements for memcpy
963 recognition.
964
966d4175 9652012-06-06 Matt Turner <mattst88@gmail.com>
966
967 * config/arm/mmintrin.h (_mm_empty): New.
ca8a2f4e 968 (_m_empty): New.
966d4175 969
d86dbf92 9702012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
971
972 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
973 * common.opt (fsched-pressure-algorithm=): Remove.
974 * flag-types.h (sched_pressure_algorithm): Move to...
975 * sched-int.h (sched_pressure_algorithm): ...here.
976 * params.def (sched-pressure-algorithm): New param.
977 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
978 * common/config/s390/s390-common.c (s390_option_optimization_table):
979 Remove OPT_fsched_pressure_algorithm_ entry.
980 * config/s390/s390.c (s390_option_override): Set a default value for
981 PARAM_SCHED_PRESSURE_ALGORITHM.
982
aca8cc63 9832012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
984
985 PR target/53487
986 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
987 doing an unsigned compare, make sure the second argument is not a
988 negative constant.
989 (rs6000_emit_cmove): Don't allow floating point comparisons when
990 generating ISEL moves.
991
e7ae865c 9922012-06-05 Edmar Wienskoski <edmar@freescale.com>
b770074c 993
994 * config/rs6000/e5500.md: New file.
995 * config/rs6000/e6500.md: New file.
996 * config/rs6000/rs6000.c (processor_costs): Add new costs for
997 e5500 and e6500.
998 (rs6000_option_override_internal): Altivec and Spe options not
999 allowed with e5500. Spe options not allowed with e6500. Increase
1000 move inline limit for e5500 and e6500. Disable string instructions
1001 for e5500 and e6500. Enable branch targets alignment for e5500 and
1002 e6500. Initialize rs6000_cost for e5500 and e6500.
1003 (rs6000_adjust_cost): Add extra scheduling cycles between compare
1004 and brnach for e5500 and e6500.
1005 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
1006 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
1007 e6500.
1008 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
1009 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
1010 ppce6500.
1011 Include e5500.md and e6500.md.
1012 * config/rs6000/rs6000-opt.h (processor_type): Add
1013 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
1014 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
1015 (powerpc*-*-*): Add new cores e5500, e6500.
1016 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
1017
156b8feb 10182012-06-05 Richard Guenther <rguenther@suse.de>
1019
ca8a2f4e 1020 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
156b8feb 1021
d26d40c8 10222012-06-05 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 PR target/53575
1025 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
1026 is used for x86_64-*-*.
1027
ec84182d 10282012-06-05 Richard Guenther <rguenther@suse.de>
1029
1030 PR tree-optimization/30442
1031 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
1032 vectorization stop analysis at the first stmt we cannot compute
1033 a data-reference for instead of giving up completely.
1034
e5edce84 10352012-06-05 Richard Guenther <rguenther@suse.de>
1036
ca8a2f4e 1037 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
e5edce84 1038 (partition_alloc): Initialize it.
1039 (partition_has_writes): New function.
1040 (rdg_flag_uses): Adjust.
1041 (rdg_flag_vertex): Likewise.
1042 (rdg_flag_vertex_and_dependent): Likewise.
1043 (rdg_flag_loop_exits): Likewise.
1044 (build_rdg_partition_for_component): Likewise.
1045 (rdg_build_partitions): Likewise.
1046
0644fcba 10472012-06-05 Richard Guenther <rguenther@suse.de>
1048
1049 PR tree-optimization/53081
1050 * tree-loop-distribution.c (generate_memset_builtin): Handle all
1051 kinds of byte-sized stores.
1052 (classify_partition): Likewise.
1053 (tree_loop_distribution): Adjust seed statements used for
1054 !flag_tree_loop_distribution.
1055
6862f949 10562012-06-05 Alan Modra <amodra@gmail.com>
1057
1058 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
1059 (rs6000_emit_prologue): Ensure register used for inline saves
1060 of vector regs is not the static chain register. Revise comment.
1061
2b1e078e 10622012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
1063
1064 * doc/md.texi (Standard Pattern Names For Generation): Document
1065 sincos pattern.
1066
874bb5cb 10672012-06-04 H.J. Lu <hongjiu.lu@intel.com>
1068
1069 PR bootstrap/53555
1070 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
1071
bf3a97cf 10722012-06-04 Jason Merrill <jason@redhat.com>
1073
1074 * dwarf2out.c (is_unit_die): New.
1075 (copy_declaration_context, copy_ancestor_tree): Use it.
1076 (copy_decls_walk): Likewise.
1077
2a99a57e 10782012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
1079
1080 PR c++/53524
1081 * doc/invoke.texi (Wenum-compare): Update documentation.
1082
0aa42a53 10832012-06-04 Dodji Seketeli <dodji@redhat.com>
1084
1085 PR preprocessor/53463
1086 * parser.c (cp_parser_assignment_expression): Use the location
1087 for the '=' as the default location for the expression.
1088
670e461f 10892012-06-04 Edmar Wienskoski <edmar@freescale.com>
1090
1091 PR target/53559
1092 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
1093 operands.
1094 (altivec_stvlxl): Ditto.
1095 (altivec_stvrx): Ditto.
1096 (altivec_stvrxl): Ditto.
1097
b48acad0 10982012-06-04 Vladimir Makarov <vmakarov@redhat.com>
1099
ca8a2f4e 1100 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
b48acad0 1101 (ira_uniform_class_p): New macro.
1102
1103 * ira.c (setup_uniform_class_p): New function.
1104 (setup_allocno_and_important_classes): Call the function.
1105 (print_unform_and_important_classes): New function.
1106 (print_classes): Rename to print_translated_classes.
1107 (ira_debug_allocno_classes): Add call of
1108 print_unform_and_important_classes.
1109
1110 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
1111 classes instead of pressure classes.
1112
b953589d 11132012-06-04 Aldy Hernandez <aldyh@redhat.com>
1114
1115 PR middle-end/47530
1116 * trans-mem.c (expand_block_edges): Do not skip the first
1117 statement when resetting the BB.
1118
6198d968 11192012-06-04 Richard Guenther <rguenther@suse.de>
1120
1121 * tree-data-ref.c (stores_from_loop): Remove.
1122 (stmt_with_adjacent_zero_store_dr_p): Likewise.
1123 (stores_zero_from_loop): Likewise.
1124 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
1125 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
1126 (adjacent_store_dr_p): New function.
1127 * tree-loop-distribution.c (generate_memset_builtin): Pass
1128 the RDG, use the already available data-reference.
1129 (generate_code_for_partition): Pass down RDG.
1130 (classify_partition): Inline parts of the former
1131 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
1132 (ldist_gen): Remember if there was any detected builtin and
1133 do less work if not and flag_tree_loop_distribution is not set.
1134 (tree_loop_distribution): Inline and fuse stores_from_loop
1135 and stores_zero_from_loop here.
1136
c909c89a 11372012-06-04 Richard Guenther <rguenther@suse.de>
1138
1139 PR middle-end/53471
1140 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
1141 create new assembler names.
1142
f83623cc 11432012-06-04 Richard Guenther <rguenther@suse.de>
1144
1145 * tree-data-ref.c (struct rdg_vertex_info): Remove.
1146 (rdg_vertex_for_stmt): Simplify using gimple_uid.
1147 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
1148 hashtable. Record stmt data-references.
1149 (hash_stmt_vertex_info): Remove.
1150 (eq_stmt_vertex_info): Likewise.
1151 (hash_stmt_vertex_del): Likewise.
1152 (build_empty_rdg): Simplify.
1153 (build_rdg): Adjust.
1154 (free_rdg): Likewise.
1155 (ref_base_address): Remove.
1156 (have_similar_memory_accesses): Likewise.
1157 * tree-data-ref.h (create_rdg_vertices): Remove.
1158 (struct rdg_vertex): Add datarefs member.
1159 (RDGV_DATAREFS): New define.
1160 (RDG_DATAREFS): Likewise.
1161 (have_similar_memory_accesses): Remove.
1162 (rdg_has_similar_memory_accesses): Likewise.
1163 * tree-loop-distribution.c (ref_base_address): Re-implement here.
1164 (similar_memory_accesses): Re-implement using existing data-references.
1165 (tree_loop_distribution): Initialize stmt uids for the stmt to
1166 RDG index mapping.
1167 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1168 access stmt vinfo for stmts in loop.
1169
bcab8a3c 11702012-06-04 Andreas Schwab <schwab@linux-m68k.org>
1171
1172 PR target/53461
1173 * config/m68k/m68k.md ("tablejump"): Fix check for
1174 CASE_VECTOR_PC_RELATIVE.
1175
dff12c10 11762012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1177
1178 * output.h (merge_weak, assemble_alias,
1179 initializer_constant_valid_p,
1180 initializer_constant_valid_for_bitfield_p): Move protos from here...
1181 * tree.h: ... to here.
1182 * cgraphclones.c: Do not include output.h.
1183 * gimplify.c: Likewise.
1184 * reload.c: Likewise.
1185 * recog.c: Likewise.
1186 * tree-ssa-loop-ivopts.c: Likewise.
1187 * tree-switch-conversion.c: Likewise.
1188 * c-parser.c: Likewise.
1189 * c-typeck.c: Likewise.
1190 * Makefile.in: Fix dependencies.
1191
6e5a5492 11922012-06-04 Georg-Johann Lay <avr@gjlay.de>
1193
1194 PR target/46261
1195 * config/avr/avr-stdint.h: New file.
1196 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
1197 newlib-stdint.h
1198
a50fd9b7 11992012-06-04 Jakub Jelinek <jakub@redhat.com>
1200
1201 PR tree-optimization/53550
1202 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
1203 is POINTER_TYPE_P, use sizetype as step type instead of type.
1204
54459dd6 12052012-06-04 Richard Guenther <rguenther@suse.de>
1206
1207 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
1208 (ref_base_address_1): Likewise.
1209 (remove_similar_memory_refs): Likewise.
1210 * tree-data-ref.h (remove_similar_memory_refs): Remove.
1211 * tree-loop-distribution.c (classify_partition): Do not classify
1212 as builtin if -ftree-loop-distribute-patterns is not enabled.
1213 (fuse_partitions_with_similar_memory_accesses): Inline ...
1214 (ldist_gen): ... here. Fuse all non-builtin partitions if
1215 -ftree-loop-distribution is not enabled. Properly return
ca8a2f4e 1216 the number of created partitions. Do not update SSA form here but ...
54459dd6 1217 (tree_loop_distribution): ... once here for the whole function.
1218 Only walk innermost loops, constrain loops we consider here
1219 further. Do not call remove_similar_memory_refs.
1220 (distribute_loop): Do not check number of loop nodes here.
1221
05c9fb04 12222012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1223
1224 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
1225
4fa83f96 12262012-06-03 Martin Jambor <mjambor@suse.cz>
1227
1228 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
1229 (ipa_get_jf_known_type_base_type): Likewise.
1230 (ipa_get_jf_known_type_component_type): Likewise.
1231 (ipa_get_jf_constant): Likewise.
1232 (ipa_get_jf_pass_through_formal_id): Likewise.
1233 (ipa_get_jf_pass_through_operation): Likewise.
1234 (ipa_get_jf_ancestor_offset): Likewise.
1235 (ipa_get_jf_ancestor_type): Likewise.
1236 (ipa_get_jf_ancestor_formal_id): Likewise.
1237 (ipa_get_jf_member_ptr_pfn): Likewise.
1238 * ipa-prop.c (ipa_set_jf_known_type): New function.
1239 (ipa_set_jf_constant): Likewise.
1240 (ipa_set_jf_simple_pass_through): Likewise.
1241 (ipa_set_jf_arith_pass_through): Likewise.
1242 (ipa_set_ancestor_jf): Likewise.
1243 (fill_member_ptr_cst_jump_function): Moved up and renamed to
1244 ipa_set_jf_member_ptr_cst.
1245 (detect_type_change_1): Use the new jump function creation functions.
1246 (compute_complex_assign_jump_func): Likewise.
1247 (compute_complex_ancestor_jump_func): Likewise.
1248 (compute_known_type_jump_func): Likewise.
1249 (compute_scalar_jump_functions): Likewise.
1250 (compute_pass_through_member_ptrs): Likewise.
1251 (determine_cst_member_ptr): Likewise.
1252 (combine_known_type_and_ancestor_jfs): Likewise.
1253 (try_make_edge_direct_simple_call): Likewise.
1254 (try_make_edge_direct_virtual_call): Likewise.
1255 (update_indirect_edges_after_inlining): Likewise.
1256 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
1257 access functions. Incorporat NOP_EXPR and BINFO handling from its
1258 callers.
1259 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
1260 which was in its callers.
1261 (ipa_value_from_jfunc): Use jump function access functions. Some
1262 functionality moved to functions above.
1263 (propagate_vals_accross_ancestor): Likewise.
1264 (propagate_vals_accross_pass_through): Use jump function access
1265 functions.
1266 (propagate_accross_jump_function): Likewise.
1267 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
1268 access functions.
1269 (inline_merge_summary): Likewise.
1270
4f12c67a 12712012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1272
1273 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
1274 * config/pa/pa.c (pa_attr_length_millicode_call): Use
1275 MAX_PCREL17F_OFFSET instead of fixed offset.
1276 (pa_attr_length_call): Likewise.
1277 (pa_attr_length_indirect_call): Likewise.
1278
2b15a89a 12792012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
1280
1281 PR target/53512
6c1286fc 1282 * config/sh/sh.opt (mfsca, mfsrra): New options.
1283 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
1284 condition.
2b15a89a 1285 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
1286 (sinssf2, cossf2): Fold expanders to ...
1287 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
1288 TARGET_FSCA condition.
6c1286fc 1289 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
1290 TARGET_FSCA.
2b15a89a 1291 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
1292 -mno-fsca, -mfsrra, -mno-fsrra.
1293
c90c9973 12942012-06-03 Matt Turner <mattst88@gmail.com>
1295
1296 * config/mips/4600.md (r4700_imul_si): New.
1297 (r4700_imul_di): New.
1298 (r4700_fmul_single): New.
1299 (r4700_fmul_double): New.
1300 * config/mips/mips-cpus.def: Add r4700.
1301 * config/mips/mips.c: Likewise.
1302 * config/mips/mips.md: Likewise.
1303 * config/mips/mips-tables.opt: Regenerate.
1304
1ecd9aaf 13052012-06-02 Steven Bosscher <steven@gcc.gnu.org>
1306
1307 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
1308 new function sparc_initial_elimination_offset.
1309 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
1310 function.
1311 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
1312 Prototype it.
1313
2b15a89a 13142012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
24cd46a7 1315
ca8a2f4e 1316 * expmed.c (expand_mult, choose_multiplier): Change
1317 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
24cd46a7 1318 * expr.c (convert_modes): Likewise.
1319 * explow.c (plus_constant): Likewise.
1320 * fixed-value.c (fixed_saturate1, fixed_saturate2)
1321 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
1322 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
1323 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
1324 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
1325 (do_fixed_shift, fixed_convert, fixed_convert)
1326 (fixed_convert_from_int, fixed_convert_from_int)
1327 (fixed_convert_from_real): Likewise.
1328 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
1329 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
1330 * varasm.c (output_constructor_bitfield): Likewise.
1331 * tree-vrp.c (register_edge_assert_for_2): Likewise.
1332 * double-int.c (rshift_double, lshift_double): Likewise.
6c1286fc 1333 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
1334 Likewise.
24cd46a7 1335 * simplify-rtx.c (mode_signbit_p)
1336 (simplify_const_unary_operation, simplify_binary_operation_1)
1337 (simplify_immed_subreg): Likewise.
1338 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
1339 * tree-vect-generic.c (build_replicated_const): Likewise.
1340 * dbxout.c (stabstr_O): Likewise.
1341 * emit-rtl.c (immed_double_int_const, immed_double_const)
1342 (gen_lowpart_common, init_emit_once): Likewise.
1343 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
1344 (widest_int_cst_value, upper_bound_in_type): Likewise.
1345 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
1346 (fixup_unsigned_type): Likewise.
1347 * real.c (real_to_integer2, real_from_integer): Likewise.
1348 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
1349 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
1350
67227558 13512012-06-01 Eric Botcazou <ebotcazou@adacore.com>
1352
1353 PR middle-end/53501
1354 * fold-const.c (fold_binary_loc): Refine previous change.
1355
988d0588 13562012-06-01 Olivier Hainque <hainque@adacore.com>
1357
1358 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
1359 the "do {" part of the do-while(0) loop.
1360
7d5d66f0 13612012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1362
1363 * config/i386/i386.c (x86_sched_reorder): New function.
1364 Added new function x86_sched_reorder.
1365
35ec0372 13662012-06-01 Richard Guenther <rguenther@suse.de>
1367
1368 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1369 Handle PHIs.
1370 (classify_partition): Likewise.
1371
d32bc1d7 13722012-06-01 Richard Guenther <rguenther@suse.de>
1373
1374 * tree-loop-distribution.c (enum partition_kind): New enum.
1375 (struct partition_s): Add kind and main_stmt members.
1376 (partition_alloc): Initialize kind to PKIND_NORMAL.
1377 (partition_builtin_p): New function.
1378 (copy_loop_before): Remove failure path and assert instead.
1379 (generate_loops_for_partition): Likewise.
1380 (generate_memset_zero): Fold into ...
1381 (generate_memset_builtin): ... this.
1382 (classify_partition): New function with code from
1383 can_generate_builtin and generate_builtin.
1384 (generate_builtin): Remove.
1385 (can_generate_builtin): Likewise.
1386 (fuse_partitions_with_similar_memory_accesses): Call
1387 partition_builtin_p instead of can_generate_builtin.
1388 (rdg_build_partitions): Do not call
1389 fuse_partitions_with_similar_memory_accesses here...
1390 (ldist_gen): ... but here after classifying all partitions.
1391 Remove failure path of generate_code_for_partition.
1392 (generate_code_for_partition): Generate code according
1393 to partition classification.
1394
01fdca2b 13952012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
ca8a2f4e 1396 Jonathan Wakely <jwakely.gcc@gmail.com>
01fdca2b 1397
1398 PR c++/50134
1399 * doc/invoke.texi (Warning Options): Explain purpose and differences
1400 between -Wmissing-prototypes and -Wmissing-declarations.
1401
556cfe53 14022012-06-01 Christian Bruel <christian.bruel@st.com>
1403
1404 * gcc.c (save_switch): Add user_p parameter.
1405 (read_specs): Likewise.
1406 (set_specs): Likewise.
1407 (validate_switches): Likewise.
1408 (validate_switches_from_spec): Likewise.
1409 (validate_all_switches): Pass on user_p parameter.
1410 (struct spec_list): Add user_p field.
1411 (struct switchstr): Add known field.
1412 (save_switch): Add known parameter.
1413 (INIT_STATIC_SPEC): Initialize user_p;
1414 (driver_unknown_option_callbac): call save_switch if
1415 OPT_SPECIAL_unknown.
1416 (driver_handle_option): Propagate OPT_specs.
1417 (do_spec_1): Set validated only if known.
1418 (check_live_switch): Likewise.
1419 (validate_switches): Set validated if known or user_spec.
1420
2ef7687b 14212012-06-01 Hans-Peter Nilsson <hp@axis.com>
1422
1423 Add CRIS atomic patterns for 1, 2, and 4 bytes.
1424 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
1425 * config/cris/cris-protos.h: Declare it.
5a909fae 1426 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
2ef7687b 1427 (TARGET_DEFAULT): Add alignment by 32.
1428 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
1429 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
5a909fae 1430 TARGET_CPU_DEFAULT == 32.
2ef7687b 1431 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
1432 * config/cris/cris.md: Include sync.md. Avoid allocating specific
1433 numbers by replacing the define_constants for all UNSPECs with the
1434 equivalent define_c_enum construct.
1435 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
1436 * config/cris/sync.md: New file.
1437
3918c286 14382012-05-31 Matt Turner <mattst88@gmail.com>
1439
1440 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
1441 (r4600_imul_di): New.
1442 (r4600_idiv_si): Rename from r4600_idiv.
1443 (r4600_idiv_di): New.
1444
b5369b7d 14452012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1446
1447 * output.h (__gcc_host_wide_int__): Move to hwint.h.
1448 (decl_default_tls_model): Move to tree.h
1449 (dump_file): Move to system.h.
1450 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
1451 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
1452 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
1453 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
1454 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
1455 dbxout_stab_value_internal_label,
1456 dbxout_stab_value_internal_label_diff): Move from here ...
1457 * dbxout.h: ... to here.
1458 * system.h (dump_file): Moved here from output.h.
1459 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
1460 * tree.h (decl_default_tls_model): Moved here from output.h.
1461 * varasm.c (default_stabs_asm_out_destructor,
1462 default_stabs_asm_out_constructor): Move from here ...
1463 * dbxout.c: ... to here.
1464
1465 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
1466
1467 * collect2.h (dump_file): Rename to dump_ld_file.
1468 * collect2.c: Likewise.
1469 * tlink.c: Likewise.
1470
1471 * alias.c: Do not include output.h.
1472 * auto-inc-dec.c: Likewise.
1473 * bt-load.c: Likewise.
1474 * caller-save.c: Likewise.
1475 * cfg.c: Likewise.
1476 * cfgbuild.c: Likewise.
1477 * cfgcleanup.c: Likewise.
1478 * cfglayout.c: Likewise.
1479 * cfgloop.c: Likewise.
1480 * cfgloopanal.c: Likewise.
1481 * cfgloopmanip.c: Likewise.
1482 * cfgrtl.c: Likewise.
1483 * cgraph.c: Likewise.
1484 * cgraphclones.c: Likewise.
1485 * combine-stack-adj.c: Likewise.
1486 * combine.c: Likewise.
1487 * cprop.c: Likewise.
1488 * cse.c: Likewise.
1489 * cselib.c: Likewise.
1490 * dbgcnt.c: Likewise.
1491 * df-problems.c: Likewise.
1492 * df-scan.c: Likewise.
1493 * dojump.c: Likewise.
1494 * fwprop.c: Likewise.
1495 * gcse.c: Likewise.
1496 * graph.c: Likewise.
1497 * haifa-sched.c: Likewise.
1498 * hw-doloop.c: Likewise.
1499 * ipa-inline-transform.c: Likewise.
1500 * ipa-pure-const.c: Likewise.
1501 * ipa-reference.c: Likewise.
1502 * ipa-utils.c: Likewise.
1503 * ira-build.c: Likewise.
1504 * ira-emit.c: Likewise.
1505 * lcm.c: Likewise.
1506 * loop-doloop.c: Likewise.
1507 * loop-invariant.c: Likewise.
1508 * loop-iv.c: Likewise.
1509 * loop-unroll.c: Likewise.
1510 * loop-unswitch.c: Likewise.
1511 * lto-cgraph.c: Likewise.
1512 * lto-section-in.c: Likewise.
1513 * lto-streamer-in.c: Likewise.
1514 * mcf.c: Likewise.
1515 * mode-switching.c: Likewise.
1516 * postreload-gcse.c: Likewise.
1517 * postreload.c: Likewise.
1518 * predict.c: Likewise.
1519 * profile.c: Likewise.
1520 * ree.c: Likewise.
1521 * reg-stack.c: Likewise.
1522 * regcprop.c: Likewise.
1523 * regmove.c: Likewise.
1524 * regstat.c: Likewise.
1525 * reload1.c: Likewise.
1526 * sched-ebb.c: Likewise.
1527 * sel-sched-dump.c: Likewise.
1528 * simplify-rtx.c: Likewise.
1529 * stor-layout.c: Likewise.
1530 * store-motion.c: Likewise.
1531 * tracer.c: Likewise.
1532 * tree-affine.c: Likewise.
1533 * tree-cfg.c: Likewise.
1534 * tree-cfgcleanup.c: Likewise.
1535 * tree-dfa.c: Likewise.
1536 * tree-into-ssa.c: Likewise.
1537 * tree-nomudflap.c: Likewise.
1538 * tree-optimize.c: Likewise.
1539 * tree-pretty-print.c: Likewise.
1540 * tree-profile.c: Likewise.
1541 * tree-ssa-address.c: Likewise.
1542 * tree-ssa-ccp.c: Likewise.
1543 * tree-ssa-copy.c: Likewise.
1544 * tree-ssa-dom.c: Likewise.
1545 * tree-ssa-loop-ch.c: Likewise.
1546 * tree-ssa-loop-im.c: Likewise.
1547 * tree-ssa-loop-manip.c: Likewise.
1548 * tree-ssa-loop-niter.c: Likewise.
1549 * tree-ssa-loop-prefetch.c: Likewise.
1550 * tree-ssa-loop-unswitch.c: Likewise.
1551 * tree-ssa-loop.c: Likewise.
1552 * tree-ssa-propagate.c: Likewise.
1553 * tree-ssa-structalias.c: Likewise.
1554 * tree-ssa-tail-merge.c: Likewise.
1555 * tree-ssa-threadedge.c: Likewise.
1556 * tree-ssa-threadupdate.c: Likewise.
1557 * tree-ssa-uncprop.c: Likewise.
1558 * tree-ssa-uninit.c: Likewise.
1559 * tree-ssa.c: Likewise.
1560 * value-prof.c: Likewise.
1561 * var-tracking.c: Likewise.
1562 * web.c: Likewise.
1563
1564 * config/m32r/m32r.c: Include dbxout.h.
1565 * config/pa/pa.c: Likewise.
1566 * config/rs6000/rs6000.c: Likewise.
1567
1568 * Makefile.in: Fix dependencies.
1569 * config/rs6000/t-rs5000: Likewise.
1570
25c30572 15712012-05-31 Aldy Hernandez <aldyh@redhat.com>
1572
1573 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
1574 * gimple.h (block_in_transaction): Check for flag_tm.
1575
61025ec0 15762012-05-31 Aldy Hernandez <aldyh@redhat.com>
1577
1578 PR tree-optimization/52558
1579 * cfg.c (alloc_aux_for_edge): Fix comment.
1580 (alloc_aux_for_edge): Remove static.
1581 * basic-block.h (alloc_aux_for_edge): Protoize.
1582 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
1583 (execute_sm_if_changed_flag): New.
1584 (execute_sm_if_changed_flag_set): New.
1585 (execute_sm): Do not generate data races unless requested.
1586 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
1587 (tree_ssa_lim_finalize): Call free_aux_for_edges.
1588 * gimple.h (block_in_transaction): New.
1589 (gimple_in_transaction): Use block_in_transaction.
1590
f69bbc7f 15912012-05-31 Georg-Johann Lay <avr@gjlay.de>
1592
1593 PR target/51345
1594 * config/avr/avr.opt (-msp8): Document it.
1595 * doc/invoke.texi (AVR Options): Ditto. And document related
1596 built-in macros.
1597
a44c8c3b 15982012-05-31 Diego Novillo <dnovillo@google.com>
1599
ca8a2f4e 1600 * configure.ac (CXX_FOR_BUILD): Define and substitute.
1601 (BUILD_CXXFLAGS): Define and substitute.
1602 * Makefile.in (BUILD_CXXFLAGS): Define.
1603 (CXX_FOR_BUILD): Define.
1604 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
1605 (LINKER_FOR_BUILD): Likewise.
1606 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
1607 (BUILD_LINKERFLAGS): Likewise.
1608 * configure: Regenerate.
a44c8c3b 1609
0f246197 16102012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1611
1612 * Makefile.in: Fix many dependencies.
1613 * tree-profile.c: Don't include regs.h.
1614 * tree-vectorizer.c: Don't include cfglayout.h.
1615 * tree-vect-stmts.c: Likewise.
1616 * tree-vect-slp.c: Likewise.
1617 * tree-vect-loop.c: Likewise.
1618 * reg-stack.c: Likewise.
1619 * tree-ssa-loop-manip.c: Likewise.
1620 * toplev.c: Likewise.
1621 * varasm.c: Don't include cfglayout.h, basic-block.h,
1622 and tree-iterator.h.
1623 * tree-cfgcleanup.c: Don't include cfglayout.h.
1624 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
1625 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
1626 * cgraphclones.c: Don't include plugin.h.
1627
93110b99 16282012-05-31 Georg-Johann Lay <avr@gjlay.de>
1629
1630 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
1631 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
1632 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
ca8a2f4e 1633
543506e0 16342012-05-31 Richard Guenther <rguenther@suse.de>
1635
1636 * tree-loop-distribution.c (struct partition_s): New struct,
1637 typedef and vector type.
1638 (partition_alloc, partition_free): New functions.
1639 (generate_loops_for_partition, generate_builtin,
1640 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
1641 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
1642 build_rdg_partition_for_component, can_generate_builtin,
1643 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
1644 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
1645 number_of_rw_in_partition, partition_contains_all_rw,
1646 ldist_gen): Use partition_t instead of bitmap.
1647
7da94a4f 16482012-05-31 Georg-Johann Lay <avr@gjlay.de>
1649
ca8a2f4e 1650 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
7da94a4f 1651 * doc/avr-mmcu.texi: Regenerate.
ca8a2f4e 1652
bfcf35ff 16532012-05-31 Richard Guenther <rguenther@suse.de>
1654
1655 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1656 Use FOR_EACH_SSA_DEF_OPERAND.
1657 (generate_builtin): Adjust.
1658 (stmt_generated_in_another_partition): Remove.
1659 (add_scalar_computations_to_partition): Likewise.
1660 (rdg_build_partitions): Do not call
1661 add_scalar_computations_to_partition.
1662
34409c18 16632012-05-31 Eric Botcazou <ebotcazou@adacore.com>
1664
1665 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
1666 double ints throughout.
1667 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
1668 Check that the position of the field is representable as an integer.
1669
7667733b 16702012-05-31 Richard Guenther <rguenther@suse.de>
1671
1672 * tree-data-ref.c (dr_analyze_innermost): Properly convert
1673 the MEM_REF offset to sizetype.
1674
27677dd8 16752012-05-31 Georg-Johann Lay <avr@gjlay.de>
1676
1677 * doc/invoke.texi (AVR Options): Fix typos.
1678
0e7a4cac 16792012-05-31 Hans-Peter Nilsson <hp@axis.com>
1680
1681 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
1682 and -mcpu= options.
1683 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
aac15713 1684 non-v32 into --march=v0_v10.
0e7a4cac 1685
80ebb64a 16862012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1687
1688 * ira-int.h (target_ira_int): Rename x_move_cost to
1689 x_ira_register_move_cost, x_may_move_in_cost to
1690 x_ira_may_move_in_cost and x_may_move_out_cost to
1691 x_ira_may_move_out_cost. Delete the old fields with
1692 those names and also x_ira_max_register_move_cost,
1693 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
1694 (move_cost, may_move_in_cost, may_move_out_cost)
1695 (ira_max_register_move_cost, ira_max_may_move_in_cost)
1696 (ira_max_may_move_out_cost): Delete.
1697 * ira.c (init_move_cost): Rename to...
1698 (ira_init_register_move_cost): ...this, deleting the old
1699 function with that name. Apply above variable renamings.
1700 Retain asserts for null fields.
1701 (ira_init_once): Don't initialize register move costs here.
1702 (free_register_move_costs): Apply above variable renamings.
1703 Remove code for deleted fields.
1704
a0085a50 17052012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1706
1707 * ira.c (init_move_cost): Adjust choice of subclasses to match
1708 the current ira_init_register_move_cost choice. Use
1709 ira_class_subset_p instead of reg_class_subset_p.
1710 (ira_init_register_move_cost): Assert that move_cost,
1711 may_move_in_cost and may_move_out_cost already hold the desired
1712 values for their ira_* equivalents. For the latter two,
1713 ignore classes that can't store a register of the given mode.
1714
0d089656 17152012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1716
1717 * ira.c (setup_allocno_and_important_classes): Use
1718 ira_class_hard_regs_num to check whether a class has any
1719 allocatable registers.
1720 (ira_init_register_move_cost): Likewise.
1721
f3d26300 17222012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1723
1724 * ira.c (init_move_cost): Adjust local variable names to match
1725 file conventions. Use ira_assert instead of gcc_assert.
1726
36eb146a 17272012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1728
1729 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
1730 Move these definitions and associated target_globals fields to...
1731 * ira-int.h: ...here.
1732 * rtl.h (init_move_cost): Delete.
1733 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
1734 * ira.c: ...here, making the latter static.
1735
ad8d4dca 17362012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1737
1738 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
1739 and ira_register_move_cost instead of init_move_cost and move_cost.
1740
1072fecf 17412012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
1742
1743 * ira.h (target_ira): Delete x_ira_available_class_regs.
1744 (ira_available_class_regs): Delete.
1745 * ira.c (setup_available_class_regs): Delete.
1746 (setup_alloc_classes): Don't call it.
1747 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
1748 ira_available_class_regs.
1749 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
1750 (model_spill_cost): Likewise.
1751 * ira-build.c (low_pressure_loop_node_p): Likewise.
1752 * ira-color.c (color_pass): Likewise.
1753 * ira-emit.c (change_loop): Likewise.
1754 * ira-lives.c (inc_register_pressure, dec_register_pressure)
1755 (single_reg_class, ira_implicitly_set_insn_hard_regs)
1756 (process_bb_node_lives): Likewise.
1757 * loop-invariant.c (gain_for_invariant): Likewise.
1758
7949e3eb 17592012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1760
1761 PR target/52999
1762 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
1763 (pa_section_type_flags): New.
1764 (pa_legitimate_constant_p): Revert previous change.
1765
22760026 17662012-05-30 Steven Bosscher <steven@gcc.gnu.org>
1767
1768 * ira.c (allocate_initial_values): Make static.
1769
91c4f7e4 17702012-05-30 Uros Bizjak <ubizjak@gmail.com>
1771
1772 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
1773 Generate tls_initial_exec_64_sun only when !TARGET_X32.
1774
e8aef9ed 17752012-05-30 Richard Guenther <rguenther@suse.de>
1776
1777 PR middle-end/53501
1778 * fold-const.c (fold_binary_loc): Make sure to call
1779 fold_plusminus_mult_expr with the original sign of operands.
1780
eb3dd80d 17812012-05-30 Steven Bosscher <steven@gcc.gnu.org>
1782
1783 * Makefile.in: Fix many dependencies.
1784 (DWARF2_H): Depend on dwarf2.def.
1785 (RTL_ERROR_H): Depend on rtl-error.h.
1786 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
1787 all gimple-pretty-print.h and tree-pretty-print.h references.
1788
22bcc33d 17892012-05-30 Marc Glisse <marc.glisse@inria.fr>
1790
1791 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
1792 concatenations.
1793
20ecc3c4 17942012-05-30 Richard Guenther <rguenther@suse.de>
1795
1796 PR middle-end/53522
1797 * tree-emutls.c (gen_emutls_addr): Do not add globals to
1798 referenced-vars.
1799
15b37e31 18002012-05-30 Eric Botcazou <ebotcazou@adacore.com>
1801
1802 * explow.c (probe_stack_range): Restore simple control flow and stop
1803 again when the probe cannot be generated if HAVE_check_stack.
1804
77b4556a 18052012-05-30 Jakub Jelinek <jakub@redhat.com>
1806
1807 PR rtl-optimization/53519
1808 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
1809 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
1810
e8f3287f 18112012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1812
1813 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
1814
effa044f 18152012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
1816
1817 PR debug/53453
1818 * doc/tm.texi: Update.
1819 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
1820 * target.def (force_at_comp_dir): New hook.
1821 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
1822 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
1823
41f5b5b0 18242012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
4c654fa7 1825
1826 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
1827 Darwin >= 10.
1828 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
1829 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
1830
de9013ac 18312012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
1832
1833 PR target/51340
1834 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
1835 flag_unsafe_math_optimizations is set.
1836 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
1837 Update description of -mfused-madd.
1838
e10782c9 18392012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
1840
1841 PR target/52941
1842 * config/sh/predicates.md (atomic_arith_operand,
1843 atomic_logical_operand): New predicates.
1844 * config/sh/sh.c (sh_option_override): Check atomic options.
1845 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
1846 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
1847 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
1848 UNSUPPORTED_HARD_ATOMIC_CPU.
1849 * config/sh/sync.md: Update description comments.
1850 (I12): New mode iterator.
1851 (fetchop_predicate, fetchop_constraint): New code attributes.
1852 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1853 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1854 atomic_fetch_<fetchop_name>si_hard,
1855 atomic_fetch_<fetchop_name><mode>_hard,
1856 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1857 atomic_<fetchop_name>_fetchsi_hard,
1858 atomic_<fetchop_name>_fetch<mode>_hard,
1859 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1860 atomic_test_and_set_hard): New insns.
1861 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
1862 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
1863 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
1864 atomic_test_and_set_soft): Use same formatting for the first line of
1865 the asm block as in new insns above.
1866 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
1867 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
1868 atomic_test_and_set): Integrate new *_hard insns into expanders.
1869 * config/sh/sh.opt (mhard-atomic): New option.
1870 * doc/invoke.texi (SH Options): Document it.
1871
e4a33abd 18722012-05-29 Meador Inge <meadori@codesourcery.com>
1873
1874 * c-decl.c (c_push_function_context): Always create a new language
1875 function.
1876 (c_pop_function_context): Clear the language function created in
1877 c_push_function_context.
1878
9315255d 18792012-05-29 Matt Turner <mattst88@gmail.com>
1880
1881 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
1882 (define_bypass "ev6_fcmov"): New.
1883
ea1760a3 18842012-05-29 Steven Bosscher <steven@gcc.gnu.org>
1885
1886 * integrate.c: Remove.
1887 * integrate.h: Remove.
1888 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
1889 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
1890 * config/rs6000/t-rs6000: Likewise
1891 * config/spu/t-spu-elf: Likewise.
1892 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
1893 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
1894 from integrate.h to here.
1895 (initial_value_entry): New prototype.
1896 * reload.h (allocate_initial_values): Remove prototype.
1897 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
1898 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
1899 integrate.c.
1900 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
1901 set_decl_abstract_flags, set_block_abstract_flags): Move from
1902 integrate.c to here, the only user.
1903 * expmed.c (extract_fixed_bit_field): Remove outdated comment
1904 about integrate.c.
1905 * function.c: Don't include integrate.h.
1906 (struct initial_value_pair, struct initial_value_struct,
1907 get_hard_reg_initial_val, has_hard_reg_initial_val,
1908 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
1909 integrate.c to here.
1910 (initial_value_entry): New function.
1911 * genemit.c (main): Don't print integrate.h include line.
1912 * ira.c: Don't include integrate.h.
1913 (allocate_initial_values): Move from integrate.c to here.
1914 (ira): Update allocate_initial_values call.
1915 * tree-inline.c: Don't include integrate.h.
1916 (function_attribute_inlinable_p): Moved from integrate.c to here.
1917 * cfgexpand.c: Don't include integrate.h.
1918 * except.c: Likewise.
1919 * langhooks.c: Likewise.
1920 * passes.c: Likewise.
1921 * toplev.c: Likewise.
1922 * config/frv/frv.c: Likewise.
1923 * config/pa/pa.c: Likewise.
1924 * config/spu/spu.c: Likewise.
1925 * config/epiphany/epiphany.c: Likewise.
1926 * config/mep/mep.c: Likewise.
1927 * config/score/score.c: Likewise.
1928 * config/picochip/picochip.c: Likewise.
1929 * config/sh/sh.c: Likewise.
1930 * config/alpha/alpha.c: Likewise.
1931 * config/microblaze/microblaze.c: Likewise.
1932 * config/mips/mips.c: Likewise.
1933 * config/v850/v850.c: Likewise.
1934 * config/mmix/mmix.c: Likewise.
1935 * config/bfin/bfin.c: Likewise.
1936 * config/arm/arm.c: Likewise.
1937 * config/s390/s390.c: Likewise.
1938 * config/m32r/m32r.c: Likewise.
1939 * config/rs6000/rs6000.c: Likewise.
1940 * config/c6x/c6x.c: Include function.h instead of integrate.h.
1941 * config/tilegx/tilegx.c: Likewise.
1942 * config/tilepro/tilepro.c: Likewise.
1943
234d19a4 19442012-05-29 Georg-Johann Lay <avr@gjlay.de>
1945
91c4f7e4 1946 * config/avr/t-avr (s-avr-mmcu-texi): Call
234d19a4 1947 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
91c4f7e4 1948
0ab48139 19492012-05-29 Michael Matz <matz@suse.de>
1950
1951 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
1952 assign_temp): Remove 'keep' argument.
1953 (mark_temp_addr_taken): Remove prototype.
1954 * tree.h (expand_decl): Remove prototype.
91c4f7e4 1955 * function.c (struct temp_slot): Remove addr_taken and keep member.
0ab48139 1956 (assign_stack_temp_for_type) Don't initialize above, remove
1957 keep argument.
1958 (assign_stack_temp, assign_temp): Remove keep argument.
1959 (mark_temp_addr_taken): Remove.
91c4f7e4 1960 (preserve_temp_slots): Remove handling of addr_taken and keep members.
0ab48139 1961 (free_temp_slots): Ditto.
1962 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
1963 dead code.
1964 * stmt.c (expand_asm_operands): Remove dead code.
1965 (expand_decl): Remove.
1966 * c-decl.c (finish_struct): Don't call expand_decl.
1967 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
1968 and assign_stack_temp.
1969 * calls.c (save_fixed_argument_area, initialize_argument_information,
1970 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
1971 * expmed.c (extract_bit_field_1): Ditto.
1972 * expr.c (emit_group_load_1, emit_group_store,
1973 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
1974 store_field, expand_constructor, expand_cond_expr_using_cmove,
1975 expand_expr_real_2, expand_expr_real_1): Ditto.
1976 * stmt.c (expand_asm_operands, expand_return): Ditto.
1977
1978 * function.c (pop_temp_slots): Call free_temp_slots.
1979 * calls.c (store_one_arg): Don't call preserve_temp_slots or
1980 free_temp_slots.
1981 * expr.c (expand_assignment): Don't call free_temp_slots.
1982
1983 * config/arm/arm.c (neon_expand_vector_init): Ditto.
1984 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
1985 (ix86_expand_vector_extract): Ditto.
1986 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
1987 ia64_expand_movxf_movrf): Ditto.
1988 * config/mips/mips.c (mips_expand_vi_general): Ditto.
1989 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
1990 extendsfdf2): Ditto.
1991 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
1992 rs6000_expand_vector_set, rs6000_expand_vector_extract,
1993 rs6000_allocate_stack_temp): Ditto.
1994 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
1995 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
1996 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
1997 sparc_expand_vector_init): Ditto.
1998
7843e4bc 19992012-05-29 Michael Matz <matz@suse.de>
2000
2001 * c-tree.h (c_expand_decl): Remove prototype.
2002
2003 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
2004 a kept temp.
2005 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
91c4f7e4 2006 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
7843e4bc 2007 COMPOUND_LITERAL_EXPR.
2008 * function.c (expand_function_start): Don't call expand_decl,
2009 instead assert that we have RTL assigned.
2010 * tree-ssa-live.c (remove_unused_locals): Clear
2011 nonlocal_goto_save_area if its backing variable is removed.
2012 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
2013 as mem inputs.
2014 (expand_decl): Assert that this does nothing.
2015 * calls.c (expand_call): Don't call mark_temp_addr_taken.
2016
87c952b8 20172012-05-29 Richard Guenther <rguenther@suse.de>
2018
2019 PR tree-optimization/53516
2020 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
2021 bitfield accesses.
2022 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2023
9d75589a 20242012-05-29 Joseph Myers <joseph@codesourcery.com>
2025
2026 * LANGUAGES: Fix typos.
2027 * Makefile.in: Fix typos.
2028 * alias.c: Fix typos.
2029 * auto-inc-dec.c: Fix typos.
2030 * bb-reorder.c: Fix typos.
2031 * cfgcleanup.c: Fix typos.
2032 * cgraph.c: Fix typos.
2033 * cgraph.h: Fix typos.
2034 * cgraphunit.c: Fix typos.
2035 * collect2-aix.h: Fix typos.
2036 * collect2.c: Fix typos.
2037 * compare-elim.c: Fix typos.
2038 * config/alpha/vms.h: Fix typos.
2039 * config/arm/README-interworking: Fix typos.
2040 * config/arm/arm.c: Fix typos.
2041 * config/arm/iterators.md: Fix typos.
2042 * config/arm/vxworks.h: Fix typos.
2043 * config/avr/avr.c: Fix typos.
2044 * config/avr/avr.h: Fix typos.
2045 * config/avr/avr.md: Fix typos.
2046 * config/avr/builtins.def: Fix typos.
2047 * config/c6x/c6x.c: Fix typos.
2048 * config/cr16/cr16.c: Fix typos.
2049 * config/cr16/cr16.md: Fix typos.
2050 * config/cris/cris.md: Fix typos.
2051 * config/darwin.c: Fix typos.
2052 * config/darwin.opt: Fix typos.
2053 * config/i386/i386-c.c: Fix typos.
2054 * config/i386/i386.c: Fix typos.
2055 * config/ia64/ia64.c: Fix typos.
2056 * config/m68k/cf.md: Fix typos.
2057 * config/mep/mep.c: Fix typos.
2058 * config/microblaze/microblaze.c: Fix typos.
2059 * config/microblaze/microblaze.h: Fix typos.
2060 * config/mn10300/mn10300.c: Fix typos.
2061 * config/mn10300/mn10300.md: Fix typos.
2062 * config/pa/pa.c: Fix typos.
2063 * config/picochip/picochip.h: Fix typos.
2064 * config/rs6000/a2.md: Fix typos.
2065 * config/rs6000/rs6000.c: Fix typos.
2066 * config/rs6000/vector.md: Fix typos.
2067 * config/rx/rx.md: Fix typos.
2068 * config/rx/rx.opt: Fix typos.
2069 * config/s390/2097.md: Fix typos.
2070 * config/s390/s390.c: Fix typos.
2071 * config/s390/s390.h: Fix typos.
2072 * config/sh/sh.c: Fix typos.
2073 * config/sh/sh.md: Fix typos.
2074 * config/sparc/sync.md: Fix typos.
2075 * config/spu/spu.c: Fix typos.
2076 * config/spu/spu.md: Fix typos.
2077 * config/vms/vms.c: Fix typos.
2078 * config/vxworks-dummy.h: Fix typos.
2079 * config/vxworks.h: Fix typos.
2080 * cselib.c: Fix typos.
2081 * df-scan.c: Fix typos.
2082 * df.h: Fix typos.
2083 * doc/extend.texi: Fix typos.
2084 * doc/install.texi: Fix typos.
2085 * doc/invoke.texi: Fix typos.
2086 * doc/md.texi: Fix typos.
2087 * doc/plugins.texi: Fix typos.
2088 * doc/rtl.texi: Fix typos.
2089 * dse.c: Fix typos.
2090 * dwarf2asm.c: Fix typos.
2091 * dwarf2out.c: Fix typos.
2092 * except.h: Fix typos.
2093 * expr.c: Fix typos.
2094 * fold-const.c: Fix typos.
2095 * gcc.c: Fix typos.
2096 * gcse.c: Fix typos.
2097 * genautomata.c: Fix typos.
2098 * gengtype-state.c: Fix typos.
2099 * gengtype.c: Fix typos.
2100 * genhooks.c: Fix typos.
2101 * gimple-fold.c: Fix typos.
2102 * gimple-pretty-print.c: Fix typos.
2103 * gimple.c: Fix typos.
2104 * gimple.h: Fix typos.
2105 * gimplify.c: Fix typos.
2106 * graphite-interchange.c: Fix typos.
2107 * graphite-sese-to-poly.c: Fix typos.
2108 * ifcvt.c: Fix typos.
2109 * input.c: Fix typos.
2110 * ipa-cp.c: Fix typos.
2111 * ipa-inline-analysis.c: Fix typos.
2112 * ipa-inline-transform.c: Fix typos.
2113 * ipa-inline.c: Fix typos.
2114 * ipa-pure-const.c: Fix typos.
2115 * ipa-ref.h: Fix typos.
2116 * ipa-reference.c: Fix typos.
2117 * ipa-utils.c: Fix typos.
2118 * ipa.c: Fix typos.
2119 * ira-emit.c: Fix typos.
2120 * ira-lives.c: Fix typos.
2121 * lto-streamer.c: Fix typos.
2122 * lto-streamer.h: Fix typos.
2123 * lto-wrapper.c: Fix typos.
2124 * mcf.c: Fix typos.
2125 * mode-switching.c: Fix typos.
2126 * modulo-sched.c: Fix typos.
2127 * plugin.c: Fix typos.
2128 * postreload.c: Fix typos.
2129 * sched-deps.c: Fix typos.
2130 * sel-sched-ir.c: Fix typos.
2131 * sel-sched-ir.h: Fix typos.
2132 * sel-sched.c: Fix typos.
2133 * sese.c: Fix typos.
2134 * stor-layout.c: Fix typos.
2135 * target-hooks-macros.h: Fix typos.
2136 * target.def: Fix typos.
2137 * trans-mem.c: Fix typos.
2138 * tree-eh.c: Fix typos.
2139 * tree-predcom.c: Fix typos.
2140 * tree-sra.c: Fix typos.
2141 * tree-ssa-address.c: Fix typos.
2142 * tree-ssa-loop-ivopts.c: Fix typos.
2143 * tree-ssa-loop-niter.c: Fix typos.
2144 * tree-ssa-math-opts.c: Fix typos.
2145 * tree-ssa-pre.c: Fix typos.
2146 * tree-ssa-propagate.c: Fix typos.
2147 * tree-ssa-reassoc.c: Fix typos.
2148 * tree-ssa-sccvn.c: Fix typos.
2149 * tree-ssa-ter.c: Fix typos.
2150 * tree-ssa-uninit.c: Fix typos.
2151 * tree-ssanames.c: Fix typos.
2152 * tree-vect-generic.c: Fix typos.
2153 * tree-vect-slp.c: Fix typos.
2154 * tree.c: Fix typos.
2155 * tree.h: Fix typos.
2156 * varasm.c: Fix typos.
2157 * varpool.c: Fix typos.
2158
d668316d 21592012-05-29 Joseph Myers <joseph@codesourcery.com>
2160
2161 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
2162
134f0957 21632012-05-29 Richard Guenther <rguenther@suse.de>
2164
2165 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
2166 for globals.
2167 (add_referenced_var_1): Re-organize. Assert we are not
2168 called for globals.
2169 (remove_referenced_var): Likewise.
2170 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
2171 * tree-mudflap.c (execute_mudflap_function_ops): Do not
2172 call add_referenced_var on globals.
2173 * matrix-reorg.c (transform_access_sites): Likewise.
2174
d6443ebe 21752012-05-29 Steven Bosscher <steven@gcc.gnu.org>
2176
2177 * alias.c (reg_known_value): Make this a VEC.
2178 (reg_known_equiv_p): Make this an sbitmap.
2179 (reg_known_value_size): Remove.
2180 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
2181 set_reg_known_equiv_p): Update for reg_known_value and
2182 reg_known_value_size data structure change.
2183 (init_alias_analysis, end_alias_analysis): Likewise.
2184
c306fbbf 21852012-05-29 Jakub Jelinek <jakub@redhat.com>
2186
2187 PR middle-end/53510
2188 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
2189 to avoid leaking memory. No need to handle memory allocation
91c4f7e4 2190 failure. Double string_len on each reallocation instead of adding 2.
c306fbbf 2191 * gcov.c (read_line): Likewise.
2192
2cfdd775 21932012-05-29 Hans-Peter Nilsson <hp@axis.com>
2194
2195 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
2196 New macros.
2197 * config/cris/cris.md ("trap"): Define, enabled for
2198 TARGET_TRAP_USING_BREAK8.
2199 * config/cris/cris.opt (mtrap-using-break8): New option.
2200
8b64dc3c 22012012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2202
2203 PR c++/25137
2204 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
2205 for C++.
2206
e67780f7 22072012-05-28 Hans-Peter Nilsson <hp@axis.com>
2208
91c4f7e4 2209 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
3ed894b7 2210 (Standard Names): Fix typos in documentation of atomic patterns.
e67780f7 2211
b3a0814b 22122012-05-27 Nathan Sidwell <nathan@acm.org>
2213
2214 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
2215
eb5d9b7b 22162012-05-26 Jason Merrill <jason@redhat.com>
2217
2218 PR c++/53220
2219 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
2220 about array compound literals.
2221
8ddad41d 22222012-05-26 Eric Botcazou <ebotcazou@adacore.com>
2223
2224 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
2225 if CLEANUP_NO_INSN_DEL.
2226 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
2227 from cfg_layout_merge_blocks.
2228 (emit_nop_for_unique_locus_between): New function.
2229 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
2230 (cfg_layout_merge_blocks): Likewise.
2231
f7583c76 22322012-05-26 Dimitrios Apostolou <jimis@gmx.net>
2233 Paolo Bonzini <bonzini@gnu.org>
2234
2235 * df-scan.c (df_def_record_1): Assert a parallel must contain an
2236 EXPR_LIST at this point. Receive the LOC and move its extraction...
2237 (df_defs_record): ... here. Change if-else to a switch statement.
2238 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
2239 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
2240 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
2241 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
2242 regs_invalidated_by_call.
2243 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
2244 df_get_call_refs().
2245
eaf1e576 22462012-05-25 Eric Botcazou <ebotcazou@adacore.com>
2247
2248 PR lto/52178
2249 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
2250 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
2251
e684d543 22522012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2253
2254 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
2255 software floating point emulation. No longer build the multilibs
2256 with -mstrict-align.
2257
709ed320 22582012-05-25 Aldy Hernandez <aldyh@redhat.com>
2259
2260 PR middle-end/53008
2261 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
2262 accessed indirectly.
2263 (ipa_tm_create_version): Same.
2264
45476806 22652012-05-25 Uros Bizjak <ubizjak@gmail.com>
2266
2267 PR target/53474
2268 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
2269 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
2270
b04c1b7f 22712012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2272
2273 PR target/53435
2274 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
2275 (ix86_expand_vec_perm): Use int mode instead of float.
2276 (expand_vec_perm_pshufb): Remove handling of useseless type
2277 conversion.
2278
8ffcff2e 22792012-05-25 Eric Botcazou <ebotcazou@adacore.com>
2280
2281 PR ada/52362
2282 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
2283 gnu_ld variables to yes.
2284 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
2285 (HAVE_GNU_AS): Likewise.
2286 * config.in: Regenerate.
2287 * configure: Likewise.
2288
5bb035a3 22892012-05-25 Tristan Gingold <gingold@adacore.com>
2290
2291 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
2292 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
2293 and preferred_alignment.
2294
bfde030e 22952012-05-25 Tristan Gingold <gingold@adacore.com>
2296
2297 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
2298
5253ef2b 22992012-05-25 Thomas Schwinge <thomas@codesourcery.com>
2300
2301 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
2302 volatile bitfields case.
2303
23042012-05-24 Pat Haugen <pthaugen@us.ibm.com>
409e1a55 2305
2306 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
2307 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
2308 (adjacent_mem_locations): Move some code to and call...
2309 (get_memref_parts): ...new function.
2310 (mem_locations_overlap): New function.
2311 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
2312 (is_mem_ref): Rename to...
2313 (find_mem_ref): ...this. Return MEM rtx.
2314 (get_store_dest): Remove function.
2315 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
2316 new parameter and adjust calls.
2317 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
2318 mem refs overlap for true_store_to_load_dep_costly.
2319 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
2320 passed to adjacent_mem_locations.
2321 (is_costly_group): Walk resolved dependency list.
2322 (force_new_group): Emit group ending nop for Power6/Power7.
2323 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
2324 (group_ending_nop): New define_insn.
2325
8ae39fa8 23262012-05-24 Dodji Seketeli <dodji@redhat.com>
2327
2328 Make unwound macro expansion trace less redundant
2329 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
2330 context of macro definition in the trace, when it's redundant.
2331 Update comments.
2332
141de90e 23332012-05-24 Richard Guenther <rguenther@suse.de>
2334
2335 PR middle-end/53460
2336 * tree-profile.c (tree_profiling): Cleanup the CFG if
2337 execute_fixup_cfg requests it.
2338
1b55a29e 23392012-05-24 Richard Guenther <rguenther@suse.de>
2340
2341 * tree-flow.h (create_var_ann): Remove.
2342 * tree-dfa.c (create_var_ann): Remove and inline into its
2343 single caller ...
2344 (add_referenced_var_1): ... here.
2345 * varpool.c (add_new_static_var): Do not call add_referenced_var
2346 for global vars.
2347 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2348 * tree-switch-conversion.c (build_one_array): Likewise.
2349 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
2350 * tree-flow-inline.h (gimple_referenced_vars): Guard against
2351 NULL fn argument.
2352 * tree-inline.c (remap_gimple_op_r): Likewise. Check
2353 gimple_referenced_vars instead of gimple_in_ssa_p.
2354 (copy_tree_body_r): Likewise.
2355 (setup_one_parameter): Likewise.
2356 (declare_return_variable): Likewise.
2357 (tree_function_versioning): Likewise.
2358
a2623f6b 23592012-05-24 Jakub Jelinek <jakub@redhat.com>
2360
2361 PR tree-optimization/53465
2362 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
2363 vr0 into *vr, then vrp_meet that.
2364 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
2365 have any equivalences.
2366 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
2367 first time.
2368
23692012-05-24 Jim MacArthur <jim.macarthur@arm.com>
71e16a8f 2370
2371 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
2372 hard registers.
2373 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
2374 check end_regno - 1 is a hard register.
2375
cc3f82be 23762012-05-24 Richard Guenther <rguenther@suse.de>
2377
2378 * varpool.c (add_new_static_var): Remove call to create_var_ann.
2379 * tree-ssa-operands.c (create_vop_var): Likewise.
2380
2887c015 23812012-05-24 Richard Guenther <rguenther@suse.de>
2382
2383 PR bootstrap/53466
2384 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
2385 handle globals.
2386 (remove_unused_locals): Pass global_unused_vars to
2387 remove_unused_scope_block_p. Restore code walking all
2388 referenced vars and pruning them.
2389
afea39ad 23902012-05-23 Jan Hubicka <jh@suse.cz>
2391
2392 * tree.h (alias_diag_flags): Remove.
2393 (alias_pair): Remove emitted_diags.
2394 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
2395 symbol_alias_set_t, symbol_alias_set_destroy,
2396 symbol_alias_set_contains, propagate_aliases_backward): Remove.
2397 * toplev.c (compile_file): Do not call finish_aliases_2
45476806 2398 * cgraphunit.c (cgraph_process_new_functions): Do not call
2399 finish_aliases_1.
afea39ad 2400 (handle_alias_pairs): Output diagnostics about aliases to externals.
2401 (assemble_thunks_and_aliases): Use do_assemble_alias.
2402 (output_weakrefs): Likewise.
2403 (finalize_compilation_unit): Do not call finish_aliases_1.
45476806 2404 * ipa.c (symtab_remove_unreachable_nodes): De not call
2405 remove_unreachable_alias_pairs.
afea39ad 2406 * varasm.c (do_assemble_alias): Export.
45476806 2407 (symbol_alias_set_create, symbol_alias_set_destroy,
2408 symbol_alias_set_contains, symbol_alias_set_insert,
2409 propagate_aliases_forward, propagate_aliases_backward,
2410 propagate_aliases_backward, trivially_visible_alias,
2411 trivially_defined_alias, remove_unreachable_alias_pairs,
2412 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
afea39ad 2413 * output.h (do_assemble_alias): Declare.
45476806 2414 * varpool.c (varpool_remove_unreferenced_decls): Do not call
2415 finish_aliases_1.
afea39ad 2416
9d68bc02 24172012-05-23 Martin Jambor <mjambor@suse.cz>
2418
2419 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
2420
4190f293 24212012-05-23 Eric Botcazou <ebotcazou@adacore.com>
2422
2423 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
2424 size handling.
2425 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
2426 (iterative_hash_gimple_type): Adjust comment.
2427 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
2428 domain for an array type instead of the domain type itself.
2429
53b5b75f 24302012-05-23 Richard Guenther <rguenther@suse.de>
2431
2432 PR tree-optimization/53438
2433 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
2434
7ce72b61 24352012-05-23 Georg-Johann Lay <avr@gjlay.de>
2436
2437 PR target/53448
2438 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
2439 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
2440 ASM_OUTPUT_ALIGN.
2441
ad75582e 24422012-05-23 Richard Guenther <rguenther@suse.de>
2443
2444 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
2445 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
2446 via the global_unused_vars bitmap.
2447 (remove_unused_locals): Handle global vars in local-decls via
2448 a global_unused_vars bitmap instead of the used flag in the
2449 var annotation. Simplify global variable handling and removal.
2450
f963f90b 24512012-05-22 Jan Hubicka <jh@suse.cz>
2452
2453 PR middle-end/53426
ad75582e 2454 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
2455 from other partitions.
f963f90b 2456
ad0fe105 24572012-05-22 Jan Hubicka <jh@suse.cz>
2458
2459 PR middle-end/53161
2460 * symtab.c (symtab_register_node): Fix ordering issue.
2461
c93570ad 24622012-05-22 Steven Drake <sbd@NetBSD.org>
2463
2464 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
2465
f8efdac8 24662012-05-22 David Edelsohn <dje.gcc@gmail.com>
2467
2468 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
2469 Use strip_name_encoding target hook.
2470
5084b2e4 24712012-05-22 Richard Guenther <rguenther@suse.de>
2472
2473 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
2474 (init_function_for_compilation): Remove.
2475 * tree-dfa.c (find_vars_r): Take struct function argument.
2476 (find_referenced_vars_in): Adjust.
2477 * tree-ssa-operands.c (clobber_stats): Remove.
2478 (create_vop_var): Take struct function argument. Mark
2479 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
2480 (init_ssa_operands): Take struct function argument.
2481 (fini_ssa_operands): Do not dump dead stats.
2482 * tree-ssa-operands.h (init_ssa_operands): Take struct function
2483 argument.
2484 * cgraphunit.c (init_lowered_empty_function): Adjust.
2485 * lto-streamer-in.c (input_cfg): Likewise.
2486 * tree-inline.c (initialize_cfun): Likewise.
2487 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
45476806 2488 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
5084b2e4 2489 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
2490 virtual operands are not registers.
2491
22ba4121 24922012-05-22 Richard Guenther <rguenther@suse.de>
2493
45476806 2494 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
22ba4121 2495
6084b64c 24962012-05-22 Richard Guenther <rguenther@suse.de>
2497
2498 PR middle-end/53437
2499 * tree-inline.c (setup_one_parameter): Create a dummy init
2500 statement for unused parameters when not optimizing.
2501
665507eb 25022012-05-22 Richard Guenther <rguenther@suse.de>
2503
2504 * tree-flow.h (add_referenced_var_1): Declare.
2505 (add_referenced_var): Define.
45476806 2506 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
665507eb 2507 (add_referenced_var): Rename to ...
2508 (add_referenced_var_1): ... this. Take struct function argument.
2509
f9aa4160 25102012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2511
2512 PR target/53334
2513 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
2514 * config/arm/arm.c (arm_validize_comparison): Define.
2515 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
2516 arm_validize_comparison.
2517 ("cbranchdi4"): Likewise.
2518 ("cstoredi4"): Likewise.
2519 ("movsicc"): Likewise.
2520 ("movsfcc"): Likewise.
2521 ("movdfcc"): Likewise.
2522
6940c58b 25232012-05-22 Dimitrios Apostolou <jimis@gmx.net>
2524
2525 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
f9aa4160 2526 the mw_reg_pool size.
6940c58b 2527
3f55c2b5 25282012-05-22 Paolo Bonzini <bonzini@gnu.org>
2529
2530 PR tree-optimization/53336
2531 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
2532 non-integer integral types to offset type and vice versa.
2533
07f7357d 25342012-05-22 Alan Modra <amodra@gmail.com>
2535
53845569 2536 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2537 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2538 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
2539 V_SAVE_INLINE): Delete.
07f7357d 2540 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
2541 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
2542 For ELF targets, use out-of-line restores for -Os and any number
2543 of regs if the restore exits, and out-of-line gp save for two or
2544 more regs. Use save_reg_p to test for holes in reg restore set.
2545 Replace "#if" with "if".
2546
1988c1c3 25472012-05-22 Alan Modra <amodra@gmail.com>
2548
2549 * config/rs6000/rs6000.c (save_reg_p): New function.
2550 (first_reg_to_save, first_fp_reg_to_save): Use it here.
2551 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
2552 (emit_frame_save): Use gen_frame_store.
2553 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
2554 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
2555 vrsave and toc.
2556 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
2557 vrsave, toc, gp and fp restores.
2558
5afb4a41 25592012-05-22 Alan Modra <amodra@gmail.com>
2560
2561 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
2562 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
2563 Move function pointer variables after forward declarations.
2564 (rs6000_builtin_support_vector_misalignment): Make static.
2565 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
2566 (rs6000_function_value, rs6000_can_eliminate): Likewise.
2567
d73df292 25682012-05-21 Bernd Schmidt <bernds@codesourcery.com>
2569
2570 PR rtl-optimization/53373
2571 * caller-save.c (save_call_clobbered_regs): Look into a possible
2572 PARALLEL manually rather than using single_set on a call insn.
2573
445d06b6 25742012-05-21 Jakub Jelinek <jakub@redhat.com>
2575
2576 PR tree-optimization/53436
2577 * omp-low.c (omp_build_component_ref): New function.
2578 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
2579
04275edf 25802012-05-21 Uros Bizjak <ubizjak@gmail.com>
2581
2582 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
2583 arguments to bool.
2584 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
2585 Do not print '.' here. Output operand lossage error for unhandled
2586 sizes. Move.
2587 <case '*'>: Move.
2588 <case '&'>: Ditto.
2589 <case 'Y'>: Ditto.
2590 <case 'z'>: Hardcode "code" argument into error strings.
2591 <case 'Z'>: Ditto.
2592 <case 'D'>: Merge AVX and non-AVX codes.
2593 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
2594 Update call to put_condition_code.
2595
eddf6a68 25962012-05-21 Andreas Schwab <schwab@linux-m68k.org>
2597
2598 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
2599 CC_STATUS_INIT.
2600 (clzsi2): New expander.
2601 (*clzsi2_68k): New insn.
04275edf 2602 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
eddf6a68 2603
6ad451f8 26042012-05-21 Aldy Hernandez <aldyh@redhat.com>
2605
2606 * gimple.h (gimple_set_in_transaction): Remove.
2607 (gimple_in_transaction): Look in BB instead.
2608 (gimple_statement_base): Remove in_transaction field.
2609 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
2610 * trans-mem.c (compute_transaction_bits): Place transaction bit
2611 information into basic blocks.
2612
ef47fd1d 26132012-05-21 Andreas Schwab <schwab@linux-m68k.org>
2614
2615 * expr.c (get_def_for_expr_class): Define only if
2616 HAVE_conditional_move.
2617 (convert_tree_comp_to_rtx): Likewise.
2618
b1182707 26192012-05-21 Uros Bizjak <ubizjak@gmail.com>
2620
2621 PR target/53399
2622 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
2623 for TARGET_BMI.
2624 (ffssi2_no_cmove): Ditto.
2625 (*ffs<mode>_1): Remove insn pattern.
2626 (*tzcnt<mode>_1): New insn pattern.
2627 (*bsf<mode>1): Ditto.
2628
c77bfbc9 26292012-05-21 Richard Guenther <rguenther@suse.de>
2630
2631 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
2632 more referenced vars.
2633 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
2634 flag on variables that have a var-annotation.
2635
7c2df6db 26362012-05-21 Joseph Myers <joseph@codesourcery.com>
2637
6a17c9e0 2638 PR c/53418
7c2df6db 2639 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
2640 from folded operands before wrapping another around the
2641 conditional expression.
2642
8cb435f5 26432012-05-21 Jakub Jelinek <jakub@redhat.com>
2644
e694f1e7 2645 PR tree-optimization/53366
2646 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
2647 tests if complex_numbers == 2, but there are non-complex number loads
2648 too.
2649
791e6391 2650 PR tree-optimization/53409
2651 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
2652 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
2653
8cb435f5 2654 PR tree-optimization/53410
2655 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
2656 instead of build_int_cst (type, 0) where vector types might be
2657 involved. Instead of build_int_cst (type, 1) convert the original
2658 integer_onep argument to the desired type.
2659
31eb619c 26602012-05-21 Michael Matz <matz@suse.de>
2661
2662 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
2663 (simplify_test_exp): Handle one more case of distributive law,
2664 decrease cost threshold.
2665 (tests_attr_p, get_attr_order): New functions.
2666 (optimize_attrs): Use topological order, inline only cheap values.
2667 (write_attr_set): Reset our_known_true after some time.
2668
391d150e 26692012-05-21 H.J. Lu <hongjiu.lu@intel.com>
2670
2671 PR target/53425
2672 * config/i386/i386.c (type_natural_mode): Warn passing SSE
2673 vector argument without SSE enabled changes the ABI.
2674
02a2bdca 26752012-05-21 Richard Guenther <rguenther@suse.de>
2676
2677 PR tree-optimization/53408
2678 * tree-vect-loop.c (vectorizable_induction): Properly check
2679 the restriction that we cannot handle induction results from
2680 the inner loop outside of the outer loop.
2681
bdd31be6 26822012-05-21 H.J. Lu <hongjiu.lu@intel.com>
2683
2684 PR target/53416
2685 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
2686 (UNSPECV_RDRAND): This.
2687 (rdrand<mode>_1): Updated.
2688
6681da88 26892012-05-21 Richard Guenther <rguenther@suse.de>
2690
2691 * tree-loop-distribution.c (can_generate_builtin): Reject
2692 volatile stmts.
2693
abe01860 26942012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
2695
2696 * Makefile.in (options.c): Add options.h to included header
2697 files, before tm.h.
2698
0773b627 26992012-05-21 Razya Ladelsky <razya@il.ibm.com>
2700
b1182707 2701 * tree-parloops.c : Add myself to contributors, update
0773b627 2702 TODO list, add link to wiki.
2703
ae4dcb11 27042012-05-21 Alan Modra <amodra@gmail.com>
2705
2706 * config/rs6000/predicates.md (input_operand): Don't match
2707 constant pool addresses. Remove label_ref, high and plus from
2708 match_code list. Remove redundant CONSTANT_P test.
2709 (splat_input_operand): Similarly update match_code list.
2710 (small_toc_ref): New predicate.
2711 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
2712 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
2713 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
2714 register checks to..
2715 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
2716 generated by create_TOC_reference.
2717 (rs6000_legitimize_address): Update cerate_TOC_reference call.
2718 (rs6000_delegitimize_address): Handle new rtl for toc refs.
2719 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
2720 (use_toc_relative_ref): New function, split out from..
2721 (rs6000_emit_move): ..here. Remove redundant tests. Update
2722 create_TOC_reference calls.
2723 (rs6000_legitimize_reload_address): Formatting. Handle splitting
2724 of medium/large model toc addresses. Use use_toc_relative_ref.
2725 (print_operand): Formatting, style. Adjust for toc changes.
2726 (print_operand_address): Likewise.
2727 (rs6000_output_addr_const_extra): Likewise.
2728 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
2729 than a PLUS. Use this formulation for both high and low part
2730 of -mcmodel=medium/large toc reference too. Before reload,
2731 always use the small model formulation.
2732 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
2733 a PLUS in high part of addresses here.
2734 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2735 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2736 (largetoc_high, largetoc_low): Move earlier. Cope when no
2737 base reg available.
2738 (largetoc_high_plus): New insn.
2739 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
2740 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
2741 (tocref): ..instead do so here, new insn and split.
2742
db3de906 27432012-05-20 H.J. Lu <hongjiu.lu@intel.com>
2744
2745 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2746 RDRND, F16C and FSGSBASE.
2747
c91c5188 27482012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2749
2750 PR rtl-optimzation/53373
2751 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
2752 call pattern. Update split patterns.
2753 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
2754 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
2755
362dc73c 27562012-05-20 Razya Ladelsky <razya@il.ibm.com>
b1182707 2757
2758 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
2759 for outer loops.
362dc73c 2760
18a71d50 27612012-05-18 Jan Hubicka <jh@suse.cz>
2762
2763 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
2764 (cgraph_process_new_functions): Process also aliases.
2765 * lto-streamer-out.c (struct sets): Remove.
2766 (trivally_defined_alias): Remove.
2767 (output_alias_pair_p): Remove.
2768 (output_unreferenced_globals): Remove.
2769 (produce_symtab); Do not handle alias pairs.
2770 (produce_asm_for_decls): Likewise.
2771 * lto-streamer-in.c (input_alias_pairs): Remove.
2772 (lto_read_body): Do not input alias pairs.
2773 (lto_input_constructors_and_inits): Remove.
2774
48c84ee3 27752012-05-18 Jan Hubicka <jh@suse.cz>
2776
b1182707 2777 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
2778 aliases.
48c84ee3 2779
a65b88bf 27802012-05-18 Jan Hubicka <jh@suse.cz>
2781
2782 * cgraphbuild.c (record_reference): Update.
2783 * lto-cgraph.c (lto_output_varpool_node): External vars
2784 are not in other partition even if they are not output
2785 in current partition.
2786 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
2787 argument; fix.
2788 (canonicalize_constructor_val): Take FROM_DECL argument.
2789 (fold_ctor_reference, fold_string_cst_ctor_reference,
2790 fold_array_ctor_reference, fold_nonarray_ctor_reference,
2791 fold_ctor_reference): Likewise.
2792 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
2793 * gimple.h (gimple_fold_builtin): Likewise.
2794
01922927 27952012-05-18 Olivier Hainque <hainque@adacore.com>
2796
2797 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
2798 $(libsubdir) as libexecsubdir.
2799
dcc95d92 28002012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2801
2802 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
2803 relied on signed overflow behavior.
2804
58ccfbea 28052012-05-18 Richard Guenther <rguenther@suse.de>
2806
2807 PR tree-optimization/53346
2808 * tree-loop-distribution.c (ldist_gen): Make sure to apply
2809 builtin transform even when only a single partition with
2810 all reads/writes exists.
2811
a72a38f4 28122012-05-18 Richard Guenther <rguenther@suse.de>
2813
2814 PR tree-optimization/53390
2815 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
2816 strided loads.
2817
97269507 28182012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2819
2820 * tree-ssa-reassoc.c (bip_map): Remove decl.
2821 (completely_remove_stmt): Remove function.
2822 (remove_def_if_absorbed_call): Remove function.
2823 (remove_visited_stmt_chain): Remove __builtin_powi handling.
2824 (possibly_move_powi): Remove function.
2825 (rewrite_expr_tree): Remove calls to possibly_move_powi.
2826 (rewrite_expr_tree_parallel): Likewise.
2827 (attempt_builtin_powi): Build multiplies explicitly rather than
2828 relying on the ops vector and rank system.
2829 (transform_stmt_to_copy): New function.
2830 (transform_stmt_to_multiply): Likewise.
2831 (reassociate_bb): Handle leftover operations after __builtin_powi
2832 optimization; build a final multiply if necessary.
2833
2d4bf241 28342012-05-18 Jan Hubicka <jh@suse.cz>
2835
2836 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
2837 (mark_functions_to_output): Fix sanity check.
b1182707 2838 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
2d4bf241 2839
a7745367 28402012-05-18 Richard Guenther <rguenther@suse.de>
2841
2842 * tree-flow.h (mark_symbols_for_renaming): Remove.
2843 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
b1182707 2844 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
a7745367 2845 (copy_debug_stmt): Likewise.
2846 (expand_call_inline): Likewise.
2847 (declare_return_variable): Mark the return variable for renaming
2848 if necessary.
2849
ffcc986d 28502012-05-18 Andrew Stubbs <ams@codesourcery.com>
2851
2852 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
2853 prototype.
2854 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
2855 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
2856 (ashrdi3,lshrdi3): Likewise.
2857 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
2858
3a966565 28592012-05-18 Meador Inge <meadori@codesourcery.com>
2860
2861 PR rtl-optimization/53352
2862 * cse.c (equiv_constant): Ignore paradoxical subregs.
2863
cb454387 28642012-05-17 Steven Bosscher <steven@gcc.gnu.org>
2865
2866 PR rtl-optimization/53125
2867 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
2868 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
2869 die in the basic block. Correctly top off REG_FREQ and
2870 REG_FREQ_CALLS_CROSSED.
2871 Remove do_not_gen.
2872 (regstat_compute_ri): Allocate and free local_live_last_luid.
2873 Remove do_not_gen.
2874 (regstat_bb_compute_calls_crossed): Correctly top off
2875 REG_FREQ_CALLS_CROSSED.
2876
aa419a52 28772012-05-17 Jan Hubicka <jh@suse.cz>
2878
b1182707 2879 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
2880 constructor over decl without.
aa419a52 2881 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
2882 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
b1182707 2883 * cgraphunit.c (process_function_and_variable_attributes): Finalize
aa419a52 2884 extrnal decls.
b1182707 2885 (mark_functions_to_output): Also accept bodies for functions with
2886 clones.
aa419a52 2887 (output_in_order): Skip external vars.
2888 * lto-cgraph.c (lto_output_node): External functions are never in other
2889 partition.
2890 (lto_output_varpool_node): Likewise.
2891 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
2892 forgotten initializers.
2893 * ipa.c (process_references): Handle external vars.
2894 (symtab_remove_unreachable_nodes): Update to handle external vars.
2895 (varpool_externally_visible_p): External vars are externally visible.
2896 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2897 * varpool.c (varpool_remove_node): Remove constructor.
2898 (decide_is_variable_needed): Handle externals.
2899 (varpool_remove_unreferenced_decls): Likewise.
2900
db490cb6 29012012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2902
2903 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
2904 (enable_warning_as_error): Do not special case Wuninitialized.
2905 * optc-gen.awk: Add sanity checks.
2906
a7847fbd 29072012-05-17 Jan Hubicka <jh@suse.cz>
2908
2909 * ipa-reference.c (is_proper_for_analysis): Do not check flags
2910 that might change as result of global optimization.
2911 (analyze_function): Do not check analyzed and externally_visible
2912 flags; be happy about address dereferences.
2913 (propagate): Prune all_module_statics so it really contains just
2914 statics; prune all the local summaries.
2915 (ipa_reference_write_optimization_summary): Simplify.
2916
54418b27 29172012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
2918
b1182707 2919 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
54418b27 2920 * config/m68k/m68k-tables.opt: Regenerated.
2921 * doc/invoke.texi (M680x0 Options): Document.
2922
2670559d 29232012-05-16 Dave Boutcher <daveboutcher@gmail.com>
2924 Patrick Marlier <patrick.marlier@gmail.com>
2925
2926 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
2927 indirect calls.
2928
b4b3bbba 29292012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2930
2931 * configure: Regenerated.
2932
1eaedae6 29332012-05-16 Andrew Pinski <apinski@cavium.com>
2934
2935 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
2936 GIMPLE_ASSIGN.
2937
ad35ffdc 29382012-05-16 David S. Miller <davem@davemloft.net>
2939
2940 * jump.c (delete_related_insns): If we remove a CALL, make sure
2941 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
2942
97bad265 29432012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2944
2945 PR tree-optimization/53217
2946 * tree-ssa-reassoc.c (bip_map): New static variable.
2947 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
2948 (attempt_builtin_powi): Save feeding multiplies on a stack.
2949 (reassociate_bb): Create and destroy bip_map.
2950
9281483c 29512012-05-16 Olivier Hainque <hainque@adacore.com>
2952
2953 * Makefile.in (install-no-fixedincludes): New target, former toplevel
2954 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
2955 Add comments and improve stamp preservation across the whole sequence.
2956 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
2957
cbbd431d 29582012-05-16 Richard Guenther <rguenther@suse.de>
2959
2960 * tree-inline.c (insert_init_stmt): Do not call
2961 mark_symbols_for_renaming.
2962 (setup_one_parameter): Avoid initializing unused parameters.
2963 (declare_return_variable): Properly handle DECL_BY_REFERENCE
2964 return vars in SSA form.
2965
35505f9a 29662012-05-16 Richard Guenther <rguenther@suse.de>
2967
2968 * tree-flow.h (get_virtual_var): Remove.
2969 * tree-dfa.c (get_virtual_var): Likewise.
2970
1e8cf080 29712012-05-16 Richard Guenther <rguenther@suse.de>
2972
2973 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
2974 Remove set-only bitmap of new names.
2975 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
2976 CFG hooks.
2977 * tree-flow.h (ssa_names_to_replace): Remove.
2978 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
2979
5ef4302d 29802012-05-16 Richard Guenther <rguenther@suse.de>
2981
2982 PR tree-optimization/53364
2983 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
2984 detect a view-conversion of the decl.
2985
a60f3e81 29862012-05-16 Dodji Seketeli <dodji@redhat.com>
2987
2988 PR preprocessor/7263
2989 * c-tree.h (enum c_declspec_word): Declare new enum.
2990 (struct c_declspecs::locations): New member.
2991 (declspecs_add_qual, declspecs_add_scspec)
2992 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
2993 location parameter.
2994 * c-decl.c (build_null_declspecs): Initialize the new struct
2995 c_declspecs::locations member.
2996 (declspecs_add_addrspace): Take a location parameter for the
2997 address space. Store it onto declaration specifiers.
2998 (declspecs_add_qual): Likewise, take a location parameter for the
2999 qualifier.
3000 (declspecs_add_type): Likewise, take a location parameter for the
3001 type specifier.
3002 (declspecs_add_scspec): Likewise, take a location parameter for
3003 the storage class specifier.
3004 (declspecs_add_attrs): Likewise, take a location parameter for the
3005 first attribute.
3006 (declspecs_add_alignas): Likewise, take a location parameter for
3007 the alignas token.
3008 (finish_declspecs): For diagnostics, use the location of the
3009 relevant declspec, instead of the global input_location.
3010 * c-parser.c (c_parser_parameter_declaration): Pass the precise
3011 virtual location of the declspec to the declspecs-setters.
3012 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
3013 repeatedly.
3014
e54ce707 30152012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
3016
3017 * configure.ac: Stack protector enabling for Android targets.
3018 * configure: Regenerate.
3019
f42197a5 30202012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
3021
3022 * ira.c (pseudo_move_insn): Delete.
3023 (find_moveable_pseudos): Don't set it.
3024 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
3025 the definitions of the original pseudo. Delete all of them.
3026
76303083 30272012-05-16 Olivier Hainque <hainque@adacore.com>
3028
3029 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3030 PROCESSOR_PPC8548.
3031 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
3032 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
3033 * config/rs6000/8540.md: indicate that the units/patterns apply to
3034 ppc8548 as well.
3035
3036 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
3037 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
3038 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
3039 related flags, check that what is queried is supported by the selected
3040 configuration. Rework the single/double_float and MASK_STRING resets to
3041 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
3042 costs for PROCESSOR_PPC8548 as well.
3043 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
3044 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
3045 statement instead of a sequence of ifs.
3046
3047 * config/rs6000/rs6000.h (TARGET_E500): Remove.
3048 (TARGET_NO_LWSYNC): Adjust accordingly.
3049 * config/rs6000/e500.h (TARGET_E500): Remove.
3050 (CHECK_E500_OPTIONS): Adjust accordingly.
3051 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
3052 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
3053 * config/rs6000/linuxspe.h: Likewise.
3054 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
3055 superfluous comments.
3056 * config/rs6000/e500-double.h: Remove.
3057
3058 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
3059 default to with_cpu=8548 if --enable-e500-double, and to 8540
3060 otherwise.
3061 (set misc flags section): For powerpc*|rs6000*, remove inclusion
3062 of e500-double.h for --enable-e500-double.
3063
136fa403 30642012-05-16 Olivier Hainque <hainque@adacore.com>
3065
3066 * Makefile.in (s-header-vars): Resort to -n instead of trailing
3067 -e d in sed invocation.
3068
816c3ff2 30692012-05-16 Hans-Peter Nilsson <hp@axis.com>
3070
3071 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
3072 source-code.
3073 * doc/tm.texi: Regenerate.
3074
de9d5a8c 30752012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3076
3077 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
3078
f2a4755d 30792012-05-15 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR target/53358
3082 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3083 that operands[2] is either immediate, or q_regs_operand.
3084
37ffa8fe 30852012-05-15 Richard Guenther <rguenther@suse.de>
3086
3087 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
3088 (assemble_thunk): Likewise. Manually rename and register
3089 function arguments.
3090
e7ea1c21 30912012-05-15 Richard Guenther <rguenther@suse.de>
3092
3093 PR tree-optimization/53355
3094 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
3095 by constants.
3096
d1f1c0a9 30972012-05-15 Tristan Gingold <gingold@adacore.com>
3098
b1182707 3099 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
d1f1c0a9 3100
5168aa67 31012012-05-15 Richard Guenther <rguenther@suse.de>
3102
3103 * gimple.c (gimple_set_modified): Move ...
3104 * gimple.h (gimple_set_modified): ... here.
3105
135c4579 31062012-05-15 Tristan Gingold <gingold@adacore.com>
3107
3108 * ira-color.c (move_spill_restore): Add a guard.
3109
675fed0b 31102012-05-15 Tristan Gingold <gingold@adacore.com>
3111
3112 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
3113 plus_constant.
3114
94a6770c 31152012-05-15 Eric Botcazou <ebotcazou@adacore.com>
3116
3117 * gimplify.c (gimplify_init_constructor): Do a block move for very
3118 small objects as well.
3119
e453e47c 31202012-05-15 Bernd Schmidt <bernds@codesourcery.com>
3121
3122 * ira.c (find_moveable_pseudos): Skip registers whose
3123 DF_REG_EQ_USE_COUNT is nonzero.
3124
c9bf5a0e 31252012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
3126
b1182707 3127 * doc/md.texi (fma): Define to only be applicable for single rounding.
d1f1c0a9 3128
c6dab7d2 31292012-05-14 Uros Bizjak <ubizjak@gmail.com>
3130
3131 PR target/46098
3132 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3133 generate target register for "load" class builtins.
3134
3135 Revert:
3136 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
3137
3138 PR target/46098
3139 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3140 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3141 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3142 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3143 (<sse>_movu<ssemodesuffix>): New expander.
3144 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3145 (avx_movdqu<avxmodesuffix>): New expander.
3146 (*sse2_movdqu): Rename from sse2_movdqu.
3147 (sse2_movdqu): New expander.
3148
801c4432 31492012-05-14 Marc Glisse <marc.glisse@inria.fr>
3150
3151 PR target/52607
3152 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
3153 (canonicalize_perm): ... new function.
3154 (expand_vec_perm_2vperm2f128_vshuf): New function.
3155 (ix86_expand_vec_perm_const_1): Call it.
3156
5dc7473d 31572012-05-14 Andrew Pinski <apinski@cavium.com>
3158 H.J. Lu <hongjiu.lu@intel.com>
3159 Jakub Jelinek <jakub@redhat.com>
3160
3161 PR target/53315
c6dab7d2 3162 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
5dc7473d 3163 (xbegin): Updated.
3164
f449422d 31652012-05-14 Jakub Jelinek <jakub@redhat.com>
3166
130129dd 3167 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3168 lineno 1 the same as lineno 0 before first start file directive.
3169 (optimize_macinfo_range): Likewise.
3170
f449422d 3171 * dwarf2out.c (have_macinfo): Define.
3172 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3173 attribute, don't force empty compilation unit and don't emit any
3174 .debug_macinfo/.debug_macro section if macinfo_table is empty.
3175
5a9cc803 31762012-05-14 Georg-Johann Lay <avr@gjlay.de>
3177
3178 PR target/53344
3179 * config/avr/avr.c (avr_const_address_lo16): Remove.
3180 (avr_assemble_integer): Print ".byte lo8(x)",
3181 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
b1182707 3182 .warning if 3-byte address is assembled.
5a9cc803 3183 * doc/extend.texi (AVR Named Address Spaces): Document that
3184 binutils 2.23 is needed to assemble 3-byte addresses.
3185
a9696ee9 31862012-05-14 Richard Guenther <rguenther@suse.de>
3187
3188 * tree-vect-data-refs.c (vect_setup_realignment): Remove
3189 call to mark_symbols_for_renaming.
3190 (vect_permute_load_chain): Likewise.
3191 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
3192 instead of calling mark_symbols_for_renaming.
3193 * tree-vect-stmts.c (read_vector_array): Remove call to
3194 mark_symbols_for_renaming.
3195 (write_vector_array): Likewise.
3196 (vectorizable_call): Likewise.
3197 (vectorizable_store): Likewise.
3198 (vectorizable_load): Likewise.
3199 * matrix-reorg.c (transform_allocation_sites): Likewise.
3200 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
3201 (create_expression_by_pieces): Likewise.
3202
95eb4ad3 32032012-05-14 Richard Guenther <rguenther@suse.de>
3204
3205 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
3206 of statements for renaming.
3207 (force_gimple_operand_1): Likewise, consistently for both
3208 calls to force_gimple_operand and force_gimple_operand_gsi.
3209
083152fb 32102012-05-14 Richard Guenther <rguenther@suse.de>
3211
3212 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
3213 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
3214 to update_ssa.
3215 (expand_omp_for): Likewise.
3216 (expand_omp_for_generic): Adjust conditional add to referenced vars.
3217 Use make_rename_temp for temporaries that should be rewritten into
3218 SSA form.
3219 (expand_omp_for_static_nochunk): Likewise.
3220 (expand_omp_atomic_pipeline): Likewise.
3221
506aa8fc 32222012-05-14 Richard Guenther <rguenther@suse.de>
3223
3224 PR tree-optimization/53331
3225 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
3226 strided loads.
3227 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
3228
d3b7ee7c 32292012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3230
3231 PR 53063
3232 * doc/options.texi: (LangEnabledBy): Document it.
3233 * optc-gen.awk: Handle LangEnabledBy.
3234 * opth-gen.awk: Generate declaration for lang-specific functions.
3235 * opt-read.awk: Record lang numbers.
3236 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
3237 (lang_sanitized_name): New.
3238
c8010b80 32392012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3240
3241 * attribs.c (decl_attributes): Avoid emitting a warning if
3242 ATTR_FLAG_BUILT_IN.
3243 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
3244 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
c8010b80 3245 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
3246 define a string "1".
3247 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
3248 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
3249 BUILT_IN_STRCPY): Use it for these functions.
3250 * postreload.c (reload_combine): Deal with SETs inside
3251 CALL_INSN_FUNCTION_USAGE.
3252 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
3253 Look for REG_RETURNED notes and use a cheap restore if possible.
3254 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
3255 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
3256 * ira-build.c (ira_create_allocno, create_cap_allocno,
3257 propagate_allocno_info, propagate_some_info_from_allocno,
3258 copy_info_to_removed_store_destination, ira_flattening): Handle it.
3259 * ira-lives.c (pseudo_regno_single_word_and_live_p,
3260 find_call_crossed_cheap_reg): New static functions.
3261 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
3262 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
3263 a REG_RETURNED note in that case.
3264 * ira.c (setup_reg_renumber): Change assert to allow cases where
3265 allocnos only cross calls for which they are cheap to restore.
3266 * ira-costs.c (ira_tune_allocno_costs): Compare
3267 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
3268 than 0.
3269 * reg-notes.def (REG_RETURNED): New note.
3270 * cse.c (cse_insn): Likewise.
3271 * sched-deps.c (sched_analyze_insn): Likewise.
3272 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
3273 * calls.c (decl_return_flags): New static function.
3274 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
3275 functions that return one of their arguments.
c8010b80 3276 * regcprop.c (struct kill_set_value_data): New.
3277 (kill_set_value): Interpret data as a pointer to such a struct.
3278 Do nothing if the caller wants the register to be ignored.
3279 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
3280
1c88e4bc 32812012-05-14 Richard Guenther <rguenther@suse.de>
3282
3283 PR tree-optimization/53340
3284 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
3285
a31fefa3 32862012-05-14 Richard Guenther <rguenther@suse.de>
3287
3288 * gimplify.c (gimplify_expr): Remove odd code.
3289
d9906773 32902012-05-14 Eric Botcazou <ebotcazou@adacore.com>
3291
3292 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
3293 into a PLUS_EXPR byte offset.
3294
3295 * tree-ssa-pre.c (can_value_number_call): Delete.
3296 (compute_avail): Skip all statements with side effects.
3297 <GIMPLE_CALL>: Skip calls to internal functions.
3298
3e894428 32992012-05-13 Steven Bosscher <steven@gcc.gnu.org>
3300
3301 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
3302
70059cea 33032012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3304
3305 * common.opt (Wtype-limits): Use EnabledBy.
3306
513529cd 33072012-05-13 Uros Bizjak <ubizjak@gmail.com>
3308
3309 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
3310 (pushtf splitter): Ditto.
3311 (movtf): Ditto.
3312 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
3313 (<code>tf2): Enable for TARGET_SSE.
3314 (*absnegtf2_sse): Ditto.
3315 (copysign<mode>3): Enable TFmode for TARGET_SSE.
3316 (copysign<mode>3_const): Ditto.
3317 (copysign<mode>3_var): Ditto.
3318 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
3319 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
3320 (*<code>tf3): Ditto.
3321 * config/i386/i386.c (struct builtin_description bdesc_args)
3322 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
3323 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
3324 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
3325 Emit a normal call if SSE isn't available.
3326
596112aa 33272012-05-13 Uros Bizjak <ubizjak@gmail.com>
3328
3329 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
3330 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3331 (<code><mode>3): Ditto.
3332 (*andnot<mode>3): Ditto.
3333 (*andnottf3): Ditto.
3334 (*<code><mode>3): Ditto.
3335 (<code>tf3): Ditto.
3336
4584d89f 33372012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3338
3339 * optc-gen.awk: Error instead of warning for conflicting help.
3340
cc6e6715 33412012-05-12 Jason Merrill <jason@redhat.com>
3342
3343 PR debug/53235
3344 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
3345 comdat types.
3346
ec3aa8fe 33472012-05-12 Eric Botcazou <ebotcazou@adacore.com>
3348
3349 * function.c (requires_stack_frame_p): If the function can throw
3350 non-call exceptions, return true if the insn can throw internally.
3351
05765a91 33522012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
3353
3354 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
3355
c4d3c065 33562012-05-12 Uros Bizjak <ubizjak@gmail.com>
3357
3358 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3359 ORDERED and UNORDERED conditions.
3360
0de7f8dd 33612012-05-11 Richard Guenther <rguenther@suse.de>
3362
3363 * tree-flow.h (referenced_var_check_and_insert): Remove.
3364 (find_new_referenced_vars): Likewise.
3365 * tree-dfa.c (referenced_var_check_and_insert): Make static.
3366 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
3367 * tree-inline.c (copy_bb): Use find_referenced_vars_in
3368 instead of find_new_referenced_vars.
3369 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3370
615091c1 33712012-05-11 Richard Guenther <rguenther@suse.de>
3372
3373 * tree-pass.h (pass_rest_of_compilation,
3374 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
3375 Remove.
3376 * passes.c (pass_all_optimizations, pass_postreload,
3377 pass_all_early_optimizations): Make static.
3378 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
3379 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
3380 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
3381 (delete_tree_ssa): Do not call fini_phinodes.
3382 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
3383
fbb6fbd8 33842012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3385
3386 PR 53063
3387 * doc/options.texi (EnabledBy): Document
3388 * opts.c: Include opts.h and options.h before tm.h.
3389 (finish_options): Do not handle some sub-options here...
ea1760a3 3390 (common_handle_option): ... instead call common_handle_option_auto
3391 here.
fbb6fbd8 3392 * optc-gen.awk: Handle EnabledBy.
3393 * opth-gen.awk: Declare common_handle_option_auto.
3394 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
3395 (Wmaybe-uninitialized): Likewise.
c6dab7d2 3396 (Wunused-but-set-variable): Likewise.
3397 (Wunused-function): Likewise.
3398 (Wunused-label): Likewise.
3399 (Wunused-value): Likewise.
3400 (Wunused-variable): Likewise.
3401 * opt-read.awk: Create opt_numbers array.
fbb6fbd8 3402
f634c3e9 34032012-05-11 Richard Guenther <rguenther@suse.de>
3404
3405 PR tree-optimization/53295
3406 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
3407 strides.
3408 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
3409 strides when analyzing data-references in a loop context.
3410 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
3411 non-constant strides for now.
3412 (vect_enhance_data_refs_alignment): Ignore data references
3413 that are strided loads.
3414 (vect_analyze_data_ref_access): Handle non-constant strides.
3415 (vect_check_strided_load): Verify the data-reference is a load.
3416 (vect_analyze_data_refs): Restructure to make strided load
3417 support not dependent on gather support.
3418 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
3419 when doing strided or gather loads.
3420 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
3421 integer_zerop to compare stride with zero.
3422
91af12fe 34232012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3424
596112aa 3425 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
91af12fe 3426
015a842e 34272012-05-11 Jan Hubicka <jh@suse.cz>
3428
3429 PR bootstrap/53300
3430 * varpool.c (varpool_assemble_decl): Also output constat pool entries
3431 that output_constant_pool missed.
3432
b87e70ca 34332012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
3434
3435 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
3436 MULTILIB_EXTRA_OPTS.
3437
2b26d531 34382012-05-11 Uros Bizjak <ubizjak@gmail.com>
3439
3440 PR target/53291
3441 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
3442
7c93cdac 34432012-05-11 Uros Bizjak <ubizjak@gmail.com>
3444
3445 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
3446 optimization for TARGET_AVX.
3447 (*movti_internal_sse): Ditto.
3448 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3449 (*movdi_internal): Ditto.
3450 (*movsi_internal): Ditto.
3451 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
3452 (*movdf_internal_rex64): Ditto.
3453 (*movfd_internal): Ditto.
3454 (*movsf_internal): Ditto.
3455 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
3456
670b32ab 34572012-05-10 Eric Botcazou <ebotcazou@adacore.com>
3458
3459 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
3460 reference as size attribute.
3461
28d5c3d9 34622012-05-10 Eric Botcazou <ebotcazou@adacore.com>
3463 Tristan Gingold <gingold@adacore.com>
3464
3465 * doc/md.texi (Standard Names): Document probe_stack_address.
3466 * explow.c (emit_stack_probe): Handle probe_stack_address.
3467 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
3468 (UNSPECV_PROBE_STACK_RANGE): Likewise.
3469 (probe_stack_address): New insn.
3470 (probe_stack_range): Likewise.
3471 * config/ia64/ia64.c: Include common/common-target.h.
3472 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
3473 checking is enabled.
3474 (ia64_emit_probe_stack_range): New function.
3475 (output_probe_stack_range): Likewise.
3476 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
3477 builtin stack checking is enabled.
3478 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
3479 and UNSPECV_PROBE_STACK_ADDRESS.
3480 (unknown_for_bundling_p): New predicate.
3481 (group_barrier_needed): Use important_for_bundling_p.
3482 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
3483 (issue_nops_and_insn): Likewise.
3484 (bundling): Likewise.
3485 (final_emit_insn_group_barriers): Likewise.
3486 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
3487 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
3488 (STACK_CHECK_PROTECT): Likewise.
3489 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3490
e8e650cf 34912012-05-10 Jan Hubicka <jh@suse.cz>
3492
3493 * ipa-inline.c (update_all_callee_keys): Remove.
3494 (inline_small_functions): Simplify priority updating.
3495
303c3a7d 34962012-05-10 Jan Hubicka <jh@suse.cz>
3497
3498 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
3499
91f0ab48 35002012-05-10 Jan Hubicka <jh@suse.cz>
3501
3502 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
3503 (symtab_remove_unreachable_nodes): ... this one.
3504 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
3505 * cgraphunit.c (ipa_passes): Update.
3506 * cgraphclones.c (cgraph_materialize_all_clones): Update.
3507 * cgraph.c (cgraph_release_function_body): Only turn initial
3508 into error mark when initial was previously set.
3509 * ipa-inline.c (ipa_inline): Update.
3510 * ipa.c: Include ipa-inline.h
3511 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
3512 (enqueue_node): New function.
3513 (process_references): Update.
3514 (symtab_remove_unreachable_nodes): Cleanup.
3515 * passes.c (execute_todo, execute_one_pass): Update.
3516
b105f58b 35172012-05-10 Vladimir Makarov <vmakarov@redhat.com>
3518
3519 PR rtl-optimization/53125
0399122b 3520 * ira.c (ira): Call find_moveable_pseudos and
b105f58b 3521 move_unallocated_pseudos if only ira_conflicts_p is true.
3522
dab25421 35232012-05-10 Uros Bizjak <ubizjak@gmail.com>
3524
3525 * config/i386/i386.md (*movoi_internal_avx): Handle
3526 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
3527 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3528 (*movti_internal_sse): Ditto.
3529 (*movtf_internal): Ditto.
3530 * config/i386/sse.md (ssePSmode): New mode attribute.
3531 (*move<mode>_internal): Use ssePSmode.
3532 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
3533 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
3534 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
3535 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
3536
72e1426b 35372012-05-10 Eric Botcazou <ebotcazou@adacore.com>
3538
3539 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
3540 DECL_ORIGINAL_TYPE if it is present.
3541
56828342 35422012-05-10 Nick Clifton <nickc@redhat.com>
3543
3544 PR target/53120
3545 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
3546 a "0" constraint to being a (match_dup 0).
3547
dcb06804 35482012-05-10 Richard Guenther <rguenther@suse.de>
3549
3550 * stor-layout.c (byte_from_pos): Amend comment.
3551
98c9b52b 35522012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3553
3554 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
3555 Document requirement to call in constructors.
3556
dab25421 3557 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
98c9b52b 3558
5a1fe2db 35592012-05-10 Richard Guenther <rguenther@suse.de>
3560
3561 * tree.h (TYPE_IS_SIZETYPE): Remove.
3562 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
3563 (extract_muldiv_1): Likewise.
3564 * gimple.c (gtc_visit): Likewise.
3565 (gimple_types_compatible_p): Likewise.
3566 (iterative_hash_canonical_type): Likewise.
3567 (gimple_canonical_types_compatible_p): Likewise.
3568 * gimplify.c (gimplify_one_sizepos): Likewise.
3569 * print-tree.c (print_node): Likewise.
3570 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
3571
72b48d28 35722012-05-09 Uros Bizjak <ubizjak@gmail.com>
3573
3574 PR target/52908
3575 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
3576 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
3577 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
3578 instead of xop_mulv2div2di3_low.
3579 (xop_p<macs>dql): Fix vec_select selector.
3580 (xop_p<macs>dqh): Ditto.
3581 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
3582 (xop_mulv2div2di3_high): Ditto.
3583
d834564a 35842012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3585
3586 PR c++/53289
3587 * diagnostic.h (diagnostic_context): Add last_location.
3588 * diagnostic.c (diagnostic_initialize): Initialize it.
3589 (diagnostic_show_locus): Use it.
3590
fd0ccb39 35912012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3592
c6dab7d2 3593 * doc/extend.texi (Function Attributes): Point xref to section
fd0ccb39 3594 about Pragmas.
3595
f2dce612 35962012-05-09 Uros Bizjak <ubizjak@gmail.com>
3597
3598 * config/i386/i386.c (*movdf_internal_rex64): Remove
3599 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
3600 Calculate "mode" attribute according to
3601 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
3602 (*movdf_internal): Ditto.
3603
034788fc 36042012-05-09 Uros Bizjak <ubizjak@gmail.com>
3605
3606 PR target/44141
3607 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
3608 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
3609 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3610 or when optimizing for size.
3611 * config/i386/sse.md (*mov<mode>_internal): Remove
3612 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
3613 Calculate "mode" attribute according to optimize_function_for_size_p
3614 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
3615 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
3616 depending on the mode of the instruction. Calculate "mode" attribute
3617 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
3618 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
3619 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
3620
ea679361 36212012-05-09 Georg-Johann Lay <avr@gjlay.de>
3622
3623 PR target/53256
3624 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
3625 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
3626 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
3627 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
3628 (expand_prologue): Move initialization of cfun->machine->is_naked,
3629 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
3630 (avr_set_current_function): ...this new static function.
3631 (TARGET_SET_CURRENT_FUNCTION): New define.
3632 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
3633 checking attributes of current_function_decl.
3634 (avr_regs_to_save): Ditto.
3635 (signal_function_p): Rename to avr_signal_function_p.
3636 (interrupt_function_p): Rename to avr_interrupt_function_p.
3637
3638 * doc/extend.texi (Function Attributes): Better explanation of
3639 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
3640 alphabetical order.
3641
8faf5d30 36422012-05-09 Michael Matz <matz@suse.de>
3643
3644 PR tree-optimization/53185
3645 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
3646 peeling when we see strided loads.
3647
1ad03cbf 36482012-05-09 Matthias Klose <doko@ubuntu.com>
3649
3650 * gcc-ar.c (main): Don't check for execute bits for the plugin.
3651
aa1572b5 36522012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3653
3654 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
3655 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
3656 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
3657 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
3658 (USE_LOAD_POST_INCREMENT): Define.
3659 (USE_LOAD_PRE_INCREMENT): Define.
3660 (USE_LOAD_POST_DECREMENT): Define.
3661 (USE_LOAD_PRE_DECREMENT): Define.
3662 (USE_STORE_PRE_DECREMENT): Define.
3663 (USE_STORE_PRE_INCREMENT): Define.
3664 (USE_STORE_POST_DECREMENT): Define.
3665 (USE_STORE_POST_INCREMENT): Define.
3666 (arm_auto_incmodes): Add enumeration.
3667 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
3668 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
3669
2f5a3c4a 36702012-05-09 Jakub Jelinek <jakub@redhat.com>
3671
3672 PR tree-optimization/53226
3673 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
3674 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
3675 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
3676 doesn't need to be revisited, look for earliest stmt with
3677 !gimple_plf (stmt, GF_PLF_1) if something changed.
3678
e5ed43a0 36792012-05-09 Terry Guo <terry.guo@arm.com>
3680
3681 * genmultilib: Update copyright dates.
3682 * doc/fragments.texi: Ditto.
3683
cec45616 36842012-05-09 Terry Guo <terry.guo@arm.com>
3685
3686 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
3687 * genmultilib (MULTILIB_REQUIRED): New.
3688 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
3689
e7430948 36902012-05-09 Richard Guenther <rguenther@suse.de>
3691
3692 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
3693 (vect_do_peeling_for_loop_bound): Likewise.
3694 (vect_do_peeling_for_alignment): Likewise.
3695 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
3696 (vect_do_peeling_for_loop_bound): Get check_profitability and
3697 threshold as parameters.
3698 (vect_do_peeling_for_alignment): Likewise.
3699 (vect_loop_versioning): Likewise.
3700 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
3701 and threshold here. Control where to put the check here.
3702
87cf5753 37032012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
3704
3705 PR middle-end/53249
3706 * dwarf2out.h (get_address_mode): Move declaration to...
3707 * rtl.h: ...here.
3708 * dwarf2out.c (get_address_mode): Move definition to...
3709 * rtlanal.c: ...here.
3710 * var-tracking.c (get_address_mode): Delete.
3711 * combine.c (find_split_point): Use get_address_mode instead of
3712 targetm.addr_space.address_mode.
3713 * cselib.c (cselib_record_sets): Likewise.
3714 * dse.c (canon_address, record_store): Likewise.
3715 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
3716 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
3717 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
3718 (expand_expr_real_1): Likewise.
3719 * ifcvt.c (noce_try_cmove_arith): Likewise.
3720 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
3721 * reload.c (find_reloads): Likewise.
3722 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
3723 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
3724
31082222 37252012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
3726
3727 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
3728 information from the instruction produced.
3729
2765f7eb 37302012-05-09 Richard Guenther <rguenther@suse.de>
3731
3732 * stor-layout.c (bit_from_pos): Document.
3733 (byte_from_pos): Likewise. Optimize.
3734 (pos_from_bit): Likewise.
3735 (normalize_offset): Use pos_from_bit instead of replicating it.
3736
11dd6494 37372012-05-09 Alan Modra <amodra@gmail.com>
3738
3739 PR target/53271
3740 * config/rs6000/rs6000.c (gen_frame_set): New function.
3741 (gen_frame_load, gen_frame_store): New functions.
3742 (rs6000_savres_rtx): Use the above.
3743 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
3744 Correct mode used for CR2 in save/restore_world patterns.
3745 Don't emit instructions for eh_return frame unwind reg info.
3746
3d1c0354 37472012-05-08 Jan Hubicka <jh@suse.cz>
3748
3749 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
3750 with VALUE_EXPR.
3751 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
3752 are removable.
3753 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
3754 need to wrapup.
3755 (compile_file): Do not output variables.
3756 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
3757 output it.
3758 * langhooks.c: Include timevar.h
3759 (write_global_declarations): Finalize compilation unit after wrapup;
3760 set timevars correctly.
3761 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
3762 not to be added to varpool.
3763 * varpool.c (varpool_assemble_decl): Sanity check that we are called
3764 only on cases where it makes sense; skip constant pool and value expr
3765 vars.
3766
a083d7d2 37672012-05-08 David S. Miller <davem@davemloft.net>
3768
3769 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
3770 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
3771 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
3772
e5d6fbb8 37732012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
3774
3775 PR rtl-optimization/53278
3776 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
3777 speed_p code from earlier patch.
3778
0e1dddb4 37792012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
3780
3781 PR target/51244
3782 * config/sh/sh.md (*branch_true, *branch_false): New insns.
3783
034788fc 37842012-05-08 Teresa Johnson <tejohnson@google.com>
4ef7becb 3785
3786 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
3787 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
3788
f41db742 37892012-05-08 Jan Hubicka <jh@suse.cz>
3790
3791 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
3792 (cgraph_create_node_1): Rename to ...
3793 (cgraph_create_empty_node): ... this one; export.
3794 (cgraph_create_node): Update.
3795 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
3796 (cgraph_create_edge_including_clones): Likewise.
3797 (cgraph_find_replacement_node): Likewise.
3798 (cgraph_clone_edge): Likewise.
3799 (cgraph_clone_node): Likewise.
3800 (clone_function_name): Likewise.
3801 (cgraph_create_virtual_clone): Likewise.
3802 (cgraph_remove_node_and_inline_clones): Likewise.
034788fc 3803 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
f41db742 3804 * cgraph.h: Reorder declarations so they match file of origin.
3805 (cgraph_create_empty_node): Declare.
3806 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
3807 (cgraph_copy_node_for_versioning): Likewise.
3808 (cgraph_function_versioning): Likewise.
3809 (cgraph_materialize_clone): Likewise.
3810 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3811 (cgraph_materialize_all_clones): Likewise.
3812 * cgraphclones.c: New file.
3813 * Makefile.in: Update for cgraphclones.
3814
473a6f3e 38152012-05-08 Uros Bizjak <ubizjak@gmail.com>
3816
d44bd47c 3817 PR target/53176
473a6f3e 3818 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
3819 (ix86_rtx_costs): Handle SET.
3820
43e94e51 38212012-05-08 Michael Matz <matz@suse.de>
3822
3823 * basic-block.h (struct rtl_bb_info): Remove visited member and
3824 move head_ member to ...
3825 (struct basic_block_def.basic_block_il_dependent): ... the new
3826 member x, replacing but containing old member rtl.
3827 (enum bb_flags): New BB_VISITED flag.
3828 (BB_HEADER, BB_FOOTER): New macros.
3829
3830 * jump.c (mark_all_labels): Adjust.
3831 * cfgcleanup.c (try_optimize_cfg): Adjust.
3832 * cfglayout.c (record_effective_endpoints): Adjust.
3833 (relink_block_chain): Ditto (and don't fiddle with visited).
3834 (fixup_reorder_chain): Adjust.
3835 (fixup_fallthru_exit_predecessor): Ditto.
3836 (cfg_layout_duplicate_bb): Ditto.
3837 * combine.c (update_cfg_for_uncondjump): Adjust.
473a6f3e 3838 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
43e94e51 3839 (bb_visited_trace): New accessor.
3840 (mark_bb_visited): Move in front.
3841 (rotate_loop): Use bb_visited_trace.
3842 (find_traces_1_round): Ditto.
3843 (emit_barrier_after): Ditto.
3844 (copy_bb): Ditto, and initialize visited on resize.
3845 (reorder_basic_blocks): Initize visited member.
3846 (duplicate_computed_gotos): Clear bb flags at start, use
3847 BB_VISITED flags.
3848
3849 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
3850 (rtl_verify_flow_info_1): Ditto.
3851 (cfg_layout_split_block): Ditto.
3852 (cfg_layout_delete_block): Ditto.
3853 (cfg_layout_merge_blocks): Ditto.
3854 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
3855
826e3285 38562012-05-08 Hans-Peter Nilsson <hp@axis.com>
3857
3858 PR target/53272
3859 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
3860 when a constant source operand matches an "I" constraint, the "no
3861 CC0 change" applies to a register-destination only, not a
3862 strict_low_part-destination.
3863
42756cae 38642012-05-08 Richard Guenther <rguenther@suse.de>
3865
3866 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
3867 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
3868
8a92b4c3 38692012-05-08 Georg-Johann Lay <avr@gjlay.de>
3870
3871 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
3872
3873 * doc/avr-mmcu.texi: New auto-generated file.
3874 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
3875 to document all valid -mmcu= arguments.
3876
3877 * config/avr/avr.h (arch_info_s): New struct definition.
3878 * config/avr/avr-devices.c (avr_texinfo): New variable.
3879 * config/avr/gen-avr-mmcu-texi.c: New file.
3880 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
3881
fd757b76 38822012-05-08 Dehao Chen <dehao@google.com>
3883
28a0c749 3884 * predict.c (find_qualified_ssa_name): New.
3885 (find_ssa_name_in_expr): New.
3886 (find_ssa_name_in_assign_stmt): New.
3887 (is_comparison_with_loop_invariant_p): New.
3888 (is_bound_expr_similar): New.
3889 (predict_iv_comparison): New.
fd757b76 3890 (predict_loops): Add heuristic for loop-nested branches that compare an
3891 induction variable to a loop bound variable.
28a0c749 3892 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
fd757b76 3893
128e3935 38942012-05-08 Uros Bizjak <ubizjak@gmail.com>
3895
3896 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
3897 TARGET_BDVER2 defines where appropriate.
3898
61f41b94 38992012-05-07 Eric Botcazou <ebotcazou@adacore.com>
3900
3901 * configure.ac (PLUGIN_LD): Rename into...
3902 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
3903 * config.in: Regenerate.
3904 * configure: Likewise.
3905 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
3906
96c3acd0 39072012-05-07 Eric Botcazou <ebotcazou@adacore.com>
3908
3909 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
3910 computation using the precision of the index type.
3911 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
3912 (fold_array_ctor_reference): Do index computations in the index type.
3913
39142012-05-07 Georg-Johann Lay <avr@gjlay.de>
b51b04ad 3915
3916 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
3917 down to plus_constant.
3918 (expand_epilogue): Ditto.
3919
98799adc 39202012-05-07 Steven Bosscher <steven@gcc.gnu.org>
3921
3922 * postreload.c (reload_cse_regs): Make static.
3923 * reload.h (reload_cse_regs): Remove prototype.
3924
7c0618c6 39252012-05-07 Richard Henderson <rth@redhat.com>
3926
3927 * config/alpha/alpha.md (clear_cache): New pattern.
3928
fe812b34 39292012-05-07 Steven Bosscher <steven@gcc.gnu.org>
3930
3931 PR middle-end/53245
3932 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
3933 is folded to a type boundary value, verify that the resulting case
3934 label is still a care range.
3935
dbfd6d04 39362012-05-07 Uros Bizjak <ubizjak@gmail.com>
3937
3938 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
3939 only for TARGET_GENERIC, when not optimizing for size.
3940 (*ffs<mode>_1): Ditto.
3941
9a9033a9 39422012-05-07 Steven Bosscher <steven@gcc.gnu.org>
3943
3944 * tree-cfg.c (verify_gimple_switch): Tighten checks.
3945
0e443ce1 39462012-05-07 Jakub Jelinek <jakub@redhat.com>
3947
3948 PR tree-optimization/53239
128e3935 3949 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
3950 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
0e443ce1 3951
29f2d4e5 39522012-05-07 Richard Guenther <rguenther@suse.de>
3953
3954 PR tree-optimization/53195
3955 * tree-inline.c (setup_one_parameter): Properly add referenced
3956 vars from the parameters new known value.
3957
f4831ba5 39582012-05-07 Steven Bosscher <steven@gcc.gnu.org>
3959
3960 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
3961 (sched_branch_type): Remove.
3962 (m68k_sched_md_init_global): Don't allocate it.
3963 (m68k_sched_md_finish_global): Don't free it.
3964 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
29f2d4e5 3965 * config/m68k/m68k.md: Set the type of insns using
3966 m68k_sched_branch_type to bcc directly.
f4831ba5 3967
db66903a 39682012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3969
3970 * config/sol2.c (solaris_override_options): New function.
3971 * config/sol2-protos.h (solaris_override_options): Declare.
3972 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
3973
b920ee38 39742012-05-07 Richard Guenther <rguenther@suse.de>
3975
3976 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
3977 whether we failed to compute data dependences.
3978 (loop_prefetch_arrays): Fail if we failed.
3979
f1cb261b 39802012-05-07 Uros Bizjak <ubizjak@gmail.com>
3981 Paolo Bonzini <bonzini@gnu.org>
3982
3983 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
3984 Emit bsf when optimizing for size.
3985 (*ffs<mode>_1): Ditto.
3986
a846db2c 39872012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
3988
3989 PR target/53250
3990 * config/sh/sh.c (sh_rtx_costs): Handle SET.
3991
ead6176b 39922012-05-06 Uros Bizjak <ubizjak@gmail.com>
3993
3994 PR target/53227
3995 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
3996 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
3997 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
3998 (bswapsi2): Ditto.
3999 (*bswapdi2_doubleword): New insn pattern.
4000 (*bswap<mode>2): Rename from *bswap<mode>2_1.
4001
37bdfd8a 40022012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
4003
4004 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
4005 (mips_set_reg_reg_cost): Likewise.
4006 (mips_rtx_costs): Handle SET.
4007
a6d935b7 40082012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
4009
4010 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
4011 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
4012 to compute the cost of moves. Set the mode of the target register.
4013
29c05e22 40142012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
4015
4016 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
4017 plus_constant function.
4018 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
4019 that the mode is sensible.
4020 (use_anchored_address, round_push, allocate_dynamic_stack_space)
4021 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
4022 plus_constant.
4023
4024 * alias.c (canon_rtx): Likewise.
4025 (init_alias_analysis): Likewise.
4026 * builtins.c (expand_builtin_return_addr)
4027 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
4028 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
4029 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
4030 (expand_builtin_stpcpy): Likewise.
4031 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
4032 (compute_argument_addresses, internal_arg_pointer_based_exp)
4033 (expand_call, emit_library_call_value_1): Likewise.
4034 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
4035 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
4036 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
4037 * cse.c (insert_const_anchor, find_reg_offset_for_const)
4038 (use_related_value, fold_rtx): Likewise.
4039 * cselib.c (cselib_subst_to_values): Likewise.
4040 * dse.c (record_store, check_mem_read_rtx): Likewise.
4041 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
4042 * emit-rtl.c (adjust_address_1): Likewise.
4043 * except.c (sjlj_emit_function_enter)
4044 (expand_builtin_extract_return_addr)
4045 (expand_builtin_frob_return_addr): Likewise.
4046 * expmed.c (expand_divmod): Likewise.
4047 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
4048 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
4049 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
4050 * function.c (assign_stack_local_1)
4051 (instantiate_virtual_regs_in_rtx): Likewise.
4052 * optabs.c (prepare_cmp_insn): Likewise.
4053 * recog.c (offsettable_address_addr_space_p): Likewise.
4054 * reload.c (find_reloads_address, form_sum)
4055 (find_reloads_subreg_address): Likewise.
4056 * reload1.c (init_reload, eliminate_regs_1)
4057 (eliminate_regs_in_insn): Likewise.
4058 * simplify-rtx.c (simplify_unary_operation_1)
4059 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
4060 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
4061 (vt_add_function_parameter): Likewise.
4062
4063 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
4064 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
4065 * config/alpha/alpha.c (alpha_legitimize_address_1)
4066 (get_unaligned_address, alpha_expand_unaligned_load)
4067 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
4068 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
4069 (alpha_expand_builtin_establish_vms_condition_handler)
4070 (alpha_setup_incoming_varargs, emit_frame_store_1)
4071 (alpha_expand_prologue, alpha_expand_epilogue)
4072 (alpha_use_linkage): Likewise.
4073 * config/alpha/alpha.md: Likewise.
4074
4075 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
4076 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
4077 (thumb_legitimize_address, arm_gen_load_multiple_1)
4078 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
4079 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
4080 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
4081 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
4082 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
4083 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
4084 (thumb_expand_movmemqi, arm_set_return_address)
4085 (thumb_set_return_address): Likewise.
4086 * config/arm/arm.md: Likewise.
4087
4088 * config/avr/avr.c (avr_incoming_return_addr_rtx)
4089 (avr_prologue_setup_frame, expand_epilogue)
4090 (avr_const_address_lo16): Likewise.
4091
4092 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
4093 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
4094 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
4095 (bfin_output_mi_thunk): Likewise.
4096
4097 * config/c6x/c6x.c (c6x_initialize_trampoline)
4098 (c6x_output_mi_thunk): Likewise.
4099
4100 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
4101 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
4102
4103 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
4104 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
4105 (cris_emit_movem_store, cris_trampoline_init): Likewise.
4106 * config/cris/cris.md: Likewise.
4107
4108 * config/darwin.c (machopic_indirect_data_reference)
4109 (machopic_legitimize_pic_address): Likewise.
4110
4111 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
4112 (epiphany_expand_prologue, epiphany_expand_epilogue)
4113 (epiphany_trampoline_init): Likewise.
4114 * config/epiphany/epiphany.md: Likewise.
4115
4116 * config/fr30/fr30.c (fr30_move_double): Likewise.
4117
4118 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
4119 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
4120 (frv_index_memory, unspec_got_name, frv_find_base_term)
4121 (frv_output_dwarf_dtprel): Likewise.
4122
4123 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
4124 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
4125
4126 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
4127 * config/i386/i386.c (setup_incoming_varargs_64)
4128 (setup_incoming_varargs_ms_64, choose_baseaddr)
4129 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
4130 (ix86_emit_probe_stack_range, ix86_expand_prologue)
4131 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
4132 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
4133 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
4134 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
4135 (x86_output_mi_thunk): Likewise.
4136 * config/i386/i386.md: Likewise.
4137
4138 * config/ia64/ia64.c (ia64_expand_load_address)
4139 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
4140 (do_spill, ia64_trampoline_init): Likewise.
4141
4142 * config/iq2000/iq2000.c (iq2000_va_start)
4143 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
4144 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
4145 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
4146
4147 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4148
4149 * config/m32c/m32c.c (m32c_return_addr_rtx)
4150 (m32c_expand_insv): Likewise.
4151
4152 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
4153 (m32r_legitimize_pic_address, m32r_print_operand)
4154 (m32r_print_operand_address): Likewise.
4155
4156 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
4157 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
4158 (EH_RETURN_HANDLER_RTX): Likewise.
4159 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
4160 (m68k_expand_epilogue, legitimize_pic_address)
4161 (m68k_output_mi_thunk): Likewise.
4162 * config/m68k/m68k.md: Likewise.
4163
4164 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4165 (mcore_expand_epilog): Likewise.
4166 * config/mcore/mcore.md: Likewise.
4167
4168 * config/mep/mep.c (mep_allocate_initial_value)
4169 (mep_expand_prologue, mep_expand_epilogue): Likewise.
4170
4171 * config/microblaze/microblaze.c (double_memory_operand)
4172 (microblaze_block_move_loop): Likewise.
4173
4174 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
4175 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
4176 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
4177 (mips_expand_prologue, mips_epilogue_set_cfa)
4178 (mips_expand_epilogue): Likewise.
4179 * config/mips/mips.md: Likewise.
4180
4181 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
4182 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
4183
4184 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
4185 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
4186
4187 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4188 (EH_RETURN_HANDLER_RTX): Likewise.
4189 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4190
4191 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
4192 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
4193 (pa_return_addr_rtx, hppa_builtin_saveregs)
4194 (pa_trampoline_init): Likewise.
4195 * config/pa/pa.md: Likewise.
4196
4197 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
4198
4199 * config/picochip/picochip.c (picochip_static_chain): Likewise.
4200
4201 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
4202 * config/rs6000/rs6000.c (rs6000_legitimize_address)
4203 (setup_incoming_varargs, print_operand, rs6000_return_addr)
4204 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
4205 (rs6000_emit_epilogue)
4206 (rs6000_machopic_legitimize_pic_address): Likewise.
4207
4208 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
4209
4210 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
4211 (DYNAMIC_CHAIN_ADDRESS): Likewise.
4212 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
4213 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
4214 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
4215 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
4216 (s390_emit_epilogue, s390_function_profiler): Likewise.
4217 * config/s390/s390.md: Likewise.
4218
4219 * config/score/score.c (score_add_offset, score_prologue): Likewise.
4220
4221 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
4222 (sh_output_mi_thunk): Likewise.
4223 * config/sh/sh.md: Likewise.
4224
4225 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
4226 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
4227 * config/sparc/sparc.c (sparc_legitimize_pic_address)
4228 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
4229 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
4230 (emit_and_preserve): Likewise.
4231 * config/sparc/sparc.md: Likewise.
4232
4233 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4234 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
4235 (spu_setup_incoming_varargs, ea_load_store_inline)
4236 (spu_expand_load): Likewise.
4237
4238 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
4239 (combine_bnp): Likewise.
4240
4241 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4242 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
4243 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
4244
4245 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4246 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
4247 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
4248
4249 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
4250 * config/v850/v850.md: Likewise.
4251
4252 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
4253 (EH_RETURN_HANDLER_RTX): Likewise.
4254 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
4255 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
4256 (print_operand_address, vax_trampoline_init): Likewise.
4257
4258 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
4259 (xtensa_function_value_regno_p): Likewise.
4260
c909ed33 42612012-05-04 Andrew Pinski <apinski@cavium.com>
4262
4263 * expr.c (get_def_for_expr_class): New function.
4264 (convert_tree_comp_to_rtx): New function.
4265 (expand_cond_expr_using_cmove): New function.
4266 (expand_expr_real_2 <case COND_EXPR>): Call
4267 expand_cond_expr_using_cmove first and return if it succeeds.
4268 Remove the check for HAVE_conditional_move since we should have
4269 already converted it to a conditional move.
4270 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
4271 modes of DImode for 32bits and TImode.
4272
73ed0c67 42732012-05-04 Steven Bosscher <steven@gcc.gnu.org>
4274
4275 PR other/29442
4276 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
4277 (print_md_ptr_loc, print_c_condition): Use them.
4278 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
4279 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
4280 attr_file, dfa_file, latency_file): New global variables.
4281 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
4282 write_upcase, write_indent, write_length_unit_log, write_test_expr,
4283 write_attr_get, write_insn_cases, write_eligible_delay,
4284 write_const_num_delay_slots): Accept FILE pointer and toss it around.
4285 Update all callers.
4286 (write_header, open_outfile, handle_arg): New funcions.
4287 (make_automaton_attrs): Write prototypes as extern to the output
4288 files.
4289 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
4290 names from the command line. Open the output files and write out
4291 internal functions for DFA functions to dfa_file_name, insn latency
4292 functions to latency_file_name, and everything else to attr_file.
4293 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
4294 (BACKEND): Build libbackend first.
4295 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
4296 (.PRECIOUS): Likewise.
4297 (insn-dfatab.o): New rule.
4298 (insn-latencytab.o): New rule.
4299 (simple_rtl_generated_c): Do not include insn-attrtab.c.
4300 (s-attrtab): New rule.
4301
6a8f5c57 43022012-05-04 Steven Bosscher <steven@gcc.gnu.org>
4303
4304 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
4305 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
4306 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
4307 * reorg.c (get_jump_flags): Do not set the removed flags.
4308
a2159ce7 4309 * doc/md.texi (attr_flag): Update for abovementioned changes.
4310
91fcc716 43112012-05-04 Uros Bizjak <ubizjak@gmail.com>
4312
4313 PR target/53228
4314 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
4315 (TARGET_CMOV): Rename from TARGET_CMOVE.
4316 (TARGET_CMOVE): New define.
4317 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
4318 Do not set TARGET_CMOVE here.
4319
e163935c 43202012-05-04 Dodji Seketeli <dodji@redhat.com>
4321
4322 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
4323 * opts.c (finish_options): Activate -Wunused-local-typedefs if
034788fc 4324 -Wunused is activated.
e163935c 4325 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
4326
c4ded1f6 43272012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4328
4329 * config/s390/s390.md (*movmem_short, *clrmem_short)
4330 (*cmpmem_short): Move the mode check from the insn condition to
4331 the match_scratch.
4332
da5b41a4 43332012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4334
4335 PR tree-optimization/52633
4336 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
4337 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
4338 (vect_recog_over_widening_pattern): Remove handling of code that was
4339 already detected as over-widening pattern. Remove special handling
4340 of "unsigned" cases. Instead, support general case of conversion
4341 of the shift result to another type.
4342
019bbf38 43432012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4344
4345 * tree-vect-patterns.c (vect_single_imm_use): New function.
4346 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
4347 (vect_recog_over_widening_pattern): Likewise.
4348 (vect_recog_widen_shift_pattern): Likewise.
4349
33f33894 43502012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4351
4352 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
4353 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
4354 (vect_recog_widen_mult_pattern): Likewise.
4355 (vect_operation_fits_smaller_type): Likewise.
4356 (vect_recog_over_widening_pattern): Likewise.
4357 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
4358
940a2ab8 43592012-05-04 Richard Guenther <rguenther@suse.de>
4360
4361 PR lto/50602
4362 * lto-wrapper.c (merge_and_complain): Complain about mismatches
4363 of -freg-struct-return and -fpcc-struct-return.
4364 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
4365 from the input file options and ignore those from the link
4366 command line.
4367
147d14aa 43682012-05-04 Richard Guenther <rguenther@suse.de>
4369
4370 PR tree-optimization/53168
4371 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
4372 memory reads when the result is a constant we can pun.
4373
596c40fb 43742012-05-04 Richard Guenther <rguenther@suse.de>
4375
4376 * common.opt (flto-report): Do not mark as Optimization.
4377
50b58916 43782012-05-04 Eric Botcazou <ebotcazou@adacore.com>
4379
4380 PR target/48496
4381 * recog.c (constrain_operands): If extra constraints are present, also
4382 accept pseudo-registers with equivalent memory locations during reload.
4383
2b98e22b 43842012-05-04 Olivier Hainque <hainque@adacore.com>
4385
4386 * collect2.c (may_unlink_output_file): New global.
4387 (maybe_unlink): Honor it.
4388 * collect2.h: Add extern for it.
4389 * tlink.c (do_tlink): Set it to true if the link succeeded.
4390
e2efe9af 43912012-05-04 Olivier Hainque <hainque@adacore.com>
4392
4393 * gcc.c (eval_spec_function): Finalize/restore the current string
4394 obstack state as part of the context push/pop operations.
4395
38d947b0 43962012-05-04 Bin Cheng <bin.cheng@arm.com>
4397
4398 PR rtl-optimization/52804
4399 * reload1.c (reload_reg_reaches_end_p): Check whether successor
4400 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
4401 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
4402 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
4403 RELOAD_FOR_OUTADDR_ADDRESS.
4404
bef475de 44052012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4406
4407 PR c++/24985
4408 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
4409 for macro expansion.
4410
bba5a206 44112012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4412
4413 * flags.h (flag_permissive): Do not declare.
4414 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
4415 option specially.
4416 * toplev.c (flag_permissive): Do not define.
4417 * c-tree.h (system_header_p): Delete unused.
4418
beaca8bb 44192012-05-03 David S. Miller <davem@davemloft.net>
4420
4421 PR target/52684
4422 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
4423 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
4424 (sparc_emit_float_lib_cmp): Likewise.
4425
0b10390a 44262012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4427
4428 PR target/53199
4429 * config/rs6000/rs6000.md (bswapdi splitters): If
4430 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
4431 default) is used, generate an alternate sequence that does not
4432 depend on using indexed addressing.
4433
84879dd0 44342012-05-03 Jason Merrill <jason@redhat.com>
4435
4436 * gengtype.c (write_types): Fix warning message.
4437 (write_local): Likewise.
4438
23c98701 44392012-05-02 Jason Merrill <jason@redhat.com>
4440
4441 * dwarf2out.c (struct external_ref, build_local_stub): New.
4442 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
4443 (optimize_external_refs, optimize_external_refs_1): New.
4444 (change_AT_die_ref): New.
4445 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
4446 (build_abbrev_table): Take the external refs hashtable.
4447 (output_comp_unit): Get it from optimize_external_refs and pass it in.
4448
22fe6d2a 44492012-05-03 Jan Hubicka <jh@suse.cz>
4450
4451 PR middle-end/53093
4452 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
4453
cab51373 44542012-05-03 Jan Hubicka <jh@suse.cz>
4455
4456 PR middle-end/53106
4457 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
4458
039c4ce6 44592012-05-03 Jason Merrill <jason@redhat.com>
4460
4461 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
4462 use_debug_types to discriminate the die_id union.
4463 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
4464 (build_abbrev_table, output_die): Likewise.
4465 (prune_unused_types_walk_attribs): Likewise.
4466 (generate_type_signature, copy_declaration_context): Set it.
4467 (remove_child_or_replace_with_skeleton): Set it.
4468 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
4469 check use_debug_types.
4470 (dwarf2out_finish): Do break_out_includes after .debug_types.
4471
7fc5078f 44722012-05-03 Jason Merrill <jason@redhat.com>
4473
4474 * dwarf2out.c (modified_type_die): Use scope_die_for.
4475 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
4476 (uses_local_type_r, uses_local_type): New.
4477 (scope_die_for): Keep a type that uses a local type in local scope.
4478 Use get_context_die for namespace and type scope.
4479
d03a2c79 44802012-05-03 Jason Merrill <jason@redhat.com>
4481
4482 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
4483 pc thunk.
4484 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
4485 (dwarf2out_finish): Likewise.
4486
ceea063b 44872012-05-03 Martin Jambor <mjambor@suse.cz>
4488
4489 * builtins.c (get_object_alignment_1): Return whether we can determine
4490 the alignment or conservatively assume byte alignment. Return the
4491 alignment by reference. Use get_pointer_alignment_1 for dereference
4492 alignment.
4493 (get_pointer_alignment_1): Return whether we can determine the
4494 alignment or conservatively assume byte alignment. Return the
4495 alignment by reference. Use get_ptr_info_alignment to get SSA name
4496 alignment.
4497 (get_object_alignment): Update call to get_object_alignment_1.
4498 (get_object_or_type_alignment): Likewise, fall back to type alignment
4499 only when it returned false.
4500 (get_pointer_alignment): Update call to get_pointer_alignment_1.
4501 * fold-const.c (get_pointer_modulus_and_residue): Update call to
4502 get_object_alignment_1.
4503 * ipa-prop.c (ipa_modify_call_arguments): Update call to
4504 get_pointer_alignment_1.
4505 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
4506 of MEM_REF or TARGET_MEM_REF only when it returns false.
4507 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
4508 get_object_alignment_1.
4509 (ccp_finalize): Use set_ptr_info_alignment.
4510 * tree.h (get_object_alignment_1): Update declaration.
4511 (get_pointer_alignment_1): Likewise.
4512 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
4513 (dump_gimple_stmt): Likewise.
4514 * tree-flow.h (ptr_info_def): Updated comments of fields align and
4515 misalign.
4516 (get_ptr_info_alignment): Declared.
4517 (mark_ptr_info_alignment_unknown): Likewise.
4518 (set_ptr_info_alignment): Likewise.
4519 (adjust_ptr_info_misalignment): Likewise.
4520 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
4521 and set alignment of SSA names.
4522 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
4523 mark_ptr_info_alignment_unknown.
4524 * tree-ssanames.c (get_ptr_info_alignment): New function.
4525 (mark_ptr_info_alignment_unknown): Likewise.
4526 (set_ptr_info_alignment): Likewise.
4527 (adjust_ptr_info_misalignment): Likewise.
4528 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
4529 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4530 Likewise.
4531 (bump_vector_ptr): Likewise.
4532 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
4533 (vectorizable_store): Likewise.
4534 (vectorizable_load): Likewise.
4535
924c4c71 45362012-05-03 Michael Matz <matz@suse.de>
4537
4538 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
4539 in front of basic_block_def.
4540 (struct basic_block_def): Make il.gimple the full struct, not a
4541 pointer.
4542 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
4543
91fcc716 4544 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
924c4c71 4545 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
4546 NULL il.gimple, which can't happen anymore.
4547 * gimple.h (bb_seq): il.gimple can't be NULL.
4548 (bb_seq_add): Ditto.
4549 (set_bb_seq): Adjust.
4550 (gsi_start_bb, gsi_last_bb): Tidy.
4551 * lto-streamer-in.c (make_new_block): Don't zero members that
4552 are zeroed already, don't allocate a gimple_bb_info.
4553 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
4554 (remove_bb): Clear all il.gimple members.
4555 (gimple_verify_flow_info): Adjust for flat il.gimple.
4556 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
4557
4558 * coretypes.h (const_gimple_seq): Remove typedef.
4559 * gimple.h (gimple_seq_first): Take gimple_seq.
4560 (gimple_seq_first_stmt): Ditto.
4561 (gimple_seq_last): Ditto.
4562 (gimple_seq_last_stmt): Ditto.
4563 (gimple_seq_empty_p): Ditto.
4564
1ef2db75 45652012-05-03 Richard Guenther <rguenther@suse.de>
4566
4567 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
4568 operations.
91fcc716 4569 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
1ef2db75 4570 (compute_avail): Do not add possibly trapping operations to
4571 EXP_GEN if they might not be executed in the block.
4572
e2f2054f 45732012-05-03 Uros Bizjak <ubizjak@gmail.com>
4574
4575 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
4576
6da0d726 45772012-05-03 Steven Bosscher <steven@gcc.gnu.org>
4578
4579 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
4580 information as early as possible. Update dominance info instead of
4581 discarding it.
4582
8974b15d 45832012-05-03 Richard Guenther <rguenther@suse.de>
4584
4585 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
4586 (union_contains_value): Remove.
4587 (vro_valid_in_sets): Likewise.
4588 (op_valid_in_sets): New function.
4589 (valid_in_sets): Use op_valid_in_sets.
4590 (insert_into_preds_of_block): Move dumping ...
4591 (do_regular_insertion): ... here.
4592 (do_partial_partial_insertion): ... and here. Dump that
4593 we've found a partial partial redundancy.
4594 (insert): Dump the current insert iteration.
4595
691c047f 45962012-05-03 Jakub Jelinek <jakub@redhat.com>
4597
2bccd0d3 4598 PR plugins/53126
4599 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
4600 append program name to it and pass that as first argument
4601 to make_relative_prefix. Always pass standard_libexec_prefix
4602 as last argument to make_relative_prefix. If
4603 make_relative_prefix returns NULL, fall back to
4604 standard_libexec_prefix.
4605
b6d5efe6 4606 PR debug/53174
4607 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
4608 removed.
4609
c4a8eb0a 4610 PR target/53187
4611 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
4612 mode, return that mode.
4613
691c047f 4614 PR target/53194
4615 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
4616 define __ATOMIC_HLE_* macros here.
4617 (ix86_target_macros): But here, using cpp_define_formatted.
4618
a4f94d42 46192012-05-03 Richard Guenther <rguenther@suse.de>
4620
4621 PR tree-optimization/53144
4622 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
4623 Rename to ...
4624 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
4625 with SSA name values.
4626 (vn_reference_lookup_3): Adjust callers.
4627
fb0e6fe3 46282012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4629
4630 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
4631 has_fma4 for AMD processors with both fma3 and fma4 support.
4632
c79c9a8d 46332012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
4634
4635 PR target/53201
4636 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
4637 "-mno-hle".
4638
3222e348 46392012-05-03 Michael Matz <matz@suse.de>
4640
4641 PR bootstrap/53197
e2f2054f 4642 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
3222e348 4643 (dse_enter_block): Properly iterate the whole sequence even
4644 if the last statement was removed.
4645
9fbba7ae 46462012-05-02 Steven Bosscher <steven@gcc.gnu.org>
4647
4648 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
4649 unset flag_jump_tables.
4650 * stmt.c (expand_case): Remove special flag_pic case conditional
4651 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
4652
e9f1fe86 46532012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4654
4655 * common/config/s390/s390-common.c (s390_option_optimization_table):
4656 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
4657 default when optimizing.
4658
ad5f1481 46592012-05-02 Martin Jambor <mjambor@suse.cz>
4660
4661 PR lto/52605
4662 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
4663 of a variable when the contect is a function.
4664
e3a19533 46652012-05-02 Michael Matz <matz@suse.de>
4666
4667 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
4668 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
4669 (const_gimple_seq_node): Remove.
4670 (gimple_seq_node): Typedef as gimple.
4671 (struct gimple_statement_base): Add next and prev members,
4672 adjust all WORD markers in using structs.
4673 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
4674 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
4675 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
4676 gimple are the same.
4677 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
4678 gimple_seq, adjust.
4679 (gimple_init_singleton): New function.
4680 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
4681 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
4682 (gsi_stmt): Adjust.
4683 (gsi_stmt_ptr): Remove.
4684 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
4685
4686 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
4687 again, adjust for above changes.
4688 (update_call_edge_frequencies): Adjust for above changes.
4689 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
4690 (gsi_insert_seq_nodes_after): Ditto.
4691 (gsi_split_seq_after): Ditto.
4692 (gsi_set_stmt): Ditto.
4693 (gsi_split_seq_before): Ditto.
4694 (gsi_remove): Ditto.
4695 (gsi_insert_seq_before_without_update): Don't free sequence.
4696 (gsi_insert_seq_after_without_update): Ditto.
4697 (gsi_replace): Assert some more invariants.
4698 (gsi_insert_before_without_update, gsi_insert_after_without_update):
4699 Tidy.
4700 (gsi_for_stmt): Don't search for stmt.
4701 (gsi_insert_on_edge_immediate): Tidy.
4702
4703 * gimple.c (gimple_alloc_k): Remove "sequences".
4704 (gimple_seq_cache): Remove.
4705 (gimple_alloc_stat): Make stmt a singleton sequence.
4706 (gimple_seq_alloc, gimple_seq_free): Remove.
4707 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
4708 (gimple_copy): Ditto.
4709 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
4710 create iterator from correct sequence.
4711 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
4712
47132012-05-02 Michael Matz <matz@suse.de>
4714
4715 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
4716 gimple_seq.
4717 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
4718 sequence, lazily allocate it.
4719 (bb_seq_addr): New function.
4720 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
4721 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
4722 (gsi_none): New function.
4723 (gsi_start_bb): Adjust.
4724 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
4725 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
4726 (gsi_last_bb): Adjust.
4727 (gsi_seq): Adjust.
4728 * tree-flow-inline.h (phi_nodes_ptr): New function.
4729
e2f2054f 4730 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
e3a19533 4731 datastructure and interface change.
4732 (gsi_insert_seq_before_without_update): Ditto.
4733 (gsi_insert_seq_nodes_after): Ditto.
4734 (gsi_insert_seq_after_without_update): Ditto.
4735 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
4736 (gsi_split_seq_before): Ditto.
4737 (gsi_start_phis): Adjust.
e2f2054f 4738 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
e3a19533 4739 (vect_transform_loop): Ditto.
4740 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
4741 gimple_seq_copy): Don't use gimple_seq_alloc.
4742 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
4743 (gimplify_seq_add_seq): Ditto.
4744 * lto-streamer-in.c (make_new_block): Ditto.
4745 * tree-cfg.c (create_bb): Ditto.
4746 * tree-sra.c (initialize_parameter_reductions): Ditto.
4747
47482012-05-02 Michael Matz <matz@suse.de>
4749
4750 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
4751 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
4752 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
4753 set_bb_seq): Move down to after gimple_statement_d definition.
4754
47552012-05-02 Michael Matz <matz@suse.de>
4756
4757 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
4758 gsi_replace_with_seq, instead of inserting itself.
4759 * gimple-iterator.c (gsi_replace_with_seq): New function.
4760 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
4761 iterator instead of statement, advance it.
4762 (ssa_forward_propagate_and_combine): Adjust call to above.
4763
47642012-05-02 Michael Matz <matz@suse.de>
4765
4766 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
4767 gimple_seq_alloc.
4768 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
4769 * tree-nested.c (walk_gimple_omp_for): Ditto.
4770 * trans-mem.c (lower_transaction): Ditto.
4771 * tree-eh.c (do_return_redirection): Ditto.
4772 (do_goto_redirection): Ditto.
4773 (lower_try_finally_switch): Ditto.
4774 * gimplify.c (gimplify_stmt): Ditto.
4775 (gimplify_scan_omp_clauses): Ditto.
4776 (gimplify_omp_for): Ditto.
4777 (gimplify_function_tree): Ditto.
4778 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
4779 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
4780 (mf_build_check_statement_for): Ditto.
4781 (mx_register_decls): Ditto.
4782 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
4783 and don't use itertors to append.
4784 (insert_stmts): Ditto.
4785 (insert_out_of_ssa_copy): Ditto.
4786 (insert_out_of_ssa_copy_on_edge): Ditto.
4787
47882012-05-02 Michael Matz <matz@suse.de>
4789
4790 * gimple.h (gimple_bind_body_ptr): New function.
4791 (gimple_bind_body): Use it.
4792 (gimple_catch_handler): Use gimple_catch_handler_ptr.
4793 (gimple_eh_filter_failure_ptr): New function.
4794 (gimple_eh_filter_failure): Use it.
4795 (gimple_eh_else_n_body_ptr): New function.
4796 (gimple_eh_else_n_body): Use it.
4797 (gimple_eh_else_e_body_ptr): New function.
4798 (gimple_eh_else_e_body): Use it.
4799 (gimple_try_eval_ptr): New function.
4800 (gimple_try_eval): Use it.
4801 (gimple_try_cleanup_ptr): New function.
4802 (gimple_try_cleanup): Use it.
4803 (gimple_wce_cleanup_ptr): New function.
4804 (gimple_wce_cleanup): Use it.
4805 (gimple_omp_body_ptr): New function.
4806 (gimple_omp_body): Use it.
4807 (gimple_omp_for_pre_body_ptr): New function.
4808 (gimple_omp_for_pre_body): Use it.
4809 (gimple_transaction_body_ptr): New function.
4810 (gimple_transaction_body): Use it.
4811 (gsi_split_seq_before): Adjust to return nothing and take pointer
4812 to sequence.
4813 (gsi_set_stmt): Declare.
4814 (gsi_replace_with_seq): Declare.
4815 (walk_gimple_seq_mod): Declare.
4816 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
4817
4818 * gimple-iterator.c (gsi_set_stmt): New function.
4819 (gsi_split_seq_before): Return new sequence via pointer argument.
4820 (gsi_replace): Use gsi_set_stmt.
4821
4822 * tree-ssa-loop-im.c (move_computations_stmt): First remove
4823 then insert stmt.
e2f2054f 4824 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
e3a19533 4825 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
4826 return new stmt.
4827 (reserve_phi_args_for_new_edge): Change call to above,
4828 use gsi_set_stmt.
4829
e2f2054f 4830 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
e3a19533 4831 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
4832 iterators. Adjust call to lower_omp.
4833 (lower_lastprivate_clauses): Adjust call to lower_omp.
4834 (lower_reduction_clauses): Ditto.
4835 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
4836 (lower_omp_sections): Don't explicitely count sequence length,
4837 nullify lowered bodies earlier, ensure stmts are part of only
4838 one sequence, adjust call to lower_omp.
4839 (lower_omp_single): Ensure stmts are part of only one sequence,
4840 adjust call to lower_omp.
4841 (lower_omp_master): Ditto.
4842 (lower_omp_ordered): Ditto.
4843 (lower_omp_critical): Ditto.
4844 (lower_omp_for): Ditto.
4845 (lower_omp_taskreg): Ditto, tidy.
4846 (lower_omp_1): Adjust calls to lower_omp.
4847 (execute_lower_omp): Ditto.
4848 (lower_omp): Adjust to take pointer to sequence.
4849 (diagnose_sb_2): Use walk_gimple_seq_mod.
4850 (diagnose_omp_structured_block_errors): Ditto and set possibly
4851 changed function body.
4852 * gimple-low.c (lower_function_body): Set function body after
4853 it stabilizes.
4854 (lower_sequence): Adjust to take pointer to sequence.
4855 (lower_omp_directive): Ensure stmt isn't put twice into the
4856 sequence, adjust call to lower_sequence.
4857 (lower_stmt): Adjust calls to lower_sequence.
4858 (lower_gimple_bind): Ditto.
4859 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
4860 * tree-nested.c (walk_body): Take pointer to sequence, use
4861 walk_gimple_seq_mod.
e2f2054f 4862 (walk_function): Adjust call to walk_body, set possibly changed body.
e3a19533 4863 (walk_gimple_omp_for): Adjust calls to walk_body.
4864 (convert_nonlocal_omp_clauses): Ditto.
4865 (convert_nonlocal_reference_stmt): Ditto.
4866 (convert_local_omp_clauses): Ditto.
4867 (convert_local_reference_stmt): Ditto.
4868 (convert_tramp_reference_stmt): Ditto.
4869 (convert_gimple_call): Ditto.
4870 (convert_nl_goto_reference): Use local iterator copy.
4871 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
4872 but taking pointer to sequence, ensure gsi_start is called with
4873 callers lvalue.
4874 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
4875 asserting that the sequence head didn't change.
4876 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
4877 walk_gimple_seq_mod.
4878 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
4879 (execute_lower_tm): Ditto, and set possibly changed body.
4880 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
4881 call gsi_start with that lvalue.
4882 (replace_goto_queue_stmt_list): Ditto.
4883 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
4884 (replace_goto_queue): Ditto.
4885 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
4886 (lower_try_finally_onedest): Ditto.
4887 (lower_try_finally_copy): Ditto.
4888 (lower_try_finally_switch): Ditto.
4889 (lower_try_finally): Ditto.
4890 (lower_eh_filter): Ditto.
4891 (lower_eh_must_not_throw): Ditto.
4892 (lower_cleanup): Ditto.
4893 (lower_eh_constructs_2): Ditto.
4894 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
4895 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
4896 set possibly changed body.
4897 (optimize_double_finally): Call gsi_start with lvalue.
4898
4899 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
4900 (gimple_split_block): Ditto.
4901 (gimple_merge_blocks): Use gsi_start_phis.
4902 (move_stmt_r): Use walk_gimple_seq_mod.
4903 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
4904 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
4905 (rebuild_cgraph_edges): Ditto.
4906 (cgraph_rebuild_references): Ditto.
4907 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
4908 * tree-inline.c (copy_phis_for_bb): Ditto.
4909 * tree-ssa-dce.c: Ditto.
4910
4911 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
4912
7f738025 49132012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
4914 Andi Kleen <ak@linux.intel.com>
4915
e3a19533 4916 * coretypes.h (MEMMODEL_MASK): New.
7f738025 4917 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
4918 and return new variable.
4919 (expand_builtin_atomic_exchange): Mask memmodel values.
4920 (expand_builtin_atomic_compare_exchange): Ditto.
4921 (expand_builtin_atomic_load): Ditto.
4922 (expand_builtin_atomic_store): Ditto.
4923 (expand_builtin_atomic_clear): Ditto.
4924 * doc/extend.texi: Mention port-dependent memory model flags.
4925 * config/i386/cpuid.h (bit_HLE): New.
4926 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4927 HLE support.
4928 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
91fcc716 4929 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
7f738025 4930 (ix86_target_string)<-mhle>: New.
e2f2054f 4931 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
4932 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
4933 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
4934 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
7f738025 4935 enabled for generic, generic64 and core-avx2.
4936 (ix86_print_operand): Generate HLE lock prefixes.
4937 (ix86_memmodel_check): New.
4938 (TARGET_MEMMODEL_CHECK): Ditto.
4939 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
4940 (IX86_HLE_ACQUIRE): Ditto.
4941 (IX86_HLE_RELEASE): Ditto.
4942 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
4943 * config/i386/i386.opt (mhle): Ditto.
4944 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
4945 success model to instruction emitter.
4946 (atomic_fetch_add<mode>): Ditto.
4947 (atomic_exchange<mode>): Ditto.
4948 (atomic_add<mode>): Ditto.
4949 (atomic_sub<mode>): Ditto.
4950 (atomic_<code><mode>): Ditto.
4951 (*atomic_compare_and_swap_doubledi_pic): Ditto.
4952 (atomic_compare_and_swap_single<mode>): Define and use argument
4953 for success model.
4954 (atomic_compare_and_swap_double<mode>): Ditto.
4955 * configure.ac: Check if assembler support HLE prefixes.
4956 * configure: Regenerate.
4957 * config.in: Ditto.
4958
b59e1c90 49592012-05-02 Steven Bosscher <steven@gcc.gnu.org>
4960
4961 PR middle-end/53153
4962 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
4963 split out from ...
4964 (gimplify_switch_expr): ... here.
4965 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
4966 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
4967 to clean up case labels with values outside the index type range.
4968 (simplify_gimple_switch): Call it if something changed.
4969 Remove strange and unnecessary assert.
4970
85d86b55 49712012-05-02 Richard Guenther <rguenther@suse.de>
4972
4973 * fold-const.c (div_if_zero_remainder): sizetypes no longer
4974 sign-extend.
4975 (int_const_binop_1): New worker for int_const_binop with
91fcc716 4976 overflowable parameter. Pass it through to force_fit_type_double.
85d86b55 4977 (int_const_binop): Wrap around int_const_binop_1 with overflowable
4978 equal to one.
4979 (size_binop_loc): Call int_const_binop_1 with overflowable equal
4980 to minus one, forcing overflow detection for even unsigned types.
4981 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
4982 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
4983 * stor-layout.c (initialize_sizetypes): sizetypes no longer
4984 sign-extend.
4985 (layout_type): For zero-sized arrays ignore overflow on the
4986 size calculations.
4987 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
4988 (bit_value_binop_1): Likewise.
4989 * tree.c (double_int_to_tree): Likewise.
4990 (double_int_fits_to_tree_p): Likewise.
4991 (force_fit_type_double): Likewise.
4992 (host_integerp): Likewise.
4993 (int_fits_type_p): Likewise.
4994 * varasm.c (output_constructor_regular_field): Sign-extend the
e2f2054f 4995 field-offset to cater for negative offsets produced by the Ada
4996 frontend.
85d86b55 4997 * omp-low.c (extract_omp_for_data): Convert the loop step to
4998 signed for pointer adjustments.
4999
50002012-05-02 Richard Guenther <rguenther@suse.de>
5001
5002 * tree.c (valid_constant_size_p): New function.
5003 * tree.h (valid_constant_size_p): Declare.
5004 * cfgexpand.c (expand_one_var): Adjust check for too large
5005 variables by using valid_constant_size_p.
5006 * varasm.c (assemble_variable): Likewise.
5007
5008 * c-decl.c (grokdeclarator): Properly check for sizes that
5009 cover more than half of the address-space.
5010
559f753b 50112012-05-02 Jakub Jelinek <jakub@redhat.com>
5012
8b3fb720 5013 PR tree-optimization/53163
5014 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
5015 return value from compute_all_dependences.
5016
559f753b 5017 PR rtl-optimization/53160
5018 * ree.c (combine_reaching_defs): Handle the case where cand->insn
5019 has been modified by ree pass already.
5020
73242672 50212012-05-01 Ian Lance Taylor <iant@google.com>
5022
5023 PR c/37303
5024 * c-decl.c (build_compound_literal): Make the decl readonly if it
5025 an array of a readonly type.
5026 * gimplify.c (gimplify_compound_literal_expr): Add fallback
5027 parameter. Change all callers. If the decl is not addressable
5028 and is not an l-value, make it readonly.
5029
e1d0b655 50302012-05-01 Bernd Schmidt <bernds@codesourcery.com>
5031
5032 * ira.c (allocated_reg_info_size): New static variable.
5033 (expand_reg_info): Manage it. Call
5034 setup_preferred_alternate_classes_for_new_pseudos.
5035 (ira): Don't do it here. Remove local allocated_reg_info_size,
5036 set the global before calling find_moveable_pseudos.
5037 (find_moveable_pseudos): Call expand_reg_info rather than
5038 resize_reg_info.
5039
d8219307 50402012-05-01 Richard Henderson <rth@redhat.com>
5041
5042 * common.opt (fsync-libcalls): New.
5043 * doc/invoke.texi: Document it.
5044 * optabs.c (init_sync_libfuncs): Honor it.
5045
c7944dce 50462012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
5047 Richard Sandiford <r.sandiford@uk.ibm.com>
5048
31fa83cd 5049 PR rtl-optimization/52543
c7944dce 5050 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
5051 lower-subreg.h.
5052 * lower-subreg.h: New file.
5053 * target-globals.h (this_target_lower_subreg): Declare.
5054 (target_globals): Add lower_subreg;
5055 (restore_target_globals): Restore this_target_lower_subreg.
5056 * target-globals.c: Include it.
5057 (default_target_globals): Add default_target_lower_subreg.
5058 (save_target_globals): Initialize target_lower_subreg.
5059 * rtl.h (init_lower_subreg): Added declaration.
5060 * toplev.c (backend_init_target): Call initializer for lower-subreg
5061 pass.
5062 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
5063 (default_target_lower_subreg): New variable.
5064 (this_target_lower_subreg): Likewise.
5065 (twice_word_mode, choices): New macros.
5066 (shift_cost, compute_splitting_shift, compute_costs)
5067 (init_lower_subreg): New functions.
5068 (resolve_simple_move): Add speed_p argument. Check choices.
5069 (find_pseudo_copy): Don't check the mode size here.
5070 (resolve_simple_move): Assert the mode size.
5071 (find_decomposable_shift_zext): Add speed_p argument and return
5072 a bool. Check choices.
5073 (resolve_shift_zext): Add comment.
5074 (dump_shift_choices, dump_choices): New functions.
5075 (decompose_multiword_subregs): Dump list of profitable
5076 transformations. Add code to skip non profitable transformations.
5077 Update calls to simple_move and find_decomposable_shift_zext.
5078
e7fd8dfa 50792012-05-01 Ian Bolton <ian.bolton@arm.com>
e2f2054f 5080 Sameera Deshpande <sameera.deshpande@arm.com>
5081 Greta Yorsh <greta.yorsh@arm.com>
e7fd8dfa 5082
5083 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
e2f2054f 5084 (thumb1_unexpanded_epilogue): ...this.
e7fd8dfa 5085 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
e2f2054f 5086 (thumb1_unexpanded_epilogue): ...this.
e7fd8dfa 5087 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
e2f2054f 5088 (thumb1_unexpanded_epilogue): ...this.
e7fd8dfa 5089
68a172b9 50902012-05-01 Richard Earnshaw <rearnsha@arm.com>
5091
5092 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
5093 comparing enumeration values. Update comments.
5094
e356c169 50952012-05-01 Alan Modra <amodra@gmail.com>
5096
5097 PR target/53038
5098 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
5099 load_cr_save, add_crlr_cfa_restore): New functions.
5100 (rs6000_restore_saved_cr): Rename to..
5101 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
5102 (rs6000_emit_epilogue): Use new functions. Adjust condition
5103 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
5104 regs when using out-of-line restore only when shrink wrapping.
5105
a690dc32 51062012-04-30 Uros Bizjak <ubizjak@gmail.com>
5107
5108 PR middle-end/53136
5109 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
5110 calls to cgraph_node_name in xstrdup.
5111 (ipa_make_edge_direct_to_target): Ditto.
5112 * cgraph.c (dump_cgraph_node): Ditto.
5113 * tree-sra.c (convert_callers_for_node): Ditto.
5114 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
5115 * ipa-cp.c (perhaps_add_new_callers): Ditto.
5116 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
5117 (cgraph_materialize_all_clones): Ditto.
5118 * ipa-inline.c (report_inline_failed_reason): Ditto.
5119 (want_early_inline_function_p): Ditto.
5120 (edge_badness): Ditto.
5121 (update_edge_key): Ditto.
5122 (flatten_function): Ditto.
5123 (ipa_inline): Ditto.
e2f2054f 5124 (inline_always_inline_functions): Ditto.
a690dc32 5125 (early_inline_small_functions): Ditto.
5126
b3987b8f 51272012-04-30 Uros Bizjak <ubizjak@gmail.com>
5128
5129 PR target/53141
5130 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
5131 constraints 0 and 1.
5132
cf951b1a 5133012-04-30 Jan Hubicka <jh@suse.cz>
5134
5135 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
5136 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
5137 (cgraph_add_to_same_comdat_group): Remove.
5138 (cgraph_add_asm_node): Move to cgraphunit.c.
5139 (cgraph_make_decl_local): Move to symtab.c
5140 (cgraph_make_node_local_1): Update.
5141 (cgraph_can_remove_if_no_direct_calls_and): Update.
5142 (used_from_object_file_p): Update.
5143 (resolution_used_from_other_file_p): Move to symtab.c
5144 (cgraph_used_from_object_file_p): move to symtab.c
5145 (verify_cgraph_node): Verify same comdat groups.
5146 * cgraph.h (cgraph_asm_node): Rename to ...
5147 (asm_node): ... this one.
5148 (cgraph_asm_nodes): Rename to ...
5149 (asm_nodes): ... this one.
5150 (symtab_add_to_same_comdat_group): New function.
5151 (symtab_dissolve_same_comdat_group_list): New function.
5152 (symtab_used_from_object_file_p): Declare.
5153 (symtab_make_decl_local): Declare.
5154 (cgraph_add_to_same_comdat_group): Remove.
5155 (cgraph_add_asm_node): Remove.
5156 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
5157 Remove.
5158 (cgraph_finalize_compilation_unit): Rename to ...
5159 (finalize_compilation_unit): ... this one.
5160 (cgraph_optimize): Rename to ....
5161 (compile): ... this one.
5162 (add_asm_node): Declare.
5163 (fixup_same_cpp_alias_visibility): Declare.
5164 (cgraph_make_decl_local): Remove.
5165 (varpool_assemble_pending_decls): Rename to ...
5166 (varpool_output_variables): ... this one.
5167 (varpool_remove_unreferenced_decls): Remove.
5168 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
5169 (preserve_function_body_p): Make static.
b3987b8f 5170 * toplev.c (compile_file): Update comments; update.
cf951b1a 5171 * cgraphunit.c: Update comments.
5172 (cgraph_expand_all_functions): Rename to ...
5173 (expand_all_functions): ... this one; update.
5174 (cgraph_mark_functions_to_output): Rename to ...
5175 (mark_functions_to_output): ... this one; cleanup.
5176 (cgraph_output_pending_asms): Remove prototype.
5177 (asm_nodes, asm_last_node): New static vars.
5178 (cgraph_process_new_functions): Update.
5179 (cgraph_reset_node): Cleanup; add comment.
5180 (cgraph_add_new_function): Update.
5181 (cgraph_output_pending_asms): Rename to ...
5182 (output_asm_statements): ... this one.
5183 (add_asm_node): New function.
5184 (fixup_same_cpp_alias_visibility): New function based on code
5185 in cgraph_analyze_function.
5186 (cgraph_analyze_function): Use it.
5187 (cgraph_order_sort): Update.
5188 (cgraph_output_in_order): Update.
5189 (cgraph_function_versioning): Update.
5190 (cgraph_optimize): Rename to ...
5191 (compile): ... this one; initialize streamer hooks here.
5192 (cgraph_finalize_compilation_unit): Rename to ...
5193 (finalize_compilation_unit): ... this one; do not initialize streamer
5194 hook here.
5195 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
5196 * dwarf2out.c: Update ocmment.
5197 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
5198 * method.c (use_thunk): Likewise.
5199 * semantics.c (maybe_add_lambda_conv_op): Likewise.
b3987b8f 5200 * decl2.c (maybe_emit_vtables): Likewise.
cf951b1a 5201 (cp_write_global_declarations): Use finalize_compilation_unit.
5202 * parser.c (cp_parser_asm_definition): Use add_asm_node.
5203 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
b3987b8f 5204 * c-decl.c (c_write_global_declarations): Use
5205 finalize_compilation_unit.
cf951b1a 5206 * langhooks.c (write_global_declarations): Update.
5207 * ipa.c (cgraph_externally_visible_p): Update.
5208 (dissolve_same_comdat_group_list): Remove.
5209 (function_and_variable_visibility): Update.
5210 * symtab.c: Inlcude lto-streamer.h and rtl.h
5211 (ld_plugin_symbol_resolution_names): New.
5212 (symtab_add_to_same_comdat_group): New.
5213 (symtab_dissolve_same_comdat_group_list): New.
5214 (resolution_used_from_other_file_p): Move here from cgraph.c
5215 (symtab_used_from_object_file_p): New.
5216 (symtab_make_decl_local): New.
5217 * passes.c (register_pass): Update comments.
5218 * c-parser.c (c_parser_asm_definition): Update.
b3987b8f 5219 * varpool.c (varpool_analyze_node): Use
5220 fixup_same_cpp_alias_visibility.
cf951b1a 5221 (varpool_remove_unreferenced_decls): Make static.
5222 (varpool_assemble_pending_decls): Rename to ...
5223 (varpool_output_variables): ... this one; call
5224 varpool_remove_unreferenced_decls.
5225 (varpool_used_from_object_file_p): Remove.
5226
7059d45d 52272012-04-30 Marc Glisse <marc.glisse@inria.fr>
5228
5229 PR c++/51033
5230 * c-typeck.c (build_array_ref): Call
5231 convert_vector_to_pointer_for_subscript.
5232 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
5233
df65c84d 52342012-04-30 Uros Bizjak <ubizjak@gmail.com>
5235
5236 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
5237 to compile-time "mode == <MODE>mode" checks.
5238 (and splitter): Ditto.
5239
ab1e18de 52402012-04-30 Richard Henderson <rth@redhat.com>
5241
5242 * config/arm/arm.md (UNSPEC_LL): New.
5243 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
5244 (arm_load_exclusivedi): Use %H0.
5245
3474b65d 52462012-04-30 Jason Merrill <jason@redhat.com>
5247
5248 * dwarf2out.c (comdat_symbol_id): Add const.
5249 (union die_symbol_or_type_node): Add const to die_symbol.
5250 (output_die_symbol, output_die, output_comp_unit): Adjust.
5251
774d2fbb 52522012-04-30 Andrew Stubbs <ams@codesourcery.com>
5253
5254 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
5255 * config/arm/neon.md (negdi2_neon): New insn.
5256 Also add splitters for core and NEON registers.
5257
87f800b2 52582012-04-30 Andrew Stubbs <ams@codesourcery.com>
5259
5260 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
5261 (arm_print_operand): Add 'x' format.
5262 * config/arm/constraints.md (Dn): Allow const_int.
5263 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
5264 Use 'x' format to print constants.
5265 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
5266 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
5267 is enabled.
5268 (movdi_vfp_cortexa8): Likewise.
5269
a2623f6b 52702012-04-30 Ian Bolton <ian.bolton@arm.com>
917cf02d 5271 Sameera Deshpande <sameera.deshpande@arm.com>
5272 Greta Yorsh <greta.yorsh@arm.com>
69973f3a 5273
5274 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
5275 * config/arm/arm.c (ldm_stm_operation_p): New function.
5276 * config/arm/predicates.md (load_multiple_operation): Update predicate.
5277 (store_multiple_operation): Likewise.
5278
394cb8e0 5279 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
5280 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
5281 * config/arm/predicates.md (load_multiple_operation): Add arguments.
df65c84d 5282 (store_multiple_operation): Likewise.
394cb8e0 5283
9676484f 52842012-04-30 Uros Bizjak <ubizjak@gmail.com>
5285
5286 * config/i386/i386.md (and<mode>3): Expand masking operations with
5287 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
5288 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
5289
7edb1062 52902012-04-30 Dodji Seketeli <dodji@redhat.com>
5291
5292 Add -Wvarargs option
5293 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
9676484f 5294 argument for the various warning_at calls.
7edb1062 5295 * docs/invoke.texi: Update the documentation.
5296
6982c82d 52972012-04-30 Dodji Seketeli <dodji@redhat.com>
5298
611f1003 5299 Switch -ftrack-macro-expansion=2 on by default.
5300 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
5301 by default.
5302
d98fd4a4 5303 Fix va_start related location
5304 * builtins.c (fold_builtin_next_arg): Unwinds to the first
5305 location in real source code.
5306
db30b351 5307 Make conversion warnings work on NULL with -ftrack-macro-expansion
5308 * input.h (expansion_point_location_if_in_system_header): Declare
5309 new function.
9676484f 5310 * input.c (expansion_point_location_if_in_system_header): Define it.
db30b351 5311
18f0e0e5 5312 Fix -Wuninitialized for -ftrack-macro-expansion
9676484f 5313 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
5314 declaration. Use linemap_location_before_p for source locations.
18f0e0e5 5315
bd172d61 5316 Strip "<built-in>" loc from displayed expansion context
5317 * input.c (expand_location_1): When expanding to spelling location
5318 in a context of a macro expansion, skip reserved system header
5319 locations. Update comments. * tree-diagnostic.c
5320 (maybe_unwind_expanded_macro_loc): Likewise.
5321
39107655 5322 Make expand_location resolve to locus in main source file
5323 * input.c (expand_location_1): New. Takes a parameter to choose
5324 whether to resolve the location to spelling or expansion point.
5325 Was factorized from ...
5326 (expand_location): ... here.
5327 (expand_location_to_spelling_point): New. Implemented in terms of
5328 expand_location_1.
5329 * diagnostic.c (diagnostic_build_prefix): Use the new
5330 expand_location_to_spelling_point instead of expand_location.
5331
6982c82d 5332 Fix PCH crash on GTYed pointer-to-scalar field of a struct
5333 * gengtype.c (write_types_process_field): Force second argument of
5334 the call to the PCH object hierarchy walker to be 'x'.
5335
81f9f420 53362012-04-30 Eric Botcazou <ebotcazou@adacore.com>
5337
5338 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
5339 predicate to discriminate types.
5340
b86527d8 53412012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5342
5343 * doc/invoke.texi (Wmissing-format-attribute): Document as an
5344 alias of Wsuggest-attribute=format.
5345 * c-typeck.c (convert_for_assignment): Replace
5346 Wmissing-format-attribute with Wsuggest-attribute=format.
5347 (digest_init): Likewise.
5348
fdc46702 53492012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5350
9676484f 5351 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
5352 * common.opt (Wmissing-noreturn): Alias of
5353 -Wsuggest-attribute=noreturn.
fdc46702 5354
87ef8b95 53552012-04-29 Hans-Peter Nilsson <hp@axis.com>
5356
5357 PR target/53156
5358 * config/cris/cris.md (andqu): New peephole2.
5359 (andu): Tweak head comment.
5360
0f9b384d 53612012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5362 Steven Bosscher <steven@gcc.gnu.org>
5363 Maxim Kuvyrkov <maxim@codesourcery.com>
5364
5365 PR tree-optimization/38785
5366 * common.opt (ftree-partial-pre): New option.
5367 * doc/invoke.texi: Document it.
5368 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
5369 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
5370 benefit speed path.
5371 (execute_pre): Use flag_tree_partial_pre.
5372
7c5d3a90 53732012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5374
5375 PR target/52999
5376 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
5377 in constant pool.
5378
034788fc 53792012-04-27 Ollie Wild <aaw@google.com>
76d340ac 5380
5381 * doc/invoke.texi (Wliteral-suffix): Document new option.
5382
c9f46599 53832012-04-27 Tom Tromey <tromey@redhat.com>
5384
5385 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
5386 (dwarf_tag_name): Use get_DW_TAG_name.
5387 (dwarf_attr_name): Use get_DW_AT_name.
5388 (dwarf_form_name): Use get_DW_FORM_name.
5389 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
5390
678919fd 53912012-04-27 Paolo Bonzini <bonzini@gnu.org>
5392
9676484f 5393 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
5394 arguments are -1 and 0, by negating the result of the conditional.
678919fd 5395
8be7badc 53962012-04-27 Paolo Bonzini <bonzini@gnu.org>
5397
5398 PR target/53138
5399 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
5400
8763c223 54012012-04-27 Richard Guenther <rguenther@suse.de>
5402
5403 * tree-flow.h (is_hidden_global_store): Remove.
5404 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
5405 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
5406 (stmt_may_clobber_global_p): Likewise.
5407 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
5408 (stmt_may_clobber_global_p): Likewise.
5409 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
5410 stmt_may_clobber_global_p.
5411 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
5412
11f2f313 54132012-04-27 Steven Bosscher <steven@gcc.gnu.org>
5414
845b40c8 5415 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
5416 place.
5417
11f2f313 5418 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
5419 reorganize some fields and update comments. Rename bit_test_uniq
5420 and bit_test_count to uniq resp. count. Remove bit_test_bb.
5421 (collect_switch_conv_info): New function, collects info about a
5422 GIMPLE_SWITCH into a struct switch_conv_info.
5423 (check_range): Simplify to use pre-recorded info. Fix think-o in
5424 range-branch ratio check.
5425 (check_process_case): Remove function.
5426 (check_all_empty_except_final): New function, verifies that all
5427 non-final basic blocks are empty.
5428 (process_switch): Simplify to use pre-recorded info. Call
5429 collect_switch_conv_info to do that. Assert that degenerate switch
5430 statements have been cleaned up.
5431
487282d5 54322012-04-27 Marc Glisse <marc.glisse@inria.fr>
5433
5434 PR middle-end/27139
5435 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
5436
b0ec32b9 54372012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5438
5439 PR c/53130
5440 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
5441
b736e424 54422012-04-27 Tom de Vries <tom@codesourcery.com>
5443
5444 PR tree-optimization/51879
5445 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
5446 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
5447 of ...
5448 (defs_to_varying): ... here. Don't set use_processed.
5449 (visit_reference_op_call): Handle gimple_vdef.
5450 Handle case that lhs is NULL_TREE.
5451 (visit_use): Use mark_use_processed. Handle calls with side-effect
5452 using visit_reference_op_call.
5453
fdb1b2b1 54542012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
5455
5456 * sched-deps.c (fixup_sched_groups): Rename to...
5457 (chain_to_prev_insn): ...this.
5458 (chain_to_prev_insn_p): New function.
5459 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
5460
b30b031c 54612012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
5462
5463 * sched-int.h (_haifa_insn_data): Move priority_status.
5464 Add model_index.
5465 (INSN_MODEL_INDEX): New macro.
5466 * haifa-sched.c (insn_delay): New function.
5467 (sched_regno_pressure_class): Update commentary.
5468 (mark_regno_birth_or_death): Pass the liveness bitmap and
5469 pressure array as arguments, instead of using curr_reg_live and
5470 curr_reg_pressure. Only update the pressure if the bit in the
5471 liveness set has changed.
5472 (initiate_reg_pressure_info): Always trust the live-in set for
5473 SCHED_PRESSURE_MODEL.
5474 (initiate_bb_reg_pressure_info): Update call to
5475 mark_regno_birth_or_death.
5476 (dep_list_size): Take the list as argument.
5477 (calculate_reg_deaths): New function, extracted from...
5478 (setup_insn_reg_pressure_info): ...here.
5479 (MODEL_BAR): New macro.
5480 (model_pressure_data, model_insn_info, model_pressure_limit)
5481 (model_pressure_group): New structures.
5482 (model_schedule, model_worklist, model_insns, model_num_insns)
5483 (model_curr_point, model_before_pressure, model_next_priority):
5484 New variables.
5485 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
5486 (MODEL_INSN_INFO, MODEL_INSN): New macros.
5487 (model_index, model_update_limit_points_in_group): New functions.
5488 (model_update_limit_points, model_last_use_except): Likewise.
5489 (model_start_update_pressure, model_update_pressure): Likewise.
5490 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
5491 (model_excess_cost, model_dump_pressure_points): Likewise.
5492 (model_set_excess_costs): Likewise.
5493 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
5494 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
5495 schedule as an alternative tie-breaker. Update the call to
5496 dep_list_size.
5497 (ready_sort): Call model_set_excess_costs.
5498 (update_register_pressure): Update call to mark_regno_birth_or_death.
5499 Rely on that function to check liveness rather than doing it here.
5500 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
5501 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
5502 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
5503 (model_record_pressure, model_record_pressures): New functions.
5504 (model_record_final_pressures, model_add_successors_to_worklist)
5505 (model_promote_predecessors, model_choose_insn): Likewise.
5506 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
5507 (model_start_schedule, model_finalize_pressure_group): Likewise.
5508 (model_end_schedule): Likewise.
5509 (schedule_insn): Say when we're scheduling the next instruction
5510 in the model schedule.
5511 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
5512 (queue_to_ready): Do not add instructions that are
5513 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
5514 Always allow the next instruction in the model schedule to be added.
5515 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5516 and delay for SCHED_PRESSURE_MODEL too.
5517 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
5518 SCHED_PRIORITY_MODEL, but also take the DFA into account.
5519 (schedule_block): Call model_start_schedule and model_end_schedule.
5520 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
5521 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5522 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
5523 region_ref_regs.
5524 (sched_finish): Update accordingly.
5525 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5526 to SCHED_PRESSURE_MODEL.
5527 (add_jump_dependencies): Update call to dep_list_size.
5528 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
5529 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5530 to SCHED_PRESSURE_MODEL.
5531 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
5532 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
5533 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5534 handling to SCHED_PRESSURE_MODEL.
5535
11189c7a 55362012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
5537
5538 * common.opt (fsched-pressure-algorithm=): New option.
5539 * flag-types.h (sched_pressure_algorithm): New enum.
5540 * sched-int.h (sched_pressure_p): Replace with...
5541 (sched_pressure): ...this new variable.
5542 * haifa-sched.c (sched_pressure_p): Replace with...
5543 (sched_pressure): ...this new variable.
5544 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
5545 (update_reg_and_insn_max_reg_pressure, schedule_insn)
5546 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
5547 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
5548 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5549 (sched_analyze_insn): Likewise.
5550 * sched-rgn.c (schedule_region): Likewise.
5551 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
5552
be851ef2 55532012-04-26 Bernd Schmidt <bernds@codesourcery.com>
5554
5555 * PR middle-end/52997
5556 * ira.c (find_moveable_pseudos): Call resize_reg_info.
5557
c8076084 5558 PR middle-end/52940
5559 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
5560 * expr.c (convert_move): Honor unsignedp when extending partial int
5561 modes.
5562 * genmodes.c (complete_mode): Don't clear component field of partial
5563 int modes.
5564 (emit_mode_inner): Don't emit it however.
5565 (calc_wider_mode): Partial int modes widen to their component.
5566
cd7e5042 55672012-04-26 David S. Miller <davem@davemloft.net>
5568
65e00a51 5569 * config/sparc/niagara4.md: New file.
5570 * config/sparc/sparc.md: Include it.
5571 * config/sparc/sparc.c (niagara4_costs): New processor costs.
5572 (sparc_option_override): Use it.
5573 (sparc_use_sched_lookahead): Return 2 for niagara4.
5574 (sparc_issue_rate): Likewise.
5575
cd7e5042 5576 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
5577 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
5578 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
9676484f 5579 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
cd7e5042 5580 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
5581 alignaddrldi_vis): Set type to gsr.
5582 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
5583 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
5584 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
5585 v<vis3_shift_patname><mode>3, fmean16_vis,
5586 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
5587 fucmp<code>8<P:mode>_vis): Set type to fga.
5588 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
5589 * config/sparc/niagara.md: Likewise.
5590 * config/sparc/niagara2.md: Likewise.
5591 * config/sparc/ultra3.md: Likewise, and fix type matching for
5592 us3_ialuX reservation.
5593
c7ba7c12 55942012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5595
5596 * reload.c (find_reloads): Change the loop nesting when trying an
5597 alternative with swapped operands.
5598
3f898bd2 55992012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5600
5601 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
5602 comment. Delete unused parameter first_exp_point_map.
5603 (virt_loc_aware_diagnostic_finalizer): Update call.
5604
9dd1a066 56052012-04-26 Michael Hope <michael.hope@linaro.org>
5606 Richard Earnshaw <rearnsha@arm.com>
5607
5608 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
5609 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
5610 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
5611 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
5612
d79cfc15 56132012-04-25 Sriraman Tallam <tmsriram@google.com>
5614
5615 * doc/extend.texi: Document avx2 support.
5616 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
5617
74e06a83 56182012-04-26 Hans-Peter Nilsson <hp@axis.com>
5619
5620 PR target/53120
5621 * config/cris/cris.md ("*andhi_lowpart_v32")
5622 ("*andqi_lowpart_v32"): Change first input-only operand from
5623 a (match_operand ...) to (match_dup 0). Drop alternatives with
5624 const_int-matching constraints for redundancy.
5625 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
5626 three-operand alternative.
5627
b828abf1 56282012-04-25 Jakub Jelinek <jakub@redhat.com>
5629
5630 PR target/53110
5631 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
5632 instead expand it as zero extension.
5633
89336bc3 56342012-04-25 H.J. Lu <hongjiu.lu@intel.com>
5635
5636 PR debug/52857
9676484f 5637 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
89336bc3 5638
052166fd 56392012-04-25 Jakub Jelinek <jakub@redhat.com>
5640
5641 * common.opt (flag_debug_types_section): Default to 0.
5642 (dwarf_version): Default to 4.
5643 (dwarf_record_gcc_switches): Default to 1.
5644 (dwarf_strict): Default to 0.
5645 * toplev.c (process_options): Don't handle dwarf_strict
5646 or dwarf_version here.
5647 * config/vxworks.c (vxworks_override_options): Don't
5648 test whether dwarf_strict or dwarf_version are negative,
5649 instead test !global_options_set.x_dwarf_*.
5650 * config/darwin.c (darwin_override_options): Default to
5651 dwarf_version 2.
5652 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
5653 and -fno-debug-types-section are now the default.
5654
da5e1e7c 56552012-04-25 Jan Hubicka <jh@suse.cz>
5656
5657 * cgraphunit.c: Update toplevel comment.
5658 (tree_rest_of_compilation): Merge into cgraph_expand_function.
5659 (cgraph_analyze_function): Make static.
5660 (cgraph_decide_is_function_needed): Make static.
5661 (cgraph_add_new_function): Use expand_function instead of
5662 rest_of_compilation.
5663 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
5664 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
5665 Move to cgraph.c
5666 (cgraph_inline_p): Remove.
5667 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
5668 (init_cgraph): Add comment.
5669 * cgraphbuild.c (record_reference, mark_address, mark_load,
5670 mark_store): Do not call analyze_expr hook.
5671 * cgraph.c: Update toplevel comment.
5672 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
5673 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
5674 Move fere from cgraphunit.c
5675 (cgraph_mark_force_output_node): Move to cgraph.h
5676 * cgraph.h: Reorder so the comments match the function placement.
5677 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
5678 (cgraph_mark_force_output_node): Move here from cgraph.c
5679 * tree.c (free_lang_data): Do not clear analyze_expr hook.
5680 * ipa-inline-transform.c (preserve_function_body_p): New function.
5681 (inline_transform): Update.
5682 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
5683 * langhooks.h (lang_hooks_for_callgraph): Remove.
5684 (lang_hooks): Remove callgraph.
5685 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
5686 * varpool.c: Remove out of date comment.
5687 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
5688 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
5689
9a2639fc 56902012-04-25 Jan Hubicka <jh@suse.cz>
5691
9676484f 5692 PR middle-end/53089
5693 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
5694 forward declaration.
9a2639fc 5695 (cgraph_finalize_function): Finalize them here.
5696 * symtab.c (dump_symtab): Dump ctors and dtors.
5697
27d5d67b 56982012-04-25 Jakub Jelinek <jakub@redhat.com>
5699
7e9ba3f3 5700 PR middle-end/52979
5701 * stor-layout.c (get_best_mode): Don't return mode with bitsize
5702 larger than maxbits. Don't compute maxbits modulo align.
5703 Also check that unit bytes long store at bitpos / unit * unit
5704 doesn't affect bits beyond bitregion_end.
5705 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
9676484f 5706 would not fit into bitregion_start ... bitregion_end + 1 bit region.
7e9ba3f3 5707 (store_split_bit_field): Decrease unit close to end of bitregion_end
5708 if access is restricted in order to avoid mutual recursion.
5709
27d5d67b 5710 PR tree-optimization/53058
5711 * double-int.h (double_int_max_value, double_int_min_value): New
5712 prototypes.
5713 * double-int.c (double_int_max_value, double_int_min_value): New
5714 functions.
9676484f 5715 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
5716 or GT_EXPR with double_int_max_value instead of double_int_mask.
27d5d67b 5717
2afdcbed 57182012-04-25 Richard Guenther <rguenther@suse.de>
5719
5720 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
5721 * tree-vect-loop.c (vect_transform_loop): Adjust.
5722 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
5723 the maximum number of iterations for the epilogue loop.
9676484f 5724 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
2afdcbed 5725
537cbcc2 57262012-04-25 Jakub Jelinek <jakub@redhat.com>
5727
5728 PR c/52880
5729 * c-typeck.c (set_nonincremental_init,
5730 set_nonincremental_init_from_string): Pass true instead of false
5731 as IMPLICIT to add_pending_init.
5732
292bb106 57332012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
5734
5735 * c-typeck.c (pop_init_level): Improve diagnostics.
5736
56cc4397 57372012-04-25 Uros Bizjak <ubizjak@gmail.com>
5738
5739 * compare-elim.c (try_eliminate_compare): Also handle operands with
5740 implicit extensions.
5741
cef20746 57422012-04-25 Alan Modra <amodra@gmail.com>
5743
5744 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
5745 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
5746 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
5747 (no_global_regs_above): Delete.
5748 (no_global_regs): New function.
5749 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
5750 value for load multiple test.
5751 (savres_routine_syms): Increase size.
5752 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
5753 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
5754 rather than a number of boolean flags. Update all callers.
5755 (rs6000_savres_routine_name): Generate vector save/restore names.
5756 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
5757 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
5758 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
5759 and using_store_multiple. Expand uses. Don't always use r11 as
5760 frame reg when needed for out-of-line saves. Set up initial offset
5761 for out-of-line vector saves when buying stack frame. Handle pointer
5762 reg setup for out-of-line fp save. Emit call to out-of-line vector
5763 save function. Choose r11 or r12 for vrsave reg when available for
5764 better scheduling.
5765 (rs6000_output_function_prologue): Don't emit .extern for ELF.
5766 (rs6000_emit_epilogue): Choose a better frame reg when restoring
5767 from back-chain to suit out-of-line vector restore functions. Emit
5768 call to out-of-line vector restore function. Adjust register used
5769 for cr restore. Tweak pointer register setup for gpr restore.
5770 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
5771 FIXED_R13.
5772 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
5773 (V_SAVE_INLINE): Define.
5774 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
5775
6b5a351f 57762012-04-25 Alan Modra <amodra@gmail.com>
5777
5778 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
5779 out-of-line save/restore for large frames. Don't disable
5780 out-of-line saves on ABI_AIX when using static chain reg.
5781 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
5782 clobber static chain reg, and tweak for out-of-line gpr saves
5783 that use r1.
5784
e2750fe5 57852012-04-25 Alan Modra <amodra@gmail.com>
5786
5787 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
5788 (rs6000_emit_prologue): Use the above to catch register overlap.
5789
be846acb 57902012-04-25 Alan Modra <amodra@gmail.com>
5791
5792 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
5793 decl. Move logic selecting update reg to callers. Update all callers.
5794 (rs6000_emit_allocate_stack): Add copy_off param.
5795 (emit_frame_save): Don't handle reg+reg addressing.
5796 (ptr_regno_for_savres): New function, extracted from..
5797 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
5798 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
5799 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
5800 frame offset adjustment for out-of-line save with copy from sp.
5801 Simplify condition controlling whether cr is saved early or
5802 late. Use ptr_regno_for_savres to verify correct reg is set
5803 up for out-of-line saves. Pass the actual pointer reg used to
5804 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
5805 function. Rearrange spe vars so code is similar to that
5806 elsewhere in this function. Don't update frame_off when spe
5807 save code will restore r11. Use emit_frame_save for spe and
5808 gpr saves. Consolidate darwin out-of-line gpr setup with that
5809 for other abis. Don't assume frame_offset is zero and frame
5810 reg is sp when setting up altivec reg saves, and calculate
5811 exact offset requirement.
5812 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
5813 spe restore code. Consolidate darwin out-of-line gpr setup
5814 with that for other abis.
5815
9319fb2c 58162012-04-25 Alan Modra <amodra@gmail.com>
5817
5818 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
5819 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
5820 the replacement.
5821 (emit_frame_save): Delete frame_ptr param. Rename total_size to
5822 frame_reg_to_sp.
5823 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
5824 and emit_frame_save calls. Cope with possibly missing note.
5825
f0fd108f 58262012-04-24 Sriraman Tallam <tmsriram@google.com>
5827
5828 * config/i386/i386.c (build_processor_model_struct): New function.
5829 (make_var_decl): New function.
5830 (fold_builtin_cpu): New function.
5831 (ix86_fold_builtin): New function.
5832 (make_cpu_type_builtin): New function.
5833 (ix86_init_platform_type_builtins): New function.
5834 (ix86_expand_builtin): Expand new builtins by folding them.
5835 (ix86_init_builtins): Make new builtins to detect CPU type.
5836 (TARGET_FOLD_BUILTIN): New macro.
5837 (IX86_BUILTIN_CPU_INIT): New enum value.
5838 (IX86_BUILTIN_CPU_IS): New enum value.
5839 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
5840 * config/i386/i386-builtin-types.def: New function type.
5841 * testsuite/gcc.target/builtin_target.c: New testcase.
5842 * doc/extend.texi: Document builtins.
5843
11652e71 58442012-04-24 Olivier Hainque <hainque@adacore.com>
5845
5846 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
5847 * toplev.c (process_options): Default to dwarf_version 2.
5848 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
5849 and dwarf_version 2.
5850
c224fa34 58512012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
5852
5853 * tree-pretty-print.h (default_tree_printer): Do not declare.
5854 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
5855 intl.h.
5856 (default_tree_diagnostic_starter): Make static.
5857 (default_tree_printer): Move to here. Make static.
5858 (tree_diagnostics_defaults): New.
5859 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
5860 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
5861 * toplev.c: Do not include tree-pass.h.
5862 (default_tree_printer): Move from here.
5863 (general_init): Use tree_diagnostics_defaults.
5864
f5dfbb10 58652012-04-24 Chao-ying Fu <fu@mips.com>
5866
5867 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
5868 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
5869 * config/mips/gnu-user.h
5870 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
5871 (GNU_USER_TARGET_LINK_SPEC): New define.
5872 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
5873 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
5874 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
5875 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
5876 GNU_USER_TARGET_ENDFILE_SPEC.
5877 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
5878 (GNU_USER_TARGET_LINK_SPEC): New define.
5879 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
5880 * config/mips/linux-common.h: New file.
5881
745d490f 58822012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5883
5884 PR target/47197
5885 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
5886 (altivec_build_resolved_builtin): Call fully_fold_convert.
5887
8bcbced7 58882012-04-24 Georg-Johann Lay <avr@gjlay.de>
5889
5890 PR target/53065
5891 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
5892
a34205cc 58932012-04-24 Richard Guenther <rguenther@suse.de>
5894
5895 PR tree-optimization/53085
5896 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
5897 stores.
5898
630fd6e1 58992012-04-24 Richard Guenther <rguenther@suse.de>
5900
5901 * tree-if-conv.c (main_tree_if_conversion): Move bb under
5902 ENABLE_CHECKING.
5903
59042012-04-24 Jim Meyering <meyering@redhat.com>
891852a2 5905
5906 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
5907 absence of an define_enum call.
5908
15fa0281 59092012-04-24 Richard Guenther <rguenther@suse.de>
5910
5911 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
5912 the epilogue loop is not re-used as unvectorized version
5913 record the its maximum number of iterations.
5914
0a3f7203 59152012-04-24 Andrew Pinski <apinski@cavium.com>
5916
5917 * tree-ssa-forwprop.c (simplify_bitwise_binary):
5918 Don't directly use def1/def2.
5919
9a5ede52 59202012-04-24 Richard Guenther <rguenther@suse.de>
5921
5922 PR tree-optimization/53098
5923 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
5924 comparison sign.
5925
10fbe63d 59262012-04-24 Andrew Pinski <apinski@cavium.com>
5927
5928 PR tree-opt/33512
5929 * tree-ssa-forwprop.c (defcodefor_name): New function.
5930 (simplify_bitwise_binary): Use defcodefor_name instead of manually
5931 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
5932 Simplify "(~X | Y) & X" to "X & Y" and
5933 "(~X & Y) | X" to "X | Y".
5934
dae9d0e7 59352012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5936
5937 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
5938 validate_change to add clobbers if IN_GROUP is nonzero.
5939 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
5940 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
5941 prototype.
5942 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
5943 set to false.
5944 * config/s390/s390.c (insn_invalid_p): Likewise.
5945
41d658f4 59462012-04-24 Jakub Jelinek <jakub@redhat.com>
5947
36a2ea56 5948 PR middle-end/53084
56cc4397 5949 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
36a2ea56 5950 (output_addressed_constants): Likewise.
5951
41d658f4 5952 PR middle-end/52999
5953 * varasm.c (get_section): Don't ICE for section conflicts with
5954 built-in section kinds.
5955
a9805878 59562012-04-23 DJ Delorie <dj@redhat.com>
5957
5958 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
5959 (LIBSTDCXX): Change to CPP2.
5960
5fcf082c 59612012-04-23 H.J. Lu <hongjiu.lu@intel.com>
5962
5963 PR bootstrap/52878
5964 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
5965 extra_masks.
5966
a110769b 59672012-04-23 Uros Bizjak <ubizjak@gmail.com>
5968
5969 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
5970 (*addsi_2_zext): Ditto.
5971 (*add<mode>_3): Ditto.
5972 (*addsi_3_zext): Ditto.
5973 (*add<mode>_5): Ditto.
5974
35967c0f 59752012-04-23 Andrew Pinski <apinski@cavium.com>
5976
5977 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
5978 (C & B) to (A OP0) & B.
5979
a1a9ca4f 59802012-04-23 Martin Jambor <mjambor@suse.cz>
5981
5982 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
5983 temporaries created for a bitfield (reverting revision 122014).
5984
87ae3989 59852012-04-23 Richard Guenther <rguenther@suse.de>
5986
5987 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
5988 the condition using is_gimple_condexpr and avoid the not necessary
5989 boolification.
5990 (set_prologue_iterations): Likewise.
5991 (vect_loop_versioning): Likewise.
5992
53a87a4b 59932012-04-23 Richard Guenther <rguenther@suse.de>
5994
5995 PR tree-optimization/53070
5996 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
5997 (main_tree_if_conversion): Verify we succeeded in that.
5998
da751785 59992012-04-23 Jan Hubicka <jh@suse.cz>
6000
6001 * lto-symtab.c (lto_cgraph_replace_node): Do not call
6002 mark_reahcable_node.
6003 * cgraph.c (cgraph_remove_node): Do not clear reachable.
6004 (cgraph_mark_reachable_node): Remove.
6005 (cgraph_mark_force_output_node): Do not set reachable.
6006 (dump_cgraph_node): Do not dump reachable.
6007 (cgraph_create_virtual_clone): Do not set reachable.
6008 * cgraph.h (cgraph_node): Remove reachable flag.
6009 (varpool_node): Remove reachable flag.
6010 (cgraph_mark_if_needed): Remove.
6011 (cgraph_mark_reachable_node): Remove.
a110769b 6012 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
da751785 6013 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
6014 reachable.
6015 (cgraph_add_new_function): Likewise.
6016 (cgraph_mark_if_needed): Remove.
6017 (cgraph_analyze_function): Do not set target as reachable.
a110769b 6018 (process_function_and_variable_attributes): Do not care about
6019 dllexport.
da751785 6020 (cgraph_analyze_functions): Do not set reachable flags.
6021 (cgraph_mark_functions_to_output): Do not check reachability.
6022 (cgraph_copy_node_for_versioning): Do not set reachable flag.
6023 (dbxout_expand_expr): Update.
6024 * c-decl.c (merge_decls): Do not track changed externs.
6025 * ipa.c: Include pointer-set.h
6026 (enqueue_cgraph_node): Use reachable pointer set.
6027 (process_references): Likewise.
6028 (cgraph_remove_unreachable_nodes): Likewise.
a110769b 6029 (whole_program_function_and_variable_visibility): Do not recompute
6030 reachable.
da751785 6031 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
6032
6222cbcc 60332012-04-23 Georg-Johann Lay <avr@gjlay.de>
6034
6035 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
6036
104619f5 60372012-04-23 Richard Guenther <rguenther@suse.de>
6038
6039 PR c/53060
6040 * c-typeck.c (build_binary_op): Fix typo.
6041
78fb8a4f 60422012-04-23 Jakub Jelinek <jakub@redhat.com>
6043
6044 PR tree-optimizations/52891
6045 * tree-vect-patterns.c (adjust_bool_pattern): Use
6046 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
6047 but with non-standard precision.
6048
12faa8e4 60492012-04-22 Jan Hubicka <jh@suse.cz>
6050
104619f5 6051 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
6052 tree refs.
12faa8e4 6053
ff2a5ada 60542012-04-22 Jan Hubicka <jh@suse.cz>
6055
6056 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
6057 * cgraphbuild.c (record_reference, record_type_list, mark_address,
6058 mark_load, mark_store): Do not mark varpool nodes as needed.
6059 * cgraph.c (cgraph_new_nodes): Remove.
6060 (cgraph_create_function_alias): Do not mark nodes as reachable.
6061 (cgraph_add_thunk): Likewise.
6062 (cgraph_mark_reachable_node): Do not manage the queue.
6063 * cgraph.h (cgraph_node): Remove next_needed.
6064 (varpool_nodes_queue): Remove next_needed and prev_needed.
6065 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
6066 (cgraph_new_nodes): Declare.
6067 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
6068 (varpool_analyze_pending_decls): Remove.
6069 (varpool_analyze_node): New.
6070 (varpool_mark_needed_node): Remove.
6071 (varpool_first_variable, varpool_next_variable): New inlines.
a110769b 6072 (varpool_first_static_initializer, varpool_next_static_initializer):
6073 Update.
ff2a5ada 6074 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
6075 (varpool_first_defined_variable): New inline.
6076 (varpool_next_defined_variable): New inline
6077 (FOR_EACH_VARIABLE): Reimplement.
6078 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
6079 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
6080 needed flag.
6081 * cgraphunit.c (cgraph_new_nodes): Declare here.
6082 (enqueue_node): New function.
6083 (cgraph_process_new_functions): update for new
6084 node set; when constructing cgraph enqueue node for processing.
6085 (cgraph_add_new_function): Use new node set.
6086 (process_function_and_variable_attributes): Do not set varpool needed
6087 flags.
6088 (referred_to_p): New function.
6089 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
6090 when varpool is in construction.
6091 (cgraph_analyze_functions): Rewrite.
6092 (cgraph_expand_all_functions): Update.
a110769b 6093 (cgraph_output_in_order): Do not analyze pending decls; do not set
6094 needed flags.
ff2a5ada 6095 (cgraph_optimize): Do not analyze pending decls.
a110769b 6096 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
6097 in other partition; do not mark node as needed.
ff2a5ada 6098 * dwarf2out.c (reference_to_unused): Use analyzed flag.
6099 (premark_types_used_by_global_vars_helper): Likewise.
6100 * ipa.c (process_references): Do not call varpool_mark_needed_node.
6101 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
6102 cgrpah queues.
6103 (function_and_variable_visibility): Do not mark node as needed.
6104 (whole_program_function_and_variable_visibility): Likewise.
6105 * Makefile.in (gt-varpool.h): No longer needed.
6106 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
6107 (ipa_write_summaries): Do not use needed flag.
6108 * varpool.c: Do not include gt-varpool.h
6109 (x_varpool_nodes_queue, x_varpool_last_needed_node,
6110 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
6111 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
6112 Remove.
6113 (varpool_remove_node): Do not update the lists.
6114 (dump_varpool_node): Do not dump needed flag.
6115 (varpool_enqueue_needed_node): Remove.
6116 (varpool_mark_needed_node): Remove.
6117 (varpool_reset_queue): Remove.
6118 (varpool_finalize_decl): Move to cgraphunit.c
6119 (varpool_analyze_node): New functions based on former
6120 varpool_analyze_pending_decls.
6121 (varpool_analyze_pending_decls): Remove.
6122 (varpool_assemble_decl): Do not update the lists.
6123 (enqueue_node): New function.
6124 (varpool_remove_unreferenced_decls): Rewrite.
6125 (varpool_empty_needed_queue): Remove.
6126 (add_new_static_var): Do not mark node as needed.
6127 (varpool_create_variable_alias): Handle expansion state
6128 creation.
6129 * except.c (output_ttype): Do not mark node as needed.
6130 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
6131 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
6132 Likewise.
6133 * tree-switch-conversion.c (build_one_array): Likewise.
6134
29438999 61352012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6136
6137 PR c/44774
6138 * doc/invoke.texi (pedantic): Rename to Wpedantic.
6139 * common.opt (Wpedantic): New.
6140 (pedantic): Alias Wpedantic.
6141 * diagnostic.c (warning_at): Likewise.
6142 * c-decl.c (diagnose_mismatched_decls): Likewise.
6143 (build_array_declarator): Likewise.
6144 (mark_forward_parm_decls):
6145 (check_bitfield_type_and_width): Likewise.
6146 (grokdeclarator): Likewise.
6147 (grokfield): Likewise.
6148 (finish_struct): Likewise.
6149 (build_enumerator): Likewise.
6150 (store_parm_decls_oldstyle): Likewise.
6151 (declspecs_add_qual): Likewise.
6152 (declspecs_add_type): Likewise.
6153 (finish_declspecs): Likewise.
6154 * c-typeck.c (composite_type): Likewise.
6155 (comp_target_types): Likewise.
6156 (build_array_ref): Likewise.
6157 (pointer_diff): Likewise.
6158 (build_unary_op): Likewise.
6159 (build_conditional_expr): Likewise.
6160 (build_c_cast): Likewise.
6161 (convert_for_assignment): Likewise.
6162 (maybe_warn_string_init): Likewise.
6163 (digest_init): Likewise.
6164 (pop_init_level): Likewise.
6165 (set_init_index): Likewise.
6166 (c_finish_goto_label): Likewise.
6167 (c_finish_return): Likewise.
6168 (do_case): Likewise.
6169 (build_binary_op): Likewise.
6170 * c-parser.c (static): Likewise.
6171 (c_parser_external_declaration): Likewise.
6172 (c_parser_declaration_or_fndef): Likewise.
6173 (c_parser_static_assert_declaration_no_se): Likewise.
6174 (c_parser_enum_specifier): Likewise.
6175 (c_parser_struct_or_union_specifier): Likewise.
6176 (c_parser_struct_declaration): Likewise.
6177 (c_parser_alignas_specifier): Likewise.
6178 (c_parser_braced_init): Likewise.
6179 (c_parser_initelt): Likewise.
6180 (c_parser_compound_statement_nostart): Likewise.
6181 (c_parser_conditional_expression): Likewise.
6182 (c_parser_alignof_expression): Likewise.
6183 (c_parser_postfix_expression): Likewise.
6184 (c_parser_postfix_expression_after_paren_): Likewise.
6185 (c_parser_objc_class_instance_variables): Likewise.
6186 (c_parser_objc_method_definition): Likewise.
6187 (c_parser_objc_methodprotolist): Likewise.
6188
5150d596 61892012-04-22 Ian Lance Taylor <iant@google.com>
6190
6191 * godump.c (go_output_typedef): Dump size of structs.
6192
89675e8c 61932012-04-22 Razya Ladelsky <razya@il.ibm.com>
61cb2bc3 6194
6195 Correcting transform_to_exit_first_loop + fix to PR46886
6196 * tree-parloops.c (transform_to_exit_first_loop): Remove
6197 setting of number of iterations according to the loop pattern.
6198 Duplicate from entry to exit->src instead of loop->latch.
6199 (pallelize_loops): Remove the condition preventing do-while loops.
6200 * tree-cfg.c (bool bb_in_region_p): New.
6201 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
6202 Adjust redirection of the duplicated iteration.
6203
86e87ef6 62042012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
6205
6206 PR bootstrap/53021
6207 * rtl.def (ADDRESS): Use "i" rather than "w".
6208 * rtl.h (find_base_term): Delete.
6209 (may_be_sp_based_p): Declare.
6210 * rtl.c (rtx_code_size): Remove ADDRESS special case.
6211 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
6212 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
6213 * alias.c: ...here.
6214 (find_base_term): Make static.
6215 (may_be_sp_based_p): New function.
6216 * dse.c (record_store): Use it.
6217 * store-motion.c (store_killed_in_insn): Likewise.
6218
fd39b896 62192012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
6220
6221 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
6222
28738b20 62232012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6224
6225 PR 35441
6226 * c-typeck.c (inform_declaration): New.
6227 (build_function_call_vec): Do not pretty-print
6228 expressions when caret is enabled.
6229 (convert_arguments): Use inform_declaration.
6230
cdf7d299 62312012-04-20 Jim Meyering <meyering@redhat.com>
6232
6233 * genmodes.c (make_complex_modes): Don't truncate a mode name of
6234 length 7 or more when prepending a "C". Suggested by Richard Guenther.
6235
3293b457 62362012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6237
6238 PR rtl-optimization/44214
6239 * fold-const.c (exact_inverse): New function.
6240 (fold_binary_loc): Fold vector and complex division by constant into
6241 multiply by recripocal with flag_reciprocal_math; fold vector division
6242 by constant into multiply by reciprocal with exact inverse.
6243
8efa224a 62442012-04-20 Jan Hubicka <jh@suse.cz>
6245
61cb2bc3 6246 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
6247 force flags.
8efa224a 6248 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
6249 (cgraph_remove_node): Update.
6250 (cgraph_mark_needed_node): Remove.
6251 (cgraph_mark_force_output_node): New.
6252 (dump_cgraph_node): Do not dump needed flag.
6253 (cgraph_node_cannot_be_local_p_1): Update.
6254 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
6255 * cgraph.h (symtab_node_base): Add force_output flag.
6256 (cgraph_node): Remove needed flag.
6257 (varpool_node): Remove force_output flag.
6258 (cgraph_mark_needed_node): Remove.
6259 (cgraph_mark_force_output_node): New.
6260 (cgraph_only_called_directly_or_aliased_p,
6261 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
6262 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
6263 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
61cb2bc3 6264 (cgraph_add_new_function): Update.
6265 (cgraph_mark_if_needed): Update.
8efa224a 6266 (verify_cgraph_node): Update.
6267 (cgraph_analyze_function): Alias target is reachable.
6268 (process_function_and_variable_attributes): Update: externally_visible
6269 flag makes function reachable.
6270 (cgraph_analyze_functions): Update dumping.
6271 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6272 input_overwrite_node, input_varpool_node): Update streaming.
6273 * lto-streamer-out.c (produce_symtab): Use force_output.
6274 * ipa.c (process_references): Weakrefs must be processed.
6275 (cgraph_remove_unreachable_nodes): Likewise; update for new
6276 force_output flag.
61cb2bc3 6277 (varpool_externally_visible_p): Weakrefs are externally visible
8efa224a 6278 even if they are not.
6279 (function_and_variable_visibility): Update; when processing alias
6280 pair force the targets to be output.
61cb2bc3 6281 (whole_program_function_and_variable_visility): Use
6282 mark_reachable_node.
8efa224a 6283 * trans-mem.c (ipa_tm_mark_needed_node): Remove
6284 (ipa_tm_mark_force_output_node): New function.
6285 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
61cb2bc3 6286 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
6287 aliases.
8efa224a 6288 * varasm.c (mark_decl_referenced): Update.
6289 (find_decl_and_mark_needed): Remove.
6290 (find_decl): New function.
6291 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
6292 alias targets as needed.
6293 (dump_tm_clone_pairs): Update.
6294 * tree-inline.c (copy_bb): Update check.
6295 * symtab.c (dump_symtab_base): Dump force_output.
6296 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
6297 * passes.c (execute_todo): Fix dumping.
6298 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
6299 (varpool_analyze_pending_decls): Alias target is reachable.
6300 (varpool_create_variable_alias): Finalize weakrefs.
6301
df3e5a67 63022012-04-20 Jakub Jelinek <jakub@redhat.com>
6303
6304 PR bootstrap/53021
6305 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
6306 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
6307 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
6308 macros instead of constants.
6309 * dse.c (record_store): Check for SP ADDRESS by comparing
6310 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
6311 XEXP to be stack_pointer_rtx.
6312
ebc3ea23 63132012-04-20 Richard Guenther <rguenther@suse.de>
6314
6315 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
6316 update_call_from_tree when propagating into a call.
6317
64581563 63182012-04-20 Alan Modra <amodra@gmail.com>
6319
6320 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
6321 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
6322 sp_offset to frame_off. Move world save code earlier.
6323
11b881f5 63242012-04-20 Richard Guenther <rguenther@suse.de>
6325
6326 PR tree-optimization/53050
6327 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
6328 Do only one transform on COND_EXPRs at the same time.
6329
cae322a0 63302012-04-19 Jan Hubicka <jh@suse.cz>
6331
6332 * symtab.c (dump_symtab_base): Revert accidental checkin.
6333
2e30c82f 63342012-04-20 Alan Modra <amodra@gmail.com>
6335
6336 PR target/53040
6337 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
6338 static chain, set REST_INLINE_FPRS too.
6339
7f85203b 63402012-04-20 Thomas Schwinge <thomas@codesourcery.com>
6341
6342 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
6343 nodes.
6344
5115d20b 63452012-04-20 Richard Guenther <rguenther@suse.de>
6346
61cb2bc3 6347 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
6348 loops that can never run more often than the vectorization factor.
5115d20b 6349
cfacc26f 63502012-04-19 Jan Hubicka <jh@suse.cz>
6351
6352 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
6353
34fac337 63542012-04-19 David Edelsohn <dje.gcc@gmail.com>
6355
6356 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
6357
2e045eaa 63582012-04-19 Jim Meyering <meyering@redhat.com>
6359
2e045eaa 6360 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
6361 We verified above that the string(including trailing NUL) fits in buf,
6362 so just use memcpy.
6363
5300ccdd 63642012-04-19 Richard Guenther <rguenther@suse.de>
6365
6366 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
6367 for dumping DECL_SECTION_NAME.
6368
dbe954dc 63692012-04-19 Michael Matz <matz@suse.de>
6370
6371 PR middle-end/52977
6372 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
6373 (struct tree_vector): Adjust GTY length.
6374 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
6375
6376 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
6377 members.
6378 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
6379 caller emitted the length calulation already.
6380 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
6381 before handling any of the fields for structs.
6382
dbf94397 63832012-04-19 Richard Guenther <rguenther@suse.de>
6384
6385 PR tree-optimization/53031
6386 * tree-vrp.c (adjust_range_with_scev): Revert back to
6387 using max_loop_iterations.
6388
e3d533cf 63892012-04-19 Michael Matz <matz@suse.de>
6390
6391 * diagnostic.c (emit_diagnostic): Move va_end call after user
6392 of the va_list.
6393 (warning, warning_at, pedwarn, permerror): Ditto.
6394
8ee14c01 63952012-04-19 Richard Guenther <rguenther@suse.de>
6396
6397 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
6398 array access.
6399
27b3429e 64002012-04-19 Georg-Johann Lay <avr@gjlay.de>
6401
6402 PR target/53033
6403 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
6404 the case *(X+const).
6405
31e4b46c 64062012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6407
6408 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
6409
61cb2bc3 64102012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
d85dbdb3 6411
6412 PR c/52283/37985
6413 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
6414 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
6415
8fb72e03 64162012-04-19 Richard Guenther <rguenther@suse.de>
6417
6418 PR rtl-optimization/44688
6419 * loop-iv.c (determine_max_iter): Only return max_iter.
6420 (iv_number_of_iterations): Also use the recorded loop bound
6421 on the maximum number of iterations.
6422 * loop-unroll.c (decide_unroll_runtime_iterations): Use
6423 max_iter to avoid unrolling loops that do not roll.
6424 (decide_unroll_stupid): Likewise.
6425
bfb10994 64262012-04-18 Steven Bosscher <steven@gcc.gnu.org>
6427
6428 * targhooks.c (default_case_values_threshold): Fix code style nit.
6429
6430 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
6431 case range and type folding from here...
6432 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
c8302ead 6433 type, as documented in tree.def.
bfb10994 6434
3e7775f6 64352012-04-18 Jan Hubicka <jh@suse.cz>
6436
6437 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
6438 Declare.
bef9aba3 6439 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
3e7775f6 6440 cgraph hash and same comdat groups.
61cb2bc3 6441 (cgraph_optimize): Verify symbol table.
3e7775f6 6442 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
6443 (dissolve_same_comdat_group_list): Work on symtab nodes.
6444 (function_and_variable_visibility): Dissolve variable same comdat group
6445 lists, too.
6446 * symtab.c: Include timevar.h
6447 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
6448
9541f573 64492012-04-18 Steven Bosscher <steven@gcc.gnu.org>
6450
5d459527 6451 * tree-switch-conversion.c (info): Remove global pass info.
6452 (check_range, check_process_case, check_final_bb, create_temp_arrays,
6453 free_temp_arrays, gather_default_values, build_constructors,
6454 array_value_type, build_one_array, build_arrays, gen_def_assigns,
6455 fix_phi_nodes, gen_inbound_check): Pass info around from ...
6456 (process_switch): ... here. Unify message format. Return a const
6457 char pointer to the failure reason message.
6458 (do_switchconv): Unify message format. Update process_switch usage.
6459
9541f573 6460 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
6461 * tree-cfg.c (edge_to_cases): Fix documentation.
6462
ed13de71 64632012-04-18 Uros Bizjak <ubizjak@gmail.com>
6464
6465 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
6466
a963cb46 64672012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6468
6469 PR tree-optimization/52976
6470 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
6471 (possibly_move_powi): New function.
6472 (rewrite_expr_tree): Call possibly_move_powi.
6473 (rewrite_expr_tree_parallel): Likewise.
6474 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
6475 call add_to_ops_vec instead.
6476
56e650d6 64772012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6478
6479 PR tree-optimization/52976
6480 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
6481 (decrement_power): Likewise.
6482 (propagate_op_to_single_use): Likewise.
6483 (zero_one_operation): Handle __builtin_pow* calls in linearized
6484 expression trees; factor logic into propagate_op_to_single_use.
6485 (undistribute_ops_list): Allow operands with repeat counts > 1.
6486
b6556916 64872012-04-18 Richard Guenther <rguenther@suse.de>
6488
6489 PR tree-optimization/44688
6490 * cfgloop.h (record_niter_bound): Declare.
6491 * tree-ssa-loop-niter.c (record_niter_bound): Export.
6492 Update the estimation with the upper bound here...
6493 (estimate_numbers_of_iterations_loop): ... instead of here.
6494 Do not forcefully reset a recorded upper bound.
6495 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
61cb2bc3 6496 Record the maximum number of loop iterations of the prologue loop.
b6556916 6497
04ec15fa 64982012-04-18 Jan Hubicka <jh@suse.cz>
6499
6500 * lto-symtab.c (lto_cgraph_replace_node): Update.
6501 * cgraphbuild.c (record_reference, record_type_list,
6502 record_eh_tables, mark_address, mark_load, mark_store): Update.
6503 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
6504 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
6505 Update.
6506 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
6507 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
6508 * reload.c: Fix typo in comment.
6509 * rtlanal.c: Likewise.
6510 * tree-emultls.c (gen_emutls_addr): Update.
6511 * ipa-reference.c (analyze_function): Update.
6512 * cgraphunit.c (cgraph_analyze_function,
6513 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
6514 Update.
6515 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
6516 (ipa_remove_reference): Likewise.
6517 (ipa_remove_all_refering): Rename to ...
6518 (ipa_remove_all_referring): ... this one; update.
6519 (ipa_dump_references): Update.
6520 (ipa_dump_referring): Update.
6521 (ipa_clone_references): Update.
6522 (ipa_clone_refering): Rename to ...
6523 (ipa_clone_referring): ... this one; update.
6524 (ipa_ref_cannot_lead_to_return): Update.
6525 (ipa_ref_has_aliases_p): Update.
6526 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
6527 forward typedefs.
6528 (ipa_ref_type): Remove.
6529 (ipa_ref_ptr_u): Remove.
6530 (ipa_ref): Remove referencing, refered, refered_index, refering_type
6531 and refered_type; add referring, referred and referred_index.
6532 (ipa_ref_list): Rename refering to referring.
6533 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
6534 ipa_clone_references, ipa_clone_referring): Update prototypes.
6535 * lto-cgraph.c (referenced_from_other_partition_p): Update.
6536 (lto_output_ref): Update.
6537 (add_references): Update.
6538 (input_varpool_node): Update.
6539 (input_refs): Update.
6540 * ipa-ref-inline.h (ipa_ref_node): Update.
6541 (ipa_ref_varpool_node): Update.
61cb2bc3 6542 (ipa_ref_referring_node): Update.
04ec15fa 6543 (ipa_ref_referring_varpool_node): Update.
61cb2bc3 6544 (ipa_ref_referring_ref_list): Update.
04ec15fa 6545 (ipa_ref_referred_ref_list): Update.
6546 (ipa_ref_list_first_referring): Update.
6547 (ipa_empty_ref_list): Update.
6548 (ipa_ref_list_refering_iterate): Rename to ...
6549 (ipa_ref_list_referring_iterate): ... this one.
6550 * cse.c: Update comment.
6551 * ipa-utils.c (ipa_reverse_postorder): Update.
6552 * tree-ssa-alias.c: Update.
6553 * ipa-inline.c (reset_edge_caches): Update.
6554 (update_caller_keys): Update.
6555 * ipa-inline.h: Update comments.
6556 * jump.c: Update comment.
6557 * alias.c: Likewise.
6558 * ipa.c (process_references): Update.
6559 (cgraph_remove_unreachable_nodes): Likewise.
6560 (ipa_discover_readonly_nonaddressable_var): Likewise.
6561 (cgraph_address_taken_from_non_vtable_p): Likewise.
6562 * trans-mem.c (ipa_tm_execute): Update.
6563 * simplify-rtx.c: Fix comment.
6564 * rtl.c: Fix comment.
6565 * symtab.c (symtab_unregister_node): Update.
6566 * varpool.c (dump_varpool_node): Update.
6567 (varpool_analyze_pending_decls): Update.
6568 (assemble_aliases): Update.
6569 (varpool_for_node_and_aliases): Update.
6570
7f521ab4 65712012-04-18 Richard Guenther <rguenther@suse.de>
6572
6573 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
6574 use_undefined_p parameter.
6575 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6576 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6577 Likewise.
6578 (estimate_numbers_of_iterations): Likewise.
6579 (estimated_loop_iterations): Adjust.
6580 (max_loop_iterations): Likewise.
6581 (scev_probably_wraps_p): Likewise.
6582 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6583 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
6584 not max_loop_iterations.
6585 (execute_vrp): Remove explicit number of iterations estimation.
6586
ba102931 65872012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
6588
6589 * config/i386/linux-common.h: New.
6590
6591 * config.gcc: Add i386/linux-common.h before
6592 all i386/linux.h and i386/linux64.h usages.
6593
6594 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
6595 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6596 * config/i386/gnu-user64.h: Likewise.
6597
6598 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
6599 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
6600 (GNU_USER_TARGET_MATHFILE_SPEC): New.
6601 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
6602
18841b0c 66032012-04-18 Jan Hubicka <jh@suse.cz>
6604
6605 * cgraph.c (cgraph_node_name): Remove.
6606 (dump_cgraph_node): Use dump_symtab_base; reformat.
6607 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
6608 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
6609 Declare.
6610 (cgraph_node_name, varpool_node_name): Remove.
6611 (cgraph_node_asm_name, varpool_node_asm_name,
6612 cgraph_node_name, varpool_node_name): New.
6613 * tree-pass.h (TODO_dump_cgraph): Rename to ...
6614 (TODO_dump_symtab): ... this one.
6615 * ipa-cp (pass_ipa_cp): Update.
6616 * ia-reference.c (generate_summary, read_write_all_from_decl,
6617 propagate, ipa_reference_read_optimization_summary): Update.
6618 * cgraphunit.c (cgraph_analyze_functions): Update.
6619 (cgraph_optimize): Update.
6620 * ipa-ref.c (ipa_dump_references): Update.
6621 (ipa_dump_refering): Update.
6622 * ipa-inline.c (pass_ipa_inline): Update.
6623 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
6624 * ipa.c (pass_ipa_function_visibility,
6625 pass_ipa_whole_program_visibility): Update.
6626 * tree-sra.c (pass_early_ipa_sra): Update.
6627 * symtab.c: Include langhooks.h
6628 (symtab_node_asm_name): New.
6629 (symtab_node_name): New.
6630 (symtab_type_names): New static var.
6631 (dump_symtab_base): New.
6632 (dump_symtab_node, dump_symtab): New.
6633 (debug_symtab_node, debug_symtab): New.
6634 * tree-ssa-structalias.c: Dump symbol table.
6635 * pases.c (execute_todo): Handle TODO_dump_symtab instead
6636 of TODO_dump_cgraph.
6637 * varpoo.c (varpool_node_name): Remove.
6638 (dump_varpool_node): Use dump_symtab_base; reformat.
6639
b583dffb 66402012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6641
61cb2bc3 6642 * doc/invoke.texi (Language Independent Options): @item should be
b583dffb 6643 before @opindex.
6644
9a37e9c6 66452012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6646
6647 PR bootstrap/53021
6648 * rtl.c (rtx_code_size): Handle ADDRESS.
6649
85d618f3 66502012-04-17 Tom de Vries <tom@codesourcery.com>
6651
6652 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
6653 is not a STMT_LIST.
6654
4e0c0c52 66552012-04-17 Uros Bizjak <ubizjak@gmail.com>
6656
6657 PR target/53020
6658 * config/i386/sync.md (atomic_<code><mode>): Rename to
6659 atomic_<logic><mode>.
6660
4e56ceb1 66612012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6662
6663 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
6664 * alias.c (reg_base_value): Expand and update comment.
6665 (arg_base_value): New variable.
6666 (unique_id): Move up file.
6667 (unique_base_value, unique_base_value_p, known_base_value_p): New.
6668 (find_base_value): Use arg_base_value and known_base_value_p.
6669 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
6670 (find_base_term): Use known_base_value_p.
6671 (base_alias_check): Use unique_base_value_p.
6672 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
6673 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
6674
b100cea5 66752012-04-17 Pat Haugen <pthaugen@us.ibm.com>
6676
6677 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
6678
7a10f06b 66792012-04-17 Michael Matz <matz@suse.de>
6680
6681 PR tree-optimization/18437
6682 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
6683 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
6684 (vect_check_strided_load): Declare.
6685 * tree-vect-data-refs.c (vect_check_strided_load): New function.
6686 (vect_analyze_data_refs): Use it to accept strided loads.
6687 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
6688
3a37f7bd 66892012-04-17 Richard Guenther <rguenther@suse.de>
6690
6691 PR middle-end/53011
6692 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
6693 loops when redirecting an entry or latch edge.
6694
2bc1ac5a 66952012-04-17 Bernd Schmidt <bernds@codesourcery.com>
6696
6697 * sel-sched.c (sel_global_init): Revert previous change.
6698
e01d3bb3 66992012-04-17 Richard Guenther <rguenther@suse.de>
6700
6701 * tree-flow.h (array_at_struct_end_p): Move declaration ...
6702 * tree.h (array_at_struct_end_p): ... here.
6703 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
6704 * expr.c (array_at_struct_end_p): ... here. Rewrite.
6705
1c391fd0 67062012-04-17 Steven Bosscher <steven@gcc.gnu.org>
6707
6708 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
6709 COST_TABLE): Remove.
6710 (estimate_case_costs): Remove.
6711 (expand_case): Do not call estimate_case_costs
6712 to set use_cost_table.
6713 (balance_case_nodes): Do not use use_cost_table.
6714
cfbe30aa 67152012-04-16 Jan Hubicka <jh@suse.cz>
6716
6717 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
6718 (hash_node, eq_node): Remove.
6719 (cgraph_create_node): Do not handle hashtable.
6720 (cgraph_get_node): Remove.
6721 (cgraph_insert_node_to_hashtable): Remove.
6722 (hash_node_by_assembler_name): Remove.
6723 (eq_assembler_name): Remove.
6724 (cgraph_node_for_asm): Rewrite.
6725 (cgraph_find_replacement_node): Break out from ...
6726 (cgraph_remove_node): ... here; do not maintain hashtables.
6727 (change_decl_assembler_name): Remove.
6728 (cgraph_clone_node): Do not maintain hashtables.
6729 * cgraph.h (const_symtab_node): New typedef.
6730 (cgraph_insert_node_to_hashtable): Remove.
6731 (symtab_get_node, symtab_node_for_asm,
6732 symtab_insert_node_to_hashtable): Declare.
6733 (cgraph_find_replacement_node): Declare.
6734 (cgraph_get_node, varpool_get_node): Turn into inlines.
6735 (cgraph, varpool): Work sanely on NULL pointers.
6736 (FOR_EACH_SYMBOL): New walker.
6737 * ipa-inline-transform.c (save_inline_function_body): Use
6738 symtab_insert_node_to_hashtable.
6739 * symtab.c: Include ggc.h and diagnostics.h
6740 (symtab_hash, assembler_name_hash): New static vars;
6741 (hash_node, eq_node, hash_node_by_assembler_name,
6742 eq_assembler_name, insert_to_assembler_name_hash,
6743 unlink_from_assembler_name_hash): New.
6744 (symtab_register_node): Update hashtables.
6745 (symtab_insert_node_to_hashtable): New.
6746 (symtab_unregister_node): Update hashtables.
6747 (symtab_get_node): New.
6748 (symtab_node_for_asm): New.
6749 (change_decl_assembler_name): New.
6750 * Makefile.in (symtab.o): Needs GTY.
6751 * varpool.c (varpool_hash): Remove.
6752 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
6753 (varpool_node): Rewrite using varpool_get_node.
6754 (varpool_remove_node): DO not maintain hashtables.
61cb2bc3 6755 (varpool_node_for_asm): Rewrite.
cfbe30aa 6756
cafd8c6c 67572012-04-16 Sandra Loosemore <sandra@codesourcery.com>
6758
6759 * doc/invoke.texi: Copy-edit to put verbs in the present tense
6760 when describing the current behavior of GCC.
6761
5d92623d 67622012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
6763
6764 * genemit.c (gen_exp): Remove ADDRESS handling.
6765 * genoutput.c (scan_operands): Likewise.
6766 * genpeep.c (match_rtx): Likewise.
6767 * genrecog.c (add_to_sequence): Likewise.
6768
addbb217 67692012-04-16 David Edelsohn <dje.gcc@gmail.com>
6770
61cb2bc3 6771 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
addbb217 6772
9e3797f2 67732012-04-16 Martin Jambor <mjambor@suse.cz>
6774
6775 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
6776 bit-fields.
6777
85cedc6b 67782012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
6779
6780 PR target/51819
6781 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
6782 hints for 'A' operand types.
6783
0704fb2e 67842012-04-16 Jan Hubicka <jh@suse.cz>
6785
6786 * cgraph.h (symtab_node_base): Add next and previous pointers.
6787 (cgraph_node): Remove next and preivous pointers.
6788 (varpool_node): Likewise; remove next/previous GTY marker;
6789 it is not type safe.
6790 (symtab_node_def): Update GTY marker
6791 (x_cgraph_nodes, cgraph_nodes): Remove.
6792 (symtab_nodes): New function.
6793 (cgraph_order): Rename to ...
6794 (symtab_order): ... this one.
6795 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
6796 Declare.
6797 (x_varpool_nodes, varpool_nodes): Remove.
6798 (FOR_EACH_STATIC_VARIABLE): Update.
6799 (symtab_function_p, symtab_variable_p): New function.
6800 (FOR_EACH_VARIABLE): Update.
6801 (varpool_first_variable, varpool_next_variable): New functions.
6802 (FOR_EACH_VARIABLE): Update.
6803 (cgraph_first_defined_function): Update.
6804 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
6805 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
6806 (cgraph_first_function, cgraph_next_function): New.
6807 (FOR_EACH_FUNCTION): Update.
6808 (cgraph_first_function_with_gimple_body,
6809 cgraph_next_function_with_gimple_body): Update.
6810 * symtab.c: New file.
6811 * cgraph.c: Update copyright dates.
6812 (x_cgraph_nodes, cgraph_order): Remove.
6813 (NEXT_FREE_NODE): Update.
6814 (SET_NEXT_FREE_NODE): New.
6815 (cgraph_create_node_1): Remove common code.
61cb2bc3 6816 (cgraph_create_node): Remove common code; call symtab_register_node.
0704fb2e 6817 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
61cb2bc3 6818 (cgraph_add_asm_node): Update.
0704fb2e 6819 (cgraph_clone_node): Register new node.
6820 * cgraphunit.c (process_function_and_variable_attributes): Update.
6821 (cgraph_analyze_functions): Update.
6822 (cgraph_analyze_functions): Update.
6823 (cgraph_output_in_order): Update.
61cb2bc3 6824 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
6825 Update.
6826 * ipa-inline.c (recursive_inlining): Update.
6827 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
0704fb2e 6828 * ipa.c (cgraph_remove_unreachable_nodes): Update.
6829 * Makefile.in: Add symtab.o
6830 * varpool.c (x_varpool_nodes): Remove
6831 (varpool_node): Remove common code; call symtab_register_node.
61cb2bc3 6832 (varpool_remove_node): Remove common code; call symtab_unregister_node.
0704fb2e 6833
c7a1d251 68342012-04-16 Richard Guenther <rguenther@suse.de>
6835
6836 PR middle-end/52977
6837 * tree.h (VECTOR_CST_NELTS): Adjust.
6838 (struct tree_vector): Add explicit length field.
6839 (make_vector_stat): Declare.
6840 (make_vector): Define.
6841 * tree.c (make_vector_stat): New function.
6842 (build_vector_stat): Use it.
6843 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
6844
d8a78f92 68452012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6846
6847 PR tree-optimization/52976
6848 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
6849 (undistribute_ops_list): Ops with repeat counts aren't eligible for
6850 undistribution.
6851 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
6852
7c455d87 68532012-04-16 Jan Hubicka <jh@suse.cz>
6854
6855 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
6856 New macros.
6857 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
6858 walkers to walk cgraph and varpool.
6859 * cgraph.c (cgraph_node_for_asm): Likewise.
6860 (dump_cgraph): Likewise.
6861 * value-prof.c (init_node_map): Likewise.
6862 * tree.c (free_lang_data_in_cgraph): Likewise.
6863 * tree-emutls.c: (ipa_lower_emutls): Likewise.
6864 * ipa-reference.c (generate_summary, propagate): Likewise.
6865 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
6866 cgraph_mark_functions_to_output, cgraph_output_in_order,
6867 output_weakrefs, cgraph_materialize_all_clones,
6868 cgraph_optimize): Likewise.
6869 * lto-cgraph.c (merge_profile_summaries): Likewise.
6870 (input_cgraph): Likewise.
6871 * ipa-pure-const.c (generate_summary): Likewise.
6872 (propagate): Likwise.
6873 * ipa-utils.c (ipa_reduced_postorder): Likewise.
6874 (ipa_free_postorder_info): Likewise.
6875 (ipa_reverse_postorder): Likewise.
6876 * ipa-inline.c (ipa_inline): Likewise.
6877 * matrix-reorg.c (find_matrices_decl): Likewise.
6878 (matrix_reorg): Likewise.
6879 * tree-vectorizer.c (increase_alignment): Likewise.
6880 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6881 (function_and_variable_visibility): Likewise.
6882 (whole_program_function_and_variable_visibility): Likewise.
6883 (ipa_cdtor_merge): Likewise.
6884 * trans-mem.c (ipa_tm_execute): Likewise.
6885 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
6886 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
6887 (ipa_print_all_params): Likewise.
6888 (ipa_update_after_lto_read): Likewise.
6889 * tree-profie.c (tree_profiling): Likewise.
6890 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
6891 * passes.c (dump_passes): Likewise.
6892 (do_per_function): Likewise.
6893 (ipa_write_summaries): Likewise.
6894 * varpool.c (dump_varpool): Likewise.
6895 (varpool_node_for_asm): Likewise.
6896 (varpool_assemble_pending_decls): Likewise.
6897
06734da8 68982012-04-16 Richard Guenther <rguenther@suse.de>
6899
6900 PR tree-optimization/52975
6901 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
6902 condition but always mark it with TRUTH_NOT_EXPR.
4e0c0c52 6903
360b78f3 69042012-04-16 Richard Guenther <rguenther@suse.de>
6905
6906 PR tree-optimization/52975
6907 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
6908 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
6909 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
6910 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
6911
fd65bafc 69122012-04-14 Uros Bizjak <ubizjak@gmail.com>
6913
6914 * config/i386/sse.md (ssse3_plusminus): New code iterator.
6915 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
6916 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
6917 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
6918 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
6919 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
6920 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
6921
6922 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
6923 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
6924 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
6925 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
6926 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
6927 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
6928
6929 (xop_plus): New code iterator.
6930 (macs): New code attribute.
6931 (macds): Ditto.
6932 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
6933 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
6934 iterator.
6935 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
6936 xop_plus code iterator.
6937 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
6938 xop_plus code iterator.
6939 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
6940 xop_plus code iterator.
6941 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
6942 xop_plus code iterator.
6943
6944 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
6945 any_extend code iterator.
6946 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
6947 any_extend code iterator.
6948 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
6949 any_extend code iterator.
6950 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
6951 any_extend code iterator.
6952 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
6953 any_extend code iterator.
6954 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
6955 any_extend code iterator.
6956
a2b85e40 69572012-04-14 Tom de Vries <tom@codesourcery.com>
6958
6959 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
6960 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
6961 DELETED_LABEL note, and move it to ...
6962 * cfgrtl.c (delete_insn): ... here. Change return type to void.
6963 (delete_insn_and_edges): Likewise.
6964 (delete_insn_chain): Handle new return type of delete_insn. Delete
6965 chain backwards rather than forwards.
6966 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
6967 void.
6968 * cfglayout.c (fixup_reorder_chain): Delete unused label.
6969
7d0d0ce1 69702012-04-14 Jan Hubicka <jh@suse.cz>
6971
6972 * cgraph.h: Update copyrights;
6973 (symtab_node): Turn to union typedef.
6974 (symtab_node_base): New structure.
6975 (symtab_type): Add SYMTAB_SYMBOL tag.
6976 (cgraph_node): Annotate some pinters with nested_ptr.
6977 (varpool_node): Likewise.
6978 (cgraph_local_info): Remove lto_file_data
6979 and externally_visible.
6980 (cgraph_node): Remove decl; same_comdat_group list;
6981 aux; ref_list; order; address_taken; reachable_from_other_parittion,
6982 in_other_partition; resolution.
6983 (varpool_node): Remove decl; same_comdat_group;
6984 ref_list; lto_file_data; aux; order; resolution; externally_visible;
6985 used_from_other_partition; in_other_partition.
61cb2bc3 6986 (symtab_node_def): New union.
7d0d0ce1 6987 (cgraph, varpool): Update.
6988 (varpool_first_static_initializer, varpool_next_static_initializer,
6989 cgraph_only_called_directly_or_aliased_p,
6990 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
6991 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
6992 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
6993 field references.
6994 * cgraph.c: Likewise.
6995 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
6996 * cgraphbuild.c: Likewise.
6997 * lto-symtab.c: Likewise.
6998 * c-gimplify.c: Likewise.
6999 * value-prof.c: Likewise.
7000 * tree.c: Likewise.
7001 * ipa-cp.c: Likewise.
7002 * tree-emutls.c: Likewise.
7003 * ipa-inline-transform.c: Likwise.
7004 * ipa-reference.c: Likewise.
7005 * cgraphunit.c: Likewise.
7006 * ipa-ref.c: Likewise.
7007 * lto-cgraph.c: Likewise.
7008 * ipa-ref-inline.h: Likewise.
7009 * ipa-pure-const.c: Likewise.
7010 * lto-streamer-out.c: Likewise.
7011 * ipa-utils.c: Likewise.
7012 * ipa-inline.c: Likewise.
7013 * matrix-reorg.c: Likewise.
7014 * tree-eh.c: Likewise.
7015 * tree-vectorizer.c: Likewise.
7016 * ipa-split.c: Likewise.
7017 * ipa.c: Likewise.
7018 * trans-mem.c: Likewise.
7019 * ipa-inline-analysis.c: Likewise.
7020 * gimplify.c: Likewise.
7021 * cfgexpand.c: Likewise.
7022 * tree-sra.c: Likewise.
7023 * ipa-prop.c: Likewise.
7024 * varasm.c: Likewise.
7025 * tree-nested.c: Likewise.
7026 * tree-inline.c: Likewise.
7027 * tree-profile.c: Likewise.
7028 * tree-ssa-structalias.c: Likewise.
7029 * passes.c: Likewise.
7030 * varpool.c: Likewise.
7031
162fb1a4 70322012-04-14 Tom de Vries <tom@codesourcery.com>
7033
7034 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
7035 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
7036 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
7037 of find_edge.
7038 (gsi_advance_fw_nondebug_nonlocal): New function.
7039 (local_def): Removed function.
7040 (same_succ_hash): Use stmt_local_def.
7041 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
7042 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
7043
fc3dad6f 70442012-04-13 H.J. Lu <hongjiu.lu@intel.com>
7045
7046 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
7047 and __ILP32__ for x32.
7048
86d2a13e 70492012-04-13 Martin Jambor <mjambor@suse.cz>
7050
7051 PR middle-end/52939
7052 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
7053 fold_ctor_reference returns a zero constant.
7054
83dd7eef 70552012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
7056
7057 * config.gcc: Add i386/gnu-user-common.h before all
7058 i386/gnu-user.h and i386/gnu-user64.h usages.
7059
7060 * config/i386/gnu-user-common.h: New.
7061
7062 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
7063 (CC1_SPEC): Likewise.
7064 (ENDFILE_SPEC): Likewise.
7065 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
7066 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
7067 (TARGET_OS_CPP_BUILTINS): Likewise.
7068 (LIBGCC2_HAS_TF_MODE): Likewise.
7069 (LIBGCC2_TF_CEXT): Likewise.
7070 (TF_SIZE): Likewise.
7071 (TARGET_ASM_FILE_END): Likewise.
7072 (STACK_CHECK_MOVING_SP): Likewise.
7073 (STACK_CHECK_STATIC_BUILTIN): Likewise.
7074 * config/i386/gnu-user64.h: Likewise.
7075
75d525a2 70762012-04-13 Martin Jambor <mjambor@suse.cz>
7077
7078 * expr.c (expand_expr_real_1): Pass type, not the expression, to
7079 set_mem_attributes for a memory temporary. Do not call the function
7080 for the memory temporary created for a bitfield.
7081
2abb79fc 70822012-04-13 Alexandre Oliva <aoliva@redhat.com>
7083
7084 PR debug/48866
7085 * df.h (enum debug_temp_where): New.
7086 (dead_debug_init, dead_debug_finish) Declare.
7087 (dead_debug_add, dead_debug_insert_temp): Declare.
7088 (struct dead_debug_use, struct dead_debug): Moved from...
7089 * df-problems.c: ... here.
7090 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
7091 to a debug temp.
7092 (df_create_unused_note): Likewise.
7093 (df_set_dead_notes_for_mw): Move comment where it belongs.
7094 (dead_debug_init): Export.
7095 (dead_debug_reset_uses): New, factored out of...
7096 (dead_debug_finish): ...this. Export.
7097 (dead_debug_reset): Remove.
7098 (dead_debug_add): Export.
7099 (dead_debug_insert_before): Rename to...
7100 (dead_debug_insert_temp): ... this. Add where argument. Export.
7101 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
7102 Return insertion count.
7103 (df_note_bb_compute): Adjust.
7104 * dce.c (word_dce_process_block): Adjust dead debug uses.
7105 (dce_process_block): Likewise.
7106
9f5c85ce 71072012-04-13 Alexandre Oliva <aoliva@redhat.com>
7108
7109 * df-problems.c (df_note_bb_compute): Do not take note of
7110 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
7111
11643610 71122012-04-13 Alexandre Oliva <aoliva@redhat.com>
7113
7114 PR debug/51570
7115 * var-tracking.c (expand_depth): New type.
7116 (onepart_aux, expand_loc_callback_data): Change depth type to it.
7117 (loc_exp_dep_alloc): Adjust initializer.
7118 (update_depth): Use new type. Add entryvals.
7119 (vt_expand_var_loc_chain): Take note of expansions with
7120 ENTRY_VALUEs, but don't accept them right away. Run an optional
7121 second pass accepting the minimum ENTRY_VALUE count found in the
7122 first pass.
7123 (vt_expand_loc_callback, INIT_ELCD): Adjust.
7124
cdd84b7c 71252012-04-13 Tom de Vries <tom@codesourcery.com>
7126
7127 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
7128 parameters vuse and vuse_escaped.
7129 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
7130 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
7131 vuse1 != vuse2.
7132
2df61941 71332012-04-13 Richard Guenther <rguenther@suse.de>
7134
7135 PR tree-optimization/52969
7136 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
7137 the condition for the COND_EXPR and handle predicate negation
7138 by swapping the COND_EXPR arms.
7139
4f08bfe3 71402012-04-13 Nick Clifton <nickc@redhat.com>
7141
7142 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
7143 TODO_dump_func flag.
7144
30474b14 71452012-04-13 Andrey Belevantsev <abel@ispras.ru>
7146
7147 PR rtl-optimization/52203
7148 PR rtl-optimization/52715
7149
7150 Revert the 2012-03-07 fix for PR 52203.
7151 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
7152 the insn does not modify DFA right before issuing, adjust
7153 issue_rate accordingly.
7154
d1d7b24c 71552012-04-13 Richard Guenther <rguenther@suse.de>
7156
7157 PR c/52549
7158 * c-typeck.c (pointer_diff): Remove bogus assert.
7159
799c82e4 71602012-04-13 Richard Guenther <rguenther@suse.de>
7161
7162 PR c/52862
fd65bafc 7163 * convert.c (convert_to_pointer): Remove special-casing of zero.
799c82e4 7164
c5b75283 71652012-04-13 Joey Ye <joey.ye@arm.com>
7166
7167 * config/arm/constraints.md (Pe): New constraint.
7168 * config/arm/arm.md: New split for imm 256-510.
7169
9fd13df4 71702012-04-13 Terry Guo <terry.guo@arm.com>
7171
7172 * config/arm/arm-cores.def: Added core cortex-m0plus.
7173 * config/arm/arm-tune.md: Regenerated.
7174 * config/arm/arm-tables.opt: Regenerated.
7175 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
7176
d6415769 71772012-04-13 Alan Modra <amodra@gmail.com>
7178
7179 PR target/52828
7180 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
7181 tie regs on destination of sets. Delete forward declaration.
7182 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
7183 (rs6000_emit_prologue): Likewise.
7184 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
7185 and gen_stack_tie.
7186 (is_mem_ref): Use tie_operand to recognise stack ties.
7187 * config/rs6000/predicates.md (tie_operand): New.
7188 * config/rs6000/rs6000.md (restore_stack_block): Generate new
7189 stack tie rtl.
7190 (restore_stack_nonlocal): Likewise.
7191 (stack_tie): Update.
7192 (frame_tie): Delete.
7193
8ef3b7cb 71942012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7195
7196 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
7197 HOST_WIDE_INT_PRINT_DEC in format strings.
7198
8da8a06b 71992012-04-12 Uros Bizjak <ubizjak@gmail.com>
7200
7201 PR target/52932
7202 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
7203 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
7204 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
7205 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
7206 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
7207 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
7208 avx2_permvarv8si using VI4F_256 mode iterator.
7209 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
7210 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
7211 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
7212 gen_avx2_permvarv8sf.
7213 (expand_vec_perm_pshufb): Ditto.
7214
203e95f6 72152012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7216
7217 PR target/52775
7218 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
7219 the list of options to enable the FCFID instruction.
7220 (TARGET_EXTRA_BUILTINS): Adjust comment.
7221
8c5ac7f6 72222012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7223
7224 PR tree-optimization/18589
7225 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
7226 (operand_entry): Add count field.
7227 (add_repeat_to_ops_vec): New function.
7228 (completely_remove_stmt): Likewise.
7229 (remove_def_if_absorbed_call): Likewise.
7230 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
7231 (acceptable_pow_call): New function.
7232 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
7233 entries with repeat counts when found.
7234 (repeat_factor_d): New struct and associated typedefs.
7235 (repeat_factor_vec): New static vector variable.
7236 (compare_repeat_factors): New function.
7237 (get_reassoc_pow_ssa_name): Likewise.
7238 (attempt_builtin_powi): Likewise.
7239 (reassociate_bb): Call attempt_builtin_powi.
7240 (fini_reassoc): Two new calls to statistics_counter_event.
7241
3db65b62 72422012-04-12 Richard Guenther <rguenther@suse.de>
7243
7244 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
7245 * cgraph.h (tree_rest_of_compilation): Remove.
7246 * cgraph.c (cgraph_add_new_function): Move ...
7247 * cgraphunit.c (cgraph_add_new_function): ... here.
7248 (tree_rest_of_compilation): Make static.
7249 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
7250 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
7251 gate_all_early_local_passes, execute_all_early_local_passes,
7252 pass_early_local_passes, gate_all_early_optimizations,
7253 pass_all_early_optimizations): Move ...
7254 * passes.c (gate_all_optimizations, pass_all_optimizations,
7255 gate_all_early_local_passes, execute_all_early_local_passes,
7256 pass_early_local_passes, gate_all_early_optimizations,
7257 pass_all_early_optimizations): ... here.
7258 * tree-optimize.c (execute_free_datastructures): Remove.
7259 * tree-flow.h (execute_free_datastructures): Remove.
7260 * tree-optimize.c (execute_init_datastructures,
7261 pass_init_datastructures): Move ...
7262 * tree-ssa.c (execute_init_datastructures,
7263 pass_init_datastructures): ... here.
7264 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
7265 execute_free_datastructures.
7266
fe9cf48d 72672012-04-12 Bernd Schmidt <bernds@codesourcery.com>
7268
7269 * dbgcnt.def (ira_move): New counter.
7270 * ira-int.h (ira_create_new_reg): Declare function.
7271 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
7272 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
7273 no longer static. All callers changed.
7274 * ira.c: Include "dbgcnt.h".
7275 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
7276 move_unallocated_pseudos): New static functions.
7277 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
7278 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
7279 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
7280 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
7281 to the pseudos generated in find_moveable_pseudos.
7282 * Makefile.in (ira.o): Add $(DBGCNT_H).
7283
06a9142d 72842012-04-12 Richard Guenther <rguenther@suse.de>
7285
7286 PR tree-optimization/52943
7287 * tree-chrec.h (chrec_is_positive): Remove.
7288 * tree-scalar-evolution.c (chrec_is_positive): Move ...
7289 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
7290 Return false for a constant zero instead of negative.
7291 (analyze_siv_subscript_cst_affine): Handle zero difference
7292 in the initial condition explicitely.
7293
b0b097b4 72942012-04-12 Richard Guenther <rguenther@suse.de>
7295
7296 * tree-parloops.c (parallelize_loops): Also consult the upper
7297 bound for the number of iterations.
7298 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7299 (loop_prefetch_arrays): Likewise.
7300
fee017b3 73012012-04-12 Richard Guenther <rguenther@suse.de>
7302
7303 * cfgloop.h (estimated_loop_iterations_int): Ditch
7304 'conservative' parameter.
7305 (max_stmt_executions_int): Likewise.
7306 (estimated_loop_iterations): Likewise.
7307 (max_stmt_executions): Likewise.
7308 (max_loop_iterations): Declare.
7309 (max_loop_iterations_int): Likewise.
7310 (estimated_stmt_executions): Likewise.
7311 (estimated_stmt_executions_int): Likewise.
7312 * tree-ssa-loop-niter.c (estimated_loop_iterations):
7313 Split parts to ...
7314 (max_loop_iterations): ... this.
7315 (estimated_loop_iterations_int): Split parts to ...
7316 (max_loop_iterations_int): ... this.
7317 (max_stmt_executions_int): Split parts to ...
7318 (estimated_stmt_executions_int): ... this.
7319 (max_stmt_executions): Split parts to ...
7320 (estimated_stmt_executions): ... this.
7321 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
7322 * predict.c (predict_loops): Likewise.
7323 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
7324 (analyze_siv_subscript_cst_affine): Likewise.
7325 (compute_overlap_steps_for_affine_1_2): Likewise.
7326 (analyze_subscript_affine_affine): Likewise.
7327 (init_omega_for_ddr_1): Likewise.
7328 * tree-parloops.c (parallelize_loops): Likewise.
7329 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7330 (may_eliminate_iv): Likewise.
7331 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7332 (loop_prefetch_arrays): Likewise.
7333 * tree-vrp.c (adjust_range_with_scev): Likewise.
7334
c3583c9c 73352012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
7336
7337 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
7338 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
7339 Fix line width.
7340 (dump_table): Use bool type for need_align and have_df variables.
7341 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
7342 (regs_used): Remove register modifier.
7343 (barrier_align): Move variables slot, credit, jump_to_next
7344 into if block above for loop. Use bool type for jump_to_next.
7345 (sh_function_arg): Use NULL_RTX instead of 0.
7346
886bfde4 73472012-04-11 Andreas Schwab <schwab@linux-m68k.org>
7348
7349 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
7350 (bswapsi2): New expander.
7351
7a1c6e92 73522012-04-11 H.J. Lu <hongjiu.lu@intel.com>
7353
7354 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
7355 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
7356
e623c80a 73572012-04-11 H.J. Lu <hongjiu.lu@intel.com>
7358
7359 PR rtl-optimization/52876
7360 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
ed13de71 7361 Don't call mark_reg_pointer for incompatible pointer sign extension.
e623c80a 7362
886bfde4 7363 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
e623c80a 7364 directly.
7365
51dbf409 73662012-04-11 Bernd Schmidt <bernds@codesourcery.com>
7367
7368 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
7369 comparisons against TYPE_PRECISION.
7370 * tree-ssa-forwprop.c (combine_conversions): Likewise.
7371
65082f57 73722012-04-11 Xinliang David Li <davidxl@google.com>
7373
7374 * tree-passes.h: Remove TODO_dump_func.
7375 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
7376 * trans-mem.c: Remove TODO_dump_func.
7377 * ira.c: Remove TODO_dump_func.
7378
78474516 73792012-04-11 H.J. Lu <hongjiu.lu@intel.com>
7380
7381 * config/i386/i386.c (ix86_option_override_internal): Check
7382 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
7383 after TARGET_64BIT is updated.
7384
d498e090 73852012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7386
7387 * config/sh/sh.h: Remove old secondary reload code.
7388
855d5778 73892012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7390
7391 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
7392 (ready_reorder): ... this function.
7393
c486a06e 73942012-04-11 Bernd Schmidt <bernds@codesourcery.com>
7395
7396 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
7397 sched_init calls.
7398
ca5e50e4 7399 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
7400 insns so that no other insn is queued for a time before them.
7401
6b87239a 7402 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
7403 unknown.
7404
08754147 74052012-04-11 Richard Guenther <rguenther@suse.de>
7406
7407 PR middle-end/52621
7408 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
7409 consider loop nesting.
7410 (evolution_function_is_univariate_p): Properly check the remainder
7411 for chrecs.
7412
a4575f9d 74132012-04-11 Richard Guenther <rguenther@suse.de>
7414
7415 PR middle-end/52918
8da8a06b 7416 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
a4575f9d 7417
e4858e6a 74182012-04-11 Nick Clifton <nickc@redhat.com>
7419
7420 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
7421 information, if requested.
7422
ecfbd70a 7423 * config/rx/rx.c (rx_expand_prologue): Likewise.
7424
0a98b6d9 74252012-04-11 Peter Bergner <bergner@vnet.ibm.com>
7426 Michael Matz <matz@suse.de>
7427
7428 PR target/16458
7429 * rtlanal.c (unsigned_reg_p): New function.
7430 Update copyright notice dates.
7431 * rtl.h (unsigned_reg_p): Prototype it.
7432 Update copyright notice dates.
7433 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
7434 Update comment.
7435 * expr.c (expand_expr_real_1): Set register attributes.
7436 * stmt.c (expand_case): Likewise.
7437
51bc6b40 74382012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7439
7440 PR target/50751
7441 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
7442 consider_sh2a and allow_zero.
7443 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
7444 (disp_addr_displacement): New function.
7445 (sh_address_cost): Use disp_addr_displacement function instead
7446 of DISP_ADDR_OFFSET.
7447 (sh_legitimate_address_p): Adapt to changed
7448 sh_legitimate_index_p declaration.
7449 (sh_find_mov_disp_adjust): Remove HImode check.
7450 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
7451 disp_addr_displacement and max_mov_insn_displacement.
7452 (max_mov_insn_displacement): Remove HImode check.
e4858e6a 7453 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
51bc6b40 7454 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
7455 * config/sh/constraints.md (K05, K13): New constraints.
7456 (K12): Correct comment.
7457 (Sdd): Do not use DISP_ADDR_P macro.
7458 (Snd, Sbw): Use satisfies_constraint_Sdd.
7459 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
7460 (*extendhisi2_compact, movhi_i): Remove.
7461 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
7462 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
7463 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
7464 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
7465 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
7466 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
7467 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
7468 CONST_OK_FOR_Kxx.
7469 Add new peepholes for HImode displacement addressing.
7470
3dad52b6 74712012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7472
7473 * config/sh/sh.h (SIDI_OFF): Remove.
7474 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
7475 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
7476 or operand_subword.
7477
74bdbe96 74782012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7479
7480 PR target/52624
7481 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
7482 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
7483 * doc/md.texi (Standard Names): Add bswap.
7484 * builtin-types.def (BT_UINT16): New primitive type.
7485 (BT_FN_UINT16_UINT16): New function type.
7486 * builtins.def (BUILT_IN_BSWAP16): New.
7487 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
7488 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
7489 expand_builtin_bswap.
7490 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
7491 (fold_builtin_1): Likewise.
7492 (is_inexpensive_builtin): Likewise.
7493 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
7494 missing bits for bswap to libcall code.
7495 * tree.c (build_common_tree_nodes): Build uint16_type_node.
7496 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
7497 (uint16_type_node): New define.
7498 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
7499 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
7500 above builtin.
7501 (rs6000_init_builtins): Likewise.
7502 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
7503
669b0b52 75042012-04-11 Tristan Gingold <gingold@adacore.com>
7505
7506 * doc/extend.texi (Type Attributes): Move paragraph.
7507
5a983084 75082012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7509
7510 PR 24985
886bfde4 7511 * diagnostic.h (show_caret): Declare.
5a983084 7512 (caret_max_width): Declare.
7513 (diagnostic_show_locus): Declare.
886bfde4 7514 * diagnostic.c (diagnostic_initialize): Initialize to false.
7515 (diagnostic_show_locus): New.
7516 (diagnostic_report_diagnostic): Call it.
5a983084 7517 (getenv_columns): New.
7518 (adjust_line): New.
7519 (diagnostic_set_caret_max_width): New.
886bfde4 7520 * input.c (read_line): New.
5a983084 7521 (location_get_source_line): New.
886bfde4 7522 * input.h (location_get_source_line): Declare.
7523 * toplev.c (general_init): Initialize show_caret from options.
7524 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
7525 * opts.c (common_handle_option): Likewise.
5a983084 7526 * pretty-print.h (pp_get_prefix): New.
7527 (pp_base_get_prefix): New.
886bfde4 7528 * common.opt (fdiagnostics-show-caret): New option.
5a983084 7529 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
7530
980af7e0 75312012-04-11 Richard Guenther <rguenther@suse.de>
7532
7533 PR rtl-optimization/52881
7534 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
7535
d906930c 75362012-04-11 Richard Guenther <rguenther@suse.de>
7537
7538 PR tree-optimization/52912
7539 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
7540 manipulation code we are threading through a loop header
7541 to an exit destination.
7542
3d177e8c 75432012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7544
7545 * tree.h (warn_if_unused_value): Move declaration from here.
7546 * stmt.c (warn_if_unused_value): Move definition from here.
7547
ee612634 75482010-04-10 Michael Matz <matz@suse.de>
7549
7550 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
7551 grouped_stores.
7552 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
7553 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
7554 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
7555 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
7556 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7557 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7558 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7559 (vect_record_strided_load_vectors): Rename to
7560 vect_record_grouped_load_vectors.
7561 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7562 Rename use of above macros.
7563 (vect_verify_datarefs_alignment): Ditto.
7564 (vector_alignment_reachable_p): Ditto.
7565 (vect_peeling_hash_get_lowest_cost): Ditto.
7566 (vect_enhance_data_refs_alignment): Ditto.
7567 (vect_analyze_group_access): Ditto and rename stride to groupsize.
7568 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
7569 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7570 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7571 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7572 (vect_record_strided_load_vectors): Rename to
7573 vect_record_grouped_load_vectors.
7574 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
7575 (destroy_loop_vec_info): Ditto.
7576 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
7577 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
7578 (vect_analyze_slp): Ditto.
7579 (new_bb_vec_info): Ditto.
7580 (destroy_bb_vec_info): Ditto.
7581 (vect_schedule_slp_instance): Ditto and rename strided_store to
7582 grouped_store.
7583 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
7584 vect_cost_group_size.
7585 (vect_model_store_cost): Rename use of above macros and call
7586 to vect_cost_strided_group_size.
7587 (vect_model_load_cost): Ditto.
7588 (vectorizable_store): Ditto, rename strided_store to grouped_store
7589 and calls to renamed tree-vectorizer.h functions.
7590 (vectorizable_load): Ditto.
7591 (vect_transform_stmt): Rename use of above macros and strided_store
7592 to grouped_store.
7593
b6c89d32 75942012-04-10 Jan Hubicka <jh@suse.cz>
7595
7596 * cgraph.h: Remove misledaing comment on ipa-ref.h.
7597 (symtab_type): New enum.
7598 (symtab_node): New structure.
7599 (cgraph_node, varpool_node): Add symbol base type.
7600 (cgraph, varpool): New accestor functions.
7601 * cgraph.c (cgraph_create_node_1): Set symbol type.
7602 * varpool.c (varpool_node): Set symbol type.
7603
03ad17bf 76042012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
7605 Richard Sandiford <rdsandiford@googlemail.com>
7606
7607 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
7608
0b06d494 76092012-04-10 Richard Guenther <rguenther@suse.de>
7610
7611 PR middle-end/52888
7612 * gimple-low.c (gimple_check_call_args): Properly account for
7613 compatible aggregate types.
7614
941366fd 76152012-04-10 Richard Guenther <rguenther@suse.de>
7616
7617 * toplev.h (tree_rest_of_compilation): Remove.
7618 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7619 * cgraph.h (tree_rest_of_compilation): Declare.
7620 * tree-optimize.c (tree_rest_of_compilation): Move ...
7621 * cgraphunit.c (tree_rest_of_compilation): ... here.
7622 * cgraph.c (cgraph_add_new_function): Adjust.
7623 * Makefile.in (tree-optimize.o): Adjust.
7624 (cgraphunit.o): Likewise.
7625
e9b545c7 76262012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
7627
7628 PR tree-optimization/52870
7629 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
7630 presumed pattern statement is within the same loop or basic block.
7631
ee0af6e0 76322012-04-10 Tristan Gingold <gingold@adacore.com>
7633
7634 * gengtype.c (main): Make uintptr_t a known type.
7635
47199071 76362012-04-10 Richard Guenther <rguenther@suse.de>
7637
7638 * tree-pass.h (tree_lowering_passes): Remove.
7639 * tree-optimize.c (tree_lowering_passes): Remove.
7640 * cgraph.c (cgraph_add_new_function): Inline relevant parts
8da8a06b 7641 of tree_lowering_passes, avoid redundant call of early local passes.
47199071 7642 * cgraphunit.c (cgraph_lower_function): Fold into ...
7643 (cgraph_analyze_function): ... its single caller. Inline
7644 relevant parts of tree_lowering_passes.
7645
69116fc2 76462012-04-09 H.J. Lu <hongjiu.lu@intel.com>
7647
7648 PR other/52777
7649 * config/pa/pa.opt: Remove SIO and GNU_LD.
7650
7c067609 76512012-04-09 Jan Hubicka <jh@suse.cz>
7652
7653 PR lto/52722
7654 PR lto/51765
886bfde4 7655 PR lto/52634
8da8a06b 7656 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
7657 boundary, add its target too.
7c067609 7658 * lto.c (add_references_to_partition): Add also aliased nodes.
7659 (add_cgraph_node_to_partition,
7660 add_varpool_node_to_partition): Work on nodes, not functions/variables;
7661 when adding alias, add also the aliased object.
7662
259ad1be 76632012-04-09 Uros Bizjak <ubizjak@gmail.com>
7664
7665 PR target/52883
7666 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
7667 VOIDmode immediate operands.
7668 * config/i386/constraints.md (Wz): New constraint.
7669 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
7670
a1bec0b4 76712012-04-09 Eric Botcazou <ebotcazou@adacore.com>
7672
7673 PR target/52717
7674 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
7675 the DECL generated for the special GOT helper.
7676
15f60366 76772012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
7678
7679 * config/sh/constraints.md: Update list of constraints in
7680 comment block.
7681 (Sr0): Remove unused memory constraint.
7682
24a470ff 76832012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7684
7685 * tree-pretty-print.h: Update comment.
7686
afb109dd 76872012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
7688
497f6450 7689 * config/sh/sh.md: Use braced string notation where applicable.
7690 (*prefetch_i4, prefetch_m2a): Merge into ...
afb109dd 7691 (*prefetch): ... this new insn.
7692
278fc7da 76932012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
7694
7695 * config/sh/sh.h (high_life_started): Remove
7696 * config/sh/predicates.md (general_movdst_operand): Use
7697 'reload_in_progress' instead of 'high_life_started'.
7698 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
7699 divsi_inv_fp): Likewise.
7700
7141d4fc 77012012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
7702
7703 * config/sh/sh-protos.h (prepare_move_operands): Return void
7704 instead of int.
7705 * config/sh/sh.c (prepare_move_operands): Likewise.
7706 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
7707
fb4fa5d7 77082012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
7709
7710 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
7711 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
7712 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
7713 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
7714 commutative_float_operator, noncommutative_float_operator,
7715 sh_handle_pragma): Remove.
7716
b8829713 77172012-04-06 Sandra Loosemore <sandra@codesourcery.com>
7718
7719 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
7720 Use @option markup on command-line options. Use @samp markup on
7721 literal keywords to options. Use @code markup on code fragments.
7722 Use other markup in preference to quotation marks in the text.
7723 Add markup to some passages without any.
7724
03231f32 77252012-04-06 Mike Stump <mikestump@comcast.net>
7726
7727 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
7728
e75e7428 77292012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
7730
7731 * config/sh/sh.c (hi_const): Remove.
7732 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
7733 of hi_const.
7734
9db04979 77352012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
7736
7737 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
7738 to bool.
7739 * config/sh/sh.c (sh_expand_t_scc): Likewise.
7740 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
7741 calling sh_expand_t_scc.
7742
a3b1178e 77432012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
7744
7745 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
7746 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
7747 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
7748 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
7749 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
7750 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
7751 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
7752 sh2a_is_function_vector_call): Use bool as return type.
7753 (sh_pass_in_reg_p): Remove.
7754 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
7755 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
7756 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
7757 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
7758 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
7759 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
7760 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
259ad1be 7761 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
a3b1178e 7762 sh_loads_bankedreg_p): Use bool as return type.
7763 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
7764 'register' modifier.
7765
f97942ad 77662012-04-06 Matt Turner <mattst88@gmail.com>
7767
7768 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
7769
2688e10b 77702012-04-06 Eric Botcazou <ebotcazou@adacore.com>
7771
7772 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
7773 of the destination isn't also a FP_REGS register.
7774
ce559b32 77752012-04-05 Teresa Johnson <tejohnson@google.com>
7776 H.J. Lu <hongjiu.lu@intel.com>
7777
8da8a06b 7778 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
ce559b32 7779 * config/i386/i386.md (move immediate to memory peephole2):
7780 Add cases for HImode move when LCP stall avoidance is needed.
7781 * config/i386/i386.c (initial_ix86_tune_features): Initialize
7782 X86_TUNE_LCP_STALL entry.
7783
2473490d 77842012-04-05 Uros Bizjak <ubizjak@gmail.com>
7785
7786 PR target/52882
7787 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
7788 CONST_INT operands, zero-extended with AND.
7789
00868707 77902012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
7791
7792 PR target/50751
7793 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
7794 first argument instead of mode size. Move displacement calculations
7795 to ...
2473490d 7796 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
00868707 7797 ... these new functions.
7798 (disp_adjust): Remove max_mov_disp field.
7799 (sh_legitimate_index_p): Use max_mov_insn_displacement and
7800 mov_insn_alignment_mask.
7801 (sh_address_cost): Use max_mov_insn_displacement.
7802
10efb95f 78032012-04-05 Andrew Stubbs <ams@codesourcery.com>
7804
7805 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
7806 (arch_enabled): Handle new arch types.
7807 (one_cmpldi2): Add NEON support.
7808
183e96b6 78092012-04-05 Richard Guenther <rguenther@suse.de>
7810
7811 * gimple.c (walk_gimple_op): Compute val_only for the LHS
7812 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
7813 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
7814 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
7815 ... here and make static.
7816 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
7817 Remove.
7818
10792deb 78192012-04-05 Richard Guenther <rguenther@suse.de>
7820
7821 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
7822 basic-block before removing it.
7823
f901fae2 78242012-04-05 Richard Guenther <rguenther@suse.de>
7825
7826 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
7827 version namespace as we release the freelist.
7828
bc8a8451 78292012-04-05 Richard Guenther <rguenther@suse.de>
7830
7831 * tree-nrv.c (tree_nrv): Release VDEFs.
7832 * tree-sra.c (sra_modify_constructor_assign): Likewise.
7833 (sra_modify_assign): Likewise.
7834 * tree-vect-stmts.c (vect_remove_stores): Likewise.
7835 * tree-vect-loop.c (vect_transform_loop): Likewise.
7836 * tree-ssa-dom.c (optimize_stmt): Likewise.
7837 * tree-vect-slp.c (vect_schedule_slp): Likewise.
7838 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
7839
13ff78a4 78402012-04-05 Richard Guenther <rguenther@suse.de>
7841
7842 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
7843 cleanup.
7844 * gimple.h (gsi_remove): Adjust.
7845 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
7846 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
7847 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
7848 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
7849 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
7850 * tree-ssa-pre.c (eliminate): Likewise.
7851
db20fb47 78522012-04-04 Mike Stump <mikestump@comcast.net>
7853
7854 * doc/rtl.texi (const_double): Document as sign-extending.
8da8a06b 7855 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
db20fb47 7856 * emit-rtl.c (immed_double_int_const): Refine to state the
7857 value is signed.
7858 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
7859 CONST_DOUBLE integers.
7860 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
7861 negative values are converted. Fix conversions bigger than
7862 HOST_BITS_PER_WIDE_INT.
8da8a06b 7863 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
db20fb47 7864 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
7865 * explow.c (plus_constant_mode): Add.
7866 (plus_constant): Implement with plus_constant_mode.
7867 * rtl.h (plus_constant_mode): Add.
7868
f889f544 78692012-04-04 Richard Guenther <rguenther@suse.de>
7870
7871 PR tree-optimization/52808
8da8a06b 7872 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
f889f544 7873 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
7874
450c6e32 78752012-04-04 Tristan Gingold <gingold@adacore.com>
7876
7877 * expr.c (expand_expr_real_2): Handle larger sizetype in
7878 POINTER_PLUS_EXPR.
7879
98fb5f75 78802012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
7881
7882 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
7883 to m2a-single instead of m2e.
7884
3cef948a 78852012-04-03 Eric Botcazou <ebotcazou@adacore.com>
7886
7887 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
7888 Change type of BITOFFSET to signed. Make sure the lower bound of
7889 the computed range is non-negative by adjusting OFFSET and BITPOS.
7890 (expand_assignment): Adjust call to get_bit_range.
7891
d3677aa8 78922012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
7893
7894 * h8300/h8300.c (h8300_current_function_monitor_function_p):
886bfde4 7895 New function. Added to check monitor functions.
7896 (h8300_option_override): Modified to generate error/warning
7897 messages for invalid combinations of different command line
d3677aa8 7898 options.
7899 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
886bfde4 7900 save EXR on stack for monitor function in case of H8S target
d3677aa8 7901 when "-mno-exr" is passed.
8da8a06b 7902 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
7903 Add prototype.
d3677aa8 7904 * doc/invoke.texi: Document H8S options.
7905
749dea2a 79062012-04-03 Tristan Gingold <gingold@adacore.com>
7907
7908 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
7909 of gcc_AC_FUNC_MMAP_BLACKLIST.
7910 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
7911 * Makefile.in (aclocal_deps): Add mmap.m4.
7912 * configure: Regenerate.
7913 * aclocal.m4: Regenerate.
7914
35c67c83 79152012-04-03 Richard Guenther <rguenther@suse.de>
7916
7917 PR tree-optimization/52808
7918 * tracer.c (tail_duplicate): Return whether we have duplicated
7919 any block.
7920 (tracer): If we have duplicated any block, cleanup the CFG.
7921 * cfghooks.c (duplicate_block): If we duplicated a loop
7922 header but not its loop, destroy the loop because it now has
7923 multiple entries.
7924 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
7925 the cfg manipulation routines we are not creating a multiple
7926 entry loop.
7927
bc05341c 79282012-04-03 Tristan Gingold <gingold@adacore.com>
7929
7930 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
7931 'byte' alignment.
7932 (vms_c_common_override_options): Allow parameterless variadic
7933 functions.
7934
96758487 79352012-04-03 Jakub Jelinek <jakub@redhat.com>
7936
7937 PR tree-optimization/52835
7938 * tree-data-ref.c (build_rdg): Return NULL if
7939 compute_data_dependences_for_loop failed.
7940
766b6590 79412012-04-03 Eric Botcazou <ebotcazou@adacore.com>
7942
7943 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
7944 for REAL_CST as well.
7945 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
7946 In the bitfield case, if the value is a REAL_CST, convert it first to
7947 an INTEGER_CST.
7948
6fa78bde 79492012-04-02 H.J. Lu <hongjiu.lu@intel.com>
7950
7951 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
7952 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
7953 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
7954
7955 * config/i386/biarchx32.h: New.
7956
ffdb0b2d 79572012-04-02 Anatoly Sokolov <aesok@post.ru>
7958
7959 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
7960 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7961 (arm_preferred_reload_class): New function.
7962
6eb99d8a 79632012-04-02 Richard Guenther <rguenther@suse.de>
7964
7965 PR tree-optimization/52756
7966 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
7967 (thread_through_loop_header): After threading through the loop latch
7968 remove the split part from the loop and clear further threading
7969 opportunities that would create a multiple entry loop.
7970
ec3167d1 79712012-04-02 Richard Guenther <rguenther@suse.de>
7972
7973 PR rtl-optimization/52800
7974 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
7975 CLEANUP_CFG_CHANGED.
7976
759626e6 79772012-04-02 Richard Guenther <rguenther@suse.de>
7978
7979 PR middle-end/52803
7980 * loop-init.c (gate_handle_loop2): Destroy loops here if
7981 we don't enter RTL loop optimizers.
7982
8bbbe2b5 79832012-04-02 Uros Bizjak <ubizjak@gmail.com>
7984
7985 Partially revert:
7986 2012-03-29 Richard Guenther <rguenther@suse.de>
7987
7988 * rtl.h (extended_count): Remove.
7989 * combine.c (extended_count): Remove.
7990
6b1f0797 79912012-04-02 Dodji Seketeli <dodji@redhat.com>
7992
7993 PR c++/40942
7994 * pt.c (more_specialized_fn): Don't apply decay conversion to
7995 types of function parameters.
7996
337c992b 79972012-04-02 Tristan Gingold <gingold@adacore.com>
7998
7999 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
8000 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
8001 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
8002 (ggc_pch_this_base): Use uintptr_t instead of size_t.
8003
f4b5bb69 80042012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8005
8006 PR bootstrap/52784
8007 * config/i386/i386.c (ix86_option_override_internal): Don't
8008 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
8009
822dbdbc 80102012-03-31 Eric Botcazou <ebotcazou@adacore.com>
8011
8012 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
8013 (stmt_can_make_abnormal_goto): Use it.
8014 (is_ctrl_altering_stmt): Likewise.
8015
5a333029 80162012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
8017 Kaz Kojima <kkojima@gcc.gnu.org>
8018
8019 * config/sh/sh.c (push_regs): Skip banked registers when
8020 resbank attribute is specified.
8021 (sh_expand_epilogue): Likewise.
8022
1249885e 80232012-03-30 Richard Henderson <rth@redhat.com>
8024
8025 PR debug/52727
8026 * combine-stack-adj.c (prev_active_insn_bb): New.
8027 (next_active_insn_bb): New.
8028 (force_move_args_size_note): New.
8029 (combine_stack_adjustments_for_block): Use it.
8030
8ae0b70d 80312012-03-30 Richard Henderson <rth@redhat.com>
8032
8033 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
8034 (ix86_expand_vector_init_duplicate): Initialize it.
8035 (expand_vec_perm_palignr): Likewise.
8036 (ix86_expand_vec_perm_const): Likewise.
8037 (ix86_vectorize_vec_perm_const_ok): Likewise.
8038 (expand_vec_perm_blend): Use it.
8039 (expand_vec_perm_vpermil): Likewise.
8040 (expand_vec_perm_pshufb): Likewise.
8041 (expand_vec_perm_1): Likewise.
8042 (expand_vec_perm_pshuflw_pshufhw): Likewise.
8043 (expand_vec_perm_interleave2): Likewise.
8044 (expand_vec_perm_vpermq_perm_1): Likewise.
8045 (expand_vec_perm_vperm2f128): Likewise.
8046 (expand_vec_perm_interleave3): Likewise.
8047 (expand_vec_perm_vperm2f128_vblend): Likewise.
8048 (expand_vec_perm_vpshufb2_vpermq): Likewise.
8049 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
8050 (expand_vec_perm_broadcast): Likewise.
8051 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8052
1e5105ae 80532012-03-30 Richard Henderson <rth@redhat.com>
8054
8055 * dwarf2out.c (gen_variable_die): Initialize off.
8056
b26acc64 80572012-03-30 Tristan Gingold <gingold@adacore.com>
8058
8059 * config/vms/vms-f.c: New file.
8060 * config/vms/t-vms (vms-f.o): New rule.
8061 * config.gcc (*-*-*vms*): Define fortran_target_objs.
8062
b97e39a0 80632012-03-30 Richard Guenther <rguenther@suse.de>
8064
8065 PR tree-optimization/52754
8066 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8067 propagate arbitrary addresses into really plain dereferences.
8068
99cc6bba 80692012-03-30 Richard Guenther <rguenther@suse.de>
8070
8071 PR middle-end/52772
8072 * except.c (emit_to_new_bb_before): Move loop updating ...
8073 (dw2_build_landing_pads): ... here. Use a proper block for
8074 querying the loop father.
8075
3cab3251 80762012-03-30 Tristan Gingold <gingold@adacore.com>
8077
8078 * config/ia64/ia64.c (ia64_section_type_flags): Remove
8079 common_object attribute handling.
8080 (SECTION_VMS_OVERLAY): Remove
8081 (ia64_vms_common_object_attribute): Replace abort with an assert.
8082 Do not set DECL_SECTION_NAME.
8083 (ia64_vms_output_aligned_decl_common): Handle common_object
8084 attribute.
8085 (ia64_vms_elf_asm_named_section): Remove.
8086 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
8087
24a49f00 80882012-03-30 Richard Guenther <rguenther@suse.de>
8089
8090 PR middle-end/52786
8091 * double-int.c (rshift_double): Remove not needed cast.
8092
d129ada0 80932012-03-30 Richard Guenther <rguenther@suse.de>
8094
8095 * tree-affine.h (print_aff): Remove.
8096 * tree-affine.c (print_aff): Make static.
8097 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
8098 (get_references_in_stmt): Likewise.
8099 (print_direction_vector): Likewise.
8100 (print_dir_vectors): Likewise.
8101 (print_dist_vectors): Likewise.
8102 (dump_subscript): Likewise.
8103 (dump_ddrs): Likewise.
8104 (dump_dist_dir_vectors): Likewise.
8105 (dump_data_references): Likewise.
8106 (dump_data_dependence_relation): Likewise.
8107 (dump_data_dependence_direction): Likewise.
8108 (dump_rdg_vertex): Likewise.
8109 (dump_rdg_component): Likewise.
8110 (debug_ddrs): Declare.
8111 (struct data_ref_loc_d): Move ...
8112 * tree-data-ref.c (struct data_ref_loc_d): ... here.
8113 (get_references_in_stmt): Make static.
8114 (dump_data_references): Likewise.
8115 (dump_subscript): Likewise.
8116 (print_direction_vector): Likewise.
8117 (print_dir_vectors): Likewise.
8118 (print_dist_vectors): Likewise.
8119 (dump_data_dependence_relation): Likewise.
8120 (dump_dist_dir_vectors): Likewise.
8121 (dump_ddrs): Likewise.
8122 (dump_rdg_vertex): Likewise.
8123 (dump_rdg_component): Likewise.
8124 (debug_ddrs): New function.
8125 (access_matrix_get_index_for_parameter): Remove.
8126
bbced055 81272012-03-30 Tristan Gingold <gingold@adacore.com>
8128
8129 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
8130 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
8131 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
8132 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
8133 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
8134 (vms_patch_builtins): Handle new flags
8135 * config/vms/vms-crtlmap.map: Completed using nm on
8136 c and math system libraries.
8137 * config/vms/make-crtlmap.awk: Handle any number of flags.
8138
1543f720 81392012-03-30 Martin Jambor <mjambor@suse.cz>
8140
8141 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
8142 is a builtin_stack_save in a dominating BB.
8143
80f058cd 81442012-03-29 Uros Bizjak <ubizjak@gmail.com>
8145
8146 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
8147 crossing 128bit lane boundary.
8148
385bfbc6 81492012-03-29 Vladimir Makarov <vmakarov@redhat.com>
8150
8151 * ira-color.c (setup_left_conflict_sizes_p): Process all
8152 conflicting objects.
8153
aa17a496 81542012-03-29 Jakub Jelinek <jakub@redhat.com>
8155
8156 PR tree-optimization/52760
8157 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
8158 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
8159
d2bb3f9d 81602012-03-29 Richard Guenther <rguenther@suse.de>
8161
8162 * cgraph.h (cgraph_materialize_all_clones): Remove.
8163 (reset_inline_failed): Likewise.
8164 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
8165 * cgraphbuild.c (reset_inline_failed): Remove.
8166 * rtl.h (cse_main): Remove.
8167 (extended_count): Likewise.
8168 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
8169 (cse_main): Make static.
8170 * combine.c (extended_count): Remove.
8171 (dump_combine_stats): Mark as DEBUG_FUNCTION.
8172 * basic-block.h (reorder_basic_blocks): Remove.
8173 * bb-reorder.c (reorder_basic_blocks): Make static.
8174 * Makefile.in (dse.o): Remove dse.h dependency.
8175 * dse.h: Remove.
8176 * dse.c (gate_dse): Remove.
8177 (clear_alias_mode_eq): Likewise.
8178 (clear_alias_mode_hash): Likewise.
8179 (dse_record_singleton_alias_set): Likewise.
8180 (dse_invalidate_singleton_alias_set): Likewise.
8181
c0dc946a 81822012-03-29 H.J. Lu <hongjiu.lu@intel.com>
8183
8184 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
8185 crtbegin_so%O%s for -shared.
8186 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
8187
54879eec 81882012-03-29 Richard Guenther <rguenther@suse.de>
8189
8190 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
8191 (add_to_value): Remove.
8192 (print_value_expressions): Likewise.
8193 * tree-ssa-pre.c (add_to_value): Make static.
8194 (print_value_expressions): Likewise.
8195 * gimple.h (gimple_adjust_this_by_delta): Remove.
8196 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
8197
e058414d 81982012-03-29 Richard Guenther <rguenther@suse.de>
8199
8200 PR middle-end/50708
8201 * double-int.h (rshift_double): Remove.
4e0c0c52 8202 * double-int.c (lshift_double): Use absu_hwi to make count positive.
e058414d 8203 (rshift_double): Make static, take unsigned count argument,
8204 remove handling of negative count argument.
8205 (double_int_rshift): Dispatch to lshift_double.
8206
bac6f1f6 82072012-03-28 H.J. Lu <hongjiu.lu@intel.com>
8208
8209 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
8210 OPTION_MASK_ABI_64.
8211
8212 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
8213 (SPEC_X32): Likewise.
8214 (MULTILIB_DEFAULTS): Likewise.
8215
8216 * config/i386/i386.c (isa_opts): Remove -m64.
8217 (ix86_target_string): Properly handle -m32/-m64/-mx32.
8218 (ix86_option_override_internal): Properly
8219 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
8220 handle -m32, -m64 and -mx32.
8221
8222 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
8223 with OPTION_ABI_X32. Moved after TARGET_LP64.
8224 (TARGET_LP64): Changed to OPTION_ABI_64.
8225
8226 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
8227 (mx32): Replace ISA_X32 with ABI_X32.
8228
b257ad5f 82292012-03-28 Eric Botcazou <ebotcazou@adacore.com>
8230
8231 * tree.c (tree_size) <VECTOR_CST>: New case.
8232
df6b3006 82332012-03-28 Uros Bizjak <ubizjak@gmail.com>
8234
8235 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
8236 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
8237
891f5177 82382012-03-28 Jakub Jelinek <jakub@redhat.com>
8239
e7ed5dd7 8240 PR middle-end/52691
8241 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
8242 __builtin_va_start to __builtin_next_arg if the latter is
8243 builtin_decl_explicit_p rather than when it is not.
8244
891f5177 8245 PR middle-end/52750
8246 * tree-vect-generic.c (vector_element): Perform multiplication
8247 for pos in bitsizetype type instead of idx type.
8248
79f958cb 82492012-03-28 Richard Guenther <rguenther@suse.de>
8250
8251 * loop-init.c (loop_optimizer_init): If loops are preserved
8252 perform incremental initialization of required loop features.
8253 (loop_optimizer_finalize): If loops are to be preserved only
8254 clean up optional loop features.
8255 (rtl_loop_done): Forcefully free loops here.
df6b3006 8256 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
79f958cb 8257 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
8258 to existing loops.
8259 (construct_init_block): Likewise.
8260 (construct_exit_block): Likewise.
8261 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
8262 the CFG after expanding.
df6b3006 8263 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
8264 If we needed to calculate them, free them afterwards.
79f958cb 8265 * tree-pass.h (PROP_loops): New define.
8266 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
8267 * basic-block.h (CLEANUP_CFG_CHANGED): New.
8268 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
df6b3006 8269 (cleanup_cfg): If we did something and have loops around, fix them up.
79f958cb 8270 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
8271 with CLEANUP_CFG_CHANGED.
8272 * cfghooks.c (merge_blocks): If we merge a loop header into
8273 its predecessor, update the loop structure.
8274 (duplicate_block): If we copy a loop latch, adjust loop state
8275 to note we may have multiple latches.
8276 (delete_basic_block): Mark loops for fixup if we remove a loop.
8277 * cfganal.c (forwarder_block_p): Protect loop latches, headers
8278 and preheaders.
8279 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
8280 (cfg_layout_can_merge_blocks_p): Likewise.
8281 * cprop.c (bypass_block): If we create a loop with multiple
8282 entries, mark it for removal.
8283 * except.c (emit_to_new_bb_before): Add the new basic-block
8284 to existing loops.
8285 * tree-eh.c (lower_resx): Likewise.
8286 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
8287 (expand_omp_taskreg): Likewise.
8288 * tree-inline.c (initialize_cfun): Likewise.
8289 * tree-mudflap.c (add_bb_to_loop): Prototype.
8290 (mf_build_check_statement_for): Properly add new basic-blocks
8291 to existing loops.
8292 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
8293 if we remove a loop.
8294 (thread_through_loop_header): Likewise.
8295 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
8296 new basic-blocks to existing loops.
8297 (expand_transaction): Likewise.
8298 * Makefile.in (except.o): Add $(CFGLOOP_H).
8299 (expr.o): Likewise.
8300 (cgraph.o): Likewise.
8301 (cprop.o): Likewise.
8302 (cfgexpand.o): Likewise.
8303 (cfganal.o): Likewise.
8304 (trans-mem.o): Likewise.
8305 (tree-eh.o): Likewise.
8306
58cf0091 83072012-03-28 Georg-Johann Lay <avr@gjlay.de>
8308
8309 PR target/52692
8310 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
8311 (avr_builtin_decl): New static function.
8312 (struct avr_builtin_description, avr_bdesc): Move up.
8313 Add GTY marker. Add field fndecl. Remove redundant field id.
8314 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
8315 (avr_expand_builtin): Code cleanup because .id is removed.
8316
d32d7e3a 83172012-03-28 Georg-Johann Lay <avr@gjlay.de>
8318
8319 PR target/52737
8320 * config.gcc (tm_file): Remove avr/multilib.h.
8321
df6b3006 8322 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
d32d7e3a 8323
8324 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
8325 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
8326 * config/avr/t-avr: Remove generation of multilib.h.
8327 * config/avr/t-multilib: Regenerate.
8328 * config/avr/multilib.h: Remove.
8329 * config/avr/avr.opt (-msp8): New option.
8330 (avr_sp8): New variable.
8331 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
8332 * config/avr/avr.h (AVR_HAVE_SPH): New define.
8333 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
8334 (avr_device_to_sp8): New prototype.
8335 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
8336 (DRIVER_SELF_SPECS): New define.
8337 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
8338 __AVR_SP8__, __AVR_HAVE_SPH__.
8339 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
8340 AVR_HAVE_8BIT_SP to decide if SP_H is present.
8341 (avr_file_start): Ditto.
8342
9af8c7c5 83432012-03-28 Jakub Jelinek <jakub@redhat.com>
8344
8345 PR target/52736
8346 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
8347 instead of 8 in adjust_address.
8348
cefa4c33 83492012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
8350
8351 PR middle-end/51893
8352 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
8353 targets.
8354
fa9db843 83552012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
8356
8357 PR target/50751
8358 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
8359 Rearrange conditional logic. Move displacement address calculations
8360 to ...
8361 (sh_find_mov_disp_adjust): ... this new function.
8362
367d727c 83632012-03-27 H.J. Lu <hongjiu.lu@intel.com>
8364
8365 * config/arm/arm.opt (mapcs): Remove MaskExists.
8366 * config/cris/linux.opt (mno-gotplt): Likewise.
8367 * config/i386/i386.opt (mhard-float): Likewise.
8368 (msse4): Likewise.
8369 (mno-sse4): Likewise.
8370 * config/m68k/m68k.opt (mhard-float): Likewise.
8371 * config/mep/mep.op (mcop32): Likewise.
8372 * config/pa/pa-hpux.opt (msio): Likewise.
8373 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
8374 * config/picochip/picochip.opt (mlittle): Likewise.
8375 * config/sh/sh.opt (mrenesas): Likewise.
8376 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
8377 * config/sparc/sparc.opt (mhard-float): Likewise.
8378 * config/v850/v850.opt (mv850es): Likewise.
8379 * config/vax/vax.opt (mg-float): Likewise.
8380
49c38e93 83812012-03-27 Martin Jambor <mjambor@suse.cz>
8382
8383 PR middle-end/52693
8384 * tree-sra.c (sra_modify_assign): Do not call
8385 load_assign_lhs_subreplacements when working with an unscalarizable
8386 region.
8387
77c42bd4 83882012-03-27 Uros Bizjak <ubizjak@gmail.com>
8389
8390 PR target/52698
8391 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
8392 New prototype.
8393 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
8394 * config/i386/i386.c: Include reload.h.
8395 (ix86_legitimize_reload_address): New function.
8396
dbc6e347 83972012-03-27 H.J. Lu <hongjiu.lu@intel.com>
8398
8399 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
8400 hasn't been allocated. Define a target macro for Mask and
77c42bd4 8401 InverseMask if it hasn't been defined. Remove MaskExists handling.
dbc6e347 8402
0455e0da 8403 * doc/options.texi: Remove MaskExists.
dbc6e347 8404
6523974f 84052012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
8406
8407 PR target/52667
8408 * config/sh/sh.c (find_barrier): Add equality check of last_got
8409 to avoid going above orig insn. Update comments.
8410
902123ad 84112012-03-27 Richard Guenther <rguenther@suse.de>
8412
8413 PR middle-end/52720
8414 * fold-const.c (try_move_mult_to_index): Handle &x.array more
8415 explicitely.
8416
73041e9b 84172012-03-27 Eric Botcazou <ebotcazou@adacore.com>
8418
8419 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
8420 of a unit before computing the offset in units.
8421 * expr.c (get_bit_range): Return the null range if the enclosing record
8422 is part of a larger bit field.
8423
a2295d74 84242012-03-27 Tristan Gingold <gingold@adacore.com>
8425
8426 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
8427 * config/ia64/ia64.md: Remove mode in template.
8428 Sign extend operand in expand_simple_binop.
8429 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
8430 CASE_VECTOR_MODE instead of TARGET_ILP32.
8431 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
8432
43d744c8 84332012-03-26 Steven Bosscher <steven@gcc.gnu.org>
8434
8435 * varasm.c (assemble_external): #if 0 out the new assert from the
8436 previous commit, it breaks the Java and Go front ends.
8437
a723d770 84382012-03-26 Steven Bosscher <steven@gcc.gnu.org>
8439
ea259bbe 8440 * toplev.c (check_global_declaration_1): Do not call assemble_external.
8441 * expr.c (emit_block_move_libcall_fn): Likewise.
8442 (clear_storage_libcall_fn): Likewise.
8443 (expand_expr_addr_expr_1): Likewise.
8444 (expand_expr_real_1): Likewise.
8445 * calls.c (rtx_for_function_call): Likewise.
8446
a723d770 8447 * varasm.c (assemble_external): Assert this function is only called
8448 during or after expanding to RTL.
8449
7c2ed7d7 84502012-03-26 Martin Jambor <mjambor@suse.cz>
8451
8452 PR tree-optimization/50052
8453 * tree-sra.c (tree_non_aligned_mem_p): Removed.
8454 (tree_non_aligned_mem_for_access_p): Likewise.
8455 (build_accesses_from_assign): Removed strict alignment requirements
8456 checks.
8457 (access_precludes_ipa_sra_p): Likewise.
8458
58280b1f 84592012-03-26 Richard Guenther <rguenther@suse.de>
8460
8461 PR tree-optimization/52701
8462 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
8463 compute and set the evolution part of PHI nodes.
8464
a1dfcdd0 84652012-03-26 Richard Guenther <rguenther@suse.de>
8466
8467 PR tree-optimization/52721
8468 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
8469
1c928a0c 84702012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
8471
8472 PR tree-optimization/52686
8473 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
8474 WIDEN_LSHIFT_EXPR.
8475
784576c7 84762012-03-26 Tristan Gingold <gingold@adacore.com>
8477
8478 * config/alpha/vms.h (LINK_SPEC): Simplify.
8479 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
8480 (NAME__MAIN, SYMBOL__MAIN): Remove.
8481 (VMS_DEBUG_MAIN_POINTER): Remove.
8482 * config/ia64/vms.h: Likewise.
8483 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
8484 code to vms.c. Call vms_start_function.
8485 * config/ia64/ia64.c (ia64_start_function): Likewise.
8486 * config/vms/vms-protos.h (vms_start_function): Declare.
8487 * config/vms/vms.c (vms_start_function): New function.
8488 * config/vms/vms.h (MATH_LIBRARY): Define.
8489 (VMS_DEBUG_MAIN_POINTER): Define.
8490
ab3908c1 84912012-03-26 Eric Botcazou <ebotcazou@adacore.com>
8492
8493 PR rtl-optimization/52629
8494 * reload1.c (count_pseudo): Short-circuit common case.
8495 (count_spilled_pseudo): Return early for pseudos without hard regs.
8496 Assert that the pseudo has got a hard reg before manipulating it.
8497
4dca9aca 84982012-03-24 Jan Hubicka <jh@suse.cz>
8499
8500 PR lto/51663
8501 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
8502 (decide_is_variable_needed): Do not handle toplevel reorder here.
8503 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
8504 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
8505 even at -O0.
8506
40715742 85072012-03-24 Eric Botcazou <ebotcazou@adacore.com>
8508
8509 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
8510 and str_bitsize instead of more convoluted expressions.
8511
4b552df4 85122012-03-24 Eric Botcazou <ebotcazou@adacore.com>
8513
8514 PR target/52610
8515 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
8516
29c08f56 85172012-03-24 Eric Botcazou <ebotcazou@adacore.com>
8518
8519 PR target/52656
8520 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
8521
a00d04d2 85222012-03-23 Martin Jambor <mjambor@suse.cz>
8523
8524 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
8525
86faead7 85262012-03-23 Richard Guenther <rguenther@suse.de>
8527
8528 PR tree-optimization/52678
8529 * tree-vectorizer.h (struct _stmt_vec_info): Add
8530 loop_phi_evolution_part member.
8531 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
8532 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
8533 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
8534 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8535 Use the cached evolution part and the PHI nodes value from
8536 the loop preheader edge instead of re-analyzing the evolution.
8537
af1bc032 85382012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8539
8540 * config/mips/mips-tables.opt: Update.
8541 * config/mips/mips.md (processor): Add xlp.
8542 * config/mips/mips-cpus.def: Add xlp.
8543 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
8544 5KF for now.
8545 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
8546 * doc/invoke.texi: Mention XLP.
8547
2ea94a74 85482012-03-22 Jakub Jelinek <jakub@redhat.com>
8549
8550 PR middle-end/52547
8551 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
8552 on any new_local_var_chain vars declared during recursing on
8553 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
8554
af3c0d00 85552012-03-22 Uros Bizjak <ubizjak@gmail.com>
8556
8557 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
8558 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
8559 (ASM_OUTPUT_LOCAL): Ditto.
8560 (ASM_OUTPUT_COMMON): Remove.
8561 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
8562 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
8563
41710b76 85642012-03-22 Jan Hubicka <jh@suse.cz>
8565
8566 PR middle-end/51737
8567 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
8568 parameter.
8569 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
af3c0d00 8570 * ipa-inline-transform.c (save_inline_function_body): Remove
8571 copied clone if needed.
41710b76 8572 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
8573
1957dffb 85742012-03-22 Richard Guenther <rguenther@suse.de>
8575
8576 PR middle-end/52666
8577 * fold-const.c (fold_ternary_loc): Fix typo.
8578
4349a1fa 85792012-03-22 Georg-Johann Lay <avr@gjlay.de>
8580
8581 PR target/52496
8582 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
8583 (unspecv): Add UNSPECV_MEMORY_BARRIER.
8584 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
8585 (delay_cycles_1, delay_cycles_2): Ditto.
8586 (delay_cycles_3, delay_cycles_4): Ditto.
8587 (nopv, *nopv): Ditto.
8588 (sleep, *sleep): Ditto.
8589 (wdr, *wdr): Ditto.
8590
3fd927c9 85912012-03-22 Richard Guenther <rguenther@suse.de>
8592
8593 PR tree-optimization/52548
8594 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
8595 because of clobbers.
8596 (prune_clobbered_mems): New function.
8597 (compute_antic_aux): Use it to prune ANTIC_OUT.
8598 (compute_partial_antic_aux): Use it to prune PA_IN.
af3c0d00 8599 (compute_avail): Only insert expressions into EXP_GEN that are not
8600 invalidated when translated up to the beginning of the block.
3fd927c9 8601
8ca02f71 86022012-03-22 Richard Guenther <rguenther@suse.de>
8603
8604 PR tree-optimization/52638
8605 * tree-vect-stmts.c (vect_init_vector_1): New function, split
8606 out from ...
8607 (vect_init_vector): ... here. Handle scalar vector inits.
8608 (vect_get_vec_def_for_operand): Adjust.
8609 (vectorizable_load): Likewise.
8610
a25bf392 86112012-03-22 Uros Bizjak <ubizjak@gmail.com>
8612
8613 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
8614 (alpha*-*-freebsd*): Ditto.
8615 (alpha*-*-netbsd*): Ditto.
8616 (alpha*-*-openbsd*): Ditto.
8617 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
8618 (DWARF2_DEBUGGING_INFO): Remove.
8619 (PREFERRED_DEBUGGING_TYPE): Remove.
8620 (ASM_FINAL_SPEC): Remove.
8621 (IDENT_ASM_OP): Remove.
8622 (ASM_OUTPUT_IDENT): Remove.
8623 (SKIP_ASM_OP): Remove.
8624 (ASM_OUTPUT_SKIP): Remove.
8625 (ALIGN_ASM_OP): Remove.
8626 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
8627 (ASM_OUTPUT_CASE_LABEL): Remove.
8628 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
8629 (COMMON_ASM_OP): Remove.
8630 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
8631 (ASCII_DATA_ASM_OP): Remove.
8632 (READONLY_DATA_SECTION_ASM_OP): Remove.
8633 (INIT_SECTION_ASM_OP): Remove.
8634 (FINI_SECTION_ASM_OP): Remove.
8635 (ASM_SECTION_START_OP): Remove.
8636 (ASM_OUTPUT_SECTION_START_FILE): Remove.
8637 (TARGET_ASM_NAMED_SECTION): Remove.
8638 (TARGET_ASM_SELECT_SECTION): Remove.
8639 (MAKE_DECL_ONE_ONLY): Remove.
8640 (TYPE_ASM_OP): Remove.
8641 (SIZE_ASM_OP): Remove.
8642 (ASM_WEAKEN_LABEL): Remove.
8643 (TYPE_OPERAND_FMT): Remove.
8644 (ASM_DECLARE_RESULT): Remove.
8645 (ASM_DECLARE_OBJECT_NAME): Remove.
8646 (ASM_FINISH_DECLARE_OBJECT): Remove.
8647 (ELF_ASCII_ESCAPES): Remove.
8648 (ELF_STRING_LIMIT): Remove.
8649 (STRING_ASM_OP): Remove.
8650 (ASM_OUTPUT_EXTERNAL): Remove.
8651 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
8652 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
8653 before define.
8654 (ASM_DECLARE_FUNCTION_NAME): Ditto.
8655 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
8656 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
8657 (ASM_OUTPUT_SKIP): Ditto.
8658 (READONLY_DATA_SECTION_ASM_OP): Remove.
8659 (USER_LABEL_PREFIX): Remove.
8660 (ASM_OUTPUT_ASCII): Remove.
8661 (ASM_OUTPUT_CASE_LABEL): Remove.
8662 (NO_DOLLAR_IN_LABEL): Undefine.
8663
38847948 86642012-03-22 Richard Guenther <rguenther@suse.de>
8665
8666 PR tree-optimization/52459
8667 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
8668 PHI insertion for calls.
8669
2aca5650 86702012-03-21 Steven Bosscher <steven@gcc.gnu.org>
8671
8672 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
8673 find_sets_in_insn, canonicalize_insn): Split out from ...
8674 (cse_insn): ... here.
8675 (invalidate_from_clobbers): Take an insn instead of the pattern.
8676
237a2429 86772012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
8678
8679 PR target/52479
8680 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
8681 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
8682 * config/sh/sh.md (sindf2, cosdf2): Remove.
8683
8fe7656f 86842012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
8685
b45e6434 8686 PR target/52642
8fe7656f 8687 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
a25bf392 8688 prologue for unwinder and profiler.
8fe7656f 8689
2ac000bb 86902012-03-21 Andreas Tobler <andreast@fgznet.ch>
8691
8692 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
8693 Introduce emul_name to select the right linker emulation for
8694 powerpc64-*-freebsd*.
8695 * configure: Regenerate.
8696 * config.gcc: Add bits to support powerpc64-*-freebsd*.
8697 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
8698 * config/rs6000/freebsd64.h: New file.
8699 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
8700 POWERPC_FREEBSD.
8701 (rs6000_savres_strategy): Likewise.
8702 (rs6000_savres_routine_name): Likewise.
8703 (rs6000_elf_file_end): Likewise.
8704 * config/rs6000/t-freebsd64: New file.
8705 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
8706 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
8707
d018c468 8708 * config/rs6000/freebsd64.h: Remove duplicated entries from last
8709 commit.
8710 * config/rs6000/t-freebsd64: Likewise.
8711
002565f0 87122012-03-21 Georg-Johann Lay <avr@gjlay.de>
8713
8714 PR rtl-optimization/52543
8715 PR target/52461
8716 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
8717 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
8718 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
8719 (avr_load_libgcc_p): Restrict to __flash loads.
8720 (avr_out_lpm): Only handle 1-byte loads from __flash.
8721 (avr_load_lpm): New function.
8722 (avr_find_unused_d_reg): Remove.
8723 (avr_out_lpm_no_lpmx): Remove.
8724 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
8725 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
8726 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
8727 (load_<mode>, load_<mode>_clobber): New insns.
8728 (mov<mode>): For multi-byte move from non-generic
8729 16-bit address spaces: Expand to load_<mode> resp.
8730 load_<mode>_clobber.
8731 (load<mode>_libgcc): Remove expander.
8732 (split-lpmx): Remove split.
8733
cd4e07db 87342012-03-21 Richard Earnshaw <rearnsha@arm.com>
8735
8736 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
8737 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
8738 All callers changed.
8739 (Fixed_core_reg): New feature.
8740 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
8741 disassembly.
8742 * neon-testgen.ml: Handle Fixed_core_reg.
8743
ae1dbab8 87442012-03-21 Andrew Stubbs <ams@codesourcery.com>
8745
8746 * config/arm/arm.c (thumb2_reorg): Add complete support
8747 for 16-bit instructions.
8748 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
8749
6fa78636 87502012-03-21 Richard Guenther <rguenther@suse.de>
8751
8752 PR tree-optimizer/52636
8753 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
8754 to the appropriate type.
8755
212dddd3 87562012-03-21 Richard Guenther <rguenther@suse.de>
8757
8758 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
8759 dependencies.
8760 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
8761 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
8762 * passes.c (init_optimization_passes): Remove pass_init_function,
8763 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
8764 * tree-pass.h (pass_init_function): Remove.
8765 (pass_jump): Remove.
8766 (pass_initial_value_sets): Remove.
8767 (pass_unshare_all_rtl): Remove.
8768 * integrate.c (pass_initial_value_sets): Remove.
8769 * emit-rtl.c (pass_unshare_all_rtl): Remove.
8770 * tree.h (init_function_for_compilation): Remove.
8771 * function.c (init_function_for_compilation): Remove.
8772 (pass_init_function): Remove.
8773 * cfgcleanup.c (rest_of_handle_jump): Remove.
8774 (pass_jump): Remove.
8775
358f9d96 87762012-03-20 Jason Merrill <jason@redhat.com>
8777
8778 * tree-streamer-in.c (streamer_alloc_tree): Call
8779 ggc_alloc_zone_cleared_tree_node instead of
8780 ggc_alloc_zone_cleared_tree_node_stat.
8781
6ad63f69 87822012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
8783
8784 * doc/extend.texi (Template Instantiation): Remove anachronisms.
8785
541e350d 87862012-03-20 Jakub Jelinek <jakub@redhat.com>
8787
0b991a69 8788 PR target/52607
8789 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
8790 (ix86_expand_vec_perm_const_1): Call it.
8791
245c00ec 8792 * config/i386/i386.c (vselect_insn): New variable.
8793 (init_vselect_insn): New function.
8794 (expand_vselect, expand_vselect_insn): Add testing_p argument.
8795 Call init_vselect_insn if vselect_insn is NULL. Adjust
8796 PATTERN (vselect_insn), instead of creating a new insn each time,
8797 only emit a copy of it if not testing and recog has been successful.
8798 (expand_vec_perm_pshufb, expand_vec_perm_1,
8799 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
8800 callers.
8801
541e350d 8802 PR target/52607
8803 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
8804 ("enabled" attribute): Handle avx2 and noavx2 isas.
8805 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
8806 New insns.
8807 (vec_dup<mode>): Add avx2 =x,x alternative.
8808 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
8809 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
8810 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
8811 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
8812 for V8SFmode.
8813 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
8814 if possible, handle also V8SFmode.
8815
1987d213 88162012-03-20 Richard Earnshaw <rearnsha@arm.com>
8817
8818 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
8819 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
8820 reg_or_zero_operand predicate.
8821 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
8822
17113bf6 88232012-03-20 Jakub Jelinek <jakub@redhat.com>
8824
8825 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
8826 If operand isn't UNSPEC, return 0.
8827
1dd4980f 88282012-03-20 Richard Guenther <rguenther@suse.de>
8829
8830 * tree-pass.h (pass_rtl_eh): Remove.
8831 * except.c (gate_handle_eh): Likewise.
8832 (rest_of_handle_eh): Likewise.
8833 (pass_rtl_eh): Likewise.
8834 (finish_eh_generation): Export.
8835 * except.h (finish_eh_generation): Declare.
8836 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
8837 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
8838 after expanding stack alignment. Instead of compacting blocks
8839 call cleanup_cfg.
8840
fa42e1a4 88412012-03-20 Richard Guenther <rguenther@suse.de>
8842
8843 * stor-layout.c (finish_bitfield_representative): Fallback
8844 to conservative maximum size if the padding up to the next
8845 field cannot be computed as a constant.
8846 (finish_bitfield_layout): If we cannot compute the distance
8847 between the start of the bitfield representative and the
8848 bitfield member start a new representative.
8849 * expr.c (get_bit_range): The distance between the start of
8850 the bitfield representative and the bitfield member is zero
8851 if the field offsets are not constants.
8852
748e5d45 88532012-03-20 Tristan Gingold <gingold@adacore.com>
8854
8855 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
8856 convert in lowercase.
8857 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
8858 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
8859 * stor-layout.c (sizetype_tab): Adjust.
8860 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
8861 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
8862 instead of type_kind_last.
8863 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
8864 instead of size_int_kind.
8865 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
8866 * doc/tm.texi: Regenerate.
8867 * defaults.h (SIZETYPE): Provide a default value.
8868 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
8869 (SIZETYPE): Define.
8870
a0554dde 88712012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
8872
8873 * config/sh/sh.md: Use braced string notation where applicable.
8874
ee1d2eea 88752012-03-19 Uros Bizjak <ubizjak@gmail.com>
8876
8877 * config/i386/i386.md (allocate_stack): Simplify.
8878
99182918 88792012-03-19 Uros Bizjak <ubizjak@gmail.com>
8880
8881 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
8882 copy_to_mode_reg (Pmode, ...).
8883 (expand_builtin_frame_address): Ditto.
8884 * expr.c (emit_block_move_via_libcall): Ditto.
8885 (set_storage_via_libcall): Ditto.
8886
8887 * config/i386/i386.c (ix86_expand_movmem): Ditto.
8888 (ix86_expand_setmem): Ditto.
8889 (ix86_trampoline_init): DItto.
8890 * config/i386/i386.md (cmpstrnsi): Ditto.
99182918 8891
11e875c9 88922012-03-19 Sandra Loosemore <sandra@codesourcery.com>
8893
8894 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
8895 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
8896 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
8897 (SH Options): Likewise.
8898
0a722f4b 88992012-03-19 Uros Bizjak <ubizjak@gmail.com>
8900
8901 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
8902 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
8903 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
8904 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
8905 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
8906
8907 Revert:
8908 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
8909
8910 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
8911 * config/i386/i386.c (ix86_decompose_address): Use
8912 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
8913 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
8914 thread pointer to a register.
8915
8916 Revert:
8917 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
8918
8919 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
8920 if Pmode != word_mode.
8921 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
8922 Pmode == SImode for TARGET_X32.
8923
8924 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
8925 (tls_initial_exec_x32): Likewise.
8926
89cace00 89272012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
8928
8929 PR target/50751
8930 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
8931 DISP_ADDR_OFFSET): New macros.
8932 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
8933 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
8934 (sh_legitimize_address): Add QImode displacement handling.
0a722f4b 8935 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
89cace00 8936 vector subregs.
8937 (sh_secondary_reload): Add QImode displacement handling.
8938 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
5efe717c 8939 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
8940 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
8941 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
8942 to register operands only.
8943 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
8944 (extendqihi2): Change insn to expander.
8945 (*extendqihi2_compact_reg): New insn.
8946 (movqi_i, movqi): Replace with ...
8947 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
8948 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
8949 Add new peepholes for QImode displacement addressing.
89cace00 8950
62206d34 89512012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
8952
8953 PR c++/14710
8954 * doc/invoke.texi: Document -Wuseless-cast.
8955
c165a033 89562012-03-19 Eric Botcazou <ebotcazou@adacore.com>
8957
8958 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
8959 * tree.h (handled_component_p): Reorder cases.
8960 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
8961 not initialize unsignedp.
8962 (loc_list_from_tree): Likewise.
8963 (fortran_common): Likewise.
8964 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8965
a8b2b958 89662012-03-19 Uros Bizjak <ubizjak@gmail.com>
8967
8968 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
8969 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
8970 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
8971 (ix86_split_long_move): Ditto.
8972 (legitimize_tls_address): Use ix86_gen_sub3.
8973 (construct_plt_address): Assert that Pmode == DImode.
8974
abd4f58b 89752012-03-18 Uros Bizjak <ubizjak@gmail.com>
8976
8977 * config/i386/i386.md: Remove empty predicates and/or constraints.
8978 * config/i386/sync.md: Ditto.
8979 * config/i386/sse.md: Ditto.
8980 * config/i386/mmx.md: Ditto.
8981 * config/i386/pentium.md: Ditto.
8982 * config/i386/athlon.md: Ditto.
8983
08f83b65 89842012-03-16 Richard Guenther <rguenther@suse.de>
8985
8986 PR tree-optimization/52603
8987 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
8988 comment.
8989
8990 Revert
8991 2012-03-14 Richard Guenther <rguenther@suse.de>
8992
8993 PR tree-optimization/52571
8994 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8995 flag_section_anchors check ...
8996 (vect_can_force_dr_alignment_p): ... here.
8997
e2c56221 89982012-03-16 Martin Jambor <mjambor@suse.cz>
8999
c165a033 9000 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
e2c56221 9001 memory through MEM_REFs by calling extract_bit_field.
9002
7e5db579 90032012-03-16 Richard Guenther <rguenther@suse.de>
9004
9005 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
9006 and REFERENCE_TYPE interpretations.
9007 (can_native_interpret_type_p): New function.
9008 (fold_ternary_loc): Use native encode/interpret to fold
9009 BIT_FIELD_REFs of constants.
9010
ae37ffaf 90112012-03-16 Richard Guenther <rguenther@suse.de>
9012
9013 PR middle-end/52584
9014 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
9015 of vector constants and constructors.
9016
ace64c06 90172012-03-16 Richard Guenther <rguenther@suse.de>
9018
9019 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9020 VIEW_CONVERT_EXPR to convert constants.
9021 (vect_is_simple_use): Treat all constants as vec_constant_def.
9022
32b227eb 90232012-03-16 Richard Guenther <rguenther@suse.de>
abd4f58b 9024 Kai Tietz <ktietz@redhat.com>
32b227eb 9025
9026 PR middle-end/48814
9027 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
9028 side-effects completely in the pre-queue and use a temporary
9029 for the result.
9030
75188dc6 90312012-03-16 Richard Guenther <rguenther@suse.de>
9032
9033 * stor-layout.c (finish_bitfield_representative): Fall back
9034 to the conservative maximum size if we cannot compute the
9035 size of the tail padding.
9036
91976c6c 90372012-03-16 Tristan Gingold <gingold@adacore.com>
9038
9039 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
9040 __CRTL_VER and __VMS_VER.
9041 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
9042 and vms_c_get_vms_ver.
9043 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
9044 functions.
9045 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
9046 (VMS_DEFAULT_VMS_VER): Define.
9047 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
9048 (VMS_DEFAULT_VMS_VER): Define.
9049
3e299f5d 90502012-03-16 Richard Guenther <rguenther@suse.de>
9051
9052 * tree-vect-loop.c (get_initial_def_for_induction): Use
9053 build_constructor directly.
9054 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9055 build_vector_from_val.
9056 * tree.c (build_vector_from_val): Avoid creating a constructor
9057 first when we want a constant vector.
9058
f3e265d7 90592012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9060
9061 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
9062
fadf62f4 90632012-03-16 Richard Guenther <rguenther@suse.de>
9064
9065 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
9066 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
9067 (struct tree_vector): Remove elements member, add variable size
9068 elts array member.
9069 (build_vector_stat): Declare.
9070 (build_vector): Define in terms of build_vector_stat.
9071 * tree.c (build_vector): Rename to ...
9072 (build_vector_stat): ... this. Take array of trees as parameter.
9073 (build_vector_from_ctor): Adjust.
9074 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
9075 initializer_zerop): Adjust.
9076 * cfgexpand.c (expand_debug_expr): Likewise.
9077 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
9078 const_vector_from_tree): Likewise.
9079 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
9080 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
9081 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
9082 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
9083 (lto_input_ts_vector_tree_pointers): Adjust.
9084 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
9085 (write_ts_vector_tree_pointers): Adjust.
9086 * varasm.c (const_hash_1, compare_constant, copy_constant,
9087 output_constant): Adjust.
9088 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
9089 * print-tree.c (print_node): Adjust.
9090 * tree-pretty-print.c (dump_generic_node): Adjust.
9091 * tree-vect-generic.c (uniform_vector_p, vector_element,
9092 lower_vec_perm): Adjust.
9093 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
9094 * tree-vect-slp.c (vect_get_constant_vectors,
9095 vect_transform_slp_perm_load): Adjust.
9096 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
9097 * expmed.c (make_tree): Adjust.
9098 * config/i386/i386.c (ix86_expand_builtin): Adjust.
9099 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
9100 and implementation.
9101 (sparc_fold_builtin): Adjust.
9102
e55b581d 91032012-03-16 Tristan Gingold <gingold@adacore.com>
9104
9105 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
9106 * config/vms/vms-stdint.h: New file.
9107
240f6bb5 91082012-03-16 Tristan Gingold <gingold@adacore.com>
9109
9110 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
9111 (ia64-hp-*vms*): Replaced by ...
9112 (*-*-*vms*): ... This new entry.
9113
e0c9db9b 91142012-03-15 Jakub Jelinek <jakub@redhat.com>
9115
6a8ad139 9116 PR target/52568
abd4f58b 9117 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
6a8ad139 9118 (ix86_expand_vec_perm_const_1): Use it.
9119
e0c9db9b 9120 PR target/52568
9121 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
9122 (avx2_permv4df): Remove.
9123 (avx2_permv4di): Macroize into...
9124 (avx2_perm<mode>): ... this using VI8F_256 iterator.
9125 (avx2_permv4di_1): Macroize into...
9126 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
9127
2ef72921 91282012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
9129
9130 * combine.c (apply_distributive_law): Do not distribute SUBREG.
9131
087903db 91322012-03-15 Ira Rosen <irar@il.ibm.com>
9133 Ulrich Weigand <ulrich.weigand@linaro.org>
9134
9135 * tree-vect-patterns.c (widened_name_p): Rename to ...
9136 (type_conversion_p): ... this. Add new argument to determine
9137 if it's a promotion or demotion operation. Check for
9138 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
9139 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
9140 widened_name_p.
9141 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
9142 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
9143 Likewise.
9144 (vect_recog_mixed_size_cond_pattern): Likewise and allow
9145 non-constant then and else clauses.
9146
4c0c783a 91472012-03-15 Ira Rosen <irar@il.ibm.com>
9148 Ulrich Weigand <ulrich.weigand@linaro.org>
9149
9150 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
9151 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
9152 vect_pattern_recog.
9153 * tree-vect-patterns.c (widened_name_p): Pass basic block
9154 info to vect_is_simple_use.
9155 (vect_recog_dot_prod_pattern): Fail for basic blocks.
9156 (vect_recog_widen_sum_pattern): Likewise.
9157 (vect_handle_widen_op_by_const): Support basic blocks.
9158 (vect_operation_fits_smaller_type,
9159 vect_recog_over_widening_pattern): Likewise.
9160 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
9161 Update call to vect_is_simple_use.
9162 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
9163 Add printing.
9164 (check_bool_pattern): Add an argument, update call to
9165 vect_is_simple_use and the recursive calls.
9166 (vect_recog_bool_pattern): Update relevant function calls.
9167 Add printing.
9168 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
9169 (vect_pattern_recog_1): Check for reduction only in loops.
9170 (vect_pattern_recog): Add new argument. Support basic blocks.
9171 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
9172 info to vect_is_simple_use_1.
a25bf392 9173 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
4c0c783a 9174 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
9175
e951f9a4 91762012-03-15 Jakub Jelinek <jakub@redhat.com>
9177 Andrew Pinski <apinski@cavium.com>
9178
9179 PR middle-end/52592
9180 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
9181 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
9182 calls instead of __builtin_ir{int,ound}*.
9183
ce1d2364 91842012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9185
9186 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
9187 documentation.
9188
bd29e244 91892012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4eb5a747 9190
9191 * config.gcc (target_type_format_char): New. Document it. Set it for
ce1d2364 9192 arm*-*-* .
abd4f58b 9193 * configure.ac (gnu_unique_option): Use target_type_format_char
9194 in test. Comment rationale.
4eb5a747 9195 * configure: Regenerate .
9196
7139adf8 91972012-03-15 Jakub Jelinek <jakub@redhat.com>
9198
9199 PR tree-optimization/52267
9200 * tree-vrp.c (masked_increment): New function.
9201 (register_edge_assert_for_2): Derive ASSERT_EXPRs
9202 from (X & CST1) cmp CST2 tests.
9203
2ecb06bc 92042012-03-15 Richard Guenther <rguenther@suse.de>
9205
9206 PR middle-end/52580
9207 * tree-data-ref.c (subscript_dependence_tester_1): Check
9208 all dimensions for non-conflicting access functions.
9209
249faa35 92102012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9211
9212 PR c++/44783
9213 * doc/invoke.texi [C++ Language Options]: Document
9214 -ftemplate-backtrace-limit.
9215
dd8e8868 92162012-03-15 Tristan Gingold <gingold@adacore.com>
9217
9218 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
9219 before a parameter.
9220
9e8ac19d 92212012-03-15 Tristan Gingold <gingold@adacore.com>
9222
9223 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
9224 use DW_OP_call_frame_cfa.
9225
676fcf5f 92262012-03-14 H.J. Lu <hongjiu.lu@intel.com>
9227
9228 PR target/50797
9229 * config/i386/i386-opts.h (pmode): New.
9230
9231 * config/i386/i386.c (ix86_option_override_internal): Properly
9232 check and set ix86_pmode.
9233
a25bf392 9234 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
676fcf5f 9235
9236 * config/i386/i386.opt (maddress-mode=): New.
9237
9238 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
9239
c9185637 92402012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9241
9242 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
9243 (dwarf2out_do_cfi_asm): Likewise.
9244 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
9245 handling.
9246 (add_data_member_location_attribute): Likewise.
9247 (gen_array_type_die): Likewise.
9248 (gen_subprogram_die): Likewise.
9249 (gen_producer_string): Likewise.
9250 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
9251 Remove MIPS_DEBUGGING_INFO handling.
9252 (sdb_debug_hooks): Likewise.
9253 (sdbout_begin_block): Likewise.
9254 (sdbout_end_block): Likewise.
9255 (sdbout_begin_prologue): Likewise.
9256 (sdbout_start_source_file): Likewise.
9257 (sdbout_end_source_file): Likewise.
9258 (sdbout_init): Likewise.
9259 * system.h (MIPS_DEBUGGING_INFO): Poison.
9260
48a5030b 92612012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9262
9263 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
9264 (alpha_file_start) [MS_STAMP]: Remove.
9265
9266 * config/alpha/elf.h (TARGET_GAS): Remove.
9267 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
9268 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
9269 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
9270 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
9271 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
9272 (alpha*-*-freebsd*): Likewise.
9273 (alpha*-*-netbsd*): Likewise.
9274 (alpha*-*-openbsd*): Likewise.
9275 (alpha*-*-*): Remove target_cpu_default2.
9276 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
9277 handling.
9278 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
9279 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
9280 * config/alpha/alpha.c (print_operand): Always assume
9281 TARGET_AS_SLASH_BEFORE_SUFFIX.
9282 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
9283 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
9284 ("*builtin_setjmp_receiver_er_1"): Remove.
9285 * config/alpha/alpha.opt (malpha-as): Remove.
9286 (mgas): Ignore.
9287 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
9288 -malpha-as, -mgas.
9289 Remove DEC Unix reference.
9290
9291 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
9292 (EXTENDED_COFF): Remove.
9293 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
9294 (EXTENDED_COFF): Don't undef.
9295 * config/alpha/alpha.c (alpha_file_start): Always assume
9296 OBJECT_FORMAT_ELF.
9297 Don't set targetm.asm_file_start_file_directive.
9298 [!OBJECT_FORMAT_ELF]: Remove.
9299 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9300
9301 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
9302 (DBX_DEBUGGING_INFO): Remove.
9303 (MIPS_DEBUGGING_INFO): Remove.
9304 (PREFERRED_DEBUGGING_TYPE): Remove.
9305 (DBX_OUTPUT_SOURCE_LINE): Remove.
9306 (SDB_OUTPUT_SOURCE_LINE): Remove.
9307 (DBX_CONTIN_LENGTH): Remove.
9308 (NO_DBX_FUNCTION_END): Remove.
9309 (ASM_STABS_OP): Remove.
9310 (ASM_STABN_OP): Remove.
9311 (ASM_STABD_OP): Remove.
9312 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
9313 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
9314 (PUT_SDB_DEF): Remove.
9315 (PUT_SDB_PLAIN_DEF): Remove.
9316 (PUT_SDB_TYPE): Remove.
9317 (sdb_label_count): Remove.
9318 (PUT_SDB_BLOCK_START): Remove.
9319 (PUT_SDB_BLOCK_END): Remove.
9320 (PUT_SDB_FUNCTION_START): Remove.
9321 (PUT_SDB_FUNCTION_END): Remove.
9322 (PUT_SDB_EPILOGUE_END): Remove.
9323 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
9324 (MIPS_DEBUGGING_INFO): Don't undef.
9325 (DBX_DEBUGGING_INFO): Don't undef.
9326 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
9327 (MIPS_DEBUGGING_INFO): Don't undef.
9328 (DBX_DEBUGGING_INFO): Don't undef.
9329 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
9330 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
9331 handling.
9332 (alpha_start_function): Likewise.
9333 (sdb_label_count): Remove.
9334 (alpha_output_filename): Remove DBX_DEBUG handling.
9335 (alpha_file_start): Likewise.
9336
264a5d11 93372012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9338
9339 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
9340 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
9341 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
9342 Solaris 8 support.
9343 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
9344 (ld_tls_support): Remove Solaris 8 references.
9345 (lwp_dir, lwp_spec): Remove support for alternate thread library.
abd4f58b 9346 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
264a5d11 9347 * configure: Regenerate.
9348 * config.in: Regenerate.
9349
9350 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
9351 * config/i386/sol2.h: Remove Solaris 8 references.
9352
9353 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
9354 (i?86-*-solaris2.9): ... this.
9355 Remove Solaris 8 references.
9356 (Specific, *-*-solaris2*): Document Solaris 8 removal.
9357 Remove Solaris 8 references.
9358
5641963c 93592012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9360
9361 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
9362 (mips-sgi-irix6.5*): Remove.
9363 * config.host (mips-sgi-irix*): Remove.
9364 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
9365 (set_have_as_tls): Remove *-*-irix6*.
9366 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
9367 * configure: Regenerate.
9368
9369 * config/mips/iris6.h: Remove.
9370 * config/mips/iris6.opt: Remove.
9371 * config/mips/t-irix6: Remove.
9372
9373 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
9374 (TARGET_IRIX6): Remove.
9375 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
9376 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
9377 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
9378 handling.
9379 (mips_file_start): Likewise.
9380 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
9381
9382 * config/mips/driver-native.c [__sgi__]: Remove.
9383 (host_detect_local_cpu) [__sgi__]: Remove.
9384
9385 * config/mips/gnu-user.h: Remove iris5.h reference.
9386
9387 * config/mips/mips-modes.def: Remove IRIX 6 reference.
9388 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
9389 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
9390 Remove.
9391
9392 * gcc.c (main): Move asm_debug initialization ...
9393 (asm_debug): ... here.
9394
9395 * ginclude/stddef.h (__STDDEF_H__): Don't define.
9396
9397 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
9398 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
9399 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9400 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9401 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
9402 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
9403 Remove.
9404 * doc/tm.texi: Regenerate.
9405
9406 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
9407 IRIX 6 reference.
9408 (MIPS Options, -march): Remove IRIX reference.
9409 * doc/install.texi (Binaries, SGI IRIX): Remove.
9410 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
9411 of section.
9412 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
9413
884b03c9 94142012-03-14 Martin Jambor <mjambor@suse.cz>
9415
9416 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
abd4f58b 9417 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
884b03c9 9418 (expand_expr_real_1): Do not handle misalignment if modifier is
9419 EXPAND_WRITE.
9420
f1690ec2 94212012-03-14 Richard Guenther <rguenther@suse.de>
9422
9423 PR middle-end/52584
9424 * tree-vect-generic.c (type_for_widest_vector_mode): Take
9425 element type instead of mode, use build_vector_type_for_mode
9426 instead of the langhook, build a vector of proper signedness.
9427 (expand_vector_operations_1): Adjust.
9428
e25d4891 94292012-03-14 Richard Guenther <rguenther@suse.de>
9430
9431 PR middle-end/52582
abd4f58b 9432 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
9433 a cgraph node for a FUNCTION_DECL that comes from a constructor.
e25d4891 9434 (gimple_get_virt_method_for_binfo): Likewise.
9435
1f0f7e1e 94362012-03-14 Richard Guenther <rguenther@suse.de>
9437
9438 PR tree-optimization/52571
9439 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9440 flag_section_anchors check ...
9441 (vect_can_force_dr_alignment_p): ... here. Do not re-align
9442 DECL_COMMON variables.
9443
8d8a34f9 94442012-03-14 Richard Guenther <rguenther@suse.de>
9445
9446 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
9447 * stor-layout.c (start_bitfield_representative): New function.
9448 (finish_bitfield_representative): Likewise.
9449 (finish_bitfield_layout): Likewise.
9450 (finish_record_layout): Call finish_bitfield_layout.
9451 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
9452 for QUAL_UNION_TYPE fields.
9453 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
9454 Stream DECL_BIT_FIELD_REPRESENTATIVE.
9455 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
9456
9457 PR middle-end/52080
9458 PR middle-end/52097
9459 PR middle-end/48124
9460 * expr.c (get_bit_range): Unconditionally extract bitrange
9461 from DECL_BIT_FIELD_REPRESENTATIVE.
9462 (expand_assignment): Adjust call to get_bit_range.
9463
a6476f88 94642012-03-14 Richard Guenther <rguenther@suse.de>
9465
9466 PR middle-end/52578
9467 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
9468 the outermost conversion is a sign-change only.
9469 (fold_binary_loc): Disregard widening and sign-changing
9470 conversions when we determine if two variables are equal
9471 for reassociation.
9472 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
9473 (T1)x if the outermost conversion is a sign-change only.
9474
6281b3df 94752012-03-14 Uros Bizjak <ubizjak@gmail.com>
9476
9477 Revert:
9478 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
9479
9480 * config/i386/predicates.md (constant_call_address_operand): Declare
9481 as special predicate. Update all uses.
9482
666649ed 94832012-03-13 Jakub Jelinek <jakub@redhat.com>
9484
e739f10c 9485 PR c/52577
9486 * c-parser.c (c_parser_postfix_expression)
9487 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
9488
666649ed 9489 * config/i386/smmintrin.h: Avoid /* within a comment.
9490 * config/i386/nmmintrin.h: Likewise.
9491
b6833dc9 94922012-03-13 Uros Bizjak <ubizjak@gmail.com>
9493
9494 * config/i386/i386.md (xbegin): Remove constraint from expander.
9495
182c3534 94962012-03-13 Uros Bizjak <ubizjak@gmail.com>
9497
9498 * config/i386/predicates.md (constant_call_address_operand): Declare
9499 as special predicate. Update all uses.
9500 * config/i386/i386.md: Remove mode from constant_call_address_operand
9501 predicates.
9502 * config/i386/i386.c (ix86_output_call_insn): Call
9503 constant_call_address_operand with VOIDmode.
9504
0f844e09 95052012-03-13 Uros Bizjak <ubizjak@gmail.com>
9506
9507 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
9508 AND zero extended address correctly.
9509
6a755243 95102012-03-13 Uros Bizjak <ubizjak@gmail.com>
9511
9512 * config/i386/predicates.md (tls_symbolic_operand): Declare as
9513 special predicate.
9514 (tls_modbase_operand): Ditto.
9515 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
9516 tls_modbase_operand predicates.
9517
55e42d78 95182012-03-13 Martin Jambor <mjambor@suse.cz>
9519
9520 * expr.c (expand_assignment): Handle misaligned scalar writes to
9521 memory through top-level MEM_REFs by calling store_bit_field.
9522
7af97aed 95232012-03-13 Richard Guenther <rguenther@suse.de>
9524
9525 PR middle-end/52134
9526 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
9527 if Y is a constant multiple of 1 << CST.
9528
21467ee6 95292012-03-13 Georg-Johann Lay <avr@gjlay.de>
9530
9531 PR target/52488
9532 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
9533 offset (size) to a value the insns can deal with.
9534 (expand_epilogue): Ditto.
9535
fa89c18d 95362012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9537
9538 * config/arm/neon.ml (ops): Fixup expected instructions for
9539 unsigned vector compares.
9540
1da1898e 95412012-03-13 Uros Bizjak <ubizjak@gmail.com>
9542
9543 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
9544 addresses only when %reg is not in word mode.
9545
c2c4377d 95462012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9547
9548 * config/microblaze/microblaze.md: Fix typo.
9549 * tree-if-conv.c: Likewise.
9550 * tree-vect-patterns.c: Likewise.
9551
7151decb 95522012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9553
9554 * config.gcc (extra_passes): Remove.
9555 * configure.ac (extra_passes): Don't substitute.
9556 * configure: Regenerate.
9557 * Makefile.in (EXTRA_PASSES): Remove.
9558 (GCC_PASSES): Remove $(EXTRA_PASSES).
9559 (MOSTLYCLEANFILES): Likewise.
9560 (native): Likewise.
9561 (install-common): Likewise.
9562
b966bb5f 95632012-03-13 Uros Bizjak <ubizjak@gmail.com>
9564
9565 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9566 * config/i386/i386.c (ix86_decompose_address): Use
9567 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9568 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9569 thread pointer to a register.
9570
f500db2a 95712012-03-12 H.J. Lu <hongjiu.lu@intel.com>
9572
9573 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
9574 on tls_symbolic_operand.
9575 (tls_global_dynamic_64_<mode>): Likewise.
9576
0c8f5ee5 95772012-03-12 Georg-Johann Lay <avr@gjlay.de>
9578
9579 PR other/52545
9580 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
9581 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
9582
63477dcc 95832012-03-12 Georg-Johann Lay <avr@gjlay.de>
9584
9585 PR target/52499
9586 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
9587 type from reg_class_t to enum reg_class.
9588 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
9589
c3597b05 95902012-03-12 Andrew Pinski <apinski@cavium.com>
9591
9592 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
9593 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
9594 (value_replacement): Likewise.
9595 (empty_block_p): Check also if the PHIs for the block are empty.
9596
6bdcc5e4 95972012-03-12 Georg-Johann Lay <avr@gjlay.de>
9598
9599 PR target/52148
9600 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
9601 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
9602 r184615 from 2012-02-28.
9603
63e90859 96042012-03-12 H.J. Lu <hongjiu.lu@intel.com>
9605
9606 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
9607 (ix86_gen_tls_local_dynamic_base_64): Likewise.
9608 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
9609 and ix86_gen_tls_local_dynamic_base_64.
9610 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
9611 ix86_gen_tls_local_dynamic_base_64.
9612
9613 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
9614 (*tls_global_dynamic_64_<mode>): This.
9615 (tls_global_dynamic_64): Renamed to ...
9616 (tls_global_dynamic_64_<mode>): This.
9617 (*tls_local_dynamic_base_64): Renamed to ...
9618 (*tls_local_dynamic_base_64_<mode>): This.
9619 (tls_local_dynamic_base_64): Renamed to ...
9620 (tls_local_dynamic_base_64_<mode>): This.
9621
bf0a02ba 96222012-03-12 H.J. Lu <hongjiu.lu@intel.com>
9623
9624 * config/i386/i386.c (ix86_option_override_internal): Properly
9625 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
9626 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
abd4f58b 9627 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
9628 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
bf0a02ba 9629
9630 * config/i386/sse.md (sse3_monitor64): Renamed to ...
9631 (sse3_monitor64_<mode>): This.
9632
6b6253f2 96332012-03-12 Tristan Gingold <gingold@adacore.com>
9634
9635 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
9636 (ia64_function_arg_advance): Ditto.
9637
1f7e141e 96382012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9639
9640 * config.gcc (mips*-*-openbsd*): Remove.
9641 * config/mips/openbsd.h: Remove.
9642 * config/mips/sdb.h: Remove.
9643
9644 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
9645 * config/mips/mips.c (sdb_label_count): Remove.
9646 (mips_debugger_offset): Remove #if 0 code.
9647 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
9648 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
9649
1647539e 96502012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9651
9652 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
9653 binutils reference.
9654 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
9655 Update binutils references.
9656 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
9657 Update binutils reference.
9658 Update Sun as/GNU ld caveat.
9659 Document binutils largefile requirement for LTO plugin.
6776c1f3 9660 Remove reference to alternate libpthread.
1647539e 9661
126b6848 96622012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9663
9664 * config.gcc (alpha*-dec-osf5.1*): Remove.
9665 * config.host (alpha*-dec-osf*): Remove.
9666 * configure.ac (*-*-osf*): Remove.
9667 (alpha*-dec-osf*): Remove.
9668 * configure: Regenerate.
9669
abd4f58b 9670 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
9671 config/alpha/va_list.h, config/alpha/x-osf: Remove.
126b6848 9672
9673 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
9674 * config/alpha/alpha.c (struct machine_function): Update comment.
9675 (alpha_start_function): Remove Tru64 UNIX as handling for
9676 max_frame_size.
9677 * config/alpha/alpha.md ("exception_receiver"): Remove
9678 TARGET_LD_BUGGY_LDGP.
9679 ("*exception_receiver_2"): Likewise.
9680 * except.c (finish_eh_generation): Remove Tru64 reference.
9681 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
9682 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
9683 * target.def (handle_pragma_extern_prefix): Remove.
9684
9685 * Makefile.in (mips-tfile.o-warn): Remove.
9686 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
9687 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
9688 * mips-tdump.c, mips-tfile.c: Remove.
9689
9690 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
9691 extern_prefix.
9692 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
9693 (Specific, alpha*-dec-osf5.1): Note removal.
9694 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
9695 Remove.
9696 * doc/tm.texi: Regenerate.
9697 * doc/trouble.texi (Cross-Compiler Problems): Remove.
9698
969baf69 96992012-03-12 Richard Guenther <rguenther@suse.de>
9700
9701 * config/arm/arm.c (neon_dereference_pointer): Do not call
9702 covert during RTL expansion.
9703
cc48d234 97042012-03-12 Tristan Gingold <gingold@adacore.com>
9705
9706 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
9707 Options. Mention -mpointer-size.
9708
a51edb4c 97092012-03-12 Richard Guenther <rguenther@suse.de>
9710
9711 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
9712 build_nonstandard_integer_type.
9713
0177b1e3 97142012-03-12 Richard Guenther <rguenther@suse.de>
9715
9716 * tree.c (signed_or_unsigned_type_for): Use
9717 build_nonstandard_integer_type.
9718 (signed_type_for): Adjust documentation.
9719 (unsigned_type_for): Likewise.
9720 * tree-pretty-print.c (dump_generic_node): Use standard names
9721 for non-standard integer types if available.
9722
8f852c44 97232012-03-12 Tristan Gingold <gingold@adacore.com>
9724
9725 * config/vms/vms.opt: Add vms-opts.h header.
9726 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
9727 target mask.
9728 (-mvms-return-codes): Document.
9729 (-mpointer-size): New option.
9730 (vms_pointer_size): Add enumeration.
9731 * config/vms/vms-opts.h: New file.
9732 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
9733 __INITIAL_POINTER_SIZE.
9734 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
9735 (C_COMMON_OVERRIDE_OPTIONS): Define.
9736 (DWARF2_ADDR_SIZE): Define.
9737 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
9738 * config/vms/vms-protos.h (vms_c_common_override_options):
9739 New prototype.
9740 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
9741 if -mno-pointer-size.
9742 (vms_c_common_override_options): New function.
9743 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
9744 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
9745 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
9746 and flag_vms_pointer_size.
9747 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
9748 * config.gcc (*-*-*vms*): Define xm_file.
9749 (alpha*-dec-*vms*): Do not define xm_file.
9750 (alpha64-dec-*vms*): Remove.
9751 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
9752 and tmake_file.
9753
22676c8f 97542012-03-12 Jakub Jelinek <jakub@redhat.com>
9755
9756 PR tree-optimization/51721
9757 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
9758 if (int) unsvar cmp CST.
9759
7f23b9c0 97602012-03-12 Richard Guenther <rguenther@suse.de>
9761
abd4f58b 9762 * tree-sra.c (create_access_replacement): Only rename the replacement
9763 if we can rewrite it into SSA form. Properly mark register typed
9764 replacements that we cannot rewrite with TREE_ADDRESSABLE.
7f23b9c0 9765 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
9766 for aggregate or BLKmode results.
9767
6b48fd25 97682012-03-12 Jakub Jelinek <jakub@redhat.com>
9769
9770 PR tree-optimization/52533
9771 * tree-vrp.c (register_edge_assert_for_2): Use double_int
9772 type for mask, only handle shifts by non-zero in-range
9773 shift count, for LE_EXPR and GT_EXPR if new_val is
9774 maximum, don't add the assertion.
9775
bce88dc2 97762012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
9777
9778 * doc/invoke.texi: Document -mrtm option.
abd4f58b 9779 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
bce88dc2 9780 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
9781 (ix86_handle_option): Handle OPT_mrtm.
9782 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
9783 xtestintrin.h.
9784 (x86_64-*-*): Ditto.
9785 * i386-builtin-types.def (INT_FTYPE_VOID): New.
9786 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9787 __RTM__ if needed.
9788 (ix86_target_string): Define -mrtm option.
9789 (PTA_RTM): New.
abd4f58b 9790 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
9791 Handle new option.
bce88dc2 9792 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
9793 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
9794 IX86_BUILTIN_XTEST.
9795 (bdesc_special_args): Ditto.
9796 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
9797 (ix86_expand_special_args_builtin): Handle new built-in type.
9798 (ix86_expand_builtin): Handle XABORT instruction.
9799 * config/i386/i386.h (TARGET_RTM): New.
9800 * config/i386/i386.md (UNSPECV_XBEGIN): New.
9801 (UNSPECV_XEND): Ditto.
9802 (UNSPECV_XABORT): Ditto.
9803 (UNSPECV_XTEST): Ditto.
9804 (xbegin): Ditto.
9805 (xbegin_1): Ditto.
9806 (xend): Ditto.
9807 (xabort): Ditto
9808 (xtest): Ditto.
9809 (xtest_1): Ditto.
9810 * config/i386/i386.opt (mrtm): New.
abd4f58b 9811 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
bce88dc2 9812 * config/i386/rtmintrin.h: New header.
9813 * config/i386/xtestintrin.h: Ditto.
9814
74a1e041 98152012-03-12 Tristan Gingold <gingold@adacore.com>
9816
abd4f58b 9817 * ginclude/stddef.h: Adjust previous patch.
9818 Use __VMS__ instead of VMS.
74a1e041 9819
c6f81084 98202012-03-12 Uros Bizjak <ubizjak@gmail.com>
9821
9822 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
9823 Also convert sequences with CC setting arithmetic instruction.
9824
3e5e110f 98252012-03-11 Sandra Loosemore <sandra@codesourcery.com>
9826
9827 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
9828 from C Language Options to Preprocessor Options.
9829 (C Dialect Options): Move -no-integrated-cpp documentation
9830 from here...
9831 (Preprocessor Options): ...to here. Rewrite the description
abd4f58b 9832 so it makes more sense, and remove discussion of merging front ends.
3e5e110f 9833
af423a9d 98342012-03-11 H.J. Lu <hongjiu.lu@intel.com>
9835
9836 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
9837 needed for loop.
9838 (ix86_expand_setmem): Likewise.
9839
c7def6ab 98402012-03-11 Uros Bizjak <ubizjak@gmail.com>
9841
9842 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
9843 convert_to_mode.
9844
9e8fad47 98452012-03-11 H.J. Lu <hongjiu.lu@intel.com>
9846
9847 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
9848 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
9849
48ca984b 98502012-03-11 H.J. Lu <hongjiu.lu@intel.com>
9851
c7def6ab 9852 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
48ca984b 9853
235d620e 98542012-03-11 H.J. Lu <hongjiu.lu@intel.com>
9855
9856 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
9857 TARGET_64BIT.
9858
7dd29a1c 98592012-03-11 H.J. Lu <hongjiu.lu@intel.com>
9860 Uros Bizjak <ubizjak@gmail.com>
c290746e 9861
7dd29a1c 9862 * config/i386/predicates.md (call_insn_operand): Allow
c290746e 9863 constant_call_address_operand in Pmode only.
9864 (sibcall_insn_operand): Ditto.
9865 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
9866 (*call_vzeroupper): Ditto.
9867 (*sibcall): Ditto.
9868 (*sibcall_vzeroupper): Ditto.
9869 (*call_value): Ditto.
9870 (*call_value_vzeroupper): Ditto.
9871 (*sibcall_value): Ditto.
9872 (*sibcall_value_vzeroupper): Ditto.
9873 (*indirect_jump): Ditto.
9874 (*tablejump_1): Ditto.
9875 (indirect_jump): Convert memory address to word mode for TARGET_X32.
9876 (tablejump): Ditto.
9877 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
9878 to word mode.
9879
bdd0e5dc 98802012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
9881
9882 PR target/51244
9883 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
9884 Use movrt_negc instead of negc pattern for non-SH2A.
9885 (*movnegt): Remove.
9886 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
9887
fe73ce46 98882012-03-10 H.J. Lu <hongjiu.lu@intel.com>
9889
9890 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
9891 if Pmode != word_mode.
9892 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
c290746e 9893 Pmode == SImode for TARGET_X32.
fe73ce46 9894
9895 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
9896 (tls_initial_exec_x32): Likewise.
9897
bd279947 98982012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
9899
9900 PR rtl-optimization/52528
9901 * combine.c (can_combine_p): Add setting of subst_low_luid
9902 before call to expand_field_assignment().
9903
3bbe8a1c 99042012-03-09 Sandra Loosemore <sandra@codesourcery.com>
9905
9906 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
9907 and related program names.
9908
4eb48a77 99092012-03-09 Sandra Loosemore <sandra@codesourcery.com>
9910
9911 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
9912
f9c68163 99132012-03-09 Uros Bizjak <ubizjak@gmail.com>
9914
9915 PR target/52530
9916 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
9917 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
9918 to set code to 'q'.
9919 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
9920 (*movdi_internal_rex64): Use %E operand modifier for lea.
9921 (*movsi_internal): Ditto.
9922 (*lea_1): Ditto.
9923 (*lea<mode>_2): Ditto.
9924 (*lea_{3,4,5,6}_zext): Ditto.
9925 (*tls_global_dynamic_32_gnu): Ditto.
9926 (*tls_global_dynamic_64): Ditto.
9927 (*tls_dynamic_gnu2_lea_32): Ditto.
9928 (*tls_dynamic_gnu2_lea_64): Ditto.
9929 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
9930
8a3c7c63 99312012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
9932
9933 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
9934 redefine to be NULL if the current bit-size is different from the
9935 configured bit-size.
9936
9937 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
9938 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
9939 set the default tuning. Add asserts to make sure the cpu and tune
9940 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
9941 test whether the index is set, instead of > 0.
9942 (rs6000_file_start): Do not reset the default cpu if the current
9943 bit-size is different from the configured bit-size.
9944
439392ee 99452012-03-09 Tristan Gingold <gingold@adacore.com>
9946
9947 * config/vms/vms-crtlmap.map: Add comments.
9948 Add entries needed to build Ada RTS.
9949
11a439a1 99502012-03-09 Tristan Gingold <gingold@adacore.com>
9951
9952 * ginclude/stddef.h: Do not define __size_t on VMS.
9953
7714837c 99542012-03-09 Tristan Gingold <gingold@adacore.com>
9955
9956 * c-tree.h (c_default_pointer_mode): New variable.
9957 * c-decl.c (c_default_pointer_mode): New variable.
9958 (c_build_pointer_type): New function.
9959 (grokdeclarator): Call c_build_pointer_type instead
9960 of build_pointer_type.
9961
9962 * config/vms/vms-c.c: Include c-tree.h
9963 (saved_pointer_mode): New variable.
9964 (handle_pragma_pointer_size): New function.
9965 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
9966 (vms_c_register_pragma): Register __pointer_size and
9967 __required_pointer_size pragmas.
9968
9368e60a 99692012-03-09 Tristan Gingold <gingold@adacore.com>
9970
9971 * config/vms/vms-c.c (vms_construct_include_filename): New function.
9972 (vms_c_register_includes): Reference it.
9973
fb9912ea 99742012-03-09 Andrew Pinski <apinski@cavium.com>
9975
9976 PR middle-end/51988
9977 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
9978 print_generic_expr.
9979 (tree_ssa_phiopt_worker): Go through all the PHIs for
9980 value_replacement instead of just the singleton one.
9981 (value_replacement): Change return type to int. Return 0 instead of
9982 false.
9368e60a 9983 Allow the middle basic block to contain more than just the defining
9984 statement.
fb9912ea 9985 Handle non empty middle basic blocks.
9986 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
9987
62bc06ea 99882012-03-09 Jiangning Liu <jiangning.liu@arm.com>
9989
9990 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
9991 array reference and component reference.
9992 (analyze_scalar_evolution_for_address_of): New.
9993
d0295369 99942012-03-08 Jie Zhang <jzhang918@gmail.com>
9995
9996 PR target/49862
f9c68163 9997 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
d0295369 9998 (hwloop_pattern_reg): Fix set but not used warning.
9999 (bfin_reorg_loops): Remove unused parameter.
10000 (bfin_reorg): Update use of bfin_reorg_loops.
10001
df901db8 100022012-03-08 H.J. Lu <hongjiu.lu@intel.com>
10003
10004 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
10005 with integer parameters in registers.
10006 (gen_push): Push register in word_mode instead of Pmode.
10007 (ix86_emit_save_regs): Likewise.
f9c68163 10008 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
df901db8 10009 (gen_pop): Pop register in word_mode instead of Pmode.
10010 (ix86_emit_restore_regs_using_pop): Likewise.
10011 (ix86_expand_prologue): Replace Pmode with word_mode for push
10012 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
10013 restore RAX and R10 in word_mode.
10014 (ix86_emit_restore_regs_using_mov): Restore integer registers
10015 in word_mode.
10016 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
10017 word_mode.
10018 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
10019 (ix86_split_long_move): Likewise.
10020
10021 * config/i386/i386.md (W): New.
10022 (*push<mode>2_prologue): Replace :P with :W.
10023 (*pop<mode>1): Likewise.
10024 (*pop<mode>1_epilogue): Likewise.
10025 (push/pop peephole2): Use word_mode scratch registers.
10026
dea4eea4 100272012-03-08 Uros Bizjak <ubizjak@gmail.com>
10028
10029 * config/i386/predicates.md (indirect_branch_operand): Simplify.
10030
1c66468a 100312012-03-08 Georg-Johann Lay <avr@gjlay.de>
10032
10033 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
10034 for constants in [-63,63].
10035
27c1fe3b 100362012-03-08 Uros Bizjak <ubizjak@gmail.com>
10037
10038 PR target/52530
10039 Revert:
10040 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10041
10042 * config/i386/i386.c (ix86_print_operand_address): Only handle
10043 zero-extended DImode addresses.
10044
5f031e88 100452012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10046
10047 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
10048 * configure: Regenerate.
10049
5af5ea69 100502012-03-08 Georg-Johann Lay <avr@gjlay.de>
10051
10052 PR target/52496
10053 * config/avr/avr.c (avr_mem_clobber): New static function.
10054 (avr_expand_delay_cycles): Add memory clobber operand to
10055 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
10056 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
10057 (enable_interrupt, disable_interrupt): New expander.
10058 (nopv, sleep, wdr): New expanders.
10059 (delay_cycles_1): Add memory clobber.
10060 (delay_cycles_2): Add memory clobber.
10061 (delay_cycles_3): Add memory clobber.
10062 (delay_cycles_4): Add memory clobber.
10063 (cli_sei): New insn from former "enable_interrupt",
10064 "disable_interrupt" with memory clobber.
10065 (*wdt): New insn from former "wdt" with memory clobber.
10066 (*nopv): Similar, but for "nopv".
10067 (*sleep): Similar, but for "sleep".
10068
acf1cb58 100692012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
10070 Kaz Kojima <kkojima@gcc.gnu.org>
10071
10072 PR target/52503
10073 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
10074 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
10075 (SUBTARGET_OVERRIDE_OPTIONS): Define.
10076
79c51b65 100772012-03-07 Uros Bizjak <ubizjak@gmail.com>
10078
10079 * config/i386/predicates.md (x86_64_zext_general_operand): New.
10080 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
10081 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
10082
c6cfe48f 100832012-03-07 Walter Lee <walt@tilera.com>
10084
10085 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
10086 REG_CFA_* notes for the stack pointer.
10087 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
10088 EH_RETURN_STACKADJ_RTX.
10089 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
10090 generate REG_CFA_* notes for the stack pointer.
10091 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
10092 by EH_RETURN_STACKADJ_RTX.
10093
cf19911a 100942012-03-07 Georg-Johann Lay <avr@gjlay.de>
10095
10096 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
10097 when __AVR_3_BYTE_PC__ is defined.
10098
eff54bae 100992012-03-07 Uros Bizjak <ubizjak@gmail.com>
10100
10101 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
10102 (ix86_print_operand): Handle '^'.
10103 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
10104 using P mode iterator. Add %^ to asm template to conditionally emit
10105 addr32 prefix.
10106 (*rep_movdi_rex64): Ditto.
10107 (*strsetdi_rex_1): Ditto.
10108 (*rep_stosdi_rex64): Ditto.
10109 (*strmov{si,hi,qi}_1): Add %^ to asm template to
10110 conditionally emit addr32 prefix.
10111 (*rep_mov{si,qi}): Ditto.
10112 (*strset{si,hi,qi}): Ditto.
10113 (*rep_stos{si,qi}): Ditto.
10114 (*cmpstrnqi_nz_1): Ditto.
10115 (*cmpstrnqi_1): Ditto.
10116 (*strlenqi_1): Ditto.
10117
f8ae29a7 101182012-03-07 H.J. Lu <hongjiu.lu@intel.com>
10119
10120 * config/i386/i386.c (function_value_64): Return pointers in
10121 word_mode instead of Pmode.
10122 (ix86_promote_function_mode): Likewise.
10123
1b3c3119 101242012-03-07 Richard Guenther <rguenther@suse.de>
10125
10126 * coverage.c (get_gcov_type): Use type_for_mode.
10127 (get_gcov_unsigned_t): Likewise.
10128 * expr.c (store_constructor): Use type_for_mode.
10129 (try_casesi): Likewise.
eff54bae 10130 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
1b3c3119 10131 (add_standard_iv_candidates): Use standard type trees.
10132 * dojump.c (do_jump): Remove dead code.
10133
3c9b85aa 101342012-03-07 Richard Guenther <rguenther@suse.de>
10135
10136 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
10137
481e2176 101382012-03-07 Richard Guenther <rguenther@suse.de>
10139
10140 * convert.c (strip_float_extensions): Move ...
10141 * tree.c (strip_float_extensions): ... here.
10142
3f149cc9 101432012-03-07 Georg-Johann Lay <avr@gjlay.de>
10144
10145 PR target/52484
10146 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
10147
3cea8318 101482012-03-07 Richard Guenther <rguenther@suse.de>
10149
10150 * omp-low.c (extract_omp_for_data): Use signed_type_for.
10151 (expand_omp_for_generic): Likewise.
10152 (expand_omp_for_static_nochunk): Likewise.
10153 (expand_omp_for_static_chunk): Likewise.
10154 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
10155 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10156 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10157 Use unsigned_type_for.
10158 (vect_create_cond_for_align_checks): Use signed_type_for.
10159
ed726cbf 101602012-03-07 Andrey Belevantsev <abel@ispras.ru>
10161
10162 PR rtl-optimization/52203
10163 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
10164 all callers to pass NULL except ...
10165 (reset_sched_cycles_in_current_ebb): ... here, save the value
10166 in new variable 'empty'. Increase issue_rate only for
eff54bae 10167 non-empty insns.
ed726cbf 10168
3f9e8673 101692012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
10170
10171 PR target/51417
eff54bae 10172 * Makefile.in: Let install-gcc-ar depend on installdirs,
10173 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
3f9e8673 10174 Don't double canonicalize if cross-compiling.
10175
69a2907c 101762012-03-07 Georg-Johann Lay <avr@gjlay.de>
10177
10178 PR target/52506
10179 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
10180 to: RAMPZ, RAMPY, RAMPX, RAMPD.
10181 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
10182
ee3ce577 101832012-03-07 Georg-Johann Lay <avr@gjlay.de>
10184
10185 PR target/52505
10186 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
10187 from RAM.
10188 * config/avr/avr.md (xload_8): Adjust insn length.
10189
be20cbdd 101902012-03-07 Georg-Johann Lay <avr@gjlay.de>
10191
10192 PR target/52461
10193 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
10194 if RAMPZ affects reading from RAM.
10195
8b046cbb 101962012-03-07 Richard Guenther <rguenther@suse.de>
10197
10198 PR pch/52518
10199 PR pch/38987
10200 * doc/invoke.texi (Precompiled Headers): Remove sentence that
10201 suggests you can include PCHs from inside another header.
10202
9737dd95 102032012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
10204
10205 PR middle-end/52515
10206 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
10207
4bc312c5 102082012-03-07 Kai Tietz <ktietz@redhat.com>
10209
10210 * doc/invoke.texi (fwritable-relocated-rdata): Document
10211 new Cygwin/MinGW target option.
10212 * config/i386/winnt.c (i386_pe_unique_section): Ignore
10213 reloc if flag -fwritable-relocated-rdata is not set.
10214 (i386_pe_section_type_flags): Likewise.
10215 * config/i386/cygming.opt (fwritable-relocated-rdata):
10216 Add new flag variable flag_writable_rel_rdata.
10217
b36be69d 102182012-03-07 Richard Guenther <rguenther@suse.de>
10219
10220 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
10221 precision against gimple constraints.
10222
7d7b0bac 102232012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
10224
10225 PR middle-end/52372
10226 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
10227 variables.
10228 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
10229 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
10230 variables.
10231 (init_emit_regs): Move associated initialization to...
10232 (init_emit_once): ...here.
10233
943b78f0 102342012-03-06 Richard Henderson <rth@redhat.com>
10235
10236 * config/m68k/m68k.h (ISA_HAS_TAS): New.
10237 * config/m68k/sync.md (atomic_test_and_set): Use it.
10238 (atomic_test_and_set_1): Likewise.
10239
506056fd 102402012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10241
10242 PR target/50310
10243 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
10244 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
10245 (vector_ltgt<mode>): Likewise.
10246 (vector_ordered<mode>): Likewise.
10247 (vector_unordered<mode>): Likewise.
eff54bae 10248 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
506056fd 10249
5ab54790 102502012-03-06 Aldy Hernandez <aldyh@redhat.com>
10251
10252 * trans-mem.c: New typedef for tm_region_p.
10253 Define vector types for tm_region_p.
10254 (tm_region_init): Replace region_worklist to a vector called
10255 bb_regions.
10256
06e80d0a 102572012-03-06 Richard Guenther <rguenther@suse.de>
10258
10259 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
10260 MEM_REF with constant pointer operand.
10261
80b4d93e 102622012-03-06 Richard Guenther <rguenther@suse.de>
10263
10264 PR middle-end/52493
10265 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
10266
abb4c37a 102672012-03-06 Tristan Gingold <gingold@adacore.com>
10268
eff54bae 10269 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
abb4c37a 10270 (external_model_kind): Improve documentation.
10271 (vms_pragma_extern_model): Handle relaxed_redef.
10272 (vms_c_register_pragma): Allow expansion for nomember_alignment.
10273
3c90c054 102742012-03-06 Georg-Johann Lay <avr@gjlay.de>
10275
10276 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
10277 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
10278 Some more notes on EIND usage and reorder EIND subsection.
10279
f3925bb3 102802012-03-06 Tristan Gingold <gingold@adacore.com>
10281
10282 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
10283 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
10284
46d35275 102852012-03-06 Tristan Gingold <gingold@adacore.com>
10286
10287 * config/vms/t-vmsnative (version): Define.
10288 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
10289
ef4cf572 102902012-03-06 Andrey Belevantsev <abel@ispras.ru>
10291
10292 PR rtl-optimization/52250
10293 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
10294 to put note list into. Unconditionally call move_bb_info.
10295 (move_bb_info): Do not assert the blocks being in the same region,
46d35275 10296 just drop the note list if they are not.
ef4cf572 10297
3c2ed158 102982012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10299
10300 PR target/51244
10301 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
10302 and use unified expansion logic.
10303 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
10304 closer to the existing movt insn.
10305 (negc): Rename insn to *negc. Add new expander.
10306 (movnegt): Use xor pattern for T bit negation. Reserve helper
10307 constant for negc pattern.
10308 (*movnegt): New insn and splitter.
10309
555c3766 103102012-03-05 Bernd Schmidt <bernds@codesourcery.com>
10311
10312 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
10313 PLUS_EXPR.
10314
e374c627 103152012-03-05 Richard Henderson <rth@redhat.com>
10316
10317 * genemit.c (main): Include "target.h" in insn-emit.c.
10318 * Makefile.in (insn-emit.o): Depend on TARGET_H.
10319 * config/sh/sync.md (atomic_test_and_set): Reference
10320 targetm.atomic_test_and_set_trueval instead of
10321 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
10322
d00acb08 103232012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
10324
10325 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
10326 Make static.
10327
549aab72 103282012-03-05 Steven Bosscher <steven@gcc.gnu.org>
10329
10330 * langhooks.c (add_builtin_type): New function.
10331 * langhooks.h (add_builtin_type): Export it.
10332 * config/mep/mep.c (mep_init_builtins): Use it.
10333 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
10334
665611e7 103352012-03-05 Jakub Jelinek <jakub@redhat.com>
10336
10337 PR debug/51902
10338 * tree.h (BLOCK_SAME_RANGE): Define.
10339 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
10340 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
10341 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
10342 isn't equal to supercontext fragment's fragment chain.
10343 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
10344 fragment origin.
10345 (blocks_nreverse_all): Likewise.
10346 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
10347 BLOCK_SUPERCONTEXT to supercontext fragment instead of
10348 supercontext fragment's fragment origin.
10349 * dwarf2out.c (add_high_low_attributes): If stmt has the same
10350 range as its parent (or parents thereof etc.), use the parent's
10351 DW_AT_ranges value instead of creating a new .debug_ranges range.
10352
dcf7024c 103532012-03-05 Richard Henderson <rth@redhat.com>
10354
10355 PR tree-opt/52242
10356 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
10357 * omp-low.c (expand_omp_atomic): Assume anything aligned to
10358 BIGGEST_ALIGNMENT is aligned.
10359
940bb42d 103602012-03-05 Richard Henderson <rth@redhat.com>
10361
10362 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
10363 * config/sh/sh.c: ... here.
10364
ba884946 103652012-03-05 Richard Henderson <rth@redhat.com>
10366
10367 PR target/52481
10368 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
10369 instead of calling negqi2 directly.
10370
1dfa4f7f 103712012-03-05 Aldy Hernandez <aldyh@redhat.com>
10372
10373 PR middle-end/52463
10374 * trans-mem.c (tm_region_init): Use last_basic_block.
10375
631f95de 103762012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
10377
10378 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
10379 * config/sh/sync.md (atomic_test_and_set): New expander.
10380 (tasb, atomic_test_and_set_soft): New insns.
10381 * config/sh/sh.opt (menable-tas): New option.
10382 * doc/invoke.texi (SH Options): Document it.
10383
ef0e6535 103842012-03-05 Richard Guenther <rguenther@suse.de>
10385
10386 * cfgloop.c (verify_loop_structure): Verify dominators before
10387 using them.
10388 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
10389 dominators from here.
10390 * graphite-scop-detection.c (create_sese_edges): Likewise.
10391 * loop-doloop.c (doloop_optimize_loops): Likewise.
10392 * loop-init.c (loop_optimizer_init): Likewise.
10393 * loop-unroll.c (unroll_and_peel_loops): Likewise.
10394 * loop-unswitch.c (unswitch_loops): Likewise.
10395 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10396 * tree-parloops.c (parallelize_loops): Likewise. Verify
10397 only when checking is enabled.
10398 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
10399
e9eae8c8 104002012-03-05 Bernd Schmidt <bernds@codesourcery.com>
10401
10402 * genautomata.c (parse_automata_opt): New static function.
10403 (initiate_automaton_gen): Remove all option handling code. Remove
10404 argc argument. All callers changed.
eff54bae 10405 (main): Call init_rtx_reader_args_cb with the new function as argument.
e9eae8c8 10406
821ac701 104072012-03-05 Richard Guenther <rguenther@suse.de>
10408
10409 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
10410 * tree-if-conv.c (combine_blocks): Free post-dominator info
10411 after breaking it.
10412 * tree-parloops.c (create_parallel_loop): Free and re-compute
10413 dominator info after breaking it.
10414
4c79581c 104152012-03-05 Richard Guenther <rguenther@suse.de>
10416
10417 PR middle-end/52353
10418 * optabs.h (trapv_unoptab_p): New function.
10419 (trapv_binoptab_p): Likewise.
10420 * optabs.c (expand_binop): Use emit_libcall_block_1 with
10421 a proper equiv_may_trap argument.
10422 (expand_unop): Likewise.
10423 (emit_libcall_block_1): Take extra argument whether the
10424 instruction may trap. Renamed from ...
10425 (emit_libcall_block): ... this. New wrapper.
10426
d4afc00c 104272012-03-05 Jakub Jelinek <jakub@redhat.com>
10428
98f00c5b 10429 PR tree-optimization/51721
10430 * tree-vrp.c (register_edge_assert_for_2): If comparing
10431 lhs of right shift by constant with an integer constant,
10432 add ASSERT_EXPRs for the rhs1 of the right shift.
10433
d4afc00c 10434 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
10435
9ee917f7 104362012-03-05 Richard Guenther <rguenther@suse.de>
10437
10438 * tree.c (integer_zerop): Handle VECTOR_CSTs.
10439 (integer_onep): Likewise.
10440 (integer_all_onesp): Likewise.
10441
c2e23f8a 104422012-03-05 Georg-Johann Lay <avr@gjlay.de>
10443
10444 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
10445
7cb32b9e 104462012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10447
10448 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
10449 instead of TARGET_64BIT.
10450
9868cee1 104512012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10452
10453 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
10454 adjust_stack_insn.
10455
a8ebae34 104562012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10457
10458 * config/i386/i386.c (ix86_print_operand_address): Only handle
10459 zero-extended DImode addresses.
10460
8f4b480e 104612012-03-04 Uros Bizjak <ubizjak@gmail.com>
10462
10463 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
10464 taken and cputaken as bool.
10465
ad797097 104662012-03-04 Uros Bizjak <ubizjak@gmail.com>
10467
10468 * config/i386/constraints.md (Ya): New internal constraint.
10469 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
10470 (*zero_extendsidi2_rex64): Add x,x alternative.
10471 (*zero_extendsidi2): Ditto. Add o,0 alternative.
10472 Remove flags reg clobber. Adjust corresponding splits.
10473 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
10474 zero_extendqisi2 expanders using SWI12 mode iterator.
10475 (zero_extend<mode>si2_and): Macroize insn from
10476 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
10477 splitters.
10478 (*zero_extend<mode>si2): Macroize insn from
10479 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
10480 (*zero_extend*2_movzbl_and): Remove insn patterns.
10481 (zero_extendqihi2_and): Merge corresponding splitter.
10482 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
10483 (*zero_extend*2_movzbl_and): Remove insn patterns.
10484 (*anddi_1): Split TYPE_IMOVX instructions.
10485 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
10486 (*andhi_1): Ditto.
10487 (and->zext splitter): Add splitter pattern.
10488 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
10489
0989c0ee 104902012-03-04 Sandra Loosemore <sandra@codesourcery.com>
10491
10492 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
10493 x86-specific text.
10494 (Debugging Options): Likewise.
10495 (Optimize Options): Likewise.
10496 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
10497 with other architectures. Use official processor names with correct
10498 spelling/capitalization. Fix formatting and grammar issues.
10499 (i386 and x86-64 Windows Options): Similar cleanup here.
10500
0f4929a3 105012012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10502
10503 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
10504
3d7c0741 105052012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10506
10507 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
10508 DBX_REGISTER_NUMBER.
10509
ed739787 105102012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10511
10512 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
10513 operand is CONST_INT. Take COSTS_N_INSNS into account.
10514 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
10515 of shiftcosts.
10516
75ee1af4 105172012-03-02 Richard Henderson <rth@redhat.com>
10518
10519 * optabs.c (expand_atomic_test_and_set): Honor
10520 atomic_test_and_set_trueval even when atomic_test_and_set
10521 optab is not in use.
10522
07732170 105232012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
10524
10525 PR target/48596
10526 PR target/48806
10527 * config/sh/sh.c (sh_register_move_cost): Increase cost between
10528 GENERAL_REGS and FP_REGS for SImode.
10529
428d0ab7 105302012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10531
10532 PR target/49486
10533 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
10534 (absdi2): New expander.
10535 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
10536
52671251 105372012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10538
882390bb 10539 * config/sh/sync.md (atomic_exchange<mode>): New expander.
10540 (atomic_exchange<mode>_soft): New insn.
10541
105422012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10543
10544 * config/sh/sync.md: Update copyright notice dates.
52671251 10545 (atomic_compare_and_swap<mode>): Use SImode for return value instead
10546 of QImode.
882390bb 10547 (atomic_compare_and_swap<mode>_soft): Likewise.
52671251 10548
105492012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
ad797097 10550
164fbbdf 10551 PR target/31640
10552 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
10553 * config/sh/sh.c: Update copyright notice dates.
10554 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
10555 alignment for TARGET_HARD_SH4.
ad797097 10556 (sh_option_override): Reduce default function alignment. Set
164fbbdf 10557 loop alignment to 4 bytes when not optimizing for size.
10558
d094f1d6 105592012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
10560
fa2f697a 10561 PR middle-end/50335
d094f1d6 10562 * doc/invoke.texi (floop-flatten): Remove.
10563 * toplev.c (process_options): Remove references to flag_loop_flatten.
10564 * tree-ssa-loop.c (gate_graphite_transform): Same.
10565 * common.opt (floop-flatten): Obsolete.
10566 * graphite-poly.c (apply_poly_transforms): Remove reference to
10567 flag_loop_flatten.
10568 * Makefile.in (graphite-flattening.o): Remove.
10569 * graphite-flattening.c: Remove.
10570
ea6ad4ae 105712012-03-02 Uros Bizjak <ubizjak@gmail.com>
10572
10573 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
10574 having mode compatible with the mode of previous compare. Substitute
10575 compare mode of previous compare with the mode, compatible
10576 with eliminated and previous compare.
10577
b1addacc 105782012-03-02 Peter Bergner <bergner@vnet.ibm.com>
10579
10580 * config/rs6000/dfp.md (floatdidd2): New define_insn.
10581
01c12879 105822012-03-02 Uros Bizjak <ubizjak@gmail.com>
10583
10584 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
10585 compatible with CCGOCmode and CCGCmode.
10586
508c1626 105872012-03-02 Peter Bergner <bergner@vnet.ibm.com>
10588
10589 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
10590
b49e3742 105912012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10592
10593 * config/arm/arm.c (arm_sat_operator_match): New function.
10594 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
10595 * config/arm/arm.md ("insn" attribute): Add "sat" value.
10596 ("SAT", "SATrev"): New code iterators.
10597 ("SATlo", "SAThi"): New code iterator attributes.
10598 ("*satsi_<SAT:code>"): New pattern.
10599 ("*satsi_<SAT:code>_shift"): Likewise.
10600 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
10601 and "shift" attributes.
10602 ("arm_usatsihi"): Add "insn" attribute.
10603 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
10604 by powers of two. Do not allow shift by 32.
10605
7103ce44 106062012-03-02 Uros Bizjak <ubizjak@gmail.com>
10607
10608 PR target/46716
10609 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
10610 to pass the argument in the register of "natural" mode.
10611
95539e1d 106122012-03-02 Richard Guenther <rguenther@suse.de>
10613
10614 PR tree-optimization/52406
10615 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
10616 (struct indices): Add unconstrained_base member.
10617 (struct dr_alias): Remove unused vops member.
10618 (DR_UNCONSTRAINED_BASE): New define.
10619 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
10620 add indices to allow their disambiguation. Make DR_BASE_OBJECT
10621 be an artificial access that covers the whole indexed object,
10622 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
10623 plain decl base-objects to their MEM_REF variant.
10624 (dr_may_alias_p): When the base-object of either data reference
10625 has unknown size use only points-to information.
10626 (compute_affine_dependence): Make dumps easier to read and
10627 more verbose.
10628 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
10629 DR_REF when looking for packed references.
10630 (vect_supportable_dr_alignment): Likewise.
10631
9811ae10 106322012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
10633
7103ce44 10634 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
9811ae10 10635 Improve conditions for peepholes of loads followed by commutative
10636 operators.
7103ce44 10637 * config/arm/ldmstm.md: Regenerated.
9811ae10 10638
f5c0f433 106392012-03-02 Richard Guenther <rguenther@suse.de>
10640
10641 * BASE-VER: Set to 4.8.0.
10642
8f50e6ed 106432012-03-01 Richard Earnshaw <rearnsha@arm.com>
10644
10645 * config.gcc (obsolete): Add all ARM targets using the FPA.
10646 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
10647 * doc/install.texi: Avoid references to obsolete ARM ports.
10648
830730d6 106492012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
10650
10651 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
10652
43770c4d 106532012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
10654 Joern Rennecke <joern.rennecke@embecosm.com>
10655
10656 * doc/extend.texi: Expand and update information on interrupt
10657 attribute for Epiphany.
10658
bef96223 106592012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
10660
10661 * config/sh/sh-protos.h: Update copyright notice dates.
10662 * config/sh/sh.h: Likewise.
10663 * config/sh/sh.md: Likewise.
10664 * config/sh/constraints.md: Likewise.
10665 * config/sh/predicates.md: Likewise.
10666
b0b9387e 106672012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
10668
10669 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
10670 * config/sh/sh.c (tertiary_reload_operand): Likewise.
10671
7329bf9b 106722012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
10673
10674 * config/sh/constraints.md: Fix comment typo.
10675
aaeba072 106762012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10677
10678 PR target/52408
10679 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
10680 unsigned HOST_WIDE_INT.
10681 (zvdep_imm64): Likewise.
10682 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
10683 (vdepi_and): Likewise.
10684 Likewise for unamed 64-bit patterns.
10685 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
10686
85b6e75b 106872012-03-01 Alexandre Oliva <aoliva@redhat.com>
10688
10689 PR debug/52001
10690 PR rtl-optimization/52417
10691 * cselib.c (cselib_any_perm_equivs): New variable.
10692 (cselib_reset_table): Check that it's not set when not
10693 preserving constants.
10694 (cselib_add_permanent_equiv): Set it.
10695 (cselib_have_permanent_equivalences): New.
10696 (cselib_init, cselib_finish): Reset it.
10697 * cselib.h (cselib_have_permanent_equivalences): Declare.
10698 * alias.c (get_addr): Restore earlier behavior when there
10699 aren't permanent equivalences.
10700
ff560cc5 107012012-03-01 Steven Bosscher <steven@gcc.gnu.org>
10702
10703 * config/mn10300/mn10300-modes.def: Fix copyright notice.
10704 * config/v850/v850-modes.def: Fix copyright notice.
10705
12ffadfa 107062012-03-01 Georg-Johann Lay <avr@gjlay.de>
10707
10708 * doc/extend.texi (AVR Built-in Functions): Document
10709 __builtin_avr_flash_segment.
10710
10711 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
10712 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
10713 (*split.flash_segment): New insn-and-split.
10714 * config/avr/avr.c (avr_init_builtins): Add local variables:
10715 const_memx_void_node, const_memx_ptr_type_node,
10716 char_ftype_const_memx_ptr.
10717
963aee26 107182012-03-01 Jakub Jelinek <jakub@redhat.com>
10719
10720 PR tree-optimization/52445
10721 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
10722 add ssa_name_ver, offset and size fields and change store field
10723 to bool.
10724 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
10725 (add_or_mark_expr): Likewise. Only consider previous stores
10726 with the same size and offset.
10727 (nt_init_block): Only look at gimple_assign_single_p stmts,
10728 doesn't look at rhs2.
10729
5c332a23 107302012-03-01 Richard Guenther <rguenther@suse.de>
10731
10732 PR middle-end/52443
10733 * tree-cfg.c (verify_gimple_assign_unary): Allow any
10734 conversions from integral types to pointer types.
10735
47018d7b 107362012-03-01 Georg-Johann Lay <avr@gjlay.de>
10737
10738 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
7103ce44 10739 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
47018d7b 10740 unintentionally removed in r184616.
10741
fb7c1017 107422012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10743
10744 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
10745 3DNow from bdver1.
10746
2c9cbc56 107472012-02-29 Jakub Jelinek <jakub@redhat.com>
10748 Uros Bizjak <ubizjak@gmail.com>
10749
10750 PR target/52437
10751 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
10752 alternatives, add "e" constraint to the new last alternative
10753 and ! to last 3 alternatives.
10754
ffb4f309 107552012-02-29 Eric Botcazou <ebotcazou@adacore.com>
10756
10757 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
10758 DW_AT_artificial attributes at the end of the processing.
10759 (gen_array_type_die): Likewise.
10760 (gen_enumeration_type_die): Likewise.
10761 (gen_struct_or_union_type_die): Likewise.
10762 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
10763 the parent type.
10764
eee873f6 107652012-02-29 Jakub Jelinek <jakub@redhat.com>
10766
04df78dc 10767 PR middle-end/52419
10768 * expr.c (expand_assignment): If doing misaligned store that doesn't
10769 cover all mode bits, perform a RMW cycle.
10770
eee873f6 10771 PR tree-optimization/52429
10772 * tree-parloops.c (separate_decls_in_region_debug): Return early
10773 if var is LABEL_DECL.
10774
9f396eaf 107752012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10776
10777 PR tree-optimization/52424
10778 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
10779 calling dom_thread_across_edge.
10780
1602e4b0 107812012-02-29 Georg-Johann Lay <avr@gjlay.de>
10782
10783 * config/avr/avr.c: Move definition of TARGET macros to end of file.
10784
16d17f31 107852012-02-29 Georg-Johann Lay <avr@gjlay.de>
10786
10787 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
10788 * config/avr/avr.c (avr_output_bld): Remove unused function.
10789 (avr_out_sbxx_branch): Use "%T" to print bit position.
10790
3d78dda1 107912012-02-29 Georg-Johann Lay <avr@gjlay.de>
10792
10793 * config/avr/avr.md: Untabify.
10794
107952012-02-29 Georg-Johann Lay <avr@gjlay.de>
10796
10797 * config/avr/avr.md (eqne): New code iterator.
10798 (*dec-and-branchsi): Use it in text peephole's condition.
10799 (*dec-and-branchhi): Ditto.
10800 (*dec-and-branchqi): Ditto.
10801
f37ec592 108022012-02-29 Georg-Johann Lay <avr@gjlay.de>
10803
10804 PR target/49939
10805 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
10806 the device does not have the skip-bug.
10807
52bba6ce 108082012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
10809
10810 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
10811 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
10812 -mpretend-cmove): New.
10813
5df3e7ea 108142012-02-29 Jakub Jelinek <jakub@redhat.com>
10815
10816 PR bootstrap/52397
10817 * df.h (struct df_d): Adjust comment that hard_regs_live_count
10818 doesn't count DEBUG_INSN refs.
10819 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
10820 for DEBUG_INSN refs.
10821
31a56b87 108222012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10823
10824 Partially revert:
10825
10826 2012-02-20 Richard Guenther <rguenther@suse.de>
10827 PR tree-optimization/52298
10828 * tree-vect-stmts.c (vectorizable_load): Properly use
4e0c0c52 10829 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
31a56b87 10830
de60f90c 108312012-02-28 Aldy Hernandez <aldyh@redhat.com>
10832
10833 PR middle-end/51752
10834 * gimple.h (gimple_in_transaction): New.
10835 (gimple_set_in_transaction): New.
10836 (struct gimple_statement_base): Add in_transaction field.
10837 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
10838 transaction loads.
10839 (tree_ssa_lim_initialize): Compute transaction bits.
10840 * tree.h (compute_transaction_bits): Protoize.
10841 * trans-mem.c (tm_region_init): Use the heap to store BB
10842 auxilliary data.
10843 (compute_transaction_bits): New.
10844
042a76cf 108452012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10846
10847 * gcc.c (display_help): Document --help=common and sort entries
10848 alphabetically.
10849
ce7f5029 108502012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10851
10852 * doc/install.texi: Document check-$LANG specific shortcuts
10853
ca6c837f 108542012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10855
10856 PR target/51534
10857 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
10858 and vcgtu.
10859 * config/arm/arm_neon.h: Regenerate.
10860 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
10861 (neon_vcgeu): New insn.
10862 (neon_vcgtu): Likewise.
10863 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
7103ce44 10864 (ops): Unsigned comparison intrinsics call a different builtin.
ca6c837f 10865
8b6c5604 108662012-02-28 Richard Guenther <rguenther@suse.de>
10867
10868 PR target/52407
10869 * config/i386/i386.c (ix86_expand_vector_set): Fix element
10870 ordering for the VEC_CONCAT for two element vectors for
10871 V2SFmode, V2SImode and V2DImode.
10872
736a63d4 108732012-02-28 Richard Earnshaw <rearnsha@arm.com>
10874
10875 PR target/49448
10876 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
10877 detecting big-endian triplets.
10878
9185f2d7 108792012-02-28 Richard Earnshaw <rearnsha@arm.com>
10880
10881 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
10882 mode if there is no type information available.
10883
a8d20b48 108842012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
10885
10886 PR tree-optimization/53207
10887 * doc/invoke.texi: Document as experimental and relying on graphite.
10888
1e946ea6 108892012-02-28 Georg-Johann Lay <avr@gjlay.de>
10890
10891 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
10892 of initializer to changes from r184614.
7103ce44 10893
627491ef 108942012-02-28 Richard Guenther <rguenther@suse.de>
10895
10896 PR tree-optimization/52395
10897 * tree-sra.c (build_ref_for_offset): Also look at the base
10898 TYPE_ALIGN when figuring out the alignment of the replacement.
10899
6b1b2cb7 109002012-02-28 Richard Guenther <rguenther@suse.de>
10901
10902 PR tree-optimization/52402
10903 * ipa-prop.c (ipa_modify_call_arguments): Properly use
10904 mis-aligned types when creating the accesses at the call site.
10905
c19a2f5f 109062012-02-28 Georg-Johann Lay <avr@gjlay.de>
10907
10908 * config/avr/builtins.def: New file.
10909 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
10910 * config/avr/avr.c (enum avr_builtin_id): Use it.
10911 (avr_init_builtins): Use it. And use avr_bdesc.
10912 (bdesc_1arg): Remove.
10913 (bdesc_2arg): Remove.
10914 (bdesc_3arg): Remove.
10915 (struct avr_builtin_description): Add field n_args.
10916 (avr_bdesc): New static variable using builtins.def.
10917 (avr_expand_builtin): Use it.
10918 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
10919 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
10920 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
10921
f1222c71 109222012-02-28 Georg-Johann Lay <avr@gjlay.de>
10923
10924 PR target/52148
10925 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
10926 match only one single hard register with respective hard reg rtx.
10927 (movmemx_<mode>): Ditto.
10928 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
10929 insn anatomy of movmem[x]_<mode>.
10930 (avr_out_movmem): Same for printing assembler and operand usage.
10931
e508bf98 109322012-02-28 Georg-Johann Lay <avr@gjlay.de>
10933
10934 PR target/49868
10935 PR target/52261
10936 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
10937 address spaces located outside of device flash.
10938
10939 * config/avr/avr.h (base_arch_s): Remove field n_segments.
10940 (mcu_type_s): Add field n_flash.
10941 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
10942 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
10943 (AVR_MCU): Add N_FLASH argument.
10944 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
10945 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
10946 macro __FLASH<n> if that address space makes sense for the device.
10947 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
10948 outside of target flash.
10949 (avr_asm_named_section): Ditto.
10950 (avr_asm_select_section): Ditto.
10951 (avr_addr_space_convert): Ditto.
10952 (avr_emit_movmemhi): Ditto.
10953 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
10954 address space is outside of device flash.
10955 (avr_insert_attributes): Ditto.
10956 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
10957 avr_current_arch->n_segments.
10958
1f2e8f6e 109592012-02-27 H.J. Lu <hongjiu.lu@intel.com>
10960
10961 PR target/52352
7103ce44 10962 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
1f2e8f6e 10963 (*movabs<mode>_2): Likewise.
10964
0f41c0cf 109652012-02-27 Jakub Jelinek <jakub@redhat.com>
10966
7510cf26 10967 PR target/52375
10968 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
10969 s_register_operand in the test instead of REG_P. Don't call
10970 gen_reg_rtx if it won't be used.
10971
0f41c0cf 10972 PR tree-optimization/52376
10973 * ipa-split.c (split_function): Ignore CLOBBER stmts.
10974
68b509aa 109752012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
10976
10977 * ifcvt.c (noce_get_condition): Check condition variable is not
10978 small_register_classes_for_mode_p before accepting.
10979
becba2b9 109802012-02-27 Uros Bizjak <ubizjak@gmail.com>
10981
10982 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
10983
347b9640 109842012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10985
10986 Revert:
10987 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10988 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
10989 tuning parameters.
10990 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
10991
5b9a8c31 109922012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
10993
10994 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
10995
7a288fec 109962012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
10997
10998 * config/sh/predicates.md: Remove blank lines.
10999 * config/sh/sh.c: Fix typos in comments.
11000 * config/sh/constraints.md: Likewise.
11001 * config/sh/sh.md: Remove blank lines.
11002 Fix typos in comments. Use ;; as comment characters.
11003
02be8f84 110042012-02-26 Walter Lee <walt@tilera.com>
11005
becba2b9 11006 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
02be8f84 11007 (replace_mov_pcrel_step2): Ditto.
11008
0be329ef 110092012-02-25 Alexandre Oliva <aoliva@redhat.com>
11010
fa5e407e 11011 PR debug/52001
11012 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
11013 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
11014 and locs that reference values newer than the non-canonical value
11015 at hand. Return the canonical value as a worst case.
11016 (memrefs_conflict_p): Walk canonical value's locs.
11017
0be329ef 11018 PR debug/52001
11019 * cselib.c (preserve_only_constants): Rename to...
11020 (preserve_constants_and_equivs): ... this. Split out...
11021 (invariant_or_equiv_p): ... this. Preserve plus expressions
11022 of other preserved expressions too.
11023 (cselib_reset_table): Adjust.
11024 * var-tracking.c (reverse_op): Use canonical value to build
11025 reverse operation.
11026
70c72222 110272012-02-23 Kai Tietz <ktietz@redhat.com>
11028
11029 * config/i386/i386.c (ix86_delegitimize_address): Handle
11030 UNSPEC_PCREL plus displacement.
11031
00c52bc9 110322012-02-24 Georg-Johann Lay <avr@gjlay.de>
11033
11034 PR target/52261
11035 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
11036 to test for unusedness in st X addressing.
11037
aa834ebc 110382012-02-24 Richard Guenther <rguenther@suse.de>
11039
11040 PR middle-end/52361
becba2b9 11041 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
aa834ebc 11042 (is_gimple_reg_type): Move inline ...
11043 * gimple.h (is_gimple_reg_type): ... here.
11044
e9d79eef 110452012-02-24 Richard Guenther <rguenther@suse.de>
11046
11047 PR middle-end/52361
11048 * passes.c (execute_function_todo): When verifying SSA form
11049 verify gimple form first.
11050 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
11051
7dd59140 110522012-02-24 Richard Guenther <rguenther@suse.de>
11053
11054 PR middle-end/52355
11055 * fold-const.c (fold_addr_of_array_ref_difference): New function.
becba2b9 11056 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
7dd59140 11057
10b55fcb 110582012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11059
11060 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
11061
8abed11e 110622012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11063
11064 * tree-phinodes.c (make_phi_node): Mark static.
11065 * tree-flow.h (make_phi_node): Remove extern decl.
11066 * doc/gimple.texi (make_phi_node): Remove documentation.
11067
7ef97146 110682012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11069
becba2b9 11070 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
7ef97146 11071 * tree-ssa-sccvn.c (print_scc): Ditto.
11072
6da426a8 110732012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11074
11075 * doc/passes.texi (Full redundancy elimination): Fix typo.
11076
98a3cc50 110772012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11078
11079 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
11080
148868c2 110812012-02-23 Eric Botcazou <ebotcazou@adacore.com>
11082
11083 PR bootstrap/52287
11084 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
11085
6b9c4a52 110862012-02-23 Uros Bizjak <ubizjak@gmail.com>
11087
11088 PR c/52290
11089 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
11090
8266991c 110912012-02-23 Georg-Johann Lay <avr@gjlay.de>
11092
11093 * config/avr/avr.md (code_stdname): Add ior, xor.
11094 (xior): New code iterator.
11095 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
11096 (*<code_stdname><mode>qi.byte1-3): Ditto.
11097
1a3c6423 110982012-02-23 Jakub Jelinek <jakub@redhat.com>
11099
11100 PR tree-optimization/52019
11101 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
11102 CLOBBER stmts.
11103
c3dd2023 111042012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11105
11106 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
11107 HAVE_INITFINI_ARRAY to work around namespace pollution in
11108 certain versions of newlib system headers.
11109 * config.in: Regenerate.
11110 * configure: Regenerate.
11111 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
11112 instead of HAVE_INITFINI_ARRAY.
11113
6bb01a79 111142012-02-22 Uros Bizjak <ubizjak@gmail.com>
11115
11116 PR target/52330
11117 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
11118 is not offsettable memory reference.
11119
5be63f82 111202012-02-22 Georg-Johann Lay <avr@gjlay.de>
11121
11122 PR target/18145
11123 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
11124 setting avr_need_clear_bss_p for __gnu_lto* symbols.
11125
c529cd37 111262012-02-22 Georg-Johann Lay <avr@gjlay.de>
11127
11128 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
6bb01a79 11129 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
c529cd37 11130
291426be 111312012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11132
11133 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
11134 library on Solaris 8 even without TLS support.
11135 * configure: Regenerate.
11136
48bcb852 111372012-02-22 Richard Guenther <rguenther@suse.de>
11138
11139 PR middle-end/52329
11140 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
11141 for GIMPLE_DEBUG stmts.
291426be 11142
3f06bd1b 111432012-02-22 Martin Jambor <mjambor@suse.cz>
11144
11145 PR middle-end/51782
11146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
11147 according to the base object.
11148
b5b90b5a 111492012-02-22 Georg-Johann Lay <avr@gjlay.de>
11150
11151 PR rtl-optimization/50063
11152 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
11153 and 2 (8-bit SP) in operand 2.
11154 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
11155 setup to use movhi_sp_r instead of vanilla move to write SP.
11156 Adjust REG_CFA notes to superseed unspec.
11157 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
11158 of vanilla move.
11159 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
11160 known to be off) only with TARGET_NO_INTERRUPTS. Never use
11161 irq_state 1 (IRQ known to be on) here.
11162
769de935 111632012-02-21 Bernd Schmidt <bernds@codesourcery.com>
11164
11165 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
11166 WORDS_BIG_ENDIAN.
11167 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
11168 assign_hard_reg): Likewise.
11169
111702012-02-21 Georg-Johann Lay <avr@gjlay.de>
47f9f604 11171
11172 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
11173
769de935 111742012-02-21 Georg-Johann Lay <avr@gjlay.de>
21e3f268 11175
11176 * config/avr/avr.md
11177 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
11178 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
11179
769de935 111802012-02-21 Georg-Johann Lay <avr@gjlay.de>
184a25cd 11181
11182 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
11183 prototype from here to...
11184 * config/avr/avr.h: ...here.
11185
b600658e 111862012-02-21 Richard Earnshaw <rearnsha@arm.com>
11187
11188 PR target/52294
769de935 11189 * thumb2.md (thumb2_shiftsi3_short): Split register and
b600658e 11190 immediate shifts. For register shifts tie operands 0 and 1.
11191 (peephole2 for above): Check that register-controlled shifts
11192 have suitably tied operands.
11193
b65fb916 111942012-02-21 Quentin Neill <quentin.neill@amd.com>
11195
11196 PR target/52137
11197 * config/i386/bdver1.md (bdver1_call, bdver1_push,
11198 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
11199 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
11200 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
11201 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
11202 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
11203 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
11204 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
11205 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
11206 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
11207 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
11208 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
11209 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
11210 bdver1_ssevector_avx256_unaligned_load,
11211 bdver1_ssevector_sse128_unaligned_load,
11212 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
11213 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
11214 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
11215 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
11216 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
11217 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
11218 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
11219 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
11220 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
11221 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
11222 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
11223 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
11224 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
11225 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
11226 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
11227 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
11228 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
11229 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
11230 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
11231 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
11232 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
11233 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
11234 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
11235 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
11236 bdver1_ssediv_double_load, bdver1_ssediv_double,
11237 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
11238 Add "bdver2" attribute.
11239
dcba5e45 112402012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11241
11242 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
11243 default if possible and not specified otherwise.
11244
f2f6d96f 112452012-02-21 Richard Guenther <rguenther@suse.de>
11246
11247 PR middle-end/52314
11248 * gimplify.c (create_tmp_from_val): Use the main variant type
11249 for the type of the temporary we create.
11250
6b55f6d9 112512012-02-21 Richard Guenther <rguenther@suse.de>
11252
11253 PR tree-optimization/52324
11254 * gimplify.c (gimplify_expr): When re-gimplifying expressions
11255 do not gimplify a MEM_REF address operand if it is already
11256 in suitable form.
11257
e29fe543 112582012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11259
11260 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
11261 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
11262
7b0821ca 112632012-02-21 Richard Guenther <rguenther@suse.de>
11264
11265 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
11266 nested_in_vect_loop.
11267
e857485e 112682012-02-21 Jakub Jelinek <jakub@redhat.com>
11269
11270 PR tree-optimization/52318
11271 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
11272 vdef also to non-pure/const call stmts in the sequence.
11273
46d35275 112742012-02-21 Tristan Gingold <gingold@adacore.com>
11275
11276 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
11277
005acfe0 112782012-02-20 David S. Miller <davem@davemloft.net>
11279
11280 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
11281 don't use the "rd %pc" instruction on v9 for PIC register loads.
11282
43156aa3 112832012-02-20 Aldy Hernandez <aldyh@redhat.com>
11284
11285 PR middle-end/52141
11286 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
11287 in a transaction safe function.
11288
b527cbf0 112892012-02-20 Kai Tietz <ktietz@redhat.com>
11290
11291 PR target/52238
11292 * stor-layout.c (place_field): Handle desired_align for
11293 ms-bitfields, too.
11294
e4a9141c 112952012-02-20 Richard Guenther <rguenther@suse.de>
11296
11297 PR tree-optimization/52298
11298 * tree-vect-stmts.c (vectorizable_store): Properly use
11299 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
11300 outer loops.
11301 (vectorizable_load): Likewise.
11302 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11303 Access DR_STEP after ensuring it is not NULL.
11304
225ffc2f 113052012-02-20 Jakub Jelinek <jakub@redhat.com>
11306
11307 PR tree-optimization/52286
11308 * fold-const.c (fold_binary_loc): For (X & C1) | C2
11309 optimization use double_int_to_tree instead of build_int_cst_wide,
11310 rewrite to use double_int vars.
11311
1c6e4ce9 113122012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11313
11314 PR target/50166
11315 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
11316 Define _start.
11317 Remove -e 0 from $gcc_cv_ld invocation.
11318 Only use __GLIBC_PREREQ if defined.
11319 Enable on Solaris since Solaris 8 patch.
11320 (gcc_SUN_LD_VERSION): New macro.
11321 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
11322 gcc_SUN_LD_VERSION for version number format.
11323 * configure: Regenerate.
11324 * varasm.c (get_elf_initfini_array_priority_section): Set
11325 SECTION_NOTYPE for non-default priority.
11326 Use get_section instead of get_unnamed_section to emit
11327 .init_array/.fini_array with default priority.
11328
6a8f7b8b 113292012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
11330
11331 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
11332 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
11333 (mips_start_unique_function, mips_output_mips16_rdhwr)
11334 (mips_code_end): New functions.
11335 (TARGET_ASM_CODE_END): Define.
11336
7db87803 113372012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
11338
11339 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
11340 to stubs with non-sibling calls.
11341
ce3c28ad 113422012-02-18 Sandra Loosemore <sandra@codesourcery.com>
11343
11344 * doc/invoke.texi (-fira-* options): Copy-edit.
11345 (ira-* parameters): Copy-edit.
11346
1bed49cd 113472012-02-17 Sandra Loosemore <sandra@codesourcery.com>
11348
11349 * doc/invoke.texi: Minor copy-edits to bring into conformance with
11350 GCC coding conventions.
11351
720dbdb5 113522012-02-17 Sandra Loosemore <sandra@codesourcery.com>
11353
11354 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
11355 when used as adjectives.
11356
77d5f3a9 113572012-02-16 Sandra Loosemore <sandra@codesourcery.com>
11358
11359 * doc/invoke.texi: Clean up "that"/"which" confusion.
11360
c7e75c45 113612012-02-17 Steven Bosscher <steven@gcc.gnu.org>
11362
11363 * system.h: Poison SMALL_REGISTER_CLASSES
11364 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
11365 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
11366
97effc09 113672012-02-16 Jakub Jelinek <jakub@redhat.com>
11368
11369 PR tree-optimization/52285
11370 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
11371 when deciding if a call is a tail call or tail recursion.
11372
3f96cc96 113732012-02-16 Kai Tietz <ktietz@redhat.com>
11374
11375 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
11376 interger-constant displacement for UNSPEC_PCREL.
11377
830de880 113782012-02-16 Jakub Jelinek <jakub@redhat.com>
11379
72e3d363 11380 PR rtl-optimization/52208
11381 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
11382 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
11383
38091110 11384 PR tree-optimization/52255
11385 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
11386 loop->header has virtual PHI, but exit_e->dest doesn't, add
11387 virtual PHI to exit_e->dest and adjust all uses after the loop.
11388
830de880 11389 PR debug/52260
11390 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
11391 children with clone_tree_hash, not after it.
11392
dd76b89f 113932012-02-16 Iain Sandoe <iains@gcc.gnu.org>
11394
11395 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
11396 extended identifiers.
11397
70f89d12 113982012-02-16 Jakub Jelinek <jakub@redhat.com>
11399
cdf67cee 11400 PR middle-end/51929
11401 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
11402 a same_body_alias, also test whether e->callee isn't a former
11403 or current clone of the decl this is a same body alias of.
11404
70f89d12 11405 PR translation/52264
11406 * cgraphunit.c (verify_cgraph_node): Fix a typo.
11407
ea76f7e1 114082012-02-15 Sandra Loosemore <sandra@codesourcery.com>
11409
11410 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
11411
3619a9e5 114122012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11413
11414 PR target/52199
11415 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
11416 force_reg instead of copy_to_reg for better optimization. Force
11417 non-register or memory operands into a register.
11418
fd46ba2e 114192012-02-15 Andrew MacLeod <amacleod@redhat.com>
11420
11421 * extend.texi: Reserve upper bits of memory model for future use.
11422
0b6cf66f 114232012-01-15 Georg-Johann Lay <avr@gjlay.de>
11424 Anatoly Sokolov <aesok@post.ru>
11425 Eric Weddington <eric.weddington@atmel.com>
11426
11427 PR target/52261
11428 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
11429 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
11430 Rewrite initializers for .macro.
11431 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
11432 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
11433 atxmega32d4, atxmega32x1.
11434 avrxmega4: atxmega64a3, atxmega64d3.
11435 avrxmega5: atxmega64a1, atxmega64a1u.
11436 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
11437 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
11438 avrxmega7: atxmega128a1, atxmega128a1u.
11439 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
11440 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
11441 (struct base_arch_s): Rename reserved to xmega_p.
11442 Rename reserved2 to have_rampd.
11443 (AVR_XMEGA): New define.
11444 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
11445 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
11446 * config/avr/predicates.md (io_address_operand): Take into
11447 account SFR offset.
11448 (low_io_address_operand): Ditto.
11449 (high_io_address_operand): Ditto.
11450 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
11451 (enabled, movhi_sp_r): Use them.
11452 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
11453 cpp_define_formatted to built-in define __AVR_ARCH__.
11454 (__AVR_XMEGA__): New built-in define.
11455 (__AVR_HAVE_RAMPD__): New built-in define.
11456 (__AVR_HAVE_RAMPX__): New built-in define.
11457 (__AVR_HAVE_RAMPY__): New built-in define.
11458 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
11459
11460 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
11461 (avr_option_override): Initialize them.
11462 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
11463 (avr_init_expanders): Initialize them. No more block several calls.
11464 (emit_push_sfr): New static function.
11465 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
11466 Handle AVR_XMEGA.
11467 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
11468 (avr_print_operand): Print addreeses as symbols for
11469 RAMPX, RAMPY, RAMPD, CCP.
11470 (output_movhi): Handle AVR_XMEGA when writing to SP.
11471 (avr_out_movhi_mr_r_xmega): New static function.
11472 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
11473 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
11474 __RAMPD__, __CCP__ as needed.
11475
11476 * config/avr/multilib.h: Regenerate.
11477 * config/avr/t-multilib: Regenerate.
11478 * config/avr/avr-tables.opt: Regenerate.
11479
f260bce7 114802012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
11481
11482 PR tree-optimization/50561
11483 * graphite-flattening.c (lst_project_loop): Do not
11484 remove old scattering dimensions after flattening.
11485 (lst_do_flatten): Likewise.
11486
15b84087 114872012-02-15 Georg-Johann Lay <avr@gjlay.de>
11488
11489 * doc/extend.texi (AVR Built-in Functions): Remove doc for
11490 __builtin_avr_map8, __builtin_avr_map16.
11491 Document __builtin_avr_insert_bits.
11492
11493 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
11494 (insert_bits): New insn.
11495 (adjust_len.map_bits): Rename to insert_bits.
11496 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
11497 * avr-protos.h (avr_out_map_bits): Remove.
11498 (avr_out_insert_bits, avr_has_nibble_0xf): New.
11499 * config/avr/constraints.md (Cxf,C0f): New.
11500 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
11501 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
11502 New built-in define __BUILTIN_AVR_INSERT_BITS.
11503 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
11504 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
11505 (avr_move_bits): Rewrite.
11506 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
11507 functions.
11508 (avr_map_op_t): New typedef.
11509 (avr_map_op): New static variable.
11510 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
11511 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
11512 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
11513 (bdesc_3arg, avr_expand_triop_builtin): New.
11514 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
11515 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
11516 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
11517 (avr_map_equal_p, avr_map_sig_p): Remove.
11518 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
11519 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11520 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
11521 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11522 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
11523 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11524
a905d913 115252012-02-14 Bernd Schmidt <bernds@codesourcery.com>
11526
11527 * config/c6x/c6x.md (reserve_cycles): New attribute.
11528 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
11529 don't reserve functional units after the branch occurs.
11530
3bd76a99 115312012-02-14 Aldy Hernandez <aldyh@redhat.com>
11532
11533 PR middle-end/52142
11534 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
11535 functions into non-tm_pure functions.
11536
073dcaef 115372012-02-14 Eric Botcazou <ebotcazou@adacore.com>
11538
11539 PR lto/52178
11540 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
11541 (iterative_hash_canonical_type): Likewise.
11542 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
11543 the dead edges.
11544
115452012-02-14 Bernd Schmidt <bernds@codesourcery.com>
38d8f4bb 11546
11547 * haifa-sched.c (prune_ready_list): Ensure that if there is a
6bb01a79 11548 sched-group insn, it either remains alone or the entire list is pruned.
38d8f4bb 11549
f9ed49a8 115502012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
11551
11552 * doc/install.texi (Prerequisites): Fix grammar.
11553 (Configuration): Likewise.
11554
257fb739 115552012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
11556
11557 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
11558 MPC as part of GCC before describing configuring with --with-gmp etc.
11559 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
11560 sources are present.
11561
65d3bb17 115622012-02-14 Jakub Jelinek <jakub@redhat.com>
11563
11564 PR debug/51950
11565 * dwarf2out.c (clone_tree_hash): New function.
11566 (copy_decls_walk): Use it instead of clone_tree.
11567
a32556d5 115682012-02-14 Richard Guenther <rguenther@suse.de>
11569
11570 PR tree-optimization/52244
11571 PR tree-optimization/51528
11572 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
11573 replacements for integral types.
11574
7ce78e23 115752012-02-14 Walter Lee <walt@tilera.com>
11576
11577 * config.gcc: Handle tilegx and tilepro.
11578 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
11579 tilegx and tilepro.
11580 Add HAVE_AS_TLS check for tilegx and tilepro.
11581 * configure: Regenerate.
11582 * doc/contrib.texi: Add Mat Hostetter and self.
11583 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
11584 Document instruction intrinsics and network accessing intrinsics.
11585 (TILEPro Built-in Functions): New node. Document instruction
11586 intrinsics and network accessing intrinsics.
11587 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
11588 (Specific, tilepro-*-linux*): Likewise.
11589 * doc/invoke.texi (TILE-Gx Options): New section.
11590 (TILEPro Options): New section.
11591 * doc/md.texi (TILE-Gx): New section.
11592 (TILEPro): New section.
11593 * common/config/tilegx/tilegx-common.c: New file.
11594 * common/config/tilepro/tilepro-common.c: New file.
11595 * config/tilegx/constraints.md: New file.
11596 * config/tilegx/linux.h: New file.
11597 * config/tilegx/mul-tables.c: New file.
11598 * config/tilegx/predicates.md: New file.
11599 * config/tilegx/sync.md: New file.
11600 * config/tilegx/t-tilegx: New file.
11601 * config/tilegx/tilegx-builtins.h: New file.
11602 * config/tilegx/tilegx-c.c: New file.
11603 * config/tilegx/tilegx-generic.md: New file.
11604 * config/tilegx/tilegx-modes.def: New file.
11605 * config/tilegx/tilegx-multiply.h: New file.
11606 * config/tilegx/tilegx-protos.h: New file.
11607 * config/tilegx/tilegx.c: New file.
11608 * config/tilegx/tilegx.h: New file.
11609 * config/tilegx/tilegx.md: New file.
11610 * config/tilegx/tilegx.opt: New file.
11611 * config/tilepro/constraints.md: New file.
11612 * config/tilepro/gen-mul-tables.cc: New file.
11613 * config/tilepro/linux.h: New file.
11614 * config/tilepro/mul-tables.c: New file.
11615 * config/tilepro/predicates.md: New file.
11616 * config/tilepro/t-tilepro: New file.
11617 * config/tilepro/tilepro-builtins.h: New file.
11618 * config/tilepro/tilepro-c.c: New file.
11619 * config/tilepro/tilepro-generic.md: New file.
11620 * config/tilepro/tilepro-modes.def: New file.
11621 * config/tilepro/tilepro-multiply.h: New file.
11622 * config/tilepro/tilepro-protos.h: New file.
11623 * config/tilepro/tilepro.c: New file.
11624 * config/tilepro/tilepro.h: New file.
11625 * config/tilepro/tilepro.md: New file.
11626 * config/tilepro/tilepro.opt: New file.
11627
4e158897 116282012-02-14 Jakub Jelinek <jakub@redhat.com>
11629
11630 PR tree-optimization/52210
11631 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
11632 vect_model_simple_cost with two entry vect_def_type array instead
11633 of an address of dt.
11634
0ffa2e92 116352012-02-14 Richard Guenther <rguenther@suse.de>
11636
11637 PR lto/52178
11638 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
11639 Do not stream DECL_QUALIFIER.
11640 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
11641 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
11642 (find_decls_types_r): Do not walk DECL_QUALIFIER.
11643
fc0d4990 116442012-02-14 Jakub Jelinek <jakub@redhat.com>
11645
11646 PR c/52181
11647 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
11648 newdecl.
11649
2af89801 116502012-02-13 Jakub Jelinek <jakub@redhat.com>
11651
11652 PR bootstrap/52172
11653 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
11654 * cselib.c (cselib_subst_to_values_from_insn): New function.
11655 * sched-deps.c (add_insn_mem_dependence,
11656 sched_analyze_1, sched_analyze_2): Use it.
11657
6e3803fb 116582012-02-13 Jan Hubicka <jh@suse.cz>
11659
11660 PR middle-end/52214
11661 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
11662
9a8d01ee 116632012-02-13 Eric Botcazou <ebotcazou@adacore.com>
11664
11665 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
11666 (GTM_SELF_SPECS): Define if not already defined.
11667 (driver_self_specs): Add GTM_SELF_SPECS.
6bb01a79 11668 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
11669 (GTM_SELF_SPECS): Define.
9a8d01ee 11670 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
11671 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
11672
0416ca72 116732012-02-13 Jakub Jelinek <jakub@redhat.com>
11674
533ae4c7 11675 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
11676 away if seen.
11677
6bb01a79 11678 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
0e508b49 11679
0416ca72 11680 PR middle-end/52230
6bb01a79 11681 * omp-low.c (expand_omp_for): If a static schedule without chunk size
11682 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
0416ca72 11683
c5519669 116842012-02-13 Andrew MacLeod <amacleod@redhat.com>
11685
11686 PR c/52190
11687 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
11688
dc35e8f6 116892012-02-13 Richard Guenther <rguenther@suse.de>
11690
11691 PR translation/52211
11692 * passes.c (enable_disable_pass): Fix typo.
11693
7e5608ca 116942012-02-13 Jakub Jelinek <jakub@redhat.com>
11695
11696 PR middle-end/52209
11697 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
11698 XOR for reduce_bit_field if type is unsigned.
11699
7a0443dc 117002012-02-12 Eric Botcazou <ebotcazou@adacore.com>
11701
11702 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
11703 disallow changes from SFmode to mode with different size in FP regs.
11704
117052012-02-12 Robert Millan <rmh@gnu.org>
6bb01a79 11706 Gerald Pfeifer <gerald@pfeifer.com>
a40d9b7c 11707
11708 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
11709 Tweak comment.
11710
f0421938 117112012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
11712
11713 PR rtl-optimization/52175
11714 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
11715 to frame-related instructions.
11716
ee7ee34d 117172012-02-10 Jason Merrill <jason@redhat.com>
11718
11719 PR c++/51910
11720 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
11721 (demangle_new_symbols): Fill it.
11722 (scan_linker_output): Walk it.
11723 (start_tweaking): Split out from scan_linker_output.
11724 (maybe_tweak): Update sym->chosen.
11725 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
11726
f8d0f01f 117272012-02-11 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR debug/52132
6bb01a79 11730 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
f8d0f01f 11731
67755ff0 117322012-02-11 Uros Bizjak <ubizjak@gmail.com>
11733
11734 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
11735 having the same mode as previous compare.
11736
4cdb9b47 117372012-02-10 Eric Botcazou <ebotcazou@adacore.com>
11738
11739 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
11740 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
11741 (nonlocal_goto_internal): Likewise.
11742 (nonlocal_goto): Emit a use and an indirect jump directly.
11743
c311fe7e 117442012-02-10 Andrew MacLeod <amacleod@redhat.com>
11745
11746 PR c/52190
11747 * doc/extend.texi : Update comments for __atomic_compare_exchange and
11748 __atomic_{is,always}_lock_free.
11749
c766750c 117502012-02-10 Uros Bizjak <ubizjak@gmail.com>
11751
11752 PR target/52146
11753 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
c290746e 11754 negative constant address for TARGET_X32.
c766750c 11755
b65fbe25 117562012-02-10 Richard Henderson <rth@redhat.com>
11757
67755ff0 11758 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
11759 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
11760 for GIMPLE_TRANSACTION. Tidy if's into a switch.
b65fbe25 11761
5df2530b 117622012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11763 Ira Rosen <irar@il.ibm.com>
11764
11765 PR tree-optimization/50031
11766 * targhooks.c (default_builtin_vectorization_cost): Handle
11767 vec_promote_demote.
11768 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
11769 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
11770 all types of reduction and pattern statements.
11771 (vect_estimate_min_profitable_iters): Likewise.
11772 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
11773 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
11774 for explicit realigns.
11775 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
11776 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
11777 vec_promote_demote.
11778 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
11779 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
11780 vec_perm for VSX and handle vec_promote_demote.
11781
06308d2a 117822012-02-10 Jakub Jelinek <jakub@redhat.com>
11783
11784 PR middle-end/52177
11785 * builtins.c (fold_builtin_atomic_always_lock_free,
11786 expand_builtin_atomic_always_lock_free,
67755ff0 11787 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
11788 Return and/or test boolean_true_node/boolean_false_node instead of
06308d2a 11789 integer_one_node/integer_zero_node.
11790
d3443011 117912012-02-10 Jan Hubicka <jh@suse.cz>
11792
11793 PR middle-end/48600
11794 * predict.c (predict_paths_for_bb): Prevent looping.
11795 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
11796
151d02b1 117972012-02-10 Roman Zhuykov <zhroma@ispras.ru>
11798
11799 * config/arm/arm.c (output_move_double): In one case properly
11800 count number of instructions that will be emitted.
11801
6d36105a 118022012-02-10 Richard Guenther <rguenther@suse.de>
11803
11804 PR translation/52193
11805 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
11806
670fc240 118072012-02-09 Peter Bergner <bergner@vnet.ibm.com>
11808
11809 PR middle-end/52140
11810 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
11811
d5d74c5f 118122012-02-09 Jakub Jelinek <jakub@redhat.com>
11813
11814 PR debug/52165
11815 * var-tracking.c (emit_note_insn_var_location): If
11816 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
11817 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
11818 non-NOTE_DURING_CALL_P insn.
11819
d95cfd30 118202012-02-09 Bin Cheng <bin.cheng@arm.com>
11821
11822 PR middle-end/51867
11823 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
11824
cbe25b89 118252012-02-08 Magnus Granberg <zorry@gentoo.org>
11826
11827 PR driver/48524
67755ff0 11828 * gcc.c (switch_matches) Support switches with separated form,
11829 -D and -U.
cbe25b89 11830
72851b68 118312012-02-08 Georg-Johann Lay <avr@gjlay.de>
11832
11833 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
11834 (SP_ADDR): Ditto.
11835 (RAMPZ_ADDR): Ditto.
11836 * config/avr/avr.c (avr_addr_t): New typedef.
11837 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
11838 (avr_init_expanders): Initialize it.
11839 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
11840 SREG_ADDR.
11841 (expand_epilogue): Ditto.
11842 (avr_print_operand): Ditto.
11843 (avr_file_start): Ditto.
11844 (avr_emit_movmemhi): Ditto.
11845
8b0287e2 118462012-02-08 Richard Guenther <rguenther@suse.de>
11847
11848 PR tree-optimization/46886
11849 * tree-flow.h (do_while_loop_p): Declare.
11850 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
67755ff0 11851 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
8b0287e2 11852
3b967909 118532012-02-08 Andrew MacLeod <amacleod@redhat.com>
11854
11855 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
11856 always succeed for integers larger than a native word.
11857
3e527904 118582012-02-08 Richard Guenther <rguenther@suse.de>
11859
11860 PR rtl-optimization/52170
11861 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
11862 properly handle integer vector modes.
11863
5a23e907 118642012-02-08 Jakub Jelinek <jakub@redhat.com>
11865
8d354582 11866 PR gcov-profile/52150
11867 * coverage.c: Include target.h.
11868 (build_var): Call targetm.strip_name_encoding on the assembler name.
11869 Change one _ into . or $ if the target allows it.
11870 * Makefile.in (coverage.o): Depend on $(TARGET_H).
11871
5a23e907 11872 PR rtl-optimization/52139
11873 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
11874 is a BARRIER after emit_insn_after_noloc, move BB_END
11875 to the last non-BARRIER insn before it.
11876
9a9bf421 118772012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
11878
11879 PR middle-end/24306
11880 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
11881 (mips_gimplify_va_arg_expr): Call it instead of
11882 std_gimplify_va_arg_expr.
11883
ffc589a8 118842012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11885
11886 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
11887 message for -mno-pointers-to-nested-function.
11888
476e59ce 118892012-02-07 Eric Botcazou <ebotcazou@adacore.com>
11890
11891 PR middle-end/51994
11892 * expr.c (get_inner_reference): If there is an offset, add a negative
11893 bit position to it (if any).
11894
ec458c01 118952012-02-07 Jakub Jelinek <jakub@redhat.com>
11896
11897 PR rtl-optimization/52060
11898 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
11899 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
11900 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
11901 and/or i0src_copy2 when needed.
11902
47c380e4 119032012-02-07 Jakub Jelinek <jakub@redhat.com>
11904
1d784785 11905 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
11906 or LTOPLUGINSONAME if have_c.
11907
47c380e4 11908 * config/freebsd-spec.h: Add comment about what macros can be defined
11909 in this header.
11910 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
11911 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
11912 here instead.
11913
57d4f313 119142012-02-07 Richard Guenther <rguenther@suse.de>
11915
11916 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
11917 newline in -alias dumps.
11918
b86a2627 119192012-02-07 Kai Tietz <ktietz@redhat.com>
67755ff0 11920 Dave Korn <dave.korn.cygwin@gmail.com>
b86a2627 11921
11922 PR target/40068
11923 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
11924 Take care that typinfo gets dllexport-attribute.
11925
792729b8 119262012-02-07 Jakub Jelinek <jakub@redhat.com>
11927
11928 PR middle-end/52074
11929 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
11930 if modifier < EXPAND_SUM call force_operand on the result.
11931
83debce3 119322012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
11933
11934 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
11935 adding __forwarder_dst__ prefix if a forwarder_section attribute is
11936 present.
11937 (epiphany_function_type): Replace types for specific interrupts with
11938 EPIPHANY_FUNCTION_INTERRUPT.
11939 (EPIPHANY_INTERRUPT_P): Update.
11940 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
11941 New static function.
11942 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
11943 <disinterrupt>: Affects type identity.
11944 (epiphany_handle_interrupt_attribute): Handle variable number of
11945 arguments.
11946 (epiphany_compute_function_type): Update for new
11947 epiphany_function_type definition.
11948 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
11949 handlers with a longcall forwarder.
11950 (epiphany_start_function): Handle multiple interrupt arguments and/or
11951 forwarder_section attribute.
11952
67755ff0 11953 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
11954 libgloss.
fad55529 11955
fd68342f 119562012-02-07 Alan Modra <amodra@gmail.com>
11957
11958 PR target/52107
11959 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
11960 subregs of TFmode.
11961
de8d8819 119622012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11963
11964 PR tree-optimization/50969
11965 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
11966 use vec_perm rather than vector_stmt.
11967 (vect_model_load_cost): Likewise.
11968 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
11969 vec_perm to be the same as other vector statements.
11970 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
11971 cost of vec_perm for TARGET_VSX.
11972
f509e778 119732012-02-06 Richard Guenther <rguenther@suse.de>
11974
11975 PR tree-optimization/52115
11976 * tree-sra.c (access_has_replacements_p): New function.
11977 (sra_modify_assign): Use it to decide whether a use is uninitialized.
11978
c86dbacd 119792012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
11980
11981 PR middle-end/52047
11982 * trans-mem.c (expand_call_tm): Add an assertion.
11983 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
11984 functions.
11985
316830ac 119862012-02-06 Richard Guenther <rguenther@suse.de>
11987
11988 PR tree-optimization/50955
11989 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
11990 raise cost of expressions that replace an address with an
11991 expression based on a different pointer.
11992
98d44ce4 119932012-02-06 Jakub Jelinek <jakub@redhat.com>
11994
11995 PR target/52129
11996 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
11997 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
11998
0737bc6a 119992012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12000
12001 PR c++/48680
12002 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
12003 -Weffc++ and specify guidelines come from second edition.
12004
cc798c09 120052012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
12006
12007 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
12008 (sibcall_value_multiple_internal, call_split, call_internal_direct)
12009 (call_direct_split, call_value_split, call_value_internal_direct)
12010 (call_value_direct_split, call_value_multiple_split): Use jal and
12011 jal_macro attributes.
12012
677315b6 120132012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
12014
12015 * reload1.c (reload_regs_reach_end_p): Replace with...
12016 (reload_reg_rtx_reaches_end_p): ...this function.
12017 (new_spill_reg_store): Update commentary.
12018 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
12019 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
12020 before setting new_spill_reg_store.
12021 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
12022 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
12023 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
12024 for non-spill reload registers.
12025
bed8b93b 120262012-02-05 Ira Rosen <irar@il.ibm.com>
12027
12028 PR tree-optimization/52091
12029 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
12030 (vect_is_simple_use_1): Likewise.
12031 * tree-vect-loop.c (vectorizable_reduction): Update calls
12032 to vect_is_simple_use_1 and vect_is_simple_use.
12033 (vectorizable_live_operation): Likewise.
12034 * tree-vect-patterns.c (widened_name_p,
67755ff0 12035 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
bed8b93b 12036 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
67755ff0 12037 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12038 vectorizable_shift,vectorizable_operation, vectorizable_store,
12039 vectorizable_load): Likewise.
bed8b93b 12040 (vect_is_simple_cond): Add an argument, pass it to
12041 vect_is_simple_use_1.
12042 (vectorizable_condition): Update calls to vect_is_simple_cond,
12043 vect_is_simple_use.
12044 (vect_is_simple_use): Add an argument, the statement in which
12045 OPERAND is used. Check that if OPERAND's def stmt is a double
12046 reduction phi node, the use is a phi node too.
12047 (vect_is_simple_use_1): Add an argument, pass it to
12048 vect_is_simple_use.
12049 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
12050 to vect_is_simple_use.
12051
08b31038 120522012-02-04 Jakub Jelinek <jakub@redhat.com>
12053
56134a9f 12054 PR rtl-optimization/52095
12055 * modulo-sched.c (dump_insn_locator): New function.
12056 (loop_canon_p, sms_schedule): Use it.
12057
08b31038 12058 PR rtl-optimization/52113
12059 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
12060 even for decomposable shift/zext insns.
12061
4a169b5e 120622012-02-03 Jakub Jelinek <jakub@redhat.com>
12063 Zdenek Dvorak <ook@ucw.cz>
12064
12065 PR rtl-optimization/52092
12066 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
12067 on get_iv_value result.
12068
24d7beb3 120692012-02-02 Andrew Pinski <apinski@cavium.com>
12070
12071 PR middle-end/47982
12072 PR middle-end/43967
12073 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
12074
00c00a40 120752012-02-02 Jakub Jelinek <jakub@redhat.com>
12076
12077 PR middle-end/48071
12078 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
12079
169d9eaf 120802012-02-02 Vladimir Makarov <vmakarov@redhat.com>
12081
12082 PR rtl-optimization/49800
12083 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
12084 (sched_finish): Call regstat_free_n_sets_and_refs.
12085
a13b68f1 120862012-02-02 Jia Liu <proljc@gmail.com>
12087
12088 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
12089 than operand 2.
12090
6bb01a79 120912012-02-02 Jan Hubicka <jh@suse.cz>
12092 Tom de Vries <tom@codesourcery.com>
b0898cb7 12093
12094 PR middle-end/51998
12095 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
12096 * varpool.c (varpool_analyze_pending_decls): Likewise.
12097
b9fdd12b 120982012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
12099 Jayant R Sonar <jayant.sonar@kpitcummins.com>
12100
12101 * config.gcc: Add cr16-* support.
12102
12103 * doc/extend.texi: Document cr16 extensions.
12104 * doc/install.texi: Document cr16 install.
12105 * doc/invoke.texi: Document cr16 options.
12106 * doc/md.texi: Document cr16 constraints.
12107
12108 * common/config/cr16/cr16-common.c: New file.
12109 * config/cr16/cr16.c: New file.
12110 * config/cr16/cr16.h: New file.
12111 * config/cr16/cr16.md: New file.
12112 * config/cr16/cr16.opt: New file.
12113 * config/cr16/cr16-protos.h: New file.
12114 * config/cr16/predicates.md: New file.
12115 * config/cr16/constraints.md: New file.
12116 * config/cr16/t-cr16: New file.
12117
ddee24bb 121182012-02-02 Jakub Jelinek <jakub@redhat.com>
12119
80b67e55 12120 PR target/52086
12121 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
12122 that operands[2] is either immediate, or q_regs_operand.
12123
ddee24bb 12124 PR tree-optimization/52073
12125 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
12126 a pattern stmt for pattern uses, ignore uses outside of the loop.
12127
02a011e9 121282012-02-01 Georg-Johann Lay <avr@gjlay.de>
12129
12130 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
12131 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
12132 (OUT_AS1, OUT_AS2): Remove.
12133
5dcaa548 121342012-02-01 Georg-Johann Lay <avr@gjlay.de>
12135
12136 PR rtl-optimization/51374
12137 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
12138 to cross other volatile_refs_p insns.
12139
b75cad1f 121402012-02-01 Richard Guenther <rguenther@suse.de>
12141
12142 * doc/invoke.texi (fno-inline): Clarify documentation.
12143 (finline-small-functions): Likewise.
12144 (finline-functions): Likewise.
12145 * common.opt (finline): Adjust comment and documentation.
12146 (finline-small-functions): Clarify documentation.
12147 (finline-functions): Likewise.
12148 (finline-functions-called-once): Likewise.
12149
b589b3b4 121502012-02-01 Tristan Gingold <gingold@adacore.com>
12151
12152 * c-typeck.c (composite_type): Keep mode for pointers.
12153
e49cbd3a 121542012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
12155
12156 * function.h (regno_reg_rtx): Adjust comment.
12157 * reginfo.c (init_reg_modes_target): Only use the previous mode
12158 if it fits within one register. Remove MIPS comment.
12159
3e9db8fa 121602012-01-31 Jakub Jelinek <jakub@redhat.com>
12161
12162 PR bootstrap/52058
12163 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
12164
a6dcd7c0 121652012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12166
12167 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
12168 to srak instruction.
12169
b004da1e 121702012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12171
67755ff0 12172 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
b004da1e 12173
b74ba78c 121742012-01-31 Jakub Jelinek <jakub@redhat.com>
12175
12176 PR bootstrap/52041
12177 PR bootstrap/52039
12178 PR target/51974
12179 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
12180
192d2ed8 121812012-01-31 Richard Guenther <rguenther@suse.de>
12182
12183 PR tree-optimization/51528
12184 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
12185 assigns.
12186
32a07a44 121872012-01-31 Jakub Jelinek <jakub@redhat.com>
12188
12189 PR bootstrap/52041
12190 PR bootstrap/52039
12191 PR target/51974
12192 * ree.c (add_removable_extension): Change def_map argument
12193 to unsigned *, store in def_map 1 + offset into *insn_list vector
12194 instead of pointers into the vector.
12195 (find_removable_extensions): Adjust caller.
12196
97bdce59 121972012-01-30 Georg-Johann Lay <avr@gjlay.de>
12198
12199 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
12200 Transform all "* quoted-c-code" to { c-code }.
12201 Remove redundant test for "optimize" in combine patterns.
12202 Move (include "avr-dimode.md") to end of file.
12203
232b7e7e 122042012-01-30 Bin Cheng <bin.cheng@arm.com>
12205
12206 PR target/51835
12207 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12208 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
12209
a4d16d30 122102012-01-30 Richard Guenther <rguenther@suse.de>
12211
12212 PR tree-optimization/52028
12213 * tree-loop-distribution.c (ldist_gen): Properly update
12214 virtual SSA form.
12215
30e4f955 122162012-01-30 Jakub Jelinek <jakub@redhat.com>
12217
f9a7b553 12218 PR debug/52027
12219 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
12220 set_cur_line_info_table if not emitting debug info.
12221
3a542b98 12222 PR tree-optimization/52046
12223 * tree-vect-patterns.c (check_bool_pattern): Give up if
12224 a comparison could throw.
12225
30e4f955 12226 PR debug/52048
12227 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
12228
b7b10fb5 122292012-01-30 Richard Guenther <rguenther@suse.de>
12230
12231 PR tree-optimization/52045
12232 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
12233 SSA form if cfgcleanup did anything.
12234
e723655c 122352012-01-30 Richard Guenther <rguenther@suse.de>
12236
12237 PR tree-optimization/52045
12238 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
12239 before computing final todo.
12240
ce0c5a57 122412012-01-30 Richard Guenther <rguenther@suse.de>
12242
12243 PR tree-optimization/51528
12244 * tree-sra.c (sra_modify_assign): Re-factor in preparation
12245 for PR51528 fix.
12246
a1cf9167 122472012-01-30 Paolo Bonzini <bonzini@gnu.org>
12248
12249 * df-problems.c (df_kill_notes): Check that the use refers
12250 to the note under examination.
12251
6d293a49 122522012-01-30 Eric Botcazou <ebotcazou@adacore.com>
12253
12254 PR target/51920
12255 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
12256 parameter and use short-lived pseudos.
12257 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
12258 (sparc_expand_vector_init): Const-ify local variables and adjust
12259 calls to above functions.
12260
578c09ca 122612012-01-30 Georg-Johann Lay <avr@gjlay.de>
12262
12263 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
12264
009f90be 122652012-01-29 Sandra Loosemore <sandra@codesourcery.com>
12266
12267 * doc/invoke.texi: Make usage of "compile time" and
12268 "run time"/"runtime" consistent throughout the file.
12269
669cf718 122702012-01-29 Uros Bizjak <ubizjak@gmail.com>
12271
67755ff0 12272 * config/alpha/alpha.c (alpha_option_override): Default to
669cf718 12273 full IEEE compliance mode for Go language.
12274
0cfd09e4 122752011-01-29 Tijl Coosemans <tijl@coosemans.org>
12276
12277 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
12278 (LINK_SSP_SPEC): Define.
12279
16309fef 122802012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12281
12282 PR target/51871
12283 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
12284 stubs.
12285
82e24083 122862012-01-28 Sandra Loosemore <sandra@codesourcery.com>
12287
12288 * doc/invoke.texi: Correct hyphenation of "floating point",
12289 "double precision", and related terminology throughout the file.
12290
2d05dfad 122912012-01-28 Jakub Jelinek <jakub@redhat.com>
12292
12293 PR target/52006
12294 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
12295 arm_general_register_operand predicate for operand 2 instead of
12296 register_operand.
12297
c307f106 122982012-01-27 Ian Lance Taylor <iant@google.com>
12299
12300 PR go/47656
12301 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
12302 * builtins.c (expand_builtin_init_trampoline): Add onstack
12303 parameter. Change caller.
12304 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
12305 * tree.c (build_common_builtin_nodes): Declare
12306 __builtin_init_heap_trampoline.
12307
2d86450c 123082012-01-27 Georg-Johann Lay <avr@gjlay.de>
12309
12310 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
12311 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
12312 * config/avr/avr.c: Ditto.
12313 (avr_regnames): Remove because unused.
12314 * config/avr/avr.md (*cpse.ne): New peephole.
12315 (*cpse.eq): New peephole from former cpse peepholes.
12316
3542dbe2 123172012-01-27 Michael Eager <eager@eagercon.com>
12318
12319 * config/microblaze.c (microblaze_emit_compare): Correct
12320 test after pcmp instruction.
12321
9d9e2a99 123222012-01-27 Richard Guenther <rguenther@suse.de>
12323
12324 PR tree-optimization/52020
12325 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
12326
541c6dbb 123272012-01-27 Richard Guenther <rguenther@suse.de>
12328
12329 * ipa-pure-const.c (check_stmt): Clobbers do not make a
12330 function non-const/pure.
12331
25b3bbad 123322012-01-27 Richard Guenther <rguenther@suse.de>
12333
12334 PR tree-optimization/50444
12335 * tree-sra.c (build_ref_for_offset): Properly adjust the
12336 MEM_REF type for unaligned accesses.
12337
a598af2a 123382012-01-27 Richard Guenther <rguenther@suse.de>
12339
12340 PR tree-optimization/50444
12341 * expr.c (mem_ref_refers_to_non_mem_p): New function.
12342 (expand_assignment): Use it. Properly handle misaligned
12343 bases when expanding stores to component references.
12344 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
12345 refactor that case.
12346
c7af8ae7 123472012-01-27 Andrey Belevantsev <abel@ispras.ru>
12348
12349 PR middle-end/51389
12350 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
12351 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
12352 * tree-data-ref.c (find_data_references_in_loop): Make static.
12353 (compute_all_dependences): Change return type to bool. Bail out
12354 for too many datarefs in a loop. Move the hunk resetting the data
12355 dependences vector from ...
12356 (compute_data_dependences_for_loop): ... here. Account for
12357 compute_all_dependences returning false.
12358 (compute_data_dependences_for_bb): Likewise.
12359 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
12360 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
12361
3c089259 123622012-01-27 Richard Guenther <rguenther@suse.de>
12363
12364 PR middle-end/51959
12365 * expr.c (store_field): Use the alias-set of the scratch memory
12366 for storing to it.
12367
8a19bda6 123682012-01-27 Tom de Vries <tom@codesourcery.com>
12369
12370 PR tree-optimization/51990
669cf718 12371 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12372 WITH_SIZE_EXPR.
8a19bda6 12373 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
12374
0a35a733 123752012-01-27 Jakub Jelinek <jakub@redhat.com>
12376
12377 PR debug/52001
12378 * var-tracking.c (reverse_op): Don't add any reverse operation
12379 if V already has any constant locations.
12380
95e413db 123812012-01-27 Sandra Loosemore <sandra@codesourcery.com>
12382
12383 * doc/invoke.texi: Correct usage of "command line" (noun)
12384 vs "command-line" (adjective) throughout.
12385
ec9e53f7 123862012-01-27 Sandra Loosemore <sandra@codesourcery.com>
12387
12388 * doc/invoke.texi (Language Independent Options): Move
12389 -Wcoverage-mismatch blurb from here....
12390 (Warning Options): ...to here.
12391
7b3c2599 123922012-01-27 Peter Bergner <bergner@vnet.ibm.com>
12393
12394 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12395 Set rs6000_always_hint to false for 476.
12396
c5698d9f 123972012-01-27 Matthias Klose <doko@ubuntu.com>
12398
12399 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
12400 system root.
12401 * incpath.c (add_standard_paths): Likewise.
12402
2a967206 124032012-01-27 Richard Henderson <rth@redhat.com>
12404
12405 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12406 * config/m68k/sync.md (atomic_test_and_set): Rename from
12407 sync_test_and_setqi and adjust the operands.
12408 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
12409 and unconditionally enable.
12410
8481386e 124112012-01-27 Richard Henderson <rth@redhat.com>
12412
12413 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12414 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
12415 (ldstub): Rename from ldstubqi.
12416 (ldstub<I24MODE>): Remove.
12417
df1680c8 124182012-01-27 Richard Henderson <rth@redhat.com>
12419
12420 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12421 * c-cppbuiltin.c (cpp_atomic_builtins): Define
12422 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
12423 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
12424 * doc/tm.texi: Rebuild.
12425
ea17dfa7 124262012-01-27 Richard Henderson <rth@redhat.com>
12427
12428 * optabs.c (gen_atomic_test_and_set): Remove default.
12429 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
12430
7715a410 124312012-01-26 Jakub Jelinek <jakub@redhat.com>
12432
12433 PR rtl-optimization/51978
669cf718 12434 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
7715a410 12435 (combine_reaching_defs): Likewise.
12436 (struct re_info): Remove.
12437 (add_removable_extension): Remove x and data arguments,
12438 add insn, insn_list and def_map. Use the arguments directly
12439 instead of using struct re_info.
12440 (find_removable_extensions): Don't call add_removable_extension
12441 through note_stores, instead just call it with single_set
12442 result if non-NULL.
12443 (find_and_remove_re): Pass curr_cand->expr instead of
669cf718 12444 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
7715a410 12445
b74338cf 124462012-01-26 Michael Matz <matz@suse.de>
12447
12448 PR tree-optimization/46590
12449 * cfgexpand.c: Revert last change (r183305).
12450 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
12451 regs.
12452 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
12453 checking for emptiness.
12454
597cee6a 124552012-01-26 Jakub Jelinek <jakub@redhat.com>
12456
12457 PR middle-end/51895
12458 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
12459 non-addressable non-BLKmode base correctly.
12460
4b393c71 124612012-01-26 Michael Matz <matz@suse.de>
12462
12463 PR tree-optimization/48794
12464 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
12465 regions referenced from RESX/EH_DISPATCH.
12466
abb9bd4b 124672012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12468
12469 * config/s390/s390.h: Make BRANCH_COST an option.
12470 * config/s390/s390.opt: New option -mbranch-cost.
12471
e0f3ea3e 124722012-01-26 Richard Henderson <rth@redhat.com>
12473
12474 Revert 2012-01-24 change:
12475 * trans-mem.c (requires_barrier): Do not instrument thread local
12476 variables and emit save/restore for them.
12477
1d5a3bac 124782012-01-25 Jakub Jelinek <jakub@redhat.com>
12479
12480 PR middle-end/51986
12481 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
12482 for pat == 0.
12483
fb7bf3ef 124842012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
12485
0788eaac 12486 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
12487 ASM_OPERANDS.
fb7bf3ef 12488
590da9f2 124892012-01-25 Georg-Johann Lay <avr@gjlay.de>
12490
12491 PR target/49868
12492 Rename __pgm to __flash.
12493 Rename __pgm1 to __flash1.
12494 Rename __pgm2 to __flash2.
12495 Rename __pgm3 to __flash3.
12496 Rename __pgm4 to __flash4.
12497 Rename __pgm5 to __flash5.
12498 Rename __pgmx to __memx.
12499 * doc/extend.texi (AVR Named Address Spaces)
12500 Rename address space names as indicated above.
12501 * config/avr/avr.c (avr_addrspace): Ditto.
12502
12503 * config/avr/avr-protos.h
12504 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
12505 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
12506 * config/avr/predicates.md: Ditto.
12507 * config/avr/avr.c Ditto, and
12508 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
12509 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
12510
12511 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
12512 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
12513 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
12514 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
12515 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
12516 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
12517 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
12518 * config/avr/avr.c: Ditto.
12519 * config/avr/avr.md: Ditto.
12520
807e0fc2 125212012-01-25 Jason Merrill <jason@redhat.com>
12522
12523 PR c++/51992
12524 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
12525
e9156cad 125262012-01-25 Jakub Jelinek <jakub@redhat.com>
12527
12528 PR tree-optimization/51987
12529 * tree-data-ref.c (get_references_in_stmt): Handle references in
12530 non-volatile GIMPLE_ASM.
12531
f9f051a3 125322012-01-25 Richard Guenther <rguenther@suse.de>
12533
12534 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
12535 bases are dereferenced.
12536
2c622b2e 125372012-01-25 Andrey Belevantsev <abel@ispras.ru>
12538
12539 PR rtl-optimization/48374
669cf718 12540 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
2c622b2e 12541
713f1f14 125422012-01-25 Andrey Belevantsev <abel@ispras.ru>
12543
12544 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
12545 compute_data_dependences_for_loop returns false.
12546 * tree-parloops.c (loop_parallel_p): Likewise.
12547
69fbc3aa 125482012-01-25 Richard Guenther <rguenther@suse.de>
12549
12550 * tree.h (get_pointer_alignment_1): Declare.
12551 * builtins.c (get_pointer_alignment_1): New function.
12552 (get_pointer_alignment): Use it.
12553
eed2904a 125542012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12555
12556 PR rtl-optimization/48308
12557 * combine.c (enum undo_kind): Add UNDO_LINKS.
12558 (struct undo): Add member l to other_contents and where.
12559 (do_SUBST_LINK): New.
12560 (SUBST_LINK): New.
12561 (try_combine): Handle LOG_LINKS for the dummy i1 case.
12562 (undo_all): Handle UNDO_LINKS.
12563
d7c18c60 125642012-01-25 Richard Henderson <rth@redhat.com>
12565
12566 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
12567 mem inputs.
12568
dc4461a1 125692012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12570
12571 * optabs.c (gen_atomic_test_and_set): Use each argument.
12572
11a9f55b 125732012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12574
12575 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
12576 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
12577 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
12578 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
12579 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
12580 TARGET_PAIRED_SINGLE_FLOAT.
12581
402f6a9e 125822012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12583
12584 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
12585 (in_struct, return_val): Remove MEM documentation.
12586 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
12587 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
12588 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
12589 and MEM_SCALAR.
12590 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12591 * cfgexpand.c (add_alias_set_conflicts): Likewise.
12592 * expr.c (store_field): Likewise.
12593 * function.c (assign_stack_temp_for_type): Likewise.
12594 * ifcvt.c (noce_try_cmove_arith): Likewise.
12595 * reload1.c (reload): Likewise.
12596 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
12597 (alpha_set_memflags): Likewise.
12598 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
12599
376a287d 126002012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12601
12602 * rtl.h (true_dependence, canon_true_dependence): Remove varies
12603 parameter.
12604 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
12605 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
12606 (true_dependence_1, true_dependence, canon_true_dependence): Remove
12607 varies parameter.
12608 * cselib.c (cselib_rtx_varies_p): Delete.
12609 (cselib_invalidate_mem): Update call to canon_true_dependence.
12610 * dse.c (record_store, check_mem_read_rtx): Likewise.
12611 (scan_reads_nospill): Likewise.
12612 * cse.c (check_dependence): Likewise.
12613 (cse_rtx_varies_p): Delete.
12614 * expr.c (safe_from_p): Update call to true_dependence.
12615 * ira.c (validate_equiv_mem_from_store): Likewise.
12616 (memref_referenced_p): Likewise.
12617 * postreload-gcse.c (find_mem_conflicts): Likewise.
12618 * sched-deps.c (sched_analyze_2): Likewise.
12619 * store-motion.c (load_kills_store): Likewise.
12620 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
12621 * gcse.c (mems_conflict_for_gcse_p): Likewise.
12622 (compute_transp): Update call to canon_true_dependence.
12623
39ca90d5 126242012-01-25 Richard Henderson <rth@redhat.com>
12625
12626 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
12627 (maybe_emit_atomic_test_and_set): New.
12628 (expand_sync_lock_test_and_set): Use it.
12629 (expand_atomic_test_and_set): Likewise.
12630 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
12631 the implementation; clarify implementation defined details.
12632 * doc/md.texi (atomic_test_and_set): Document.
12633
803dea20 126342012-01-25 Richard Henderson <rth@redhat.com>
12635
12636 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
12637
256897f4 126382012-01-25 Richard Henderson <rth@redhat.com>
12639
12640 PR target/51968
12641 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
12642 to effect no-op split.
12643
9eb529b8 126442012-01-24 Aldy Hernandez <aldyh@redhat.com>
12645
12646 PR lto/51698
12647 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
12648 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
12649 (BT_FN_VOID_PTR_INT_SIZE): New.
12650 (BT_FN_UINT_UINT_VAR): Remove.
12651 (BT_FN_UINT32_UINT32_VAR): New.
12652 (BT_FN_DOUBLE_VPTR): Remove.
12653 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
12654
669cf718 12655 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
9eb529b8 12656 (_ITM_changeTransactionMode): Same.
12657 (_ITM_memmoveRtWt): Change return type to void.
12658 (_ITM_memcpyRtWt): Same.
12659 (_ITM_memsetW): Same.
12660 (_ITM_RaRD): Change types to double.
12661 (_ITM_RD): Same.
12662 (_ITM_RaWD): Same.
12663 (_ITM_RfWD): Same.
12664
12665 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
12666
5db3f9d5 126672012-01-24 Aldy Hernandez <aldyh@redhat.com>
12668 Patrick Marlier <patrick.marlier@gmail.com>
12669
12670 * trans-mem.c (requires_barrier): Do not instrument thread local
12671 variables and emit save/restore for them.
12672
07828d90 126732012-01-24 Jason Merrill <jason@redhat.com>
12674
12675 PR c++/51812
12676 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
12677 output static aliases.
12678
1412b935 126792012-01-24 Jakub Jelinek <jakub@redhat.com>
12680
12681 PR driver/47249
12682 * common.opt (-pie, -shared, pie, shared): Change from Common to
12683 Driver.
12684 * gcc.c (display_help): Display help for -pie and -shared.
12685
6ee532ba 126862012-01-24 Georg-Johann Lay <avr@gjlay.de>
12687
12688 PR target/49868
12689 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
12690 Remove note on size/offset limitation.
12691 (AVR Variable Attributes): Add example how to read data located
12692 with progmem. Refer to named address spaces.
12693 * doc/invoke.texi (AVR Options): Fix typo.
12694
7f295214 126952012-01-24 Richard Guenther <rguenther@suse.de>
12696
12697 Forward-port to trunk
12698 2010-09-21 Jakub Jelinek <jakub@redhat.com>
12699
12700 PR middle-end/45678
12701 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
12702 op0 isn't sufficiently aligned and there is movmisalignM
12703 insn for mode, use it to load op0 into a temporary register.
12704
202e7097 127052012-01-24 Jakub Jelinek <jakub@redhat.com>
12706
12707 PR target/51957
12708 * target.def (const_not_ok_for_debug_p): New hook.
12709 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
12710 documentation.
12711 * doc/tm.texi: Regenerated.
12712 * dwarf2out.c (const_ok_for_output_1): If
12713 targetm.const_not_ok_for_debug_p returns true, fail.
12714 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
12715 function.
12716 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
12717
c96c9817 127182012-01-23 Kai Tietz <ktietz@redhat.com>
12719
12720 PR target/51900
12721 * config/i386/predicates.md (symbolic_operand): Allow
12722 UNSPEC_PCREL as PIC expression for lea.
12723 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
12724 * config/i386/i386.c (ix86_delegitimize_address): Handle
12725 UNSPEC_PCREL for none-MEM, too.
12726
caf29404 127272012-01-23 Aldy Hernandez <aldyh@redhat.com>
12728
12729 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
12730 (ipa_tm_create_version_alias): Same.
12731
669cf718 127322012-01-23 Uros Bizjak <ubizjak@gmail.com>
be83ebf7 12733
12734 PR libitm/51830
12735 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
12736 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
12737
38fe0c89 127382012-01-23 Aldy Hernandez <aldyh@redhat.com>
12739 Patrick Marlier <patrick.marlier@gmail.com>
12740 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12741
12742 PR lto/51916
12743 * lto-wrapper.c (run_gcc): Pass the LTO section name to
12744 simple_object_start_read.
12745
b94ae734 127462012-01-23 Richard Guenther <rguenther@suse.de>
12747
38fe0c89 12748
b94ae734 12749 PR tree-optimization/51895
12750 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
12751 parameter decomposition into BLKmode components.
12752
bd57fdff 127532012-01-23 Eric Botcazou <ebotcazou@adacore.com>
12754
12755 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
12756 fake variables for restrict-qualified pointers whose pointed-to type
12757 contains a placeholder.
12758
f3941af5 127592012-01-23 Richard Guenther <rguenther@suse.de>
12760
12761 PR tree-optimization/51949
be83ebf7 12762 * ipa-split.c (execute_split_functions): Do not split malloc functions.
f3941af5 12763
6bd23a69 127642012-01-23 Jakub Jelinek <jakub@redhat.com>
12765
12766 PR rtl-optimization/51933
12767 * ree.c (transform_ifelse): Return true right away if dstreg is
12768 already wider or equal to cand->mode.
12769 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
12770 (make_defs_and_copies_lists): Remove defs_list and copies_list
12771 arguments, add state argument, just truncate state->work_list
12772 instead of always allocating and freeing the vector. Assert that
be83ebf7 12773 get_defs succeeds instead of returning 2. Changed return type to bool.
6bd23a69 12774 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
12775 have ext_src_mode, see if it has been modified already with the
12776 right kind of extension and has been extended before from the
12777 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
be83ebf7 12778 just return true. Remember the original mode in state->modified array.
6bd23a69 12779 (combine_reaching_defs): Add state argument. Don't allocate and
12780 free here def_list, copied_list and vec vectors, instead just
be83ebf7 12781 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
6bd23a69 12782 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
12783 Add state variable, clear vectors in it, initialize state.modified
12784 if needed. Free all the vectors at the end and state.modified too.
12785 Don't skip a candidate if the extension expression has been modified.
12786
af8e12d0 127872012-01-22 Douglas B Rupp <rupp@gnat.com>
12788
12789 PR target/47096
12790 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
12791 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
12792 (extra_options) interix.opt -> i386/interix.opt"
12793 (extra_objs):Add winnt-stubs.o
12794 * configure.ac: Add interix to target_os .comm on PE check.
12795 * configure: Regenerate.
12796 * config/interix3.h: Delete and move bits to..
12797 * config/interix.h: Delete and move bits to..
12798 * config/i386/i386-interix3.h: Delete and move bits to..
12799 * config/i386/i386-interix.h: ..here.
12800 (TARGET_CPU_DEFAULT): Remove redefinition.
12801 (TARGET_ASM_CONSTRUCTOR): Undefine.
12802 (SUBTARGET_SWITCHES): Define for ms-bitfields.
12803 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
12804 (PTRDIFF_TYPE): Define.
12805 (LONG_DOUBLE_TYPE_SIZE): Define.
12806 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
12807 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12808 (TARGET_SECTION_TYPE_FLAGS): Define.
12809 (ASM_DECLARE_FUNCTION_NAME): Define.
12810 (ASM_OUTPUT_EXTERNAL): Define.
12811 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
12812 (ASM_OUTPUT_ALIGNED_BSS): Define.
12813 (PCC_BITFIELD_TYPE_MATTERS): Define.
12814 (USE_CONST_SECTION): Define.
12815 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
12816 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
12817 (SUPPORTS_ONE_ONLY): Remove.
12818 (I386_PE_STRIP_ENCODING): Define.
12819 * config/interix.opt: Delete and move bits to..
12820 * config/i386/interix.opt: ..here. New.
12821 (mpe-aligned-commons): Add.
12822 * config/i386/t-interix: Add copyright header.
12823 (winnt-stubs.o): Add rule.
12824
e87b587e 128252012-01-22 Jason Merrill <jason@redhat.com>
12826
12827 PR c++/51832
12828 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
12829 for extra name aliases.
12830
4a77f173 128312012-01-22 Eric Botcazou <ebotcazou@adacore.com>
12832
12833 PR rtl-optimization/51924
12834 * ree.c (combine_set_extension): Improve debugging message.
12835 (combine_reaching_defs): Likewise.
12836 (get_defs): Rename confusingly named variable.
12837 (find_and_remove_re): Skip a candidate if the extension expression has
12838 been modified.
12839
e351cc52 128402012-01-21 Robert Millan <rmh@gnu.org>
12841 Gerald Pfeifer <gerald@pfeifer.com>
12842
12843 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
12844 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
12845
3991e956 128462012-01-20 Jakub Jelinek <jakub@redhat.com>
12847
12848 PR tree-optimization/51914
12849 * tree-vect-stmts.c (vectorizable_conversion): For
12850 cvt_type && modifier == WIDEN, put temporary with cvt_type
12851 at the beginning of vec_dsts and set vec_dest to temporary
12852 with vectype_out.
12853
4c2112a3 128542012-01-20 Eric Botcazou <ebotcazou@adacore.com>
12855
12856 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
12857
9492fb06 128582011-01-20 Tijl Coosemans <tijl@coosemans.org>
12859
12860 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
12861 * config/rs6000/rs6000.c: Likewise.
12862
40053ccb 128632012-01-20 Jakub Jelinek <jakub@redhat.com>
12864
12865 PR target/51915
12866 * config/arm/arm.c (arm_count_output_move_double_insns): Call
12867 output_move_double on a copy of operands array.
12868
be83ebf7 128692012-01-20 Cary Coutant <ccoutant@google.com>
12870 Dodji Seketeli <dodji@redhat.com>
946ae316 12871
12872 PR debug/45682
12873 * dwarf2out.c (copy_declaration_context): Return ref to parent
12874 of declaration DIE, if necessary.
12875 (remove_child_or_replace_with_skeleton): Add new parameter; update
12876 caller. Place skeleton DIE under parent DIE of original declaration.
12877 Move call to copy_declaration_context to here ...
12878 (break_out_comdat_types): ... from here.
12879
2bfb4f13 128802012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12881
12882 PR rtl-optimization/51856
12883 * reload.c (find_reloads_subreg_address): Set the address_reloaded
12884 flag to reloaded.
12885
093defc8 128862012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12887
12888 PR target/51819
12889 * config/arm/arm.c (arm_print_operand): Correct output of alignment
12890 hints for neon loads and stores.
12891
8516b1c4 128922012-01-20 Georg-Johann Lay <avr@gjlay.de>
12893
12894 PR target/49868
12895 PR target/50887
12896 * doc/extend.texi (Named Address Spaces): Split into subsections.
12897 (AVR Named Address Spaces): New subsection.
12898 (M32C Named Address Spaces): New subsection.
12899 (RL78 Named Address Spaces): New subsection.
12900 (SPU Named Address Spaces): New subsection.
12901 (Variable Attributes): New anchor "AVR Variable Attributes".
12902 (AVR Variable Attributes): Rewrite and avoid wording
12903 "address space" in this context.
12904 * doc/invoke.texi (AVR Options): Rewrite and add documentation
12905 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
12906 (AVR Built-in Macros): New subsubsection therein.
12907 * doc/md.texi (AVR constraints): Remove "C04", "R".
12908
173bd570 129092012-01-20 Richard Guenther <rguenther@suse.de>
12910
12911 PR tree-optimization/51903
12912 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
12913 when removing stmts.
12914
350ccca5 129152012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12916
12917 PR target/50313
12918 * config/arm/arm.c (arm_load_pic_register): Use
12919 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
12920 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
12921 (arm_pic_static_addr): Likewise.
12922 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
12923 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
12924 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
12925 (pic_load_addr_unified): New.
12926
fb10e416 129272012-01-20 Andrey Belevantsev <abel@ispras.ru>
12928
12929 PR target/51106
12930 * function.c (instantiate_virtual_regs_in_insn): Use
12931 delete_insn_and_edges when removing a wrong asm insn.
12932
9f8ac546 129332012-01-19 Vladimir Makarov <vmakarov@redhat.com>
12934
12935 PR rtl-optimization/40761
be83ebf7 12936 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
12937 Add new member loop_num.
9f8ac546 12938 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
12939 (ira_build): Remove the parameter.
12940
be83ebf7 12941 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
9f8ac546 12942 (ira.c): Do not build CFG loops for one region allocation. Remove
12943 argument from ira_build call.
12944
12945 * ira-build.c (init_loop_tree_node): New function.
12946 (create_loop_tree_nodes): Use it. Separate the case when CFG
12947 loops are not built.
12948 (more_one_region_p): Check current_loops.
12949 (finish_loop_tree_nodes): Separate the case when CFG loops are not
12950 built.
12951 (add_loop_to_tree): Process loop equal to NULL too.
12952 (form_loop_tree): Separate the case when CFG loops are not built.
12953 Use explicitly number for the root.
12954 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
12955 an assertion.
12956 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
12957 instead of loop->num.
be83ebf7 12958 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
9f8ac546 12959 (mark_all_loops_for_removal): Ditto.
12960 (remove_unnecessary_regions): Separate the case when CFG loops
12961 are not built.
12962 (ira_build): Remove the parameter. Use explicit number of regions
12963 when CFG loops are not built.
12964
be83ebf7 12965 * ira-color.c (print_loop_title): Separate the case for the root node.
12966 Use loop_num instead of loop->num.
9f8ac546 12967 (move_spill_restore): Use loop_num instead of loop->num.
12968
12969 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
12970 (change_loop): Ditto.
12971 (change_loop): Use loop_num instead of loop->num.
12972
12973 * ira-lives.c (process_bb_node_lives): Ditto.
12974
be83ebf7 12975 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
9f8ac546 12976
12977 * ira-conflicts.c (print_allocno_conflicts): Ditto.
12978
042161e8 129792012-01-19 Jakub Jelinek <jakub@redhat.com>
12980
8c1094a6 12981 PR libmudflap/40778
12982 * tree-mudflap.c (mf_artificial): New function.
12983 (execute_mudflap_function_ops, execute_mudflap_function_decls,
12984 mx_register_decls, mudflap_enqueue_decl): Use it.
12985
042161e8 12986 PR target/51876
12987 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
12988 numbers in the insn pattern.
12989
c729109b 129902012-01-19 Michael Matz <matz@suse.de>
12991
12992 PR tree-optimization/46590
12993 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
12994 use it in remembering which conflicts we already created.
12995 (add_scope_conflicts): Adjust call to above, (de)allocate helper
12996 bitmap.
12997
50f418ca 129982012-01-19 Aldy Hernandez <aldyh@redhat.com>
12999
13000 PR lto/51280
13001 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
13002 (merge_and_complain): Same.
13003
35f51475 130042012-01-19 Jakub Jelinek <jakub@redhat.com>
13005
13006 PR bootstrap/50237
13007 * config/initfini-array.h: Guard content of the header
13008 with #ifdef HAVE_INITFINI_ARRAY.
13009 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
13010 Add initfini-array.h to tm_file here.
be83ebf7 13011 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
35f51475 13012 * config.gcc: Don't add initfini-array.h to tm_file here.
13013 * configure: Regenerated.
13014
130152012-01-19 Andrey Belevantsev <abel@ispras.ru>
918fbeb3 13016
13017 PR rtl-optimization/51505
13018 * df-problems.c (df_kill_notes): New parameter live. Update comment.
13019 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
be83ebf7 13020 (df_note_bb_compute): Update the call to df_kill_notes.
918fbeb3 13021
3c8b8a41 130222012-01-18 Aldy Hernandez <aldyh@redhat.com>
13023
13024 * trans-mem.c (requires_barrier): Remove call to is_global_var.
13025
561ee8fc 130262012-01-18 Richard Guenther <rguenther@suse.de>
13027
13028 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
13029 of conversions to void *.
13030
4d18c297 130312012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13032 Richard Sandiford <rdsandiford@googlemail.com>
13033
13034 PR middle-end/50325
13035 PR middle-end/51192
13036 * optabs.h (simplify_expand_binop): Declare.
13037 * optabs.c (simplify_expand_binop): Make global.
13038 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
13039 endian targets if the source cannot be exactly covered by word
13040 mode chunks.
13041
2e851bb8 130422012-01-17 Jakub Jelinek <jakub@redhat.com>
13043
13044 PR bootstrap/51872
13045 * hard-reg-set.h (struct hard_reg_set_container): New type.
13046 * target.h (struct hard_reg_set_container): Forward declare.
13047 * target.def (set_up_by_prologue): New target hook.
13048 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
13049 * doc/tm.texi: Regenerated.
13050 * function.c (thread_prologue_and_epilogue_insns): Change
13051 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
13052 Call targetm.set_up_by_prologue on it.
13053 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
13054 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
13055
f35edb6f 130562012-01-17 Nick Clifton <nickc@redhat.com>
13057
13058 * config/rx/rx.c (rx_can_use_simple_return): New function.
13059 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
13060 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
13061
1211c450 130622012-01-17 Richard Guenther <rguenther@suse.de>
13063
13064 PR middle-end/51782
13065 * expr.c (expand_assignment): Take address-space information
13066 from the address operand of MEM_REF and TARGET_MEM_REF.
13067 (expand_expr_real_1): Likewise.
13068
59157d8c 130692012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13070
13071 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
13072 reload dump is requested.
13073
d6ded716 130742012-01-17 Aldy Hernandez <aldyh@redhat.com>
13075
13076 PR other/51165
13077 * trans-mem.c (requires_barrier): Call may_be_aliased.
13078
87af2d00 130792012-01-17 Jakub Jelinek <jakub@redhat.com>
13080
13081 PR tree-optimization/51877
13082 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
13083 call arguments and fndecls compare equal, instead return false if they
13084 don't. Return true only if lhs1 and lhs2 are either both NULL, or
13085 both SSA_NAMEs that are valueized the same, or they satisfy
13086 operand_equal_p.
13087
dfeb8a07 130882012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13089
13090 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
13091 Solaris 11+.
13092 * configure: Regenerate.
13093
4470b8f6 130942012-01-16 Jan Hubicka <jh@suse.cz>
13095
13096 PR c/12245
13097 PR c++/14179
13098 * convert.c (convert_to_integer): Use fold_convert for
13099 converting an INTEGER_CST to integer type.
13100
0ecef4a2 131012012-01-16 Jason Merrill <jason@redhat.com>
13102
13103 PR c++/14179
13104 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
13105
0c41699c 131062012-01-16 Jakub Jelinek <jakub@redhat.com>
13107
414bc417 13108 PR bootstrap/51860
13109 * config/s390/s390.c (s390_chunkify_start): Don't skip
13110 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
13111 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
13112 If insn is followed by NOTE_INSN_VAR_LOCATION or
13113 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
13114 Don't use location of note insns.
13115
0c41699c 13116 PR tree-optimization/51865
13117 * tree-inline.c (tree_function_versioning): Call remap_decl
13118 on DECL_RESULT whenever it has VOID_TYPE_P type.
13119
1f873db2 131202012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
13121
13122 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
13123 for calls to locally-binding MIPS16 functions if only the return
13124 type uses float regs.
13125
a657080a 131262012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
13127 Richard Sandiford <rdsandiford@googlemail.com>
13128
13129 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
13130 (SYMBOL_32_HIGH): Likewise.
13131 (mips_output_tls_reloc_directive): Declare.
13132 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
13133 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
13134 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
13135 (mips_lo_relocs, mips_hi_relocs): Make extern.
13136 (mips16_stub_function): Move up file.
13137 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
13138 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
13139 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
be83ebf7 13140 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
13141 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
a657080a 13142 (mips_get_tp): Add MIPS16 support.
13143 (mips_legitimize_tls_address): Remove MIPS16 sorry().
13144 Generalize DTPREL and TPREL handling.
13145 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
13146 Add MIPS16 TLS support.
13147 (mips_output_tls_reloc_directive): New function.
13148 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
13149 * config/mips/predicates.md (symbolic_operand_with_high)
13150 (tls_reloc_operand): New predicates.
13151 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
13152 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
13153 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
be83ebf7 13154 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
a657080a 13155 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
13156 (*tls_get_tp_mips16_call_<mode>): Likewise.
13157
75e237b7 131582012-01-15 Uros Bizjak <ubizjak@gmail.com>
13159
13160 PR rtl-optimization/51821
13161 * recog.c (peep2_find_free_register): Determine clobbered registers
13162 from insn pattern.
13163
9f42c829 131642012-01-14 Denis Chertykov <chertykov@gmail.com>
13165
13166 PR target/50925
13167 * config/avr/avr-protos.h: Revert change of 2012-01-09.
13168 * config/avr/avr.c: Likewise.
13169 * config/avr/avr.h: Likewise.
13170
3637bb87 131712012-01-13 Ian Lance Taylor <iant@google.com>
13172
13173 PR c++/50012
13174 * tree.h (TYPE_QUALS): Add cast to int.
13175 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
13176
981afcd0 131772012-01-13 Ian Lance Taylor <iant@google.com>
13178
13179 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
13180 comparing param_index to VEC_length result.
13181
13b67b5c 131822012-01-13 Steven Bosscher <steven@gcc.gnu.org>
13183
13184 * c-decl.c: Do not include tree-mudflap.h
13185 * tree-optimize.c: Likewise.
13186 * Makefile.in: Update dependencies.
13187
fc0c4d51 131882012-01-13 Richard Guenther <rguenther@suse.de>
13189
13190 PR middle-end/8081
13191 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
13192 variable-sized result always use RSO.
13193
df7f3935 131942012-01-12 DJ Delorie <dj@redhat.com>
13195
13196 * cfgexpand.c (convert_debug_memory_address): Allow any valid
13197 pointer type, not just the default pointer type.
13198
36b6158e 131992012-01-09 Richard Henderson <rth@redhat.com>
13200 Denis Chertykov <chertykov@gmail.com>
13201
13202 PR target/50925
13203 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
13204 * config/avr/avr.c (avr_can_eliminate): Simplify.
13205 (avr_initial_elimination_offset): Likewise.
13206 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
13207 (expand_epilogue): Likewise.
13208 (avr_legitimize_address): Gut.
13209 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
13210 (avr_hard_regno_nregs): New.
13211 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
13212 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
13213 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
13214 add soft frame pointer.
13215 (CALL_USED_REGISTERS): Likewise.
13216 (REG_CLASS_CONTENTS): Likewise.
13217 (REGISTER_NAMES): Likewise.
13218 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
13219 (HARD_FRAME_POINTER_REGNUM): New.
13220 (FRAME_POINTER_REGNUM): Use soft frame pointer.
13221 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
13222 remove the HARD_FRAME_POINTER self-elimination.
13223
4bdc263b 132242012-01-12 Georg-Johann Lay <avr@gjlay.de>
07b2ccdc 13225
13226 PR target/51756
13227 * config/avr/avr.c (avr_encode_section_info): Test for absence of
13228 DECL_EXTERNAL when checking for initializers of progmem variables.
13229
6175d24a 132302012-01-12 Ira Rosen <irar@il.ibm.com>
13231
13232 PR tree-optimization/51799
13233 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
13234 that the last operation is a type demotion.
13235
ad1f1582 132362012-01-12 Uros Bizjak <ubizjak@gmail.com>
13237
13238 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
13239 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
13240
45152a7b 132412012-01-11 Jakub Jelinek <jakub@redhat.com>
13242
13243 PR bootstrap/51796
13244 * combine.c (distribute_notes): If i3 is a noreturn call,
13245 allow old_size to be equal to args_size and make sure the
13246 noreturn call gets REG_ARGS_SIZE note.
13247 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
13248 on noreturn calls even when the delta is 0.
13249
93fcbf99 132502012-01-11 Nathan Sidwell <nathan@acm.org>
13251
13252 * gcov.c (STRING_SIZE): Remove.
13253 (generate_results): Erase annotations for source files with no
13254 coverage information.
13255 (read_line): New.
13256 (output_lines): Use it.
13257
7e3aae05 132582012-01-11 Eric Botcazou <ebotcazou@adacore.com>
13259
13260 * gimple.h (gimplify_body): Remove first argument.
13261 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
13262 pointer set here, instead just pass DATA to walk_tree.
13263 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
13264 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
13265 (unvisit_body): Likewise, but with unmark_visited.
13266 (gimplify_body): Remove BODY_P argument and adjust.
13267 (gimplify_function_tree): Adjust call to gimplify_body.
13268 * omp-low.c (finalize_task_copyfn): Likewise.
13269
7a3ec978 132702012-01-11 Eric Botcazou <ebotcazou@adacore.com>
13271
13272 * tree.h (build_function_decl_skip_args): Add boolean parameter.
13273 (build_function_type_skip_args): Delete.
13274 * tree.c (build_function_type_skip_args): Make static and add
13275 SKIP_RETURN parameter. Fix thinko in the handling of variants.
13276 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
13277 pass it to build_function_type_skip_args.
13278 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
13279 (tree_function_versioning): Likewise.
13280 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
13281 build_function_decl_skip_args.
13282 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
13283 and pass it to build_function_decl_skip_args/tree_function_versioning.
13284 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
13285 * ipa-inline-transform.c (save_inline_function_body): Likewise.
13286 * trans-mem.c (ipa_tm_create_version): Likewise.
13287 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
13288 * tree-inline.c (declare_return_variable): Remove always-true test.
13289 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
13290 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
13291 * ipa-split.c (split_function): Skip the return value for the split
13292 part if it doesn't return.
13293
aa2edcb9 132942012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13295
13296 PR tree-optimization/49642
13297 * ipa-split.c (forbidden_dominators): New variable.
13298 (check_forbidden_calls): New function.
13299 (dominated_by_forbidden): Likewise.
13300 (consider_split): Check for forbidden dominators.
13301 (execute_split_functions): Initialize and free forbidden
13302 dominators info; call check_forbidden_calls.
13303
7d0a3bab 133042012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13305
13306 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
13307
301901d2 133082012-01-11 Nick Clifton <nickc@redhat.com>
13309
13310 * config/rx/rx.md (return): Define pattern.
13311
35cbef6c 133122012-01-11 Richard Guenther <rguenther@suse.de>
13313
13314 * doc/extend.texi (malloc attribute): Adjust according to
13315 implementation.
13316
3e426b86 133172012-01-10 Aldy Hernandez <aldyh@redhat.com>
13318 Patrick Marlier <patrick.marlier@gmail.com>
13319
13320 PR middle-end/51516
13321 * trans-mem.c (get_cg_data): Traverse aliases if requested.
13322 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
13323 (ipa_tm_note_irrevocable): Same.
13324 (ipa_tm_scan_irr_block): Same.
13325 (ipa_tm_decrement_clone_counts): Same.
13326 (ipa_tm_scan_irr_function): Same.
13327 (ipa_tm_create_version_alias): Same.
13328 (ipa_tm_create_version): Same.
13329 (ipa_tm_transform_calls_redirect): Same.
13330 (ipa_tm_transform_calls): Same.
13331 (ipa_tm_transform_transaction): Same.
13332 (ipa_tm_execute): Same.
13333
90e2341f 133342012-01-10 Richard Guenther <rguenther@suse.de>
13335
13336 PR middle-end/51806
13337 * opts.c (common_handle_option): Handle -Werror.
13338
42720af3 133392012-01-10 Andreas Schwab <schwab@linux-m68k.org>
13340
13341 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
13342 operand number.
13343
2e3ca6dd 133442012-01-10 Jason Merrill <jason@redhat.com>
13345
13346 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
13347 information.
13348
31d2f7ca 133492012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13350
13351 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
13352 supports R_386_TLS_GD_PLT reloc.
13353 (gcc_cv_as_ix86_tlsldmplt): Check if linker
13354 supports R_386_TLS_LDM_PLT reloc.
13355 * configure: Regenerate.
13356 * config.in: Regenerate.
13357
ed2541ea 133582012-01-10 Georg-Johann Lay <avr@gjlay.de>
13359
13360 PR target/49868
13361 Extend __pgmx semantics to linearize memory.
13362 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
13363 determine if code comes inline or from libgcc.
13364 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
13365 (movmem_qi, movmem_qi): Set constraint #2 to "n".
13366 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
13367 (movmemx_qi, movmemx_hi): New insns.
13368 (xload_<mode>_libgcc): Rewrite to new insn condition.
13369 (xload_<mode>): Remove insns.
13370 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
13371 cases that don't satisfy avr_xload_libgcc_p().
13372 (avr_addr_space_convert): Allow converting in any direction.
13373 (avr_addr_space_subset_p): Return always true.
13374 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
13375 (avr_emit_movmemhi): Ditto.
13376 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
13377 (avr_out_movmem): Ditto.
13378 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
13379 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
13380 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
13381 (avr_encode_section_info): Encode 'progmem' in symbol flags.
13382 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
13383
e97c4b0d 133842012-01-10 Richard Guenther <rguenther@suse.de>
13385
13386 PR tree-optimization/50913
13387 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
13388 Require data-refs to be representable by Graphite with respect
13389 to any loop nest.
13390
553c4d0b 133912012-01-10 Uros Bizjak <ubizjak@gmail.com>
13392
13393 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
13394 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
13395
e2ab608c 133962012-01-10 Tom de Vries <tom@codesourcery.com>
13397
abbecd80 13398 PR rtl-optimization/51271
e2ab608c 13399 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
13400 handling annulled branch.
13401
47ddcd6b 134022012-01-10 Richard Henderson <rth@redhat.com>
13403
553c4d0b 13404 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
47ddcd6b 13405 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
13406 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
13407 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
13408 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
13409 arm_expand_vec_perm_const): New.
13410 * config/arm/arm-protos.h: Update.
13411 * config/arm/neon.md (UNSPEC_VCONCAT): New.
13412 (*neon_vswp<VDQX>): New.
13413 (neon_vcombine<VDX>): Use neon_split_vcombine.
13414 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
13415 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
13416 (vec_perm<VE>): New.
13417
e1b93706 134182012-01-10 Richard Henderson <rth@redhat.com>
13419
13420 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
13421 use it if reload_completed.
13422 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
13423 arm_output_asm_insn, arm_process_output_memory_barrier,
13424 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
13425 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
13426 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
13427 arm_process_output_sync_insn, arm_output_sync_insn,
13428 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
13429 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
13430 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
13431 (emit_unlikely_jump): New.
13432 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
13433 (arm_split_atomic_op): New.
13434 * config/arm/arm-protos.h: Update.
13435 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
13436 (struct arm_sync_generator): Remove.
13437 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
13438 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
13439 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
13440 (VUNSPEC_LL, VUNSPEC_SC): New.
13441 (sync_result, sync_memory, sync_required_value, sync_new_value,
13442 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
13443 (attr length): Don't use arm_sync_loop_insns.
13444 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
13445 (movsfcc, movdfcc): Likewise.
13446 * config/arm/constraints.md (Ua): New.
13447 * config/arm/prediates.md (mem_noofs_operand): New.
13448 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
13449 (sync_clobber, sync_t2_reqd): Remove.
13450 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
13451 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
13452 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
13453 (arm_sync_compare_and_swap<SIDI>): Remove.
13454 (arm_sync_compare_and_swap<NARROW>): Remove.
13455 (arm_sync_lock_test_and_set<SIDI>): Remove.
13456 (arm_sync_lock_test_and_set<NARROW>): Remove.
13457 (arm_sync_new_<syncop><SIDI>): Remove.
13458 (arm_sync_new_<syncop><NARROW>): Remove.
13459 (arm_sync_new_nand<SIDI>): Remove.
13460 (arm_sync_new_nand<NARROW>): Remove.
13461 (arm_sync_old_<syncop><SIDI>): Remove.
13462 (arm_sync_old_<syncop><NARROW>): Remove.
13463 (arm_sync_old_nand<SIDI>): Remove.
13464 (arm_sync_old_nand<NARROW>): Remove.
13465 (*memory_barrier): Merge arm_output_memory_barrier.
13466 (atomic_compare_and_swap<QHSD>): New.
13467 (atomic_compare_and_swap<NARROW>_1): New.
13468 (atomic_compare_and_swap<SIDI>_1): New.
13469 (atomic_exchange<QHSD>): New.
13470 (cas_cmp_operand, cas_cmp_str): New.
13471 (atomic_op_operand, atomic_op_str): New.
13472 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
13473 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
13474 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
13475 (arm_load_exclusive<NARROW>): New.
13476 (arm_load_exclusivesi, arm_load_exclusivedi): New.
13477 (arm_store_exclusive<QHSD>): New.
13478
134792012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
ca8c55ac 13480
13481 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
13482 reload patterns if -mvsx-scalar-memory.
13483
13484 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
13485 generated, even -mno-vsx-scalar-double was used.
13486 (vsx_xscvdpsp_scalar): Likewise.
13487 (vsx_xscvspdp_scalar2): Likewise.
13488
5cbfefc3 134892012-01-09 Tom de Vries <tom@codesourcery.com>
13490 Andrew Pinski <apinski@cavium.com>
13491
abbecd80 13492 PR debug/51471
553c4d0b 13493 * reorg.c (fill_slots_from_thread): Don't speculate
13494 frame-related insns.
5cbfefc3 13495
018f0595 134962012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13497
13498 * sched-int.h (bb_note): Move to...
13499 * basic-block.h: ...here.
13500 * haifa-sched.c (bb_note): Move to...
13501 * cfgrtl.c: ...here.
13502 * function.c (next_block_for_reg): New function.
13503 (move_insn_for_shrink_wrap): Likewise.
13504 (prepare_shrink_wrap): Rewrite to use the above.
13505
28098b5b 135062012-01-09 Aldy Hernandez <aldyh@redhat.com>
13507
13508 * gimple.c (is_gimple_non_addressable): Remove.
13509 * gimple.h: Remove is_gimple_non_addressable.
13510 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
13511 is_gimple_non_addressable.
13512 * trans-mem.c (expand_assign_tm): Same.
13513
f6093533 135142012-01-09 Richard Guenther <rguenther@suse.de>
13515
13516 PR tree-optimization/51775
13517 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
13518 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
13519
92409bbc 135202012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13521
13522 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
13523 tuning parameters.
13524 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
13525
3f7685cd 135262012-01-09 Richard Guenther <rguenther@suse.de>
13527
13528 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
13529
e67e73bd 135302012-01-08 Jan Hubicka <jh@suse.cz>
13531
13532 PR tree-optimize/51680
3f7685cd 13533 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
13534 on when known_vals needs to be computed; cleanup.
e67e73bd 13535
7aedab82 135362012-01-08 Jan Hubicka <jh@suse.cz>
13537
13538 PR tree-optimize/51694
13539 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
13540
49dc2bdc 135412012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
13542
13543 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
13544 for -std=c++98 and -std=c++11 too.
13545
bf4b25d7 135462012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
13547
13548 * cfgloop.c (cancel_loop): Add free() of bbs array.
13549
5dcaa672 135502012-01-07 Jan Hubicka <jh@suse.cz>
13551
13552 PR tree-optimization/51600
13553 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
13554 that benefits small functions.
13555
135562012-01-07 Jan Hubicka <jh@suse.cz>
13557
13558 * ipa-inline.c (want_inline_small_function_p): Fix formating.
13559
a844747e 135602012-01-07 Jan Hubicka <jh@suse.cz>
13561
13562 PR tree-optimization/51680
13563 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
13564 whose inlining reduce unit size.
13565
c98120f0 135662012-01-07 Alexandre Oliva <aoliva@redhat.com>
13567
13568 PR bootstrap/51725
13569 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
13570 Add canonical node to containing_mem chain after the non-canonical
13571 one, even if there weren't any locs to propagate.
13572 (remove_useless_values): Keep only canonical values.
13573 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
13574 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
13575 canonicalize mem_chain elements that are not discarded.
13576
b9aec3f5 135772012-01-06 Jakub Jelinek <jakub@redhat.com>
13578
5c8ad8f5 13579 PR target/47333
13580 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
13581 before emitting functions.
13582
b9aec3f5 13583 PR gcov-profile/50127
13584 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
13585 clear_aux_for_blocks.
13586
29c70ce8 135872012-01-06 Alexandre Oliva <aoliva@redhat.com>
13588
13589 PR debug/51746
13590 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
13591
00ce46e2 135922012-01-06 Arnaud Charlet <charlet@adacore.com>
13593
13594 * c-decl.c (ext_block): Moved up.
13595 (collect_all_refs, for_each_global_decl): Take ext_block into account.
13596
36ddd5fe 135972012-01-06 Han Shen <shenhan@google.com>
13598
13599 Translate built-in include paths for sysroot.
13600 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
13601 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
13602
13603 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
13604 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
13605
13606 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
13607 control whether sysroot should be prepended to gxx include dir.
13608
13609 * configure: Regenerate.
13610
aa848e47 136112012-01-06 Torvald Riegel <triegel@redhat.com>
13612
13613 PR rtl-optimization/51771
553c4d0b 13614 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
aa848e47 13615 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
13616
89c7922d 136172012-01-05 Eric Botcazou <ebotcazou@adacore.com>
13618
13619 PR tree-optimization/51315
13620 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
13621 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
13622
7208667b 136232012-01-05 Uros Bizjak <ubizjak@gmail.com>
13624
13625 PR target/51681
13626 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
13627 for shrp pattern. Correctly handle and fixup shift variable.
13628 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
13629
27827244 136302012-01-05 Jakub Jelinek <jakub@redhat.com>
13631
13632 PR debug/51762
13633 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
13634 note when !ACCUMULATE_OUTGOING_ARGS.
13635
df8f94d5 136362012-01-05 Eric Botcazou <ebotcazou@adacore.com>
13637
13638 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
13639 condition.
13640 (extract_range_from_unary_expr_1): Avoid useless computations.
13641
180c5ea0 136422012-01-05 Jakub Jelinek <jakub@redhat.com>
13643
d7ff3ab6 13644 PR rtl-optimization/51767
13645 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
13646 of jump_block and add an extra edge for degenerated asm gotos.
13647
1aed71d6 13648 PR middle-end/51768
13649 * stmt.c (check_unique_operand_names): Don't ICE during error
13650 reporting if i is from labels chain.
13651
180c5ea0 13652 PR middle-end/44777
13653 * profile.c (branch_prob): Split bbs that have exit edge
13654 and need a fake entry edge too.
13655
753f2949 136562012-01-05 Jan Hubicka <jh@suse.cz>
13657
13658 PR middle-end/49710
13659 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
13660 unlooping loops.
13661
8a3acf3f 136622012-01-05 Richard Guenther <rguenther@suse.de>
13663
13664 PR lto/50490
13665 * tree-streamer-out.c (write_ts_optimization): New function.
13666 (streamer_write_tree_body): Call it.
13667 * tree-streamer-in.c (lto_input_ts_optimization): New function.
13668 (streamer_read_tree_body): Call it.
13669 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
13670
cbabc8eb 136712012-01-05 Jakub Jelinek <jakub@redhat.com>
13672
13673 PR middle-end/51761
7208667b 13674 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
cbabc8eb 13675 * gimplify.c (gimplify_cleanup_point_expr): Save and set
13676 in_cleanup_point_expr before gimplify_stmt call and restore it
13677 afterwards.
13678 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
13679 in_cleanup_point_expr is false.
13680
9ea022ce 136812012-01-05 Richard Guenther <rguenther@suse.de>
13682
13683 PR middle-end/51764
13684 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
13685 to c.opt.
13686 * toplev.c (process_options): Reject combining mudflap and LTO.
13687 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
13688
c91fedc5 136892012-01-05 Richard Guenther <rguenther@suse.de>
13690
13691 PR tree-optimization/51760
13692 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
13693 not VARYING.
13694 (bit_value_unop): Handle UNDEFINED operands.
13695 (bit_value_binop): Likewise.
13696
1b6c82cc 136972012-01-05 Georg-Johann Lay <avr@gjlay.de>
13698
13699 * config/avr/avr.c (avr_replace_prefix): Remove.
13700 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
13701 (avr_asm_function_rodata_section): Ditto.
13702 (avr_asm_select_section): Ditto.
13703
a7dcb2ba 137042012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13705
13706 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
13707 insertion.
13708
d1a21c35 137092012-01-05 Jakub Jelinek <jakub@redhat.com>
13710
44e41ce0 13711 PR bootstrap/51648
13712 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
13713 calls that have any non-fake successor edges.
13714
d1a21c35 13715 PR debug/51746
13716 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
13717
d33fd0b7 137182012-01-04 Eric Botcazou <ebotcazou@adacore.com>
13719
13720 PR tree-optimization/51624
13721 * tree-sra.c (build_ref_for_model): When replicating a chain of
13722 COMPONENT_REFs, stop as soon as the offset would become negative.
13723
3003ad99 137242012-01-04 Jakub Jelinek <jakub@redhat.com>
13725
13726 PR debug/51695
13727 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
13728 in .debug_loc on the floor.
13729
79bdd1fe 137302012-01-04 Andrew Pinski <apinski@cavium.com>
13731
13732 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
13733
b7508909 137342012-01-04 Andrew Pinski <apinski@cavium.com>
13735 Adam Nemet <anemet@caviumnetworks.com>
13736
13737 * config/mips/mips.md (size): Add SI and DI.
13738 (SIZE): New mode attribute.
13739 (U): New code attribute.
13740 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
13741 (mips_lbux_<mode>): Delete.
13742 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
13743 (mips_lhx): Use gen_mips_lhx_extsi.
13744 (mips_lhx_<mode>): Delete.
13745 (mips_lwx): Delete.
13746 (mips_l<size>x): New expand.
13747 (mips_lwx_<mode>): Delete.
13748 (mips_l<GPR:size>x_<P:mode>): New pattern.
13749 (*mips_lw<u>x_<P:mode>_ext): Likewise.
13750 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
13751 * config/mips/mips.c (mips_lx_address_p): New function.
13752 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
13753 (dsp64): New availability predicate.
13754 (mips_builtins): Add an entry for __builtin_mips_ldx.
13755 * config/mips/mips.h (ISA_HAS_LBX): New define.
13756 (ISA_HAS_LBUX): Likewise.
13757 (ISA_HAS_LHX): Likewise.
13758 (ISA_HAS_LHUX): Likewise.
13759 (ISA_HAS_LWX): Likewise.
13760 (ISA_HAS_LWUX): Likewise.
13761 (ISA_HAS_LDX): Likewise.
13762 * doc/extend.texi (__builtin_mips_ldx): Document.
13763
ceb6185f 137642012-01-04 Tristan Gingold <gingold@adacore.com>
13765
13766 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
13767 when long pointers are used.
13768 * config.build (*-*-*vms*): Handle all OpenVMS targets.
13769 (alpha64-dec-*vms*, alpha*-dec-*vms*)
13770 (ia64-hp-*vms*): Remove.
13771 * config/vms/xm-vms64.h: Delete.
13772
ea580cf7 137732012-01-04 Aldy Hernandez <aldyh@redhat.com>
13774
13775 PR middle-end/51472
13776 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
13777
cb8ce878 137782012-01-04 Aldy Hernandez <aldyh@redhat.com>
13779
d449d792 13780 * opts.c (finish_options): Remove duplicate sorry.
cb8ce878 13781
300eddba 137822012-01-04 Aldy Hernandez <aldyh@redhat.com>
13783
13784 PR middle-end/51696
13785 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
13786 correctly.
13787
a6c23958 137882012-01-04 Richard Guenther <rguenther@suse.de>
13789
13790 PR middle-end/51750
13791 * tree.c (size_low_cst): New function.
13792 * tree.h (size_low_cst): Declare.
13793 * fold-const.c (fold_comparison): Use it to extract the low
13794 part of the POINTER_PLUS_EXPR offset.
13795
f4806884 137962012-01-04 Georg-Johann Lay <avr@gjlay.de>
13797
13798 Fix clearing ZERO_REG
13799 * config/avr/avr.md (cc): Add alternative "ldi".
13800 (movqi_insn): Use it in cc attribute.
13801 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
13802 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
13803 (output_reload_insisf): Use ZERO_REG to pre-clear register.
13804
ce94380e 138052012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13806
13807 * configure: Regenerate.
13808
b4c39a37 138092012-01-04 Richard Guenther <rguenther@suse.de>
13810
13811 PR tree-optimization/49651
13812 * tree-ssa-structalias.c (type_can_have_subvars): New function.
13813 (var_can_have_subvars): Use it.
7208667b 13814 (get_constraint_for_1): Only consider subfields if there can be any.
b4c39a37 13815
cdfa22f4 138162012-01-03 Jakub Jelinek <jakub@redhat.com>
13817
89159e31 13818 PR bootstrap/51725
7208667b 13819 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
13820 to its new canonical_cselib_val and the cselib_val was in
13821 first_containing_mem chain, but the canonical_cselib_val was not,
13822 add the latter into the chain.
89159e31 13823 (cselib_invalidate_mem): Compare canonical_cselib_val of
13824 addr_list chain elt with v.
13825
cdfa22f4 13826 PR pch/51722
13827 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
13828 dwarf2out_undef): Allocate e.info using ggc_strdup instead
13829 of xstrdup.
13830 (output_macinfo_op): Don't ggc_strdup fd->filename.
13831 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
13832 then ggc_strdup it. Don't free inc->info or cur->info.
13833 (output_macinfo): Don't free ref->info or file->info.
13834
2f630015 138352012-01-03 Ira Rosen <irar@il.ibm.com>
13836
13837 PR tree-optimization/51269
13838 * tree-vect-loop-manip.c (set_prologue_iterations): Make
13839 first_niters a pointer.
13840 (slpeel_tree_peel_loop_to_edge): Likewise.
13841 (vect_do_peeling_for_loop_bound): Update call to
13842 slpeel_tree_peel_loop_to_edge.
13843 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
13844 here. Remove it from the parameters list.
13845 (vect_do_peeling_for_alignment): Update calls and compute
13846 wide_prolog_niters.
13847
958ea92a 138482012-01-03 Richard Guenther <rguenther@suse.de>
13849
13850 PR tree-optimization/51070
13851 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
13852 Properly handle calls.
13853
af988fbc 138542012-01-03 Richard Guenther <rguenther@suse.de>
13855
13856 PR tree-optimization/51692
13857 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
13858 the LHS of allocation stmts.
13859
131e69c7 138602012-01-03 Olivier Hainque <hainque@adacore.com>
13861
13862 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
13863
e4e4eb40 138642012-01-03 Olivier Hainque <hainque@adacore.com>
13865
13866 * collect2.c (main): In AIX specific computations for vector
13867 insertions, use CONST_CAST2 to cast from char ** to const char **.
13868
e94f8cec 138692012-01-03 Richard Guenther <rguenther@suse.de>
13870
13871 PR debug/51650
13872 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
13873 the context of a limbo DIE when it does not already exist.
13874
1cd188fc 138752012-01-03 Jakub Jelinek <jakub@redhat.com>
13876
13877 PR tree-optimization/51719
13878 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
13879 but direct call is, clear direct call's lhs and don't add fallthrough
13880 edge from dcall_bb to join_bb and PHIs.
13881
fbee501c 138822012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13883
13884 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
13885 the instructions emitted by the pattern.
13886 ("*TDC_insn_<mode>"): Add comment.
13887
c8d7e3b9 138882012-01-03 Richard Guenther <rguenther@suse.de>
13889
13890 PR middle-end/51730
13891 * fold-const.c (fold_comparison): Properly canonicalize
13892 tree offset and HOST_WIDE_INT bit position.
13893
87f78f87 138942012-01-02 Uros Bizjak <ubizjak@gmail.com>
13895
13896 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
13897 operands for extzv pattern.
13898
e2b97531 138992012-01-02 Jakub Jelinek <jakub@redhat.com>
13900
13901 PR bootstrap/51725
13902 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
13903 on mem_elt first.
13904
9d1f0198 139052012-01-02 Sandra Loosemore <sandra@codesourcery.com>
13906
13907 * doc/invoke.texi (-flto and related options): Copy-edit.
13908
606b7c1d 139092012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13910
87f78f87 13911 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
606b7c1d 13912
2cded00a 139132012-01-02 Jakub Jelinek <jakub@redhat.com>
13914
13915 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
13916 New patterns.
13917
8136e769 139182012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13919
13920 * expr.h (move_by_pieces_ninsns): Declare.
13921 * expr.c (move_by_pieces_ninsns): Make external.
13922 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
13923 (mips_store_by_pieces_p): Likewise.
13924 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
13925 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
13926 * config/mips/mips.c (mips_move_by_pieces_p): New function.
13927 (mips_store_by_pieces_p): Likewise.
13928
364360b8 139292012-01-02 Jakub Jelinek <jakub@redhat.com>
13930
13931 * passes.c (register_one_dump_file): Free full_name.
13932
87f78f87 13933 * reload1.c (reload): Don't allocate reg_max_ref_width here.
364360b8 13934 (calculate_elim_costs_all_insns): Free offsets_at and
13935 offsets_known_at at the end and clear the pointers.
13936
5a1d0410 139372012-01-02 Georg-Johann Lay <avr@gjlay.de>
13938
13939 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
13940 this option introduced in r180739.
13941
b32bc361 139422012-01-02 Georg-Johann Lay <avr@gjlay.de>
13943
13944 PR target/51345
13945 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
13946 (tmake_file target=avr): Add avr/t-multilib.
13947
13948 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
13949 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
13950 * config/avr/genmultilib.awk: New file.
13951 * config/avr/t-multilib: New auto-generated file.
13952 * config/avr/multilib.h: New auto-generated file.
13953 * config/avr/t-avr (AVR_MCUS): New variable.
13954 (genopt.sh): Use it.
13955 (s-mlib): Depend on t-multilib.
13956 (t-multilib, multilib.h): New dependencies.
13957 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
13958 (MULTILIB_OPTIONS): Remove.
13959 (MULTILIB_MATCHES): Remove.
13960 (MULTILIB_DIRNAMES): Remove.
13961 (MULTILIB_EXCEPTIONS): Remove:
13962 * config/avr/genopt.sh: Don't use hard coded file name;
13963 pass AVR_MCUS from t-avr instead.
13964
8e8ae8d4 139652012-01-02 Georg-Johann Lay <avr@gjlay.de>
13966
13967 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
13968
83921eda 139692012-01-02 Georg-Johann Lay <avr@gjlay.de>
13970
13971 Implement light-weight DImode support.
13972 * config/avr/avr-dimode.md: New file.
13973 * config/avr/avr.md: Include it.
13974 (adjust_len): Add plus64, compare64.
13975 (HIDI): Remove code iterator.
13976 (code_stdname): New code attribute.
13977 (rotx, rotsmode): Remove DI.
13978 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
13979 as code iterator.
13980 * config/avr/avr-protos.h (avr_have_dimode): New.
13981 (avr_out_plus64, avr_out_compare64): New.
13982 * config/avr/avr.c (avr_out_compare): Handle DImode.
13983 (avr_have_dimode): New variable definition and initialization.
13984 (avr_out_compare64, avr_out_plus64): New functions.
13985 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
13986 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
13987 (avr_compare_pattern): Skip DImode comparisons.
13988
238c43ff 139892012-01-02 Revital Eres <revital.eres@linaro.org>
13990
13991 * ddg.c (def_has_ccmode_p): New function.
13992 (add_cross_iteration_register_deps,
13993 create_ddg_dep_from_intra_loop_link): Call it.
13994
0c0cdd6f 139952012-01-02 Richard Guenther <rguenther@suse.de>
13996
13997 PR other/51679
13998 * invoke.texi (fassociative-math): Remove spurious paranthesis.
13999
ea87e586 140002012-01-01 Jakub Jelinek <jakub@redhat.com>
14001
14002 * gcc.c (process_command): Update copyright notice dates.
14003 * gcov.c (print_version): Likewise.
14004 * gcov-dump.c (print_version): Likewise.
14005 * mips-tfile.c (main): Likewise.
14006 * mips-tdump.c (main): Likewise.
14007
a1123047 140082012-01-01 Ira Rosen <irar@il.ibm.com>
14009
14010 PR tree-optimization/51704
14011 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
87f78f87 14012 a use is inside the basic block or loop before accessing its vect info.
a1123047 14013
4d50c498 140142012-01-01 Jan Hubicka <jhjh@suse.cz>
14015
14016 PR rtl-optimization/51069
14017 * cfgloopmanip.c (remove_path): Removing path making irreducible
14018 region unconditional makes BB part of the region.
14019
3064bb7b 140202012-01-01 Jakub Jelinek <jakub@redhat.com>
14021
14022 PR tree-optimization/51683
14023 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
14024 calls with side-effects.
14025 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7dfbd804 14026\f
8dfa851a 14027Copyright (C) 2012 Free Software Foundation, Inc.
7dfbd804 14028
14029Copying and distribution of this file, with or without modification,
14030are permitted in any medium without royalty provided the copyright
14031notice and this notice are preserved.