]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
re PR target/53914 (poor code generated for offset addressing on ppc32)
[thirdparty/gcc.git] / gcc / ChangeLog
1 2012-07-24 Alan Modra <amodra@gmail.com>
2
3 PR target/53914
4 PR target/54009
5 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
6 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
7 Adjust all rs6000_legitimate_offset_address_p calls.
8 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
9 (rs6000_secondary_reload_gpr): Declare.
10 (rs6000_legitimate_offset_address_p): Update prototype.
11 (rs6000_offsettable_memref_p): Delete.
12 (rs6000_secondary_reload_ppc64): Delete.
13 * config/rs6000/rs6000.c (address_offset): New function.
14 (mem_operand_gpr): Likewise.
15 (rs6000_legitimate_offset_address_p): Add worst_case param. When
16 not worst_case assume class of regs with least restrictive offsets.
17 Adjust all calls.
18 (legitimate_lo_sum_address_p): Simplify register mode tests.
19 (rs6000_legitimize_address): Likewise. Assume best case offset
20 addressing. Combine ELF and MACHO lo_sum code.
21 (rs6000_mode_dependent_address): Correct offset addressing limits.
22 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
23 Use reg_mode to help rs6000_legitimate_offset_address_p.
24 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
25 gpr load/store when offset too large.
26 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
27 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
28 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
29 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
30 d->m,m->d,d->d. Correct size of gpr load/store.
31 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
32 alternatives.
33 (movti_ppc64): Likewise.
34 (movdi_internal32): Likewise. Also disparage fprs.
35 (movdi_mfpgpr, movdi_internal64): Likewise.
36 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
37 (movtf_softfloat): Order alternatives.
38 (extenddftf2_internal): Use 'm' and 'Y' for store.
39 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
40 (stack_protect_setdi, stack_protect_testdi): Likewise.
41 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
42 (movdf_softfloat64): Likewise.
43 (reload_<mode>_store): Adjust reload_di_store to provide
44 reload_si_store as well.
45 (reload_<mode>_load): Likewise.
46
47 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
48
49 PR target/51244
50 * config/sh/predicates.md (general_movsrc_operand,
51 general_movdst_operand): Reject T_REG.
52 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
53 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
54 Remove T_REG alternatives.
55 (*negtstsi): New insn.
56
57 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
58
59 PR target/53511
60 * config/sh/sh.md (mulsf3_ie): Delete.
61 (mulsf3_i4): Rename to mulsf3_i.
62 (mulsf3): Emit mulsf3_i insn.
63
64 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
65
66 * config/sh/sh.md (addc1, subc1): Delete.
67 (adddi3_compact): Use addc instead of addc1.
68 (subdi3_compact): Use subc instead of subc1.
69
70 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
71
72 * config/i386/i386-protos.c (ix86_lea_outperforms): Remove prototype.
73 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
74 split_cost argument signed.
75 (ix86_avoid_lea_for_add): Cleanup.
76 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
77 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
78 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
79
80 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
81
82 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
83
84 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
85
86 PR target/53961
87 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
88 * config/i386/i386.c (ix86_print_operand_address): Ditto.
89 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
90 addresses. Prevent zero extensions of CONST_INT operands.
91
92 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
93
94 * sbitmap.h (struct int_list): Remove.
95 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
96 Remove prototypes of non-existing function.
97 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
98 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
99 unused defines.
100 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
101 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
102 * basic-block.h: ... here.
103 * sbitmap.c: Do not include basic-block.h.
104 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
105 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
106 * cfganal.c: ... here.
107 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
108 * gcse.c (compute_code_hoist_vbeinout): Likewise.
109 * lcm.c (compute_antinout_edge, compute_available): Likewise.
110 * Makefile.in: Fix sbitmap.o dependencies.
111
112 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
113 Nick Clifton <nickc@redhat.com>
114
115 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
116 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
117 (unused) parameter to void *.
118
119 2012-07-23 Richard Guenther <rguenther@suse.de>
120
121 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
122 instead of referenced vars.
123
124 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
125
126 * coverage.c: Refer to "notes file" instead of "graph file"
127 in all comments. Explain history of bbg prefix.
128 * gcov-io.h: Likewise.
129 * gcov.c: Likewise.
130 (find_source): Likewise in fnotice.
131 (read_graph_file): Likewise.
132 (read_count_file): Likewise.
133 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
134 and "data file" explicitly in the explanation of the files.
135
136 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
137
138 PR tree-optimization/53881
139 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
140 for each label and compare them instead of labels.
141
142 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
143
144 * opts.c (common_handle_option): Do not set
145 flag_value_profile_transformations for -fprofile-generate.
146 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
147 (BB_TO_GCOV_INDEX): Remove.
148 (output_location): Don't use it.
149 (branch_prob): Likewise. Don't fiddle with the index of
150 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
151 (find_spanning_tree):
152 * gcov.c (struct function_info): Document that blocks 0 and 1
153 are the entry resp. exit blocks in gcov, too, like in GCC itself.
154 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
155 blocks identification.
156 (output_lines): Likewise.
157 * value-prof.c (gimple_value_profile_transformations): Do not
158 test flag_value_profile_transformations again.
159 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
160 transformation functions.
161 (gimple_values_to_profile):
162 Don't test flag_value_profile_transformations
163 * tree-profile.c (tree_profiling): Assert that the cgraph is in
164 the CGRAPH_STATE_IPA_SSA state.
165 Do not set, or look at, after_tree_profile.
166 * function.h (struct function): Remove after_tree_profile bit.
167 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
168 * tree-inline.c (initialize_cfun): Don't copy it.
169 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
170 * lto-streamer-in.c (input_struct_function_base): Likewise.
171
172 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
173
174 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
175 (SH_DYNAMIC_SHIFT_COST): Use it.
176 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
177 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
178 Add sanity check for input value. Add function description.
179 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
180 lshrsi3_d): Use TARGET_DYNSHIFT.
181
182 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
183
184 * config/sh/sh.md (negc): Delete expander.
185 (*negc): Rename insn to negc.
186
187 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
188
189 PR target/53961
190 * config/i386/i386.md (*lea): New insn pattern.
191 (*lea_1): Remove.
192 (*lea<mode>_2): Ditto.
193 (*lea_{3,4,5,6}_zext): Ditto.
194 * config/i386/constraints.md (j): Remove address constraint.
195 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
196 of an address.
197 (ix86_print_operand_address): Handle SImode subreg of an address.
198 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
199
200 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
201
202 Emit executable-stack note correctly for CRIS targets.
203 * config/cris/cris.c (cris_file_end): New function.
204 (TARGET_ASM_FILE_END): Define.
205
206 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
207 Maxim Kuvyrkov <maxim@codesourcery.com>
208 NetLogic Microsystems Inc.
209
210 * config/mips/mips.c (mips_issue_rate): Handle XLP.
211 * config/mips/mips.md: Include xlp.md.
212 * config/mips/xlp.md: New file.
213
214 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
215
216 PR gcov-profile/32543
217 * profile.c (branch_prob): Update total_num_edges_instrumented and
218 report the number of edges to instrument.
219
220 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
221
222 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
223
224 2012-07-21 Andrew Pinski <apinski@cavium.com>
225
226 * config/mips/mips.md (*popcountdi2_trunc): New pattern
227 to handle popcount of a truncation.
228
229 2012-07-21 Andrew Pinski <apinski@cavium.com>
230
231 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
232 Add a bool argument.
233 * config/mips/mips.c (mips_block_move_straight): Update call to
234 mips_expand_ext_as_unaligned_load.
235 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
236 Accept DImode dest when the width is that of SImode.
237 * config/mips/mips.md (extv): Update call to
238 mips_expand_ext_as_unaligned_load.
239 (extzv): Likewise.
240
241 2012-07-21 Andrew Pinski <apinski@cavium.com>
242
243 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
244 adjust_address.
245
246 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
247
248 * config/mips/mips.md (define_attr sync_*): Move before "type".
249 (define_attr "type"): New values "atomic" and "syncloop".
250 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
251 Set "type" attribute.
252 * config/mips/generic.md (generic_atomic, generic_syncloop):
253 New reservations.
254 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
255 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
256 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
257 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
258 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
259 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
260 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
261 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
262 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
263
264 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
265
266 * config/sh/sh.md: Group and sort shift related patterns.
267 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
268
269 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
270
271 * config/cris/cris.c (cris_asm_output_ident): Remove unused
272 local variables section_asm_op, size, buf.
273
274 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
275 Steven Bosscher <steven@gcc.gnu.org>
276 * config/rs6000/power4.md (power4-store-update): Fix reservation.
277 (power4-three): Likewise.
278
279 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
280 Greta Yorsh <Greta.Yorsh@arm.com>
281
282 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
283 * config/arm/arm-cores.def (cortex-a15): Use it.
284
285 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
286 Greta Yorsh <Greta.Yorsh@arm.com>
287
288 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
289 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
290 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
291 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
292 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
293 (arm_fa726te_tune): Likewise.
294
295 2012-07-20 Richard Guenther <rguenther@suse.de>
296
297 * tree-dfa.c (collect_dfa_stats): Simplify.
298 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
299 referenced vars.
300 * cfgexpand.c (estimated_stack_frame_size): Walk over local
301 decls instead of referenced vars.
302 * tree-ssa.c (delete_tree_ssa): Simplify.
303 * tree-tailcall.c (find_tail_calls): Walk over local decls
304 instead of referenced vars.
305 (add_virtual_phis): Remove.
306 (tree_optimize_tail_calls_1): Instead mark the virtual operand
307 for renaming.
308
309 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
310
311 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
312 (brief_dump_cfg): Update prototype to take flags argument.
313 (check_bb_profile): Remove prototype.
314 * tracer.c (tracer): Update brief_dump_cfg calls.
315 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
316 Call dump_bb_info before and after the cfghook dump_bb. Terminate
317 the dump with a newline.
318 (dump_flow_info): Do not call check_bb_profile.
319 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
320 (check_bb_profile): Make static. Take indent and flags arguments.
321 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
322 check_bb_profile. Print one edge per line.
323 (brief_dump_cfg): Take a flags argument, and filter out
324 TDF_COMMENT and TDF_DETAILS.
325 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
326 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
327 dump_bb_info here, it is already called from dump_bb. Idem for
328 check_bb_profile.
329 (dump_gimple_bb_footer): Likewise.
330 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
331 avoid broken dumps for statement histograms.
332 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
333 not call pp_flush here, the buffer should be empty.
334 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
335 * sched-vis.c (debug_bb_slim): Likewise.
336 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
337 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
338 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
339 (dump_function_to_file): Do not call check_bb_profile on
340 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
341 Use dump_bb instead of gimple_dump_bb.
342 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
343 * passes.c (execute_function_dump): Always call print_rtl_with_bb
344 for RTL dumps.
345 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
346 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
347 bottom of each basic block.
348
349 2012-07-20 Richard Guenther <rguenther@suse.de>
350
351 PR tree-optimization/54031
352 * tree-ssa-ccp.c (get_value_from_alignment): Use
353 get_pointer_alignment_1.
354
355 2012-07-20 Richard Guenther <rguenther@suse.de>
356
357 * tree-inline.c (add_local_variables): Remove check_var_ann
358 parameter and dead code.
359 (expand_call_inline): Adjust.
360 (tree_function_versioning): Likewise.
361
362 2012-07-20 Jakub Jelinek <jakub@redhat.com>
363
364 PR c++/28656
365 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
366 of just the first one.
367
368 2012-07-20 Richard Guenther <rguenther@suse.de>
369
370 * builtins.c (get_object_alignment_2): Correct offset handling
371 when using type alignment of a MEM_REF kind base.
372
373 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
374
375 PR target/53877
376 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
377 (_lzcnt_u64): Ditto.
378
379 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
380
381 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
382
383 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
384
385 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
386 defining statement is a SSA name that occurs in abnormal PHIs.
387
388 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
389
390 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
391 conversions.
392
393 2012-07-19 Jakub Jelinek <jakub@redhat.com>
394
395 PR rtl-optimization/53942
396 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
397 directly from likely spilled non-fixed hard registers, move them
398 to pseudo first.
399
400 2012-07-19 Steve Ellcey <sellcey@mips.com>
401
402 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
403 MIPS16 mode.
404
405 2012-07-19 Jason Merrill <jason@redhat.com>
406
407 PR debug/53235
408 * dwarf2out.c (get_die_parent): New.
409 (generate_type_signature): Use it.
410
411 2012-07-19 Richard Henderson <rth@redhat.com>
412
413 * config/ia64/vect.md (smulv4hi3_highpart): New.
414 (umulv4hi3_highpart): New.
415 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
416 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
417 (udot_prodv8qi, sdot_prodv8qi): Remove.
418 (sdot_prodv4hi, udot_prodv4hi): Remove.
419 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
420 * config/ia64/ia64-protos.h: Update.
421
422 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
423 vectors larger than UNITS_PER_WORD.
424
425 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
426 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
427 dummy != CODE_FOR_nothing value.
428
429 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
430
431 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
432 * doc/tm.texi: Regenerate.
433 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
434 * config/sh/sh.h (MODE_AFTER): Update.
435 * config/epiphany/epiphany.h (MODE_AFTER): Update.
436
437 2012-07-19 Jakub Jelinek <jakub@redhat.com>
438
439 PR middle-end/54017
440 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
441 (cleanup_tree_cfg_bb): Don't call it.
442 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
443 handling.
444
445 2012-07-19 Christian Bruel <christian.bruel@st.com>
446
447 PR target/54029
448 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
449
450 2012-07-19 Richard Guenther <rguenther@suse.de>
451 Eric Botcazou <ebotcazou@adacore.com>
452
453 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
454 about transition from invariant to known bits.
455 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
456
457 2012-07-19 Richard Guenther <rguenther@suse.de>
458
459 PR tree-optimization/53970
460 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
461
462 2012-07-19 Tristan Gingold <gingold@adacore.com>
463 Richard Henderson <rth@redhat.com>
464
465 * opts.c (finish_options): Handle UI_SEH.
466 * expr.c (build_personality_function): Handle UI_SEH.
467 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
468 * coretypes.h (unwind_info_type): Add UI_SEH.
469 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
470 New function.
471 (i386_pe_seh_init_sections): Likewise.
472 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
473 (TARGET_ASM_INIT_SECTIONS): Define.
474 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
475 (i386_except_unwind_info): New function.
476
477 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
478 Chao-ying Fu <fu@mips.com>
479
480 * config/mips/mips.opt (mmcu): New option.
481 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
482 _mips_mcu when TARGET_MCU.
483 (ASM_SPEC): Pass mcu options to the assembler.
484 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
485
486 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
487
488 * config.gcc (v850-*-rtems*): New target.
489 * config/v850/rtems.h: New.
490 * config/v850/t-rtems: New.
491
492 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
493
494 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
495 of flags controlling optimization; add -ftree-slsr to list of flags
496 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
497 enabled by default at -O2; add -fvect-cost-model to list of flags
498 enabled by default at -O3; document -fhoist-adjacent-loads and
499 -ftree-slsr.
500 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
501 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
502 flag_tree_slsr.
503 * common.opt: Add -ftree-slsr with flag_tree_slsr.
504
505 2012-07-18 Jie Zhang <jzhang918@gmail.com>
506 Julian Brown <julian@codesourcery.com>
507
508 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
509 (arm_size_rtx_costs): Likewise.
510 (neon_valid_immediate): Add a case for double 0.0.
511
512 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
513 Mark Shinwell <shinwell@codesourcery.com>
514 Julian Brown <julian@codesourcery.com>
515
516 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
517 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
518 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
519 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
520 neon_type.
521 * config/arm/arm.md (neon_type): Update comment.
522
523 2012-07-18 Richard Guenther <rguenther@suse.de>
524
525 PR tree-optimization/53970
526 * tree.h (contains_packed_reference): Remove.
527 * expr.c (contains_packed_reference): Likewise.
528 * tree-vect-data-refs.c (not_size_aligned): New function.
529 (vector_alignment_reachable_p): Use it.
530 (vect_supportable_dr_alignment): Likewise.
531
532 2012-07-18 Richard Guenther <rguenther@suse.de>
533
534 * tree.h (get_object_or_type_alignment): Remove.
535 * builtins.c (get_object_alignment_2): New function copied from
536 get_object_alignment_1. Take extra argument to indicate whether
537 we take the address of EXP. Rework to use type alignment information
538 if not, and return whether the result is an approximation or not.
539 (get_object_alignment_1): Wrap around get_object_alignment_2.
540 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
541 we take the address.
542 (get_object_or_type_alignment): Remove.
543 * expr.c (expand_assignment): Call get_object_alignment.
544 (expand_expr_real_1): Likewise.
545
546 2012-07-18 Nick Clifton <nickc@redhat.com>
547
548 * doc/invoke.texi (ARM Options): Document -munaligned-access.
549
550 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
551
552 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
553 expander. Use arith_reg_dest predicate.
554 (rotldi3, rotrdi3): Remove constraints in expander.
555 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
556 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
557 insn_and_split.
558
559 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
560
561 PR target/33135
562 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
563 description.
564 * config/sh/sh.c (sh_option_override): Do not change
565 flag_finite_math_only. Set TARGET_IEEE to complement of
566 flag_finite_math_only.
567 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
568 of mieee and mno-ieee behavior.
569
570 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
571
572 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
573
574 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
575
576 * dumpfile.h (TDF_COMMENT): New define.
577 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
578 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
579 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
580 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
581 Move to new file cfg-flags.h.
582 (enum cfg_edge_flags): New enum, using cfg-flags.h.
583 (EDGE_ALL_FLAGS): Compute value automatically.
584 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
585 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
586 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
587 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
588 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
589 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
590 (BB_ALL_FLAGS): New, compute value automatically.
591 (dump_bb_info): Update prototype.
592 (dump_edge_info): Update prototype.
593 * cfg-flags.h: New file.
594 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
595 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
596 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
597 (debug_bb): Update dump_bb call.
598 (dump_cfg_bb_info): Remove.
599 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
600 Adjust verbosity using TDF_* flags. Check that the basic block flags
601 are within the range of BB_ALL_FLAGS.
602 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
603 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
604 first for consistency with other dump functions.
605 (dump_bb): Update prototype accordingly.
606 * cfghooks.c: Include dumpfile.h.
607 (verify_flow_info): Update dump_edge_info calls.
608 (dump_bb): Take a flags argument and pass it around.
609 Use dump_bb_info to dump common information about a basic block.
610 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
611 (debug_flow_info): Moved here from cfgrtl.c.
612 * profile.c (is_edge_inconsistent): Update dump_bb calls.
613 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
614 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
615 print_rtl_slim_with_bb): Remove prototypes.
616 (dump_insn_slim): Adjust prototype to take a const_rtx.
617 (print_rtl_with_bb): Adjust prototype.
618 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
619 * sched-vis.c (dump_insn_slim): Take a const_rtx.
620 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
621 (print_rtl_slim_with_bb): Remove.
622 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
623 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
624 for that. Prototype here near DEBUG_FUNCTION marker.
625 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
626 Use dump_bb.
627 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
628 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
629 (remove_bb): Update dump_bb call.
630 (gimple_debug_bb): Use dump_bb.
631 (dump_function_to_file): Update gimple_dump_bb call.
632 (print_loops_bb): Likewise.
633 * tree-flow.h (gimple_dump_bb): Update prototype.
634 * gimple-pretty-print.c (dump_bb_header): Rename to
635 dump_gimple_bb_header. Write to a stream instead of a pretty
636 printer. Use dump_bb_info to dump basic block info.
637 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
638 stream instead of a pretty printer. Use dump_bb_info.
639 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
640 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
641 dump_gimple_bb_footer.
642 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
643 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
644 (print_rtl_with_bb): Take a flags argument and pass it around.
645 Use dump_insn_slim if TDF_SLIM.
646 (dump_bb_info): Removed and re-incarnated in cfg.c.
647 (dump_flow_info): Moved to cfghooks.c.
648 (debug_flow_info): Moved to cfghooks.c.
649 * passes.c (execute_function_dump): Unconditionally use
650 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
651 * final.c (dump_basic_block_info): Update dump_edge_info calls.
652 * tree-vrp.c (dump_asserts_for): Likewise.
653 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
654 * tree-if-conv.c (if_convertible_bb_p): Don't look at
655 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
656 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
657 for the same reason.
658 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
659
660 2012-07-17 Richard Guenther <rguenther@suse.de>
661
662 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
663 vars here, use create_tmp_reg where appropriate.
664 (vect_create_addr_base_for_vector_ref): Do not add referenced
665 vars here, use create_tmp_reg where appropriate.
666 (vect_create_data_ref_ptr): Likewise.
667 (vect_create_destination_var): Likewise.
668 (vect_permute_store_chain): Likewise.
669 (vect_permute_load_chain): Likewise.
670 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
671 Likewise.
672 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
673 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
674 (vect_handle_widen_op_by_const): Likewise.
675 * tree-vect-stmts.c (vect_init_vector): Likewise.
676 (vectorizable_load): Likewise.
677
678 2012-07-17 Tom de Vries <tom@codesourcery.com>
679
680 * hwint.c: Fix loop range.
681
682 2012-07-17 Tom de Vries <tom@codesourcery.com>
683
684 * double-int.h (double_int_popcount): New inline function.
685 * hwint.c (popcount_hwi): New function.
686 * hwint.h (popcount_hwi): Declare function. New inline function.
687
688 2012-07-17 Richard Henderson <rth@redhat.com>
689
690 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
691 parameters.
692 (vectorizable_conversion): Update supportable_widening_operation call.
693 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
694 (vect_recog_widen_shift_pattern): Likewise.
695 * tree-vectorizer.h: Update decl.
696
697 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
698 Ulrich Weigand <ulrich.weigand@linaro.org>
699
700 * common/config/arm/arm-common.c (arm_option_optimization_table):
701 Enable -fsched-pressure by default while optimizing.
702 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
703 pressure algorithm by default.
704
705 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
706
707 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
708 (CONST_OK_FOR_I10): Move macro to ...
709 * config/sh/sh.c: ... here.
710 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
711 CONST_OK_FOR_I06.
712
713 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
714
715 * config/sh/sh.md: Delete mov related define_peephole patterns.
716
717 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
718
719 PR c++/53919
720 * doc/install.texi (Installing GCC): Refer to instructions for
721 released versions. Fix hyphenation.
722
723 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
724
725 * config/spu/spu.c (targetm): Move to bottom of file.
726 (spu_attribute_table): Likewise.
727 (spu_option_override, spu_init_builtins, spu_builtin_decl,
728 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
729 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
730 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
731 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
732 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
733 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
734 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
735 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
736 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
737 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
738 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
739 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
740 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
741 spu_encode_section_info, spu_legitimize_address,
742 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
743 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
744 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
745 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
746 spu_section_type_flags, spu_select_section, spu_unique_section,
747 spu_trampoline_init, spu_conditional_register_usage,
748 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
749 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
750 spu_setup_incoming_varargs): Remove prototypes.
751 (spu_legitimize_address): Add "static" to definition.
752
753 2012-07-16 Jakub Jelinek <jakub@redhat.com>
754
755 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
756
757 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
758
759 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
760 before calling gsi_stmt.
761
762 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
763
764 Revert
765 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
766
767 * config/i386/i386.md (stack_protect_set): Disable the pattern
768 for Android since Android libc (bionic) does not provide random
769 value for stack protection guard at gs:0x14. Guard value
770 will be provided from external symbol (default implementation).
771 (stack_protect_set_<mode>): Likewise.
772 (stack_protect_test): Likewise.
773 (stack_protect_test_<mode>): Likewise.
774
775 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
776
777 PR middle-end/53959
778 PR bootstrap/53963
779 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
780 comparison.
781
782 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
783
784 * opts.c (default_option): Add -fvect-cost-model to default options
785 at -O3 and above.
786
787 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
788
789 * graphite-clast-to-gimple.c, graphite-dependences.c,
790 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
791 for pass TODO flags.
792 * Makefile.in: Fix dependencies.
793
794 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
795
796 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
797 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
798
799 * function.c (stack_protect_epilogue): Use expand_call to expand
800 targetm.stack_protect_fail.
801 * stmt.c (expand_expr_stmt): Remove now-unused function.
802 * tree.h (expand_expr_stmt): Remove prototype.
803 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
804 hook must return a CALL_EXPR.
805 * doc/tm.texi: Regenerate.
806
807 * emit-rtl.c (emit_label_before): Do not allow the same label
808 to be emitted twice.
809 (emit_label_after): Likewise.
810 (emit_label): Likewise.
811
812 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
813 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
814 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
815 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
816
817 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
818
819 * system.h (dump_file): Do not define.
820 * tree-pass.h: Include dumpfile.h, which is a new file containing...
821 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
822 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
823 dump_flag_name, dump_file, dump_flags, dump_file_name,
824 get_dump_file_info, struct dump_file_info): all of this, moved to...
825 * dumpfile.h: Here, new file.
826 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
827 (dump_stmt): Remove prototype for C++ specific function.
828 (dump_enumerated_decls): Move prototype from here...
829 * tree-flow.h (dump_enumerated_decls): ... to here.
830 (get_ref_base_and_extent) Move prototype from here ...
831 * tree.h (get_ref_base_and_extent) ... to here.
832 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
833 gimple-pretty-print.h is enough. Do not include tree-dump.h,
834 include timevar.h and dumpfile.h instead.
835 (struct numbered_tree_d, compare_decls_by_uid,
836 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
837 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
838 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
839 Do not include timevar.h.
840 * tree.c: Do not include timevar.h.
841 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
842 timevar.h.
843 (dump_cfg_stats): Use current_function_name.
844 (gimple_cfg2vcg): Likewise.
845 (dump_function_to_file): Likewise.
846 * df-scan.c: Do not include tree-pass.h and timevar.h.
847 Include dumpfile.h.
848 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
849 use print_current_pass.
850 * df-problems.c: Include dumpfile.h.
851 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
852 leads to errors in the code not selected.
853 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
854 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
855 * lcm.c: Include dumpfile.h.
856 Remove obsolete include of insn-attr.h.
857 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
858 missing probability notes.
859 * stmt.c: Include dumpfile.h.
860 (emit_case_decision_tree): Re-enable printing expand details only
861 if TDF_DETAILS.
862 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
863 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
864 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
865 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
866 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
867 function.c, fwprop.c, gcse.c, gimple-fold.c,
868 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
869 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
870 graphite-dependences.c, graphite-interchange.c,
871 graphite-optimize-isl.c, graphite-poly.c,
872 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
873 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
874 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
875 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
876 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
877 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
878 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
879 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
880 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
881 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
882 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
883 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
884 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
885 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
886 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
887 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
888 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
889 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
890 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
891 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
892 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
893 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
894 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
895 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
896 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
897 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
898 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
899 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
900 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
901 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
902 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
903 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
904 tree-ssa-uncprop.c, tree-ssa-uninit.c,
905 tree-switch-conversion.c, tree-tailcall.c,
906 tree-vect-data-refs.c, tree-vect-loop.c,
907 tree-vect-loop-manip.c, tree-vectorizer.c,
908 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
909 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
910 only if needed. If tree-pass.h is included, do not include timevar.h
911 and dumpfile.h. If tree-pass.h is not included but dump_file, or
912 dump_flags, or the TDF_* flags are used, include dumpfile.h.
913 If gimple-pretty-print.h is included, don't include
914 tree-pretty-print.h. Remove assorted unnecessary includes.
915
916 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
917 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
918 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
919 Include dumpfile.h.
920 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
921 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
922 spu/t-spu-elf: Fix dependencies.
923
924 2012-07-16 Dehao Chen <dehao@google.com>
925
926 Revert
927 2012-07-10 Dehao Chen <dehao@google.com>
928
929 * tree.h (phi_arg_d): New field.
930 * tree-flow-inline.h (gimple_phi_arg_block): New function.
931 (gimple_phi_arg_block_from_edge): New function.
932 (gimple_phi_arg_set_block): New function.
933 (gimple_phi_arg_has_block): New function.
934 (redirect_edge_var_map_block): New function.
935 * tree-flow.h (_edge_var_map): New field.
936 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
937 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
938 redirect_edge_var_map_add.
939 * tree-outof-ssa.c (_elim_graph): New field.
940 (insert_partition_copy_on_edge): New parameter.
941 (insert_value_copy_on_edge): New parameter.
942 (insert_rtx_to_part_on_edge): New parameter.
943 (insert_part_to_rtx_on_edge): New parameter.
944 (elim_graph_add_edge): New parameter.
945 (elim_graph_remove_succ_edge): New parameter.
946 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
947 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
948 (new_elim_graph): Add block debug info.
949 (clear_elim_graph): Likewise.
950 (delete_elim_graph): Likewise.
951 (elim_graph_add_node): Likewise.
952 (elim_graph_add_edge): Likewise.
953 (elim_graph_remove_succ_edge): Likewise.
954 (eliminate_build): Likewise.
955 (elim_forward): Likewise.
956 (elim_unvisited_predecessor): Likewise.
957 (elim_backward): Likewise.
958 (elim_create): Likewise.
959 (eliminate_phi): Likewise.
960 (insert_backedge_copies): Likewise.
961 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
962 add_phi_arg.
963 (rewrite_add_phi_arguments): Likewise.
964 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
965 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
966 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
967 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
968 * tree-ssa-loop-manip.c (create_iv): Likewise.
969 (add_exit_phis_edge): Likewise.
970 (split_loop_exit_edge): Likewise.
971 (copy_phi_node_args): Likewise.
972 (tree_transform_and_unroll_loop): Likewise.
973 * value-prof.c (gimple_ic): Likewise.
974 (gimple_stringop_fixed_value): Likewise.
975 * tree-tailcall.c (add_successor_phi_arg): Likewise.
976 (eliminate_tail_call): Likewise.
977 (create_tailcall_accumulator): Likewise.
978 (tree_optimize_tail_calls_1): Likewise.
979 * tree-phinodes.c (add_phi_arg): Likewise.
980 (make_phi_node): Likewise.
981 (resize_phi_node): Likewise.
982 (remove_phi_arg_num): Likewise.
983 * omp-low.c (expand_parallel_call): Likewise.
984 (expand_omp_for_static_chunk): Likewise.
985 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
986 Likewise.
987 (slpeel_update_phi_nodes_for_guard1): Likewise.
988 (slpeel_update_phi_nodes_for_guard2): Likewise.
989 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
990 (set_prologue_iterations): Likewise.
991 (slpeel_tree_peel_loop_to_edge): Likewise.
992 (vect_loop_versioning): Likewise.
993 * tree-parloops.c (create_phi_for_local_result): Likewise.
994 (transform_to_exit_first_loop): Likewise.
995 (create_parallel_loop): Likewise.
996 * ipa-split.c (split_function): Likewise.
997 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
998 (vect_create_epilog_for_reduction): Likewise.
999 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1000 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
1001 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1002 (cond_if_else_store_replacement_1): Likewise.
1003 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1004 (remove_forwarder_block_with_phi): Likewise.
1005 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
1006 * tree-predcom.c (initialize_root_vars): Likewise.
1007 (initialize_root_vars_lm): Likewise.
1008 * sese.c (sese_add_exit_phis_edge): Likewise.
1009 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
1010 * tree-ssa.c (flush_pending_stmts): Likewise.
1011 (redirect_edge_var_map_add): Likewise.
1012 (ssa_redirect_edge): Likewise.
1013 * gimple-streamer-in.c (input_phi): Likewise.
1014 * tree-vect-stmts.c (vectorizable_load): Likewise.
1015 * tree-inline.c (copy_phis_for_bb): Likewise.
1016 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1017 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
1018 * tree-cfg.c (reinstall_phi_args): Likewise.
1019 (gimple_make_forwarder_block): Likewise.
1020 (add_phi_args_after_copy_edge): Likewise.
1021 (gimple_duplicate_sese_tail): Likewise.
1022
1023 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
1024
1025 * config/i386/i386.md (stack_protect_set): Disable the pattern
1026 for Android since Android libc (bionic) does not provide random
1027 value for stack protection guard at gs:0x14. Guard value
1028 will be provided from external symbol (default implementation).
1029 (stack_protect_set_<mode>): Likewise.
1030 (stack_protect_test): Likewise.
1031 (stack_protect_test_<mode>): Likewise.
1032
1033 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
1034
1035 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
1036 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
1037 CONSTANT_P and cris_legitimate_address_p.
1038 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
1039 (cris_preferred_reload_class): Don't return GENERAL_REGS as
1040 preferred to MOF_SRP_REGS.
1041
1042 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
1043 of library functions for basic atomic compare-and-swap.
1044 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
1045 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
1046 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
1047 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
1048 ("atomic_compare_and_swap<mode>")
1049 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
1050 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
1051 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
1052 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
1053 (atomic_op_op_pred): Ditto.
1054 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
1055 reflect the change to include %2 in expansion. All callers changed.
1056 (qm3): New mode_attr.
1057 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
1058 as predicate for operand 2.
1059 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
1060 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
1061 constraint for operand 2.
1062 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
1063 nonmemory_operand for operand 3.
1064 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
1065 exclude memory. Improve emitted sync code for v10 and v32. Use
1066 <qm3> instead of <m> for size designator for cmp.
1067 ("atomic_compare_and_swap<mode>"): Change predicate to
1068 nonmemory_operand for operand 3. Add FIXME.
1069 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
1070 constraints for operand 3 to exclude memory.
1071 ("atomic_fetch_<atomic_op_name><mode>")
1072 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
1073 calls on result of call to need_atomic_barrier_p.
1074
1075 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
1076
1077 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
1078 with mflo and mtlo.
1079 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
1080 and mtlo. Adjust move_type->type mapping.
1081 (may_clobber_hilo): Split mthilo into mthi and mtlo.
1082 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
1083 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
1084 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
1085 instead of mthilo and mfhilo.
1086 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
1087 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
1088 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
1089 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
1090 Use mflo instead of mfhilo.
1091 * config/mips/10000.md (r10k_arith): Split mthilo.
1092 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
1093 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
1094 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
1095 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
1096 mthilo and mfhilo.
1097 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
1098 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
1099 Likewise.
1100 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
1101 * config/mips/5400.md (ir_vr54_hilo): Likewise.
1102 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
1103 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
1104 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
1105 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
1106 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
1107 * config/mips/generic.md (generic_hilo): Likewise.
1108 * config/mips/loongson2ef.md (ls2_alu): Likewise.
1109 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
1110 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
1111 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
1112 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
1113 * config/mips/xlr.md (xlr_hilo): Likewise.
1114
1115 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
1116 Sandra Loosemore <sandra@codesourcery.com>
1117
1118 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
1119
1120 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
1121
1122 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
1123 for TARGET_SSE.
1124
1125 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1126
1127 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
1128
1129 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
1130
1131 PR bootstrap/53955
1132 * config/spu/spu.c (spu_init_cost): Mark static.
1133 (spu_add_stmt_cost): Likewise.
1134 (spu_finish_cost): Likewise.
1135 (spu_destroy_cost_data): Likewise.
1136 * config/i386/i386.c (ix86_init_cost): Mark static.
1137 (ix86_add_stmt_cost): Likewise.
1138 (ix86_finish_cost): Likewise.
1139 (ix86_destroy_cost_data): Likewise.
1140 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
1141 (rs6000_add_stmt_cost): Likewise.
1142 (rs6000_finish_cost): Likewise.
1143 (rs6000_destroy_cost_data): Likewise.
1144
1145 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
1146
1147 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
1148 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
1149 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
1150 ATTRIBUTE_MALLOC.
1151 * alloc-pool.h (pool_alloc): Likewise.
1152
1153 * final.c (final): Do not loop to find max_uid.
1154
1155 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
1156
1157 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
1158 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
1159
1160 2012-07-13 Richard Guenther <rguenther@suse.de>
1161
1162 PR tree-optimization/53907
1163 * tree-ssa-forwprop.c (associate_pointerplus): New function.
1164 (ssa_forward_propagate_and_combine): Call it.
1165
1166 2012-07-13 Richard Guenther <rguenther@suse.de>
1167
1168 PR tree-optimization/53922
1169 * tree-vrp.c (value_inside_range): Change prototype to take
1170 min/max instead of value-range.
1171 (range_includes_zero_p): Likewise. Return the result from
1172 value_inside_range.
1173 (extract_range_from_binary_expr_1): Adjust to handle dont-know
1174 return value from range_includes_zero_p.
1175 (extract_range_from_unary_expr_1): Likewise.
1176 (compare_range_with_value): Likewise.
1177 (vrp_meet_1): Likewise.
1178
1179 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
1180
1181 * doc/tm.texi: Regenerate.
1182 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
1183 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1184 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1185 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1186 * targhooks.c (default_init_cost): New function.
1187 (default_add_stmt_cost): Likewise.
1188 (default_finish_cost): Likewise.
1189 (default_destroy_cost_data): Likewise.
1190 * targhooks.h (default_init_cost): New decl.
1191 (default_add_stmt_cost): Likewise.
1192 (default_finish_cost): Likewise.
1193 (default_destroy_cost_data): Likewise.
1194 * target.def (init_cost): New DEFHOOK.
1195 (add_stmt_cost): Likewise.
1196 (finish_cost): Likewise.
1197 (destroy_cost_data): Likewise.
1198 * target.h (struct _stmt_vec_info): New extern decl.
1199 (stmt_vectype): Likewise.
1200 (stmt_in_inner_loop_p): Likewise.
1201 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
1202 (stmt_vector_for_cost): New VEC/typedef.
1203 (add_stmt_info_to_vec): New function.
1204 (struct _slp_tree): Remove cost.inside_of_loop field.
1205 (struct _slp_instance): Remove cost.inside_of_loop field; add
1206 stmt_cost_vec field.
1207 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
1208 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
1209 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
1210 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
1211 (struct _loop_vec_info): Add target_cost_data field.
1212 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
1213 (struct _bb_vec_info): Add target_cost_data field.
1214 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
1215 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
1216 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
1217 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
1218 (init_cost): New function.
1219 (add_stmt_cost): Likewise.
1220 (finish_cost): Likewise.
1221 (destroy_cost_data): Likewise.
1222 (vect_model_simple_cost): Change parameter list.
1223 (vect_model_store_cost): Likewise.
1224 (vect_model_load_cost): Likewise.
1225 (record_stmt_cost): New extern decl.
1226 (vect_get_load_cost): Change parameter list.
1227 (vect_get_store_cost): Likewise.
1228 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
1229 (destroy_loop_vec_info): Call destroy_cost_data.
1230 (vect_estimate_min_profitable_iters): Remove old calculation of
1231 inside costs; call finish_cost instead.
1232 (vect_model_reduction_cost): Call add_stmt_cost instead of old
1233 inside-costs calculation.
1234 (vect_model_induction_cost): Likewise.
1235 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
1236 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
1237 and vect_get_store_cost to obtain the value to return.
1238 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
1239 vect_get_data_access_cost and store it in the minimum peeling
1240 structure.
1241 (vect_peeling_hash_choose_best_peeling): Change the parameter list
1242 to add a (stmt_vector_for_cost *) output parameter, and set its value.
1243 (vect_enhance_data_refs_alignment): Ignore the new return value from
1244 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
1245 vect_peeling_hash_choose_best_peeling and pass its contents to the
1246 target cost model.
1247 * tree-vect-stmts.c (stmt_vectype): New function.
1248 (stmt_in_inner_loop_p): Likewise.
1249 (record_stmt_cost): Likewise.
1250 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
1251 record_stmt_cost instead of old calculation; don't call
1252 stmt_vinfo_set_inside_of_loop_cost.
1253 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
1254 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
1255 (vect_model_store_cost): Add stmt_cost_vec parameter; call
1256 record_stmt_cost instead of old calculation; add stmt_cost_vec
1257 parameter to vect_get_store_cost call; don't call
1258 stmt_vinfo_set_inside_of_loop_cost.
1259 (vect_get_store_cost): Add stmt_cost_vec parameter; call
1260 record_stmt_cost instead of old calculation.
1261 (vect_model_load_cost): Add stmt_cost_vec parameter; call
1262 record_stmt_cost instead of old calculation; add stmt_cost_vec
1263 parameter to vect_get_load_cost call; don't call
1264 stmt_vinfo_set_inside_of_loop_cost.
1265 (vect_get_load_cost): Add stmt_cost_vec parameter; call
1266 record_stmt_cost instead of old calculation.
1267 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
1268 (vectorizable_conversion): Likewise.
1269 (vectorizable_assignment): Likewise.
1270 (vectorizable_shift): Likewise.
1271 (vectorizable_operation): Likewise.
1272 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
1273 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
1274 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
1275 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
1276 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1277 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1278 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1279 (spu_init_cost): New function.
1280 (spu_add_stmt_cost): Likewise.
1281 (spu_finish_cost): Likewise.
1282 (spu_destroy_cost_data): Likewise.
1283 * config/i386/i386.c (ix86_init_cost): New function.
1284 (ix86_add_stmt_cost): Likewise.
1285 (ix86_finish_cost): Likewise.
1286 (ix86_destroy_cost_data): Likewise.
1287 (TARGET_VECTORIZE_INIT_COST): New macro def.
1288 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1289 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1290 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1291 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
1292 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1293 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1294 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1295 (rs6000_init_cost): New function.
1296 (rs6000_add_stmt_cost): Likewise.
1297 (rs6000_finish_cost): Likewise.
1298 (rs6000_destroy_cost_data): Likewise.
1299 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
1300 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
1301 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
1302 stmt_cost_vec parameter to vect_model_store_cost and
1303 vect_model_simple_cost calls.
1304 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
1305 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
1306 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
1307 calculating cost more than once for loads; remove inside_cost
1308 parameter from recursive vect_build_slp_tree calls; call
1309 record_stmt_cost instead of old calculation.
1310 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
1311 the instance; free it on premature exit; remove inside_cost parameter
1312 from vect_build_slp_tree call; add stmt_cost_vec parameter to
1313 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
1314 (new_bb_vec_info): Call init_cost.
1315 (destroy_bb_vec_info): Call destroy_cost_data.
1316 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
1317 statement recorded with an SLP instance; call finish_cost instead of
1318 the old calculation.
1319 (vect_update_slp_costs_according_to_vf): Record statement costs from
1320 SLP instances, multiplying by the appropriate number of copies; don't
1321 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
1322
1323 2012-07-13 Richard Guenther <rguenther@suse.de>
1324
1325 PR middle-end/53937
1326 * builtins.c (get_pointer_alignment_1): Handle constant
1327 pointers.
1328
1329 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
1330 Steven Bosscher <steven@gcc.gnu.org>
1331 Bernd Schmidt <bernds@codesourcery.com>
1332
1333 PR rtl-optimization/53908
1334 * df-problems.c (can_move_insns_across): When doing
1335 memory-reference book-keeping, handle call insns.
1336
1337 2012-07-13 Richard Guenther <rguenther@suse.de>
1338
1339 * gimple.c (gimple_types_compatible_p_1): Remove redundant
1340 type attribute comparisons.
1341 (gimple_canonical_types_compatible_p): Likewise.
1342
1343 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
1344
1345 PR rtl-optimization/53176
1346 * rtlanal.c (rtx_cost): Adjust default cost for X with a
1347 UNITS_PER_WORD factor for all X according to the size of
1348 its mode, not just for SUBREGs with untieable modes.
1349 Handle SET. Use factor * factor for MULT, DIV, UDIV,
1350 MOD, UMOD.
1351
1352 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
1353
1354 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
1355 QImode and HImode splitters. Use ix86_comparison_operator.
1356 Explicitly match FLAGS_REG.
1357 (DFmode cmove splitter): Explicitly match FLAGS_REG.
1358
1359 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1360
1361 * expr.h (can_move_by_pieces): Move prototype from here ...
1362 * tree.h (can_move_by_pieces): ... to here.
1363 * optabs.h (set_widening_optab_handler): Use XCNEW.
1364 * gimplify.c: Do not include expr.h.
1365
1366 * toplev.c: Do not include dwarf2out.h.
1367 * config/ia64/ia64.c: Likewise.
1368 * config/sparc/sparc.c: Likewise.
1369 * config/sparc/t-sparc (sparc.o): Fix dependencies.
1370
1371 * Makefile.in (toplev.o): Fix dependencies
1372 (c-family/c-gimplify.o): Likewise.
1373 (c-family/c-common.o): Likewise.
1374
1375 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1376
1377 * basic-block.h (struct edge_def): Use basic_block instead of
1378 basic_block_def *.
1379 * cfgloop.h (struct loop_exit, struct loop): Likewise.
1380 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
1381 instead of union tree_node *.
1382 * rtl.h (union rtunion_def, emit_insn_before_noloc,
1383 emit_insn_after_noloc, add_insn_before, add_insn_after,
1384 debug_bb_slim): Likewise.
1385 * tree-inline.h (struct copy_body_data): Likewise.
1386 * sched-rgn.c (dump_region_dot): Likewise.
1387 * gimple.h (struct gimple_statement_base, gimple_set_bb,
1388 gsi_move_to_bb_end): Likewise.
1389 * sched-vis.c (debug_bb_slim): Likewise.
1390 (debug_bb_n_slim): Likewise.
1391 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
1392 (mn10300_block_contains_call):
1393
1394 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
1395
1396 PR target/53859
1397 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
1398 epilogue patterns.
1399
1400 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
1401
1402 * doc/extend.texi (Namespace Association): Alter cautionary text.
1403
1404 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
1405
1406 PR target/53911
1407 * config/sh/sh.md: Remove displacement addresssing related splits.
1408
1409 2012-07-10 Xinliang David Li <davidxl@google.com>
1410
1411 * doc/invoke.texi: New option documented.
1412 * flag-types.h: New enum type.
1413 * gimplify.c (gimplify_bind_expr): Control
1414 clobber generation with new option.
1415 (gimplify_target_expr): Ditto.
1416 * common.opt: New option.
1417
1418 2012-07-10 Julian Brown <julian@codesourcery.com>
1419
1420 * config/arm/arm.md (movsi): Don't split symbol refs here.
1421 (define_split): New.
1422
1423 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
1424
1425 PR bootstrap/53913
1426 * config/m68k/m68k.c (m68k_epilogue_uses): New.
1427 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
1428 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
1429
1430 2012-07-10 Richard Henderson <rth@redhat.com>
1431
1432 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
1433 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
1434 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
1435 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
1436 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
1437 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
1438 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
1439 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
1440 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
1441 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
1442 (bdesc_args): Remove entries to match.
1443 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
1444 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1445 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1446 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
1447 (rs6000_builtin_mul_widen_odd): Remove.
1448 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1449 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1450 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
1451 (spu_builtin_mul_widen_odd): Remove.
1452 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1453 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1454 * doc/tm.texi.in: Don't document the removed hooks.
1455
1456 * tree-vect-stmts.c (supportable_widening_operation): Expand
1457 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
1458
1459 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
1460 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
1461 * optabs.c (can_mult_highpart_p): New.
1462 (expand_mult_highpart): New.
1463 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
1464 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
1465 by pieces if can_mult_highpart_p.
1466 (expand_vector_divmod): Use can_mult_highpart_p and always
1467 generate MULT_HIGHPART_EXPR.
1468 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1469 * tree-vect-stmts.c (vectorizable_operation): Likewise.
1470
1471 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
1472 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
1473 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
1474 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
1475 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
1476 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
1477 * config/spu/spu-builtins.def: Update pattern names to match.
1478
1479 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
1480 from altivec_vmuleub.
1481 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
1482 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
1483 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
1484 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
1485 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
1486 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
1487 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
1488 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
1489
1490 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
1491 avx2_umulv4siv4di3.
1492 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
1493 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
1494 (mulv4si3): Remove XOP test shadowed by SSE4 test.
1495 * config/i386/i386.c (bdesc_args): Update pattern names.
1496 (ix86_expand_sse2_mulvxdi3): Likewise.
1497 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
1498 shadowed by SSE4 test.
1499
1500 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
1501 * cfgexpand.c (expand_debug_expr): Handle them.
1502 * expr.c (expand_expr_real_2): Likewise.
1503 * fold-const.c (fold_binary_loc): Likewise.
1504 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
1505 * optabs.c (optab_for_tree_code): Likewise.
1506 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1507 * tree-inline.c (estimate_operator_cost): Likewise.
1508 * tree-pretty-print.c (dump_generic_node): Likewise.
1509 * tree.c (commutative_tree_code): Likewise.
1510 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1511 Handle type change before looking up optab.
1512 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
1513 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
1514 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
1515 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
1516 * genopinit.c (optabs): Initialize them.
1517 * doc/md.texi: Document them.
1518
1519 2012-07-10 Dehao Chen <dehao@google.com>
1520
1521 * tree.h (phi_arg_d): New field.
1522 * tree-flow-inline.h (gimple_phi_arg_block): New function.
1523 (gimple_phi_arg_block_from_edge): New function.
1524 (gimple_phi_arg_set_block): New function.
1525 (gimple_phi_arg_has_block): New function.
1526 (redirect_edge_var_map_block): New function.
1527 * tree-flow.h (_edge_var_map): New field.
1528 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
1529 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
1530 redirect_edge_var_map_add.
1531 * tree-outof-ssa.c (_elim_graph): New field.
1532 (insert_partition_copy_on_edge): New parameter.
1533 (insert_value_copy_on_edge): New parameter.
1534 (insert_rtx_to_part_on_edge): New parameter.
1535 (insert_part_to_rtx_on_edge): New parameter.
1536 (elim_graph_add_edge): New parameter.
1537 (elim_graph_remove_succ_edge): New parameter.
1538 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
1539 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
1540 (new_elim_graph): Add block debug info.
1541 (clear_elim_graph): Likewise.
1542 (delete_elim_graph): Likewise.
1543 (elim_graph_add_node): Likewise.
1544 (elim_graph_add_edge): Likewise.
1545 (elim_graph_remove_succ_edge): Likewise.
1546 (eliminate_build): Likewise.
1547 (elim_forward): Likewise.
1548 (elim_unvisited_predecessor): Likewise.
1549 (elim_backward): Likewise.
1550 (elim_create): Likewise.
1551 (eliminate_phi): Likewise.
1552 (insert_backedge_copies): Likewise.
1553 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
1554 add_phi_arg.
1555 (rewrite_add_phi_arguments): Likewise.
1556 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
1557 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
1558 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
1559 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
1560 * tree-ssa-loop-manip.c (create_iv): Likewise.
1561 (add_exit_phis_edge): Likewise.
1562 (split_loop_exit_edge): Likewise.
1563 (copy_phi_node_args): Likewise.
1564 (tree_transform_and_unroll_loop): Likewise.
1565 * value-prof.c (gimple_ic): Likewise.
1566 (gimple_stringop_fixed_value): Likewise.
1567 * tree-tailcall.c (add_successor_phi_arg): Likewise.
1568 (eliminate_tail_call): Likewise.
1569 (create_tailcall_accumulator): Likewise.
1570 (tree_optimize_tail_calls_1): Likewise.
1571 * tree-phinodes.c (add_phi_arg): Likewise.
1572 (make_phi_node): Likewise.
1573 (resize_phi_node): Likewise.
1574 (remove_phi_arg_num): Likewise.
1575 * omp-low.c (expand_parallel_call): Likewise.
1576 (expand_omp_for_static_chunk): Likewise.
1577 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
1578 Likewise.
1579 (slpeel_update_phi_nodes_for_guard1): Likewise.
1580 (slpeel_update_phi_nodes_for_guard2): Likewise.
1581 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1582 (set_prologue_iterations): Likewise.
1583 (slpeel_tree_peel_loop_to_edge): Likewise.
1584 (vect_loop_versioning): Likewise.
1585 * tree-parloops.c (create_phi_for_local_result): Likewise.
1586 (transform_to_exit_first_loop): Likewise.
1587 (create_parallel_loop): Likewise.
1588 * ipa-split.c (split_function): Likewise.
1589 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1590 (vect_create_epilog_for_reduction): Likewise.
1591 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1592 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
1593 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1594 (cond_if_else_store_replacement_1): Likewise.
1595 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1596 (remove_forwarder_block_with_phi): Likewise.
1597 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
1598 * tree-predcom.c (initialize_root_vars): Likewise.
1599 (initialize_root_vars_lm): Likewise.
1600 * sese.c (sese_add_exit_phis_edge): Likewise.
1601 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
1602 * tree-ssa.c (flush_pending_stmts): Likewise.
1603 (redirect_edge_var_map_add): Likewise.
1604 (ssa_redirect_edge): Likewise.
1605 * gimple-streamer-in.c (input_phi): Likewise.
1606 * tree-vect-stmts.c (vectorizable_load): Likewise.
1607 * tree-inline.c (copy_phis_for_bb): Likewise.
1608 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1609 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
1610 * tree-cfg.c (reinstall_phi_args): Likewise.
1611 (gimple_make_forwarder_block): Likewise.
1612 (add_phi_args_after_copy_edge): Likewise.
1613 (gimple_duplicate_sese_tail): Likewise.
1614
1615 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
1616
1617 PR target/53886
1618 * config/sh/sh.c (sequence_insn_p): New function.
1619 (find_barrier, sh_insn_length_adjustment): Use it.
1620
1621 2012-07-09 Iain Sandoe <iain@codesourcery.com>
1622
1623 PR target/53283
1624 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
1625 if defined.
1626 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
1627 SUBTARGET_FOLD_BUILTIN.
1628 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
1629 SUBTARGET_FOLD_BUILTIN.
1630
1631 2012-07-09 Iain Sandoe <iain@codesourcery.com>
1632
1633 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
1634 runtime exceptions model setting from here ...
1635 * config/darwin.c (darwin_override_options): ... to here.
1636
1637 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
1638
1639 PR tree-optimization/53887
1640 * tree-cfg.c (group_case_labels_stmt): Make non-static.
1641 * tree-flow.h (group_case_labels_stmt): Add prototype.
1642 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
1643 to pre-process every switch.
1644
1645 2012-07-09 Jason Merrill <jason@redhat.com>
1646
1647 PR c++/53882
1648 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
1649 (type_hash_eq): Likewise.
1650
1651 2012-07-09 Tom de Vries <tom@codesourcery.com>
1652 Richard Guenther <rguenther@suse.de>
1653
1654 * tree-ssa-ccp.c (optimize_unreachable): New function.
1655 (execute_fold_all_builtins): Use optimize_unreachable to optimize
1656 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
1657
1658 2012-07-09 Richard Guenther <rguenther@suse.de>
1659
1660 PR bootstrap/53898
1661 * graphite-optimize-isl.c: Make sure CU is not empty.
1662
1663 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
1664
1665 * gensupport.c (init_rtx_reader_args_cb): Start counting code
1666 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
1667 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
1668 the LAST_INSN_CODE marker at the end.
1669 * genoutput.c (nothing): New static struct data.
1670 (idata): Initialize to &nothing.
1671 (idata_end): Initialize to &nothing.next.
1672 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
1673 (main): Use it.
1674 * genpeep.c (insn_code_number): Remove global variable.
1675 (gen_peephole): Take it as an argument instead.
1676 (main): Take insn_code_number from read_md_rtx.
1677 * optabs.h: Revert r161809:
1678 (optab_handlers): Change type of insn_code back to insn_code.
1679 (optab_handler, widening_optab_handler, set_optab_handler,
1680 set_widening_optab_handler, convert_optab_handler,
1681 set_convert_optab_handler, direct_optab_handler,
1682 set_direct_optab_handler): Remove int casts.
1683 Revert to treating the insn_code field as "insn_code".
1684
1685 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
1686
1687 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
1688 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
1689 * config/sh/sh-protos.h: Declare it.
1690
1691 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1692
1693 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
1694 (dump_fixup_graph): Use current_function_name.
1695 (adjust_cfg_counts): Likewise.
1696 * ira-conflicts.c: Do not include tree.h.
1697 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
1698
1699 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
1700
1701 PR target/51244
1702 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
1703
1704 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1705
1706 * basic-block.h: Re-group most prototypes per file.
1707 (struct edge_list): Remove num_blocks field.
1708 (dump_bb_info): Adjust prototypes.
1709 (dump_reg_info): Move prototype to regs.h.
1710 * function.h: Do not include tree.h.
1711 Include vec.h, vecir.h, input.h and machmode.h to compensate.
1712 (function_name): New prototype.
1713 * gimple.h: Include tree.h to compensate for basic-block.h change.
1714 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
1715 * regs.h (dump_reg_info): Prototype here.
1716 * regset.h: Adjust file reference in comment.
1717 (debug_regset): Remove prototype.
1718 * rtl.h: Include flags.h for flag_var_tracking_assignments.
1719 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
1720 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
1721 (dump_reg_info, dump_flow_info): Remove prototypes.
1722 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
1723 to here, the only user. Make static.
1724 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
1725 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
1726 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
1727 tree-pass.h, cfgloop.h, and tree-flow.h.
1728 Include basic-block.h, the first header I'd expect to be included.
1729 (reg_obstack): Move to df-core.c.
1730 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
1731 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
1732 (redirect_edge_succ_nodup): Move to cfghooks.c.
1733 (dump_regset, debug_regset): Move to df-core.c.
1734 (dump_bb_info): Move to cfgrtl.c.
1735 (dump_reg_info): Move to regstat.c.
1736 (dump_flow_info): Move to cfgrtl.c.
1737 (debug_flow_info): Likewise.
1738 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
1739 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
1740 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
1741 (flow_active_insn_p, forwarder_block_p, can_fallthru,
1742 could_fall_through): Move to cfgrtl.c.
1743 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
1744 (create_edge_list): Do not set edge_list's removed num_blocks.
1745 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
1746 (flow_nodes_print): Remove.
1747 (flow_edge_list_print): Remove.
1748 (inverted_post_order_compute): Use FOR_ALL_BB.
1749 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
1750 Do not call dump_reg_info.
1751 (debug_flow_info): Moved from cfg.c
1752 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
1753 to avoid looking at TDF_* flags from tree-pass.h.
1754 (flow_active_insn_p, forwarder_block_p, can_fallthru,
1755 could_fall_through): Moved from cfganal.c.
1756 (print_rtl_with_bb): Adjust dump_bb_info calls.
1757 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
1758 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
1759 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
1760 * cselib.c: Include tree.h with a FIXME.
1761 * df-core.c (reg_obstack): Moved from cfg.c.
1762 (dump_regset): Likewise.
1763 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
1764 * final.c (compute_alignments): Call dump_reg_info before
1765 dump_flow_info.
1766 * function.c (function_name): New function.
1767 (current_function_name): Use it.
1768 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
1769 dump_flow_info.
1770 * ira-conflicts.c: Include tree.h with a note.
1771 * regstat.c (dump_reg_info): Moved here from cfg.c.
1772 * loop-init.c: Include regs.h instead of hard-reg-set.h.
1773 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
1774 (rtl_loop_done): Likewise.
1775 * mcf.c: Include tree.h before langhooks.h.
1776 * predict.c (maybe_hot_count_p): Assert we have cfun.
1777 (probably_never_executed_bb_p): Likewise.
1778 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
1779 instead of dump_flow_info.
1780 * sched-deps.c: Include tree.h with a FIXME.
1781 (call_may_noreturn_p): Add FIXME note why this function has to
1782 look at function decls instead of function decl flags.
1783 * sched-vis.c: Include tree.h with a FIXME.
1784 (print_rtl_slim): Adjust dump_bb_info uses.
1785 * statistics.c (statistics_fini_pass_2): Use current_function_name
1786 to avoid including tree.h.
1787 (statistics_counter_event): Use function_name for the same reason.
1788 (statistics_histogram_event): Likewise.
1789 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
1790 instead of dump_flow_info.
1791 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
1792 before dump_flow_info.
1793 * doc/cfg.texi: Update CFG documentation.
1794 * Makefile.in (RTL_H): Depend on FLAGS_H.
1795 (GIMPLE_H): Depend on TREE_H.
1796 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
1797 but no longer on TREE_H.
1798 (C_COMMON_H): Depend on TREE_H.
1799 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
1800 sched-deps.o, sched-vis.o): Fixup dependencies.
1801
1802 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1803
1804 * alias.h: Do not include coretypes.h in header files.
1805 * cppbuiltin.h: Likewise.
1806 * double-int.h: Likewise.
1807 * gimple-fold.h: Likewise.
1808 * flags.h: Likewise.
1809 * tree-ssa-alias.h: Likewise.
1810 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
1811 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
1812 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
1813 (TREE_H): Likewise.
1814 (ALIAS_H): Do not depend on coretypes.h.
1815 (FLAGS_H): Likewise.
1816 (realmpfr.o): Depend on coretypes.h.
1817
1818 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1819
1820 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
1821 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
1822
1823 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
1824
1825 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
1826 (TARGET_FPA): Delete definition.
1827 (TARGET_MAVERICK): Likewise.
1828 (TARGET_FPA_EMU2): Likewise.
1829 (arm_fp_model): Remove FPA and Maverick models.
1830 (arm_arch_cirrus): Delete declaration.
1831 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
1832 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
1833 (CALL_USED_REGISTERS): Likewise.
1834 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
1835 (FIRST_VFP_REGNUM): Renumbered.
1836 (D7_VFP_REGNUM): Chain definition.
1837 (LAST_LO_VFP_REGNUM): Likewise.
1838 (FIRST_HI_VFP_REGNUM): Likewise.
1839 (LAST_HI_VFP_REGNUM): Likewise.
1840 (FIRST_IWMMXT_GR_REGNUM): Likewise.
1841 (LAST_IWMMXT_GR_REGNUM): Likewise.
1842 (FIRST_IWMMXT_REGNUM): Likewise.
1843 (LAST_IWMMXT_REGNUM): Likewise.
1844 (FRAME_POINTER_REGNUM): Renumbered.
1845 (ARG_POINTER_REGNUM): Renumbered.
1846 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
1847 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
1848 (HARD_REGNO_REGNUM): Remove FPA support.
1849 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
1850 (reg_class): Likewise.
1851 (REG_CLASS_NAMES): Likewise.
1852 (REG_CLASS_CONTENTS): Likewise.
1853 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
1854 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
1855 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
1856 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
1857 Reorganize. Use AAPCS preferred names.
1858 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
1859 comments.
1860 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
1861 * arm.c (FL_CIRRUS): Delete definition.
1862 (arm_arch_cirrus): Delete variable.
1863 (arm_float_words_big_endian): Delete function.
1864 (cirrus_memory_offset): Delete function.
1865 (output_mov_long_double_fpa_from_arm): Delete function.
1866 (output_mov_long_double_arm_from_fpa): Delete function.
1867 (output_mov_double_fpa_from_arm): Delete function.
1868 (output_mov_double_arm_from_fpa): Delete function.
1869 (emit_sfm): Delete function.
1870 (maybe_get_arm_condition_code): Update comment.
1871 (arm_file_start): Always use softvfp for softfloat systems.
1872 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
1873 (arm_option_override): Remove FPA and Maverick support. Always
1874 default to vfp as the fallback FPU format.
1875 (use_return_insn): Remove FPA support.
1876 (arm_get_frame_offsets): Likewise.
1877 (arm_save_coproc_regs): Likewise.
1878 (arm_canonicalize_comparison): Remove Maverick support.
1879 (arm_select_cc_mode): Likewise.
1880 (arm_gen_compare_reg): Likewise.
1881 (arm_print_operand): Likewise.
1882 (arm_libcall_value_1): Remove FPA and Maverick support.
1883 (arm_function_value_regno_p): Likewise.
1884 (arm_apply_result_size): Likewise.
1885 (arm_legitimate_index_p): Likewise.
1886 (thumb2_legitimate_index_p): Likewise.
1887 (legitimize_reload_address): Likewise.
1888 (arm_register_move_cost): Likewise.
1889 (arm_hard_regno_mode_ok): Likewise.
1890 (arm_regno_class): Likewise.
1891 (arm_dbx_register_number): Likewise.
1892 (arm_emit_unwind_sequence): Likewise.
1893 (arm_conditional_register_usage): Likewise.
1894 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
1895 (cirrus_memory_offset): Likewise.
1896 (output_move_long_double_fpa_from_arm): Likewise.
1897 (output_move_long_double_arm_from_fpa): Likewise.
1898 (output_move_double_fpa_from_arm): Likewise.
1899 (output_move_double_arm_from_fpa): Likewise.
1900 (arm_float_words_big_endian): Likewise.
1901 * arm.md (CC_REGNUM): Renumbered.
1902 (VFPCC_REGNUM): Moved here. Renumbered.
1903 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
1904 (attr fpu): Remove FPA and Maverick support.
1905 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
1906 * arm-cores.def (ep9312): Remove Maverick support.
1907 * arm-arches.def (ep9312): Delete architecture.
1908 * arm-tables.opt: Regenerated.
1909
1910 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
1911
1912 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
1913
1914 PR tree-optimization/53881
1915 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
1916 comparing labels to establish uniqueness of a switch case target,
1917 use the CFG instead.
1918
1919 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1920
1921 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
1922 due to negative shift amount.
1923
1924 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
1925
1926 Fix configure test for "stack protector support in target C library".
1927 * configure.ac (test_prefix, test_exec_prefix): Move setting from
1928 inside sysroot handling to before and outside it.
1929 * configure: Regenerate.
1930
1931 2012-07-06 Kai Tietz <ktietz@redhat.com>
1932
1933 PR bootstrap/52947
1934 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
1935 as "/mingw/include".
1936
1937 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
1938
1939 PR debug/53820
1940 * var-tracking.c (vt_add_function_parameter): Convert
1941 internal_arg_pointer into arg_pointer-based address even
1942 without DRAP.
1943
1944 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
1945
1946 PR rtl-optimization/53827
1947 PR debug/53671
1948 PR debug/49888
1949 * alias.c (memrefs_conflict_p): Adjust offset and size by the
1950 same amount for alignment ANDs.
1951
1952 2012-07-06 Tom de Vries <tom@codesourcery.com>
1953
1954 PR tree-optimization/51879
1955 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
1956 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
1957 (visit_use): Also call visit_reference_op_call for calls with a vdef.
1958
1959 2012-07-06 Tom de Vries <tom@codesourcery.com>
1960
1961 PR tree-optimization/52009
1962 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
1963 value numbers of gimple_vdef.
1964 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
1965 prototype.
1966 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
1967 (vn_reference_insert): Add and handle vdef parameter.
1968 (visit_reference_op_load): Add argument to vn_reference_insert call.
1969 (visit_reference_op_store): Find value number of vdef of store. Insert
1970 value number of vdef of store.
1971
1972 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1973
1974 * config/i386/i386.md (simple lea to add peephole): Also transform
1975 RTXes where second PLUS operand matches output.
1976
1977 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1978
1979 * config/i386/i386.c (construct_plt_address): Make static.
1980 * config/i386/i386-protos.h (construct_plt_address): Remove.
1981
1982 2012-07-06 Nick Clifton <nickc@redhat.com>
1983
1984 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
1985 default_encode_section_info.
1986
1987 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1988
1989 PR target/53853
1990 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
1991 emit PIC sequence for fnaddr symbol reference in advance.
1992
1993 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
1994
1995 Revert
1996 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
1997
1998 * dwarf2out.c (function_possibly_abstracted_p): New static function.
1999 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
2000 cgraph_function_possibly_inlined_p.
2001 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
2002 (process_scope_var): Do not emit concrete instances of abstracted
2003 nested functions from here.
2004 (gen_decl_die): Emit the abstract instance if the function is possibly
2005 abstracted and not only possibly inlined.
2006 (dwarf2out_finish): Find the first non-abstract parent instance and
2007 attach concrete instances on the limbo list to it.
2008
2009 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2010 Julian Brown <julian@codesourcery.com>
2011
2012 PR target/48941
2013 PR target/51980
2014 * config/arm/neon-gen.ml (return_by_ptr): Delete.
2015 (print_function): Handle empty strings.
2016 (return): Delete use of return_by_ptr.
2017 (mask_shape_for_shuffle): New function.
2018 (mask_elems): Likewise.
2019 (shuffle_fn): Likewise.
2020 (params): Simplify and remove use of return_by_ptr.
2021 (get_shuffle): New function.
2022 (print_variant): Update.
2023 * config/arm/neon.ml (rev_elems): New function.
2024 (permute_range): Likewise.
2025 (zip_range): Likewise.
2026 (uzip_range): Likewise.
2027 (trn_range): Likewise.
2028 (zip_elems): Likewise.
2029 (uzip_elems): Likewise.
2030 (trn_elems): Likewise.
2031 (features): New enumeration Use_shuffle. Delete ReturnPtr.
2032 (pf_su_8_16): New.
2033 (suf_32): New.
2034 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
2035 * config/arm/arm_neon.h: Regenerate.
2036
2037 2012-07-05 Richard Guenther <rguenther@suse.de>
2038
2039 * tree-pretty-print.c (dump_generic_node): Properly test
2040 the result of exact_log2.
2041
2042 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2043
2044 * config/s390/s390-protos.h (s390_expand_movmem)
2045 (s390_expand_cmpmem): Add return value.
2046 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
2047 Return FALSE to use the library function in some cases.
2048 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
2049 helper functions.
2050
2051 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2052
2053 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
2054
2055 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
2056
2057 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
2058 * stmt.c (dump_case_nodes): New.
2059 (expand_case): Split out code generation parts into new functions.
2060 (expand_switch_as_decision_tree_p): Split out from expand_case.
2061 (emit_case_decision_tree): Likewise.
2062 (emit_case_dispatch_table): Likewise.
2063
2064 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2065
2066 * config/arm/iterators.md (SDF): New mode iterator.
2067 (V_if_elem): Add support for SF and DF modes.
2068 (V_reg): Likewise.
2069 (F_constraint): New mode iterator attribute.
2070 (F_fma_type): Likewise.
2071 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
2072 (*fmsub<SDF:mode>4): Likewise.
2073 (*fmnsub<SDF:mode>4): Likewise.
2074 (*fmnadd<SDF:mode>4): Likewise.
2075
2076 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
2077
2078 * expmed.c (expand_mult): Initialize coeff and is_neg.
2079
2080 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
2081
2082 * config/sh/predicates.md (zero_extend_operand): New predicate.
2083 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
2084 zero_extend_operand predicate.
2085 (zero_extendqisi2): Likewise.
2086
2087 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
2088
2089 PR middle-end/53321
2090 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
2091 to not call cgraph_propagate_frequency if something was changed.
2092
2093 2012-07-04 Richard Guenther <rguenther@suse.de>
2094
2095 PR middle-end/53433
2096 * gimple-fold.c (get_base_constructor): Do not return an
2097 error_mark_node DECL_INITIAL.
2098
2099 2012-07-04 Richard Guenther <rguenther@suse.de>
2100
2101 PR tree-optimization/53844
2102 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
2103 the loop virtual PHI.
2104
2105 2012-07-04 Richard Guenther <rguenther@suse.de>
2106
2107 PR tree-optimization/53849
2108 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
2109 for duplicated locals. Use add_referenced_var_1 to avoid
2110 pushing/popping cfun.
2111
2112 2012-07-04 Kai Tietz <ktietz@redhat.com>
2113
2114 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
2115 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
2116 prototype.
2117 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
2118 as i386_pe_reloc_rw_mask.
2119
2120 2012-07-04 Richard Guenther <rguenther@suse.de>
2121
2122 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
2123 as in free_lang_data_in_type.
2124
2125 2012-07-04 Tobias Grosser <tobias@grosser.es>
2126 Michael Matz <matz@suse.de>
2127
2128 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
2129 (graphite-optimize-isl.o): Add dependencies.
2130 * common.opt (floop-nest-optimize): New flag.
2131 * doc/invoke.texi (floop-nest-optimize): Document.
2132 * graphite-dependences.c (compute_deps): Export.
2133 * graphite-poly.h (compute_deps): Declare.
2134 * graphite-optimize-isl.c: New file.
2135 * graphite-poly.c (apply_poly_transforms): Run the loop
2136 nest optimizer.
2137 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
2138 if -floop-nest-optimize is enabled.
2139
2140 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
2141
2142 * config/sh/predicates.md (logical_and_operand): New predicate.
2143 * config/sh/constraints.md (Jmb, Jmw): New constraints.
2144 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
2145 of 0xFFFF constant. Use logical_and_operand predicate and
2146 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
2147 (*andsi3_compact): Make it an insn_and_split. Use
2148 logical_and_operand predicate. Add Jmb,Jmw alternatives.
2149
2150 2012-07-03 Jason Merrill <jason@redhat.com>
2151
2152 PR c++/53826
2153 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
2154
2155 2012-07-03 Nick Clifton <nickc@redhat.com>
2156
2157 * config/mep/mep.c (mep_reorg_regmove): Use
2158 next_nonnote_non_debug_insn to advance to the next insn. Do not
2159 expect delete_insn to return an rtx.
2160
2161 2012-07-03 Richard Guenther <rguenther@suse.de>
2162
2163 * doc/install.texi (CLooG): Clarify how CLooG needs to be
2164 configured and that it needs to be built against ISL 0.10.
2165
2166 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2167
2168 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
2169 code model string in the error message.
2170
2171 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2172
2173 PR target/53811
2174 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
2175 sibcall_insn_operand. Move it to a temporary register if not.
2176
2177 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
2178
2179 PR target/28896
2180 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
2181 if !TARGET_68020.
2182
2183 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2184
2185 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
2186
2187 2012-07-03 Roland McGrath <mcgrathr@google.com>
2188
2189 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
2190 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
2191 * configure: Regenerated.
2192 * config/i386/i386.md (simple_return_internal_long): Use %;
2193 (ctz<mode>2): Likewise.
2194 (*pause): Likewise.
2195
2196 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
2197
2198 PR target/51244
2199 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
2200 predicates.
2201 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
2202 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
2203 gen_branch_true and gen_branch_false.
2204 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
2205 gen_branch_false.
2206 (branch_true, branch_false): Use t_reg_operand predicate.
2207 (*branch_true, *branch_false): Delete.
2208 (movt): Use t_reg_operand predicate.
2209 (*negnegt): Use negt_reg_operand predicate and fold little and big
2210 endian variants.
2211 (*movtt): Use t_reg_operand and fold little and big endian variants.
2212 (*movt_qi): Delete.
2213
2214 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
2215
2216 * stmt.c (emit_case_bit_tests): Remove.
2217 (expand_case): Remove expand_switch_using_bit_tests_p code.
2218 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
2219 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
2220 (lshift_cheap_p): Likewise.
2221 (expand_switch_using_bit_tests_p): Likewise.
2222 (struct case_bit_test): Likewise.
2223 (case_bit_test_cmp): Likewise.
2224 (emit_case_bit_tests): New implementation for GIMPLE.
2225 (gen_inbound_check): Do not release post-dominator info here.
2226 (process_switch): Reorder code. Expand as bit tests if it
2227 looks like a win.
2228 (do_switchconv): Release post-dominator info here if something changed.
2229 (struct gimple_opt_pass): Verify more.
2230 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
2231
2232 2012-07-02 Martin Jambor <mjambor@suse.cz>
2233
2234 PR middle-end/38474
2235 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
2236 dynamic type change check.
2237
2238 2012-07-02 Richard Guenther <rguenther@suse.de>
2239 Michael Matz <matz@suse.de>
2240 Tobias Grosser <tobias@grosser.es>
2241 Sebastian Pop <sebpop@gmail.com>
2242
2243 * Makefile.in: Remove PPL flags in favor of ISL ones.
2244 (BACKENDLIBS): Remove PPL libs.
2245 (INCLUDES): Remove PPL includes in favor of ISL ones.
2246 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
2247 graphite-cloog-compat.h dependencies.
2248 (graphite-dependences.o): Likewise.
2249 (graphite-poly.o): Likewise.
2250 * configure.ac: Declare ISL vars instead of PPL ones.
2251 * configure: Regenerated.
2252 * doc/install.texi: Replace PPL requirement documentation with ISL one.
2253 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
2254 * graphite-clast-to-gimple.c: Likewise.
2255 * graphite-dependences.c: Likewise.
2256 * graphite-interchange.c: Likewise.
2257 * graphite-poly.h: Likewise.
2258 * graphite-poly.c: Likewise.
2259 * graphite-sese-to-poly.c: Likewise.
2260 * graphite.c: Likewise.
2261 * graphite-scop-detection.c: Re-arrange includes.
2262 * graphite-cloog-util.c: Remove.
2263 * graphite-cloog-util.h: Likewise.
2264 * graphite-ppl.h: Likewise.
2265 * graphite-ppl.c: Likewise.
2266 * graphite-dependences.h: Likewise.
2267
2268 2012-07-02 Richard Guenther <rguenther@suse.de>
2269
2270 Merge from graphite branch
2271 2011-07-21 Tobias Grosser <tobias@grosser.es>
2272
2273 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
2274 Remove graphite-cloog-util.h.
2275 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
2276 build_iv_mapping, translate_clast_user, translate_clast,
2277 free_scattering, initialize_cloog_names, build_cloog_prog,
2278 create_params_index): Do not use old compatibility functions.
2279 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
2280 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
2281 compatibility functions.
2282 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
2283 cloog.
2284 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
2285 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
2286 cloog_finalize().
2287 * graphite-cloog-compat.h: Remove.
2288
2289 2011-08-09 Tobias Grosser <tobias@grosser.es>
2290
2291 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
2292 of the string, no just a reference.
2293 (clast_name_index): Add a new field, that specifies if we need to free
2294 the name.
2295 (free_clast_name_index): If necessary, free the name string.
2296 (clast_name_index_elt_info): Calculate the hash based on the string
2297 content, not the memory location it is stored in.
2298 (clast_name_to_level): Specify that we do not need to free the name.
2299 (clast_name_to_index): Dito.
2300 (clast_name_to_lb_ub): Dito.
2301 (eq_clast_name_indexes): Compare the strings, not their base pointers.
2302 (free_scattering): Removed.
2303 (initialize_cloog_names): Renamed to add_names_to_union_domain().
2304 (add_names_to_union_domain): Changed to work on a union_domain,
2305 instead of a CloogNames structure.
2306 (build_cloog_prog): Removed.
2307 (build_cloog_union_domain): New.
2308 (generate_cloog_input): New.
2309 (scop_to_clast): Use CloogInput instead of CloogProgram.
2310 (print_generated_program): Adapt to new scop_to_clast() and do not
2311 print the CloogProgram any more.
2312 (create_params_index): Removed, functionality integrated in
2313 add_names_to_union_domain().
2314 (gloog): Adapt to new scop_to_clast().
2315 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
2316
2317 2012-01-11 Tobias Grosser <tobias@grosser.es>
2318
2319 * graphite-clast-to-gimple.c (clast_name_to_index,
2320 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
2321 (clast_to_gcc_expression): Add clast_expr_name as a new
2322 case. Do not assume a clast_expr_term points always to a
2323 clast_expr_name.
2324 (type_for_clast_term): Do not assume a clast_expr_term points always to
2325 a clast_expr_name.
2326 (type_for_clast_name): New.
2327 (type_for_clast_expr): Add clast_expr_name as a new case.
2328
2329 2011-08-03 Sebastian Pop <sebpop@gmail.com>
2330
2331 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
2332 new_Cloog_Scattering_from_ppl_Polyhedron,
2333 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
2334
2335 2012-07-02 Jakub Jelinek <jakub@redhat.com>
2336
2337 PR tree-optimization/53645
2338 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
2339 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
2340
2341 2012-07-01 Wei Guozhi <carrot@google.com>
2342
2343 PR target/53447
2344 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
2345 * config/arm/arm.c (const_ok_for_dimode_op): New function.
2346 * config/arm/constraints.md (Dd): New constraint.
2347 * config/arm/predicates.md (arm_adddi_operand): New predicate.
2348 * config/arm/arm.md (adddi3): Extend it to handle constants.
2349 (arm_adddi3): Likewise.
2350 (addsi3_carryin_<optab>): Extend it to handle sbc case.
2351 (addsi3_carryin_alt2_<optab>): Likewise.
2352 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
2353
2354 2012-06-30 Nathan Sidwell <nathan@acm.org>
2355
2356 * coverage.c (bbg_file_stamp): New.
2357 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
2358 (build_info): Write bbg_file_stamp.
2359 (coverage_init): Initialize bbg_file_stamp. Read counts file
2360 before writing graph header.
2361 (coverage_finish): Don't unlink the data file if we can generate a
2362 unique file stamp.
2363 * tree.h (crc32_unsigned): Declare.
2364 * tree.c (crc32_unsigned_bits): New, broken out of ...
2365 (crc32_byte): ... here. Use it.
2366 (crc32_unsigned): New.
2367
2368 2012-06-29 Cary Coutant <ccoutant@google.com>
2369
2370 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
2371 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
2372 (gen_variable_die): Likewise.
2373 (gen_namespace_die): Likewise.
2374
2375 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
2376
2377 * tree-eh.c (lower_try_finally_switch): Really put the location of the
2378 last statement of the finally block onto the switch.
2379
2380 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
2381
2382 PR target/53539
2383 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
2384 TARGET_LP64.
2385
2386 2012-06-29 Sterling Augustine <saugustine@google.com>
2387
2388 * dwarf2out.c (add_pubname): Add comment.
2389 (add_pubtype): Fix indentation.
2390 (gen_enumeration_type_die): Likewise.
2391
2392 2012-06-29 Jakub Jelinek <jakub@redhat.com>
2393
2394 * tree-vect-generic.c (expand_vector_divmod): For even/odd
2395 widening multiply, put even always as first argument to VEC_PERM_EXPR.
2396
2397 2012-06-29 Richard Henderson <rth@redhat.com>
2398
2399 * tree-vect-generic.c: Include target.h.
2400 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
2401 * Makefile.in (tree-vect-generic.o): Update.
2402
2403 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2404
2405 * configure.ac: Remove special gtfiles case for C.
2406 * configure: Regenerate.
2407 * Makefile.in: Remove C front-end hooks and build hooks that
2408 will be picked up from c/Make-lang.in now.
2409 Add tree-mudflap to C_COMMON_OBJS.
2410 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
2411 * config/vms/vms.c: Look for c-tree.h in c/.
2412 * doc/gty.texi: Remove reference to c-config-lang.in.
2413 * doc/sourcebuild.texi: Document the c/ subdirectory.
2414
2415 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2416
2417 * system.h (CASE_USE_BIT_TESTS): Poison.
2418 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
2419 (expand_switch_using_bit_tests_p): ...here.
2420 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
2421 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
2422
2423 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2424
2425 * system.h (IFCVT_EXTRA_FIELDS): Poison.
2426 (IFCVT_INIT_EXTRA_FIELDS): Poison.
2427 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
2428 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
2429 IFCVT_INIT_EXTRA_FIELDS.
2430 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
2431 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
2432 IFCVT_MACHDEP_INIT.
2433 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
2434 frv_ifcvt_machdep_init.
2435 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
2436 Remove documentation.
2437 (IFCVT_MACHDEP_INIT): Document.
2438 * doc/tm.texi: Regenerate.
2439
2440 2012-06-29 Nick Clifton <nickc@redhat.com>
2441
2442 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
2443
2444 2012-06-29 Jakub Jelinek <jakub@redhat.com>
2445
2446 * tree-vect-stmts.c (vectorizable_operation): Check both
2447 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
2448 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
2449
2450 2012-06-28 Richard Henderson <rth@redhat.com>
2451
2452 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
2453
2454 2012-06-28 Jakub Jelinek <jakub@redhat.com>
2455
2456 PR tree-optimization/51581
2457 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
2458 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
2459 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
2460 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
2461 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
2462 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
2463
2464 PR tree-optimization/53645
2465 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
2466 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
2467 if possible.
2468
2469 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
2470
2471 PR 53595
2472 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
2473 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
2474 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
2475 avr_hard_regno_call_part_clobbered.
2476
2477 2012-06-28 Richard Guenther <rguenther@suse.de>
2478
2479 PR middle-end/53790
2480 * expr.c (expand_expr_real_1): Verify if the type is complete
2481 before inspecting its size.
2482
2483 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2484
2485 * doc/include/gpl.texi: Remove.
2486 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
2487
2488 2012-06-28 Jakub Jelinek <jakub@redhat.com>
2489
2490 PR tree-optimization/53645
2491 * tree-vect-generic.c (add_rshift): New function.
2492 (expand_vector_divmod): New function.
2493 (expand_vector_operation): Use it for vector integer
2494 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
2495 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
2496 unused lguup variable with dummy_int.
2497
2498 2012-06-28 OLivier Hainque <hainque@adacore.com>
2499
2500 * expr.c (convert_move): Latch mem integer inputs into a
2501 register before expanding a multi-instructions sequence.
2502
2503 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
2504 Uros Bizjak <ubizjak@gmail.com>
2505 Jakub Jelinek <jakub@redhat.com>
2506
2507 PR debug/53706
2508 PR debug/47624
2509 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
2510 (vt_finalize): ... here instead, if needed.
2511
2512 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
2513
2514 PR debug/53740
2515 PR debug/52983
2516 PR debug/48866
2517 * dce.c (word_dce_process_block): Check whether inserting debug
2518 temps are needed even for needed insns.
2519 (dce_process_block): Likewise.
2520 * df-problems.c (dead_debug_add): Add comment about multi-regs.
2521 (dead_debug_insert_temp): Likewise. Don't subreg when we're
2522 setting fewer regs than a multi-reg requires.
2523
2524 2012-06-27 Richard Henderson <rth@redhat.com>
2525
2526 * config/alpha/alpha.c (alpha_dimode_u): New.
2527 (alpha_init_builtins): Initialize it, and use it.
2528 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
2529 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
2530 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
2531 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
2532 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
2533 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
2534 (alpha_fold_builtin_ctpop): Likewise.
2535 (alpha_fold_builtin_umulh): Remove.
2536 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
2537 typo in MAX_ARGS check.
2538
2539 2012-06-27 Richard Henderson <rth@redhat.com>
2540
2541 * tree.def (MULT_HIGHPART_EXPR): New.
2542 * cfgexpand.c (expand_debug_expr): Ignore it.
2543 * expr.c (expand_expr_real_2): Handle it.
2544 * fold-const.c (int_const_binop_1): Likewise.
2545 * optabs.c (optab_for_tree_code): Likewise.
2546 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
2547 * tree-inline.c (estimate_operator_cost): Likewise.
2548 * tree-pretty-print.c (dump_generic_node): Likewise.
2549 (op_code_prio, op_symbol_code): Likewise.
2550 * tree.c (commutative_tree_code): Likewise. Also handle
2551 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
2552
2553 2012-06-27 Richard Henderson <rth@redhat.com>
2554
2555 PR target/53749
2556 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
2557 in 2012-06-23 change. Adjust two other DImode tests as well.
2558
2559 2012-06-27 Nick Clifton <nickc@redhat.com>
2560
2561 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
2562 input operand.
2563
2564 2012-06-27 Richard Guenther <rguenther@suse.de>
2565
2566 PR middle-end/53676
2567 * tree-chrec.c (chrec_convert_1): Represent truncation to
2568 a type with undefined overflow as truncation to an unsigned
2569 type converted to the type with undefined overflow.
2570 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
2571 the scalar evolution of a truncated widened operation avoid
2572 looking at the non-existing evolution of the widened operation
2573 result.
2574
2575 2012-06-27 Richard Guenther <rguenther@suse.de>
2576
2577 PR tree-optimization/53774
2578 * tree-ssa-reassoc.c (get_rank): All default defs have
2579 precomputed rank.
2580 (init_reassoc): Precompute rank for all SSA default defs.
2581
2582 2012-06-27 Nick Clifton <nickc@redhat.com>
2583
2584 * config/rx/rx.md (simple_return): Use the simple_return rtx.
2585
2586 2012-06-26 Richard Henderson <rth@redhat.com>
2587
2588 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
2589 and don't fall thru from standard_80387_constant_p to the memory
2590 fallback.
2591
2592 2012-06-26 Richard Henderson <rth@redhat.com>
2593
2594 * config/i386/i386.c (bdesc_args): Update. Change
2595 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
2596 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
2597 (ix86_builtin_mul_widen_even): Use it.
2598 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
2599 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
2600 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
2601 for all SSE2.
2602 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
2603 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
2604 (vec_widen_smult_even_v4si): New.
2605
2606 2012-06-26 Richard Henderson <rth@redhat.com>
2607
2608 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
2609 to expander; move guts to ...
2610 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
2611 highparts before shifting up.
2612 * config/i386/i386-protos.h: Update.
2613
2614 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2615
2616 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
2617 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
2618 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
2619
2620 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
2621
2622 * var-tracking.c (vt_add_function_parameter): Use a preserved
2623 VALUE for the MEM address of an incoming parameter.
2624
2625 2012-06-26 Sterling Augustine <saugustine@google.com>
2626
2627 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
2628 (prune_unused_types): Likewise.
2629
2630 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2631
2632 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2633 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
2634 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2635 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
2636 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
2637 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
2638 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
2639 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
2640 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
2641 documentation.
2642 * doc/tm.texi: Regenerate.
2643 * doc/cpp.texi: Make example for #error generic.
2644 * config/frv/frv.h: Fix example text to match tm.texi.
2645
2646 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
2647
2648 * tree-pass.h (pass_strength_reduction): New decl.
2649 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
2650 (finalize_costs): Likewise.
2651 * timevar.def (TV_TREE_SLSR): New timevar.
2652 * gimple-ssa-strength-reduction.c: New.
2653 * tree-flow.h (initialize_costs): New decl.
2654 (finalize_costs): Likewise.
2655 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
2656 * passes.c (init_optimization_passes): Add pass_strength_reduction.
2657
2658 2012-06-26 Matt Turner <mattst88@gmail.com>
2659
2660 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
2661 (__builtin_arm_tinsrh): Likewise.
2662 (__builtin_arm_tinsrw): Likewise.
2663 (__builtin_arm_wsadb): Add missing v2si parameter.
2664 (__builtin_arm_wsadh): Likewise.
2665 (__builtin_arm_getwcx): Delete.
2666 (__builtin_arm_setwcx): Delete.
2667 (__builtin_arm_getwcgr0): Add.
2668 (__builtin_arm_getwcgr1): Add.
2669 (__builtin_arm_getwcgr2): Add.
2670 (__builtin_arm_getwcgr3): Add.
2671 (__builtin_arm_setwcgr0): Add.
2672 (__builtin_arm_setwcgr1): Add.
2673 (__builtin_arm_setwcgr2): Add.
2674 (__builtin_arm_setwcgr3): Add.
2675
2676 2012-06-26 Richard Guenther <rguenther@suse.de>
2677
2678 Revert
2679 2012-06-21 Richard Guenther <rguenther@suse.de>
2680
2681 * tree-inline.c (estimate_num_insns): Estimate call cost for
2682 tailcalls properly.
2683
2684 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2685
2686 PR other/33190
2687 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
2688 * doc/tm.texi: Regenerate.
2689
2690 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2691
2692 PR other/33190
2693 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
2694 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
2695 * doc/tm.texi.in: Remove documentation for unused target macros
2696 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2697 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2698 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2699 TARGET_NARROW_VOLATILE_BITFIELDS.
2700 Document that MD_HANDLE_UNWABI is a macro in libgcc.
2701 * doc/tm.texi: Regenerate.
2702 * system.h: Poison target macros
2703 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2704 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2705 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2706 TARGET_NARROW_VOLATILE_BITFIELDS
2707
2708 2012-06-26 Jan Hubicka <jh@suse.cz>
2709
2710 PR lto/53572
2711 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2712 used symbols.
2713
2714 2012-06-26 Dehao Chen <dehao@google.com>
2715
2716 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
2717 source location is consistant with the call stmt.
2718
2719 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
2720
2721 PR tree-optimization/53729
2722 PR tree-optimization/53636
2723 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
2724 vect_verify_datarefs_alignment until after statements have
2725 been marked as relevant/irrelevant.
2726 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
2727 Skip irrelevant statements.
2728 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
2729 instead of STMT_VINFO_RELEVANT.
2730 (vect_get_data_access_cost): Do not check for supportable
2731 alignment before calling vect_get_load_cost/vect_get_store_cost.
2732 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
2733 handling unsupported alignment.
2734 (vect_get_load_cost): Likewise.
2735
2736 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
2737
2738 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
2739 Do not define JMP_BUF_SIZE.
2740
2741 2012-06-26 Jakub Jelinek <jakub@redhat.com>
2742
2743 PR tree-optimization/53748
2744 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
2745 if arg0/arg1 have integral or pointer types.
2746
2747 2012-06-25 Richard Henderson <rth@redhat.com>
2748
2749 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
2750 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
2751 (sdot_prodv4si): New; handle only XOP.
2752
2753 2012-06-25 Richard Henderson <rth@redhat.com>
2754
2755 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
2756 (V2UDI_FUNC_V4USI_V4USI): New.
2757 (V4UDI_FUNC_V8USI_V8USI): New.
2758 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
2759 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
2760 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
2761 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
2762 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
2763 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
2764 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
2765 (bdesc_args): Add them.
2766 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
2767 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
2768 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
2769 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
2770 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
2771
2772 2012-06-25 Richard Henderson <rth@redhat.com>
2773
2774 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2775
2776 2012-06-25 Richard Henderson <rth@redhat.com>
2777
2778 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
2779 to V16QImode.
2780 (ix86_expand_vec_interleave): New.
2781 (ix86_expand_mul_widen_evenodd): New.
2782 (ix86_expand_mul_widen_hilo): New.
2783 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
2784 * config/i386/i386.md (u_bool) New code attr.
2785 * config/i386/predicates.md
2786 (nonimmediate_or_const_vector_operand): Remove.
2787 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
2788 both AVX and SSE4_1.
2789 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
2790 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
2791 (vec_widen<s>mult_hi_v8si): Remove.
2792 (vec_widen<s>mult_lo_v8si): Remove.
2793 (vec_widen_smult_hi_v4si): Remove.
2794 (vec_widen_smult_lo_v4si): Remove.
2795 (vec_widen_umult_hi_v4si): Remove.
2796 (vec_widen_umult_lo_v4si): Remove.
2797 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
2798 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
2799 * config/i386/i386-protos.h: Update.
2800
2801 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
2802
2803 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
2804 (neon_vld1_dup): Restrict to VQ operands.
2805 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
2806
2807 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2808 James Greenhalgh <james.greenhalgh@arm.com>
2809
2810 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
2811 (TARGET_FMA): New macro.
2812 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
2813 (TARGET_ARM_ARCH): Likewise.
2814 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
2815 (TARGET_V6M, TARGET_V7M): Likewise.
2816 (TARGET_ARM_ARCH_PROFILE): Likewise.
2817 (TARGET_ARM_FEATURE_LDREX): Likewise.
2818 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
2819 (ARM_MIN_ENUM_SIZE): Likewise.
2820 * config/arm/arm.c (arm_file_start): Refactor appropriately.
2821 (base_architecture): New enumeration.
2822 (arm_base_arch): New global variable.
2823 (processors): Add field base_arch.
2824 (ARM_ARCH, ARM_CORE): Adjust accordingly.
2825 (arm_option_override): Add initialization of arm_base_arch.
2826 * doc/cpp.texi (system-specific predefined macros.): Change.
2827
2828 2012-06-25 Jakub Jelinek <jakub@redhat.com>
2829
2830 PR target/53759
2831 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2832 of x x x in the vmovlps load alternative.
2833
2834 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
2835
2836 PR debug/53740
2837 * df.h (dead_debug_add): Remove third argument.
2838 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
2839 REG that we want to replace instead.
2840 (dead_debug_insert_temp): Use the REGNO of the reg that we want
2841 to replace instead of DF_REF_REGNO. Require there to always be
2842 at least one such use. Check for cases where the same location
2843 has more than df_ref associated with it.
2844 (df_note_bb_compute): Remove third dead_debug_add argument.
2845 * dce.c (word_dce_process_block): Likewise.
2846
2847 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
2848
2849 * config/v850/v850.c: Remove redundant extern declarations for
2850 last_assemble_variable_decl and size_directive_output.
2851
2852 * doc/tm.texi.in: Document JMP_BUF_SIZE.
2853 * doc/tm.texi: Regenerate.
2854 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
2855 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
2856 * config/stormy16/stormy16.h: Likewise.
2857
2858 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
2859
2860 * doc/sourcebuild.texi: Add missing subdirectories.
2861
2862 2012-06-25 Tristan Gingold <gingold@adacore.com>
2863
2864 * config/i386/i386.h: Fix typo.
2865
2866 2012-06-25 Tristan Gingold <gingold@adacore.com>
2867
2868 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2869 (seh_cfa_adjust_cfa): ... that function.
2870 (seh_emit_stackalloc): Do not emit out of range values.
2871 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2872 UNSPEC_DEF_CFA constants.
2873 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2874 * config/i386/i386.c (ix86_frame_pointer_required): Required
2875 for very large frames on SEH target.
2876 (ix86_compute_frame_layout): Save area is before frame pointer
2877 on SEH target. Handle very large frames.
2878 (ix86_expand_prologue): Likewise.
2879
2880 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
2881
2882 * output.h: (current_function_is_leaf,
2883 current_function_sp_is_unchanging,
2884 current_function_uses_only_leaf_regs): Remove.
2885 * function.c (current_function_is_leaf,
2886 current_function_sp_is_unchanging,
2887 current_function_uses_only_leaf_regs): Remove.
2888 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
2889 instead of current_function_uses_only_leaf_regs.
2890 * function.h (struct rtl_data): New fields sp_is_unchanging,
2891 is_leaf, uses_only_leaf_regs.
2892 * resource.c (init_resource_info): Replace current_function_is_leaf,
2893 current_function_sp_is_unchanging, and
2894 current_function_uses_only_leaf_regs with new crtl fields.
2895 * sdbout.c (sdbout_symbol): Likewise.
2896 * df-core.c (rest_of_handle_df_initialize): Likewise.
2897 * ira.c (ira): Likewise.
2898 * final.c (final_start_function): Likewise.
2899 * reorg.c (fill_simple_delay_slots): Likewise.
2900 * regrename.c (check_new_reg_p): Likewise.
2901 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
2902 (notice_stack_pointer_modification): Likewise.
2903 * dbxout.c (dbxout_symbol): Likewise.
2904 (dbxout_parms): Likewise.
2905 * sel-sched.c (init_regs_for_mode): Likewise.
2906 * dwarf2out.c (dbx_reg_number): Likewise.
2907 (multiple_reg_loc_descriptor): Likewise.
2908 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
2909 (gen_pop): Likewise.
2910 (ix86_select_alt_pic_regnum): Likewise.
2911 (ix86_compute_frame_layout): Likewise.
2912 (ix86_finalize_stack_realign_flags): Likewise.
2913 (ix86_expand_epilogue): Likewise.
2914 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
2915 * config/h8300/h8300.c (byte_reg): Likewise.
2916 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
2917 (c6x_save_reg): Likewise.
2918 (c6x_compute_frame_layout): Likewise.
2919 * config/pa/pa.c (pa_compute_frame_size): Likewise.
2920 (pa_output_function_prologue): Likewise.
2921 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
2922 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
2923 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
2924 (sparc_expand_prologue): Likewise.
2925 (sparc_flat_expand_prologue): Likewise.
2926 (sparc_asm_function_prologue): Likewise.
2927 (sparc_output_mi_thunk): Likewise.
2928 (sparc_frame_pointer_required): Likewise.
2929 * config/epiphany/epiphany.c (epiphany_compute_function_type):
2930 Likewise.
2931 (epiphany_compute_frame_size): Likewise.
2932 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2933 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
2934 (cris_frame_pointer_required): Likewise.
2935 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
2936 (tilepro_current_function_is_leaf): Likewise.
2937 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
2938 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
2939 * config/ia64/ia64.c (find_gr_spill): Likewise.
2940 (ia64_compute_frame_size): Likewise.
2941 (ia64_can_eliminate): Likewise.
2942 (ia64_initial_elimination_offset): Likewise.
2943 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2944 (m68k_expand_epilogue): Likewise.
2945 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2946 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
2947 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
2948 Likewise.
2949 (picochip_output_frame_debug): Likewise.
2950 * config/sh/sh.c (sh_media_register_for_return): Likewise.
2951 (sh_allocate_initial_value): Likewise.
2952 (sh_output_mi_thunk): Likewise.
2953 * config/microblaze/microblaze.c (microblaze_must_save_register):
2954 Likewise.
2955 (compute_frame_size): Likewise.
2956 (microblaze_initial_elimination_offset): Likewise.
2957 (microblaze_expand_prologue): Likewise.
2958 (microblaze_expand_epilogue): Likewise.
2959 * config/frv/frv.c (frv_expand_epilogue): Likewise.
2960 (frv_frame_pointer_required): Likewise.
2961 * config/spu/spu.c (get_pic_reg): Likewise.
2962 (direct_return): Likewise.
2963 (spu_expand_prologue): Likewise.
2964 (spu_expand_epilogue): Likewise.
2965 (spu_initial_elimination_offset): Likewise.
2966 * config/mips/mips.c (mips_global_pointer): Likewise.
2967 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2968 (mips_compute_frame_info): Likewise.
2969 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
2970 (mep_reload_pointer): Likewise.
2971 * config/rl78/rl78.c (need_to_save): Likewise.
2972 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2973 * config/score/score.c (score_compute_frame_size): Likewise.
2974 (score_function_prologue): Likewise.
2975 * config/bfin/bfin.c (must_save_p): Likewise.
2976 (expand_prologue_reg_save): Likewise.
2977 (expand_epilogue_reg_restore): Likewise.
2978 (bfin_frame_pointer_required): Likewise.
2979 (n_regs_saved_by_prologue): Likewise.
2980 (add_to_reg): Likewise.
2981 (expand_interrupt_handler_prologue): Likewise.
2982 (expand_interrupt_handler_epilogue): Likewise.
2983 (bfin_expand_prologue): Likewise.
2984 * config/avr/avr.c (avr_regs_to_save): Likewise.
2985 (avr_prologue_setup_frame): Likewise.
2986 (expand_epilogue): Likewise.
2987 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2988 (s390_register_info): Likewise.
2989 (s390_frame_info): Likewise.
2990 (s390_init_frame_layout): Likewise.
2991 (s390_emit_prologue): Likewise.
2992
2993
2994 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
2995
2996 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
2997 * vmsdbgout: Do not undefine it if defined.
2998 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
2999 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
3000 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
3001
3002 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
3003
3004 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
3005
3006 2012-06-23 Richard Henderson <rth@redhat.com>
3007
3008 PR target/53749
3009 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
3010 V*QImode shifts and multiply.
3011 (ix86_expand_vecop_qihi): Support shifts.
3012 * config/i386/i386.md (any_shift): New code iterator.
3013 * config/i386/sse.md (ashlv16qi3): Merge ...
3014 (<any_shiftrt>v16qi3): ... into ...
3015 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
3016 to support SSE and AVX.
3017
3018 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
3019 parameter into src and dest.
3020 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
3021 (vec_unpacks_hi_<V124_AVX2>): Likewise.
3022 (vec_unpacku_lo_<V124_AVX2>): Likewise.
3023 (vec_unpacks_lo_<V124_AVX2>): Likewise.
3024 * config/i386/i386-protos.h: Update.
3025
3026 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
3027 pure expander; move expansion code ...
3028 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
3029 * config/i386/i386-protos.h: Update.
3030
3031 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
3032
3033 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
3034 (popcntb<mode>2): Add attribute type popcnt.
3035 (popcntd<mode>2): Ditto.
3036 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
3037 * config/rs6000/power5.md (define_insn_reservation): Ditto.
3038 * config/rs6000/power7.md (define_insn_reservation): Ditto.
3039 * config/rs6000/476.md (define_insn_reservation): Ditto.
3040 * config/rs6000/power6.md (define_insn_reservation): New
3041 reservation for popcnt instructions.
3042
3043 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
3044
3045 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
3046
3047 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
3048
3049 PR target/53383
3050 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
3051
3052 * config/i386/i386.c (ix86_option_override_internal): Allow
3053 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
3054
3055 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
3056 if SSE is disabled.
3057
3058 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
3059
3060 * double-int.c (double_int_multiple_of): New function.
3061 * double-int.h (double_int_multiple_of): New decl.
3062 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
3063 (mbc_entry_hash): New forward decl.
3064 (mbc_entry_eq): Likewise.
3065 (zero_cost): Change to no_cost.
3066 (mult_costs): New static var.
3067 (cost_tables_exist): Likewise.
3068 (initialize_costs): New function.
3069 (finalize_costs): Likewise.
3070 (tree_ssa_iv_optimize_init): Call initialize_costs.
3071 (add_cost): Change to add_regs_cost; distinguish costs by speed.
3072 (multiply_regs_cost): New function.
3073 (add_const_cost): Likewise.
3074 (extend_or_trunc_reg_cost): Likewise.
3075 (negate_reg_cost): Likewise.
3076 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
3077 costs by speed.
3078 (get_address_cost): Change add_cost to add_regs_cost; change
3079 multiply_by_cost to multiply_by_const_cost.
3080 (force_expr_to_var_cost): Change zero_cost to no_cost; change
3081 add_cost to add_regs_cost; change multiply_by_cost to
3082 multiply_by_const_cost.
3083 (split_cost): Change zero_cost to no_cost.
3084 (ptr_difference_cost): Likewise.
3085 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
3086 to multiply_by_const_cost.
3087 (get_computation_cost_at): Change add_cost to add_regs_cost; change
3088 multiply_by_cost to multiply_by_const_cost.
3089 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
3090 (determine_iv_cost): Change add_cost to add_regs_cost.
3091 (iv_ca_new): Change zero_cost to no_cost.
3092 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
3093 * tree-ssa-address.c (most_expensive_mult_to_index): Change
3094 multiply_by_cost to multiply_by_const_cost.
3095 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
3096 (add_regs_cost): New decl.
3097 (multiply_regs_cost): Likewise.
3098 (add_const_cost): Likewise.
3099 (extend_or_trunc_reg_cost): Likewise.
3100 (negate_reg_cost): Likewise.
3101
3102 2012-06-22 Richard Guenther <rguenther@suse.de>
3103
3104 Merge from graphite branch
3105 2011-08-10 Sebastian Pop <sebpop@gmail.com>
3106
3107 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
3108
3109 2012-01-13 Tobias Grosser <tobias@grosser.es>
3110
3111 * tree-flow.h (parallelized_function_p): Declare.
3112 * tree-parloops.c (parallelized_function_p): Export.
3113 * graphite.c (graphite_transform_loops): Do not run graphite on
3114 already parallel functions.
3115
3116 2012-06-22 Alan Modra <amodra@gmail.com>
3117
3118 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
3119 return mem. Convert to indirect addressing if not indirect or
3120 indexed. Adjust all callers.
3121
3122 2012-06-22 Richard Guenther <rguenther@suse.de>
3123
3124 * gcov-iov.c: Include bconfig.h and system.h.
3125
3126 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
3127
3128 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
3129
3130 2012-06-22 Richard Guenther <rguenther@suse.de>
3131
3132 PR gcov-profile/53744
3133 * gcov-iov.c (main): Treat "" and "prerelease" the same.
3134
3135 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
3136
3137 PR debug/53704
3138 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
3139 for GNU Fortran if in strict DWARF2 mode.
3140
3141 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
3142
3143 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
3144 DECL_IGNORED_P non-reg vars even if they are used.
3145
3146 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3147
3148 PR debug/53671
3149 PR debug/49888
3150 * var-tracking.c (vt_get_canonicalize_base): New.
3151 (vt_canonicalize_addr, vt_stack_offset_p): New.
3152 (vt_canon_true_dep): New.
3153 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
3154 (clobber_overlaping_mems): Use vt_canonicalize_addr.
3155
3156 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3157
3158 PR debug/53671
3159 PR debug/49888
3160 * var-tracking.c (vt_initialize): Record initial offset between
3161 arg pointer and stack pointer.
3162
3163 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3164
3165 PR debug/53671
3166 PR debug/49888
3167 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
3168 CFA base.
3169
3170 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3171
3172 PR debug/53671
3173 PR debug/49888
3174 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
3175
3176 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3177
3178 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
3179
3180 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
3181
3182 PR debug/53682
3183 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
3184
3185 2012-06-21 Meador Inge <meadori@codesourcery.com>
3186
3187 PR c/53702
3188 * c-decl.c (c_push_function_context): Restore the behavior to reuse
3189 the language function allocated for -Wunused-local-typedefs.
3190 (c_pop_function_context): If necessary, clear the language function
3191 created in c_push_function_context. Always clear out the
3192 x_cur_stmt_list field of the restored language function.
3193
3194 2012-06-21 Sterling Augustine <saugustine@google.com>
3195 Cary Coutant <ccoutant@google.com>
3196
3197 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
3198 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
3199 (comdat_type_struct): New field 'skeleton_die'.
3200 (breakout_comdat_types): Update it.
3201 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
3202 is_namespace_die. Fix minor style violation. Call want_pubnames.
3203 (add_pubname_string): Call want_pubnames.
3204 (add_pubtype): Rework logic for calculating type name. Call
3205 is_namespace_die. Call want_pubnames.
3206 (output_pubnames): Move conditional logic deciding when to produce the
3207 section from dwarf2out_finish. Use new skeleton_die field.
3208 (base_type_die): Call add_pubtype.
3209 (gen_enumeration_type_die): Unconditionally call add_pubtype.
3210 (gen_subprogram_die): Adjust calls to add_pubname.
3211 (gen_namespace_die): Call add_pubname_string.
3212 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
3213 produce pubnames and pubtypes sections to output_pubnames.
3214 * common.opt (-gpubnames): New option.
3215 * doc/invoke.texi: Document it.
3216
3217 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3218
3219 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
3220
3221 2012-06-21 Michael Matz <matz@suse.de>
3222
3223 PR middle-end/53688
3224 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
3225 with correct size.
3226
3227 2012-06-21 Richard Guenther <rguenther@suse.de>
3228
3229 * tree-inline.c (estimate_num_insns): Estimate call cost for
3230 tailcalls properly.
3231
3232 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
3233
3234 * tree.h (DECL_SOURCE_COLUMN): New accessor.
3235
3236 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3237
3238 * config/i386/i386.md (SINCOS): New int iterator.
3239 (sincos): New int attribute.
3240 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
3241 SINCOS int iterator.
3242 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
3243 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
3244
3245 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3246
3247 * config/i386/i386.md (RDFSGSBASE): New int iterator.
3248 (WRFSGSBASE): Ditto.
3249 (fsgs): New int attribute.
3250 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
3251 RDFSGSBASE int iterator.
3252 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
3253 WRFSGSBASE int iterator.
3254
3255 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3256
3257 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
3258 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
3259 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
3260 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
3261 int iterator.
3262
3263 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3264
3265 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
3266
3267 2012-06-20 Richard Guenther <rguenther@suse.de>
3268
3269 PR tree-optimization/30318
3270 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
3271 constants here.
3272 (range_int_cst_singleton_p): But explicitely here.
3273 (zero_nonzero_bits_from_vr): And here.
3274 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
3275 to cover all cases we can perform arbitrary precision
3276 arithmetic with double-ints.
3277 (intersect_ranges): Handle adjacent anti-ranges.
3278
3279 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3280
3281 * config/i386/i386.md (rounding_insn): New int attribute.
3282 (<rounding_insn>xf2): Macroize insn from
3283 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
3284 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
3285
3286 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3287
3288 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
3289 (ieee_maxmin): New int attribute.
3290 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
3291 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
3292
3293 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3294
3295 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
3296 * config/arm/arm.c: Do not include c-pragma.h.
3297 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
3298 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
3299 to arm_emit_eabi_attribute.
3300 * arm-c.c: Do not include output.h.
3301 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
3302 call to arm_emit_eabi_attribute.
3303 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
3304
3305 2012-06-20 Richard Guenther <rguenther@suse.de>
3306
3307 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3308 Allow adjusting alignment of user-aligned decls again.
3309
3310 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3311
3312 * config/rl78/rl78-c.c: Remove unnecessary includes.
3313
3314 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3315
3316 * config/cris/cris.c: Include cgraph.h.
3317 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
3318
3319 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3320
3321 * emit-rtl.c (need_atomic_barrier_p): New function.
3322 * emit-rtl.h (need_atomic_barrier_p): Declare it.
3323 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
3324 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
3325 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
3326 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
3327 (mips_process_sync_loop): Use generic version instead.
3328
3329 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3330
3331 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
3332 it is used.
3333
3334 2012-06-19 Tom de Vries <vries@codesourcery.com>
3335 Maxim Kuvyrkov <maxim@codesourcery.com>
3336
3337 * config/mips/constraints.md (ZR): New constraint.
3338 * config/mips/predicates.md (mem_noofs_operand): New predicate.
3339 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
3340 * config/mips/mips.h (TARGET_XLP): Define.
3341 (TARGET_SYNC_AFTER_SC): Update.
3342 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
3343 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
3344 XLP-specific swap and ldadd patterns.
3345 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
3346
3347 2012-06-19 Tom de Vries <vries@codesourcery.com>
3348 Maxim Kuvyrkov <maxim@codesourcery.com>
3349
3350 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
3351 (mips_emit_post_atomic_barrier_p): New static functions.
3352 (mips_process_sync_loop): Use them. Emit sync memory barriers in
3353 accordance with memory model semantics. Add return of CMP result for
3354 compare_and_swap.
3355 * config/mips/mips.md: Update comment.
3356 (sync_cmp): New attribute.
3357 (sync_memmodel): New attribute replacing sync_release_barrier.
3358 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
3359 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
3360 (sync_lock_test_and_set, test_and_set_12): Update.
3361 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
3362 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
3363
3364 2012-06-19 Joseph Myers <joseph@codesourcery.com>
3365
3366 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
3367 mov_si<mode>_e500_subreg0.
3368 (*mov_si<mode>_e500_subreg0_elf_low)
3369 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
3370
3371 2012-06-19 Richard Henderson <rth@redhat.com>
3372
3373 * config/alpha/alpha.c: Include params.h.
3374 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
3375 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
3376
3377 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3378
3379 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
3380 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
3381 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
3382 Remove.
3383 * doc/tm.texi: Regenerate.
3384 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
3385 .objc_class_name_*.
3386 * config/darwin-c.c: Include target.h.
3387 (darwin_objc_declare_unresolved_class_reference): New function.
3388 (darwin_objc_declare_class_definition): New function.
3389 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
3390 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
3391
3392 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3393
3394 * target.def (output_ident): New hook.
3395 * targhooks.h (default_asm_output_ident_directive): Add prototype.
3396 * varasm.c (assemble_asm): Only prefix a tab if the string does not
3397 already start with one.
3398 (default_asm_output_ident_directive): New function to emit
3399 .ident as a top-level asm node while parsing, or directly to
3400 asm_out_file after parsing.
3401 * toplev.c (compile_file): Print a GCC .ident with
3402 targetm.asm_out.output_ident.
3403 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
3404 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
3405 * doc/tm.texi: Update.
3406
3407 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
3408 (TARGET_ASM_OUTPUT_IDENT): Define.
3409 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
3410 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
3411 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
3412 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
3413 (TARGET_ASM_OUTPUT_IDENT): Define.
3414 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
3415 (TARGET_ASM_OUTPUT_IDENT): Define.
3416
3417 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
3418 * config/cris/cris.c (cris_asm_output_ident): New function.
3419 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
3420
3421 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
3422 Add prototype.
3423 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
3424 (microblaze_asm_output_ident): Rewrite to work similar to
3425 default_asm_output_ident_directive for front-end .idents.
3426 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
3427 (TARGET_ASM_OUTPUT_IDENT): Define.
3428
3429 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
3430 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
3431
3432 * config/rx/rx.c: Include cgraph.h for add_asm_node.
3433 (rx_asm_output_ident): New function, similar to
3434 default_asm_output_ident_directive, but handle AS100 syntax also, so
3435 that #ident also works for rx in AS100 syntax.
3436 (TARGET_ASM_OUTPUT_IDENT): Define.
3437 * config/rx/rx.h (IDENT_ASM_OP): Remove.
3438
3439 * Makefile.in: Fix dependencies for c-family/c-lex.o.
3440
3441 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
3442
3443 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
3444 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
3445 (ROUNDING): Ditto.
3446 (*fist<mode>2_<rounding>_1): Macroize insn from
3447 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
3448 (fistdi2_<rounding>): Macroize insn from
3449 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
3450 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
3451 corresponding splitters from fistdi2_{floor,ceil} and corresponding
3452 splitters using FIST_ROUNDING int iterator.
3453 (fist<mode>2_<rounding>): Macroize insn from
3454 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
3455 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
3456 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
3457 splitters using FIST_ROUNDING int iterator.
3458 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
3459 using FIST_ROUNDING int iterator.
3460
3461 2012-06-19 Richard Henderson <rth@redhat.com>
3462
3463 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
3464 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
3465 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
3466 * config/i386/sse.md (sse2_mulv4si3): Delete.
3467 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
3468 nonimmediate_or_const_vector_operand.
3469
3470 2012-06-19 Richard Henderson <rth@redhat.com>
3471
3472 * expmed.c (struct init_expmed_rtl): Split ...
3473 (init_expmed_one_mode): ... out of ...
3474 (init_expmed): ... here. Initialize integer vector modes also.
3475 (synth_mult): Handle integer vector modes.
3476 (choose_mult_variant): Likewise.
3477 (expand_mult_const): Likewise.
3478 (expand_mult): Likewise.
3479 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
3480
3481 2012-06-19 Richard Henderson <rth@redhat.com>
3482
3483 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
3484 integral vector modes.
3485
3486 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
3487
3488 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
3489 (rounding): New int attribute.
3490 (ROUNDING): Ditto.
3491 (frndintxf2_<rounding>): Macroize insn from
3492 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
3493 (frndintxf2_<rounding>_i387): Macroize insn from
3494 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
3495
3496 2012-06-19 Richard Guenther <rguenther@suse.de>
3497
3498 * tree-vrp.c (union_ranges): New function.
3499 (vrp_meet_1): Use union_ranges.
3500 (vrp_meet): Dump what we union and call vrp_meet_1.
3501
3502 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
3503
3504 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
3505 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
3506 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
3507 (attr write_conflict, attr core_cycles): Update.
3508 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
3509
3510 2012-06-19 Richard Guenther <rguenther@suse.de>
3511
3512 * tree-vrp.c (intersect_ranges): Handle more cases.
3513 (vrp_intersect_ranges): Dump what we intersect and call ...
3514 (vrp_intersect_ranges_1): ... this.
3515
3516 2012-06-19 Richard Guenther <rguenther@suse.de>
3517
3518 PR tree-optimization/53708
3519 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
3520 user-supplied alignment and alignment of decls with the used
3521 attribute.
3522
3523 2012-06-18 Lawrence Crowl <crowl@google.com>
3524
3525 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
3526 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
3527 (TV_PHASE_STREAM_IN): New.
3528 (TV_PHASE_STREAM_OUT): New.
3529 * timevar.c (validate_phases): New.
3530 (timevar_print): Call validate_phases.
3531 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
3532 to TV_PHASE_OPT_GEN.
3533 * langhooks.c (write_global_declarations): Rename use of
3534 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
3535 TV_PHASE_CHECK_DBGINFO.
3536 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
3537 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
3538 lang_hooks.decls.final_write_globals.
3539
3540 2012-06-18 David Edelshn <dje.gcc@gmail.com>
3541
3542 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
3543
3544 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
3545
3546 PR target/53712
3547 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
3548 (*sse4_2_pcmpistr_unaligned): New.
3549
3550 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3551 Sameera Deshpande <sameera.deshpande@arm.com>
3552 Greta Yorsh <greta.yorsh@arm.com>
3553
3554 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
3555 * config/arm/arm.c (print_multi_reg): Remove.
3556 (vfp_output_fldmd): Likewise.
3557 (arm_output_epilogue): Likewise.
3558 * config/arm/arm.md (epilogue_insns): Update condition and code.
3559
3560 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3561 Sameera Deshpande <sameera.deshpande@arm.com>
3562 Greta Yorsh <greta.yorsh@arm.com>
3563
3564 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
3565 * config/arm/arm.c (thumb2_expand_return): New function.
3566 * config/arm/arm.md (return): Update condition and code.
3567
3568 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3569 Sameera Deshpande <sameera.deshpande@arm.com>
3570 Greta Yorsh <greta.yorsh@arm.com>
3571
3572 * config/arm/arm-protos.h (output_return_instruction): New parameter
3573 and int to bool change of parameter types.
3574 * config/arm/arm.c (output_return_instruction): Likewise.
3575 * config/arm/arm.md (arm_simple_return): New pattern.
3576 (arm_return, cond_return, cond_return_inverted): Add new arguments.
3577 * config/arm/thumb2.md (thumb2_return): Update condition and code.
3578
3579 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3580 Sameera Deshpande <sameera.deshpande@arm.com>
3581 Greta Yorsh <greta.yorsh@arm.com>
3582
3583 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
3584 * config/arm/arm.c (arm_expand_epilogue): New function.
3585 * config/arm/arm.md (epilogue): Update condition and code.
3586 (sibcall_epilogue): Likewise.
3587
3588 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3589 Sameera Deshpande <sameera.deshpande@arm.com>
3590 Greta Yorsh <greta.yorsh@arm.com>
3591
3592 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
3593 * config/arm/arm.md (arm_addsi3) Add an alternative.
3594
3595 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3596 Sameera Deshpande <sameera.deshpande@arm.com>
3597 Greta Yorsh <greta.yorsh@arm.com>
3598
3599 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
3600 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
3601 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
3602
3603 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3604 Sameera Deshpande <sameera.deshpande@arm.com>
3605 Greta Yorsh <greta.yorsh@arm.com>
3606
3607 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
3608 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
3609 (pop_multiple_with_return, ldr_with_return) Likewise.
3610 * config/arm/predicates.md (pop_multiple_return) New special predicate.
3611 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
3612 * config/arm/arm.c (arm_output_multireg_pop) New function.
3613 (arm_emit_multi_reg_pop): New function.
3614
3615 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3616
3617 * config/arm/arm.c (ldm_stm_operation_p): Require SP
3618 as base register for loads if SP is in the register list.
3619
3620 2012-06-18 Richard Guenther <rguenther@suse.de>
3621
3622 PR tree-optimization/53693
3623 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
3624 Reject operands with more than one use.
3625
3626 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
3627
3628 PR tree-optimization/53703
3629 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
3630 correctly set bb_for_def[12].
3631
3632 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
3633
3634 * config/vax/vax.h (VMS_TARGET): Remove.
3635
3636 2012-06-18 Richard Guenther <rguenther@suse.de>
3637
3638 * tree-vrp.c (extract_range_from_assert): Split out range
3639 intersecting code.
3640 (intersect_ranges): New function.
3641 (vrp_intersect_ranges): Likewise.
3642
3643 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3644
3645 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
3646 r187965.
3647
3648 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
3649
3650 * doc/md.texi: Document int iterators.
3651 * read-rtl.c (ints): New iterator group.
3652 (find_int): Int iterator group callback.
3653 (apply_int_iterator): Likewise.
3654 (apply_iterators): Traverse int iterator table and add all the used
3655 iterators to list.
3656 (initialize_iterators): Initialize data structures and callbacks for
3657 int iterators.
3658 (read_rtx): Parse and read mappings for int iterators.
3659 (read_rtx_code): Record int iterator usage.
3660
3661 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
3662
3663 PR middle-end/53698
3664 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
3665 performing an addition.
3666
3667 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3668
3669 * output.h (split_double): Move prototype to rtl.h.
3670 (constructor_static_from_elts_p): Move prototype to tree.c.
3671 * rtl.h (split_double): Moved here from output.h.
3672 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
3673 * final.c (split_double): Move from here ...
3674 * rtlanal.c (split_double): ... to here.
3675 * expr.c: Do not include output.h.
3676
3677 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3678
3679 * cfglayout.h: Remove.
3680 * cfglayout.c: Remove.
3681 * function.h (struct function): Remove x_last_location field.
3682 * function.c: Do not include cfglayout.h.
3683 (expand_function_start): Do not call no-op force_next_line_note.
3684 (expand_function_end): Likewise.
3685 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
3686 (unlink_insn_chain): Moved here from cfglayout.c.
3687 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
3688 into_cfg_layout_mode, outof_cfg_layout_mode,
3689 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
3690 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
3691 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
3692 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
3693 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
3694 cfg_layout_finalize): Likewise.
3695 (rtl_can_remove_branch_p): Likewise.
3696 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
3697 (duplicate_insn_chain): Likewise.
3698 (force_next_line_note): Remove prototype.
3699 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
3700 (last_location): Remove #define to emit.x_last_location.
3701 (force_next_line_note): Remove no-op function.
3702 (init_emit): Don't set x_last_location.
3703 (block_locators_locs, block_locators_blocks, locations_locators_locs,
3704 locations_locators_vals, prologue_locator, epilogue_locator,
3705 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3706 Move POD to here from cfglayout.c.
3707 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
3708 set_curr_insn_source_location, get_curr_insn_source_location,
3709 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
3710 locator_scope, insn_scope, locator_location, locator_line, insn_line,
3711 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
3712 * cfghooks.h: Remove double-include protection.
3713 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
3714 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
3715 * final.c: Do not include cfglayout.h.
3716 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
3717 (reemit_insn_block_notes): Likewise. Make static.
3718 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
3719 operation_could_trap_p, tree_could_throw_p): Move from here...
3720 * tree.h: ... to here.
3721 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
3722 * profile.c: Do not include cfghooks.h.
3723 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
3724 * modulo-sched.c: Likewise.
3725 * loop-unswitch.c: Do not include cfglayout.h.
3726 * sched-ebb.c: Likewise.
3727 * tracer.c: Likewise.
3728 * ddg.c: Likewise.
3729 * tree-vect-loop-manip.c: Likewise.
3730 * loop-init.c: Likewise.
3731 * dwarf2out.c: Likewise.
3732 * hw-doloop.c: Likewise.
3733 * loop-unroll.c: Likewise.
3734 * cfgcleanup.c: Likewise.
3735 * bb-reorder.c: Likewise.
3736 * sched-rgn.c: Likewise.
3737 * tree-cfg.c: Likewise.
3738 * config/alpha/alpha.c: Likewise.
3739 * config/spu/spu.c: Likewise.
3740 * config/sparc/sparc.c: Likewise.
3741 * config/sh/sh.c: Likewise.
3742 * config/c6x/c6x.c: Likewise.
3743 * config/ia64/ia64.c: Likewise.
3744 * config/rs6000/rs6000.c: Likewise.
3745 * config/score/score.c: Likewise.
3746 * config/mips/mips.c: Likewise.
3747 * config/bfin/bfin.c: Likewise.
3748 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
3749 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
3750 * config/spu/t-spu-elf (spu.o: $): Likewise.
3751 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
3752
3753 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3754
3755 * cfgloop.h: Do not include rtl.h.
3756 (enum iv_extend_code): New.
3757 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
3758 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
3759 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
3760 an IV_EXTEND_CODE to an RTX_CODE.
3761 (dump_iv_info): Update for rtx_iv field type change.
3762 (iv_constant): Likewise.
3763 (iv_subreg): Likewise.
3764 (iv_extend): Likewise.
3765 (iv_neg): Likewise.
3766 (iv_add): Likewise.
3767 (iv_mult): Likewise.
3768 (iv_shift): Likewise.
3769 (get_biv_step_1): Likewise.
3770 (get_biv_step): Likewise.
3771 (iv_analyze_biv): Likewise.
3772 (get_iv_value): Likewise.
3773 (shorten_into_mode): Likewise.
3774 (canonicalize_iv_subregs): Likewise.
3775 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
3776 of MAY_HAVE_DEBUG_INSNS.
3777 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
3778 * tree-ssa-loop-prefetch.c: Likewise.
3779
3780 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3781
3782 * expmed.c (ceil_log2): Move from here...
3783 * hwint.c: ... to here for older GCCs...
3784 * hwint.h: ... and here for newer GCCs.
3785 * rtl.h (ceil_log2): Remove prototype.
3786
3787 * tree-phinodes.c: Do not include rtl.h.
3788 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
3789
3790 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3791
3792 * config/cris/cris.h (TARGET_ELF): Remove.
3793 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
3794 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
3795 (LOCAL_LABEL_PREFIX): Likewise.
3796 * config/cris/cris.c (cris_target_asm_named_section): Remove.
3797 (cris_option_override): Simpify using TARGET_ELF==1.
3798 (cris_file_start): Likewise.
3799 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
3800
3801 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
3802
3803 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3804
3805 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
3806
3807 PR middle-end/53590
3808 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
3809
3810 2012-06-15 Easwaran Raman <eraman@google.com>
3811
3812 * passes.c (init_optimization_passes): Remove pass_call_cdce
3813 from its current position and insert after pass_dce.
3814
3815 2012-06-15 Walter Lee <walt@tilera.com>
3816
3817 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3818
3819 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
3820
3821 * arm.c (note_invalid_constants): Don't return a result.
3822 (arm_memory_load_p): Delete function.
3823 (arm_const_double_rtx): Delete iterator variable i;
3824 (fp_immediate_constant): Likewise.
3825 (fp_const_from_val): Likewise.
3826
3827 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
3828
3829 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3830
3831 PR c++/51033
3832 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
3833 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
3834
3835 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
3836
3837 * config/avr/avr.c (avr_default_expand_builtin): New function.
3838 (avr_expand_builtin): Use it.
3839 (avr_expand_unop_builtin): Remove.
3840 (avr_expand_binop_builtin): Remove.
3841 (avr_expand_triop_builtin): Remove.
3842
3843 2012-06-15 Michael Matz <matz@suse.de>
3844
3845 PR middle-end/38474
3846 * cfgexpand.c (add_alias_set_conflicts): Remove.
3847 (expand_used_vars): Don't call it.
3848 (aggregate_contains_union_type): Remove.
3849 * function.c (n_temp_slots_in_use): New static data.
3850 (make_slot_available, assign_stack_temp_for_type): Update it.
3851 (init_temp_slots): Zero it.
3852 (remove_unused_temp_slot_addresses): Use it for quicker removal.
3853 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
3854
3855 2012-06-15 Michael Matz <matz@suse.de>
3856
3857 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
3858 argument, don't emit assign statement if value is directly usable.
3859 (gimplify_expr): Adjust.
3860
3861 2012-06-15 Michael Matz <matz@suse.de>
3862
3863 * gimplify.c (gimplify_modify_expr): Fold generated statements.
3864 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
3865
3866 2012-06-15 Richard Guenther <rguenther@suse.de>
3867
3868 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
3869 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
3870 we assert for in set_value_range to VR_VARYING.
3871
3872 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
3873
3874 * arm.md (addsf3, adddf3): Use s_register_operand.
3875 (subsf3, subdf3): Likewise.
3876 (mulsf3, muldf3): Likewise.
3877 (difsf3, divdf3): Likewise.
3878 (movsfcc, movdfcc): Likewise.
3879 * predicates.md (f_register_operand): Delete.
3880 (arm_float_rhs_operand): Delete.
3881 (arm_float_add_operand): Delete.
3882 (arm_float_compare_operand): Use s_register_operand when
3883 there's no VFP.
3884 (cirrus_register_operand): Delete.
3885 (cirrus_fp_register): Delete.
3886 (cirrus_shift_const): Delete.
3887 (cmpdi_operand): Remove Maverick support.
3888 * constraints.md (f, v, H): Delete constraints.
3889 (G): Update documentation.
3890 * arm.c (fp_consts_inited): Convert to bool.
3891 (strings_fp): Delete.
3892 (values_fp): Delete.
3893 (value_fp0): New variable.
3894 (init_fp_table): Simplify logic.
3895 (arm_const_double_rtx): Likewise.
3896 (fp_immediate_constant): Likewise.
3897 (fp_const_from_val): Likewise.
3898 (neg_const_double_rtx_ok_for_fpa): Delete.
3899 * doc/md.texi (ARM constraints): Update documentation.
3900
3901 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3902
3903 PR tree-optimization/53636
3904 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
3905 stride when doing basic-block vectorization.
3906
3907 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3908
3909 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
3910 into VEC_PERM_EXPR.
3911
3912 2012-06-15 Jakub Jelinek <jakub@redhat.com>
3913
3914 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
3915 allocate and free bbs array for the SLP case.
3916
3917 PR tree-optimization/51581
3918 * expr.h (choose_multiplier): New prototype.
3919 * expmed.c (choose_multiplier): No longer static.
3920 Change multiplier_ptr from rtx * to UHWI *.
3921 (expand_divmod): Adjust callers.
3922 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
3923 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
3924 argument to new_stmt_vec_info. Attempt to optimize also divisions
3925 by non-pow2 constants if integer vector division isn't supported.
3926 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
3927 don't look at pattern stmts and sequences.
3928
3929 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
3930
3931 PR middle-end/53590
3932 * common.opt (-fdelete-dead-exceptions): New switch.
3933 * doc/invoke.texi (Code Gen Options): Document it.
3934 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
3935 insn_could_throw_p predicate. Do not skip an insn that could throw
3936 if dead exceptions can be deleted.
3937 (insn_live_p): Likewise, do not return true in that case.
3938 * dce.c (can_alter_cfg): New flag.
3939 (deletable_insn_p): Do not return false for an insn that can throw if
3940 the CFG can be altered and dead exceptions can be deleted.
3941 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
3942 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
3943 predicate. Do not preserve an insn that could throw if dead exceptions
3944 can be deleted.
3945 * function.h (struct function): Add can_delete_dead_exceptions flag.
3946 * function.c (allocate_struct_function): Set it.
3947 * lto-streamer-in.c (input_struct_function_base): Stream it.
3948 * lto-streamer-out.c (input_struct_function_base): Likewise.
3949 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
3950 statement that could throw as necessary if dead exceptions can be
3951 deleted.
3952
3953 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
3954
3955 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3956
3957 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
3958
3959 PR target/53568
3960 * config/sh/sh.md: Add peephole for swapbsi2.
3961 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
3962
3963 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
3964
3965 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
3966 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
3967
3968 2012-06-14 Jakub Jelinek <jakub@redhat.com>
3969
3970 PR target/53639
3971 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
3972
3973 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3974
3975 * arm.c (arm_cirrus_insn_p): Delete.
3976 (cirrus_reorg): Delete.
3977 (arm_reorg): Don't call cirrus_reorg.
3978 (arm_final_prescan_insn_p): Don't check for cirrus insns.
3979 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
3980 (adddi3, subdi3): Remove Maverick support.
3981 (arm_adddi3): Likewise.
3982 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3983 (addsf3, adddf3): Likewise.
3984 (subsf3, subdf3): Likewise.
3985 (mulsf3, muldf3): Likewise.
3986 (ashldi3, ashrdi3, lshrdi3): Likewise.
3987 (floatsisf2, floatsidf2): Likewise.
3988 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3989 (arm_movdi, thumb1_movdi_insn): Likewise.
3990 (arm_cmpdi_insn): Likewise.
3991 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
3992 (cirrus.md): Don't include.
3993 * cirrus.md: Delete file.
3994 * t-arm (MD_INCLUDES): Remove cirrus.md.
3995
3996 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
3997
3998 * dwarf2out.c (function_possibly_abstracted_p): New static function.
3999 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
4000 cgraph_function_possibly_inlined_p.
4001 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
4002 (process_scope_var): Do not emit concrete instances of abstracted
4003 nested functions from here.
4004 (gen_decl_die): Emit the abstract instance if the function is possibly
4005 abstracted and not only possibly inlined.
4006 (dwarf2out_finish): Find the first non-abstract parent instance and
4007 attach concrete instances on the limbo list to it.
4008
4009 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
4010
4011 * arm.md (divsf3, divdf3): Remove FPA support.
4012 (negsf2, negdf2): Likewise.
4013 (sqrtsf2, sqrtdf2): Likewise.
4014 (movdfcc): Likewise.
4015 (modsf3, moddf3, movxf): Delete.
4016 (push_fp_multi): Delete.
4017 (fpa.md): Don't include it.
4018 * fpa.md: Delete file.
4019 * t-arm (MD_INCLUDES): Remove fpa.md.
4020
4021 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
4022
4023 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
4024 (cost_for_stmt): Remove decl.
4025 (vect_get_single_scalar_iteration_cost): Correct typo in name.
4026 * tree-vect-loop.c (vect_get_cost): Remove.
4027 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
4028 vect_get_stmt_cost rather than vect_get_cost.
4029 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
4030 vect_get_cost.
4031 (vect_estimate_min_profitable_iters): Correct typo in call to
4032 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
4033 than vect_get_cost.
4034 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
4035 vect_get_cost.
4036 (vect_model_induction_cost): Likewise.
4037 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
4038 typo in call to vect_get_single_scalar_iteration_cost.
4039 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
4040 (cost_for_stmt): Remove unnecessary function.
4041 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
4042
4043 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
4044
4045 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
4046 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
4047 * arm-tables.opt: Regenerated.
4048 * doc/invoke.texi: Remove references to deleted options.
4049
4050 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4051
4052 * config/h8300/genmova.sh: Modified to add offset bits of
4053 mova/Sz assembly instruction for memory access.
4054 * config/h8300/h8300.c: Likewise.
4055 * config/h8300/mova.md: Likewise.
4056
4057 2012-06-12 Christian Bruel <christian.bruel@st.com>
4058
4059 PR target/53621
4060 * config/sh/sh.c (sh_option_override): Don't force
4061 flag_omit_frame_pointer and maccumulate_outgoing_args.
4062 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
4063
4064 2012-06-14 Richard Guenther <rguenther@suse.de>
4065
4066 * tree-vrp.c (VR_INITIALIZER): New define.
4067 (ranges_from_anti_range): New function.
4068 (extract_range_from_binary_expr_1): Decompose operations on
4069 VR_ANTI_RANGEs to operations on VR_RANGE.
4070 (extract_range_from_unary_expr_1): Likewise.
4071 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
4072 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
4073 extract_range_from_cond_expr, adjust_range_with_scev,
4074 vrp_visit_assignment_or_call, vrp_visit_phi_node,
4075 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
4076
4077 2012-06-13 Richard Henderson <rth@redhat.com>
4078
4079 * hwint.h (HOST_WIDEST_INT_C): New.
4080 (HOST_WIDE_INT_C): New.
4081 (HOST_WIDE_INT_1): Use it.
4082 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
4083
4084 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
4085
4086 PR debug/49888
4087 * var-tracking.c: Include alias.h.
4088 (overlapping_mems): New struct.
4089 (drop_overlapping_mem_locs): New.
4090 (clobber_overlapping_mems): New.
4091 (var_mem_delete_and_set, var_mem_delete): Call it.
4092 (val_bind): Likewise, but only if modified.
4093 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
4094 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
4095
4096 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
4097
4098 PR debug/47624
4099 * var-tracking.c (loc_exp_dep_pool): New.
4100 (vt_emit_notes): Create and release the pool.
4101 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
4102 (emit_notes_in_bb): Likewise.
4103 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
4104 (notify_dependents_of_changed_value): Likewise.
4105 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
4106 variables don't have a VAR_LOC_DEP_LST.
4107 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
4108 VALUEs or MEMs of VALUEs.
4109
4110 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
4111
4112 PR debug/52983
4113 PR debug/48866
4114 * dce.c (word_dce_process_block): Insert debug temps only if the
4115 insn is not marked.
4116 (dce_process_block): Likewise, and if debug.used is not empty,
4117 and only after iterating over all DEFs that might mark the insn.
4118
4119 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
4120
4121 * common.opt (ftree-coalesce-inlined-vars): New.
4122 (ftree-coalesce-vars): New.
4123 * doc/invoke.texi: Document them.
4124 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
4125 Implement them.
4126
4127 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4128
4129 * read-rtl.c (mapping): Remove index field. Add current_value field.
4130 Define heap vectors.
4131 (iterator_group): Fix long line. Remove num_builtins field and
4132 uses_iterator fields. Make apply_iterator take a void * parameter.
4133 (iterator_use, atttribute_use): New structures.
4134 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
4135 (current_iterators, iterator_uses, attribute_uses): New variables.
4136 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
4137 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
4138 (map_attr_string, apply_iterator_to_string): Remove iterator
4139 and value parameters. Look through all current iterator values
4140 for a matching attribute.
4141 (mode_attr_index, apply_mode_maps): Delete.
4142 (apply_iterator_to_rtx): Replace with...
4143 (copy_rtx_for_iterators): ...this new function.
4144 (uses_iterator_p, apply_iterator_traverse): Delete.
4145 (apply_attribute_uses, add_current_iterators, apply_iterators): New
4146 functions.
4147 (add_mapping): Remove index field. Set current_value field.
4148 (initialize_iterators): Don't set num_builtins and uses_iterator_p
4149 fields.
4150 (find_iterator): Delete.
4151 (record_iterator_use, record_attribute_use): New functions.
4152 (record_potential_iterator_use): New function.
4153 (check_code_iterator): Remove handling of bellwether codes.
4154 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
4155 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
4156 parameter. Use the first code iterator value instead of the
4157 bellwether_codes array. Use record_potential_iterator_use for modes.
4158
4159 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
4160
4161 PR target/53568
4162 * config/sh/sh.md (bswapsi2): New expander.
4163 (swapbsi2): New insn.
4164
4165 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
4166
4167 PR target/53647
4168 * config/i386/i386.c (ix86_tune_cost): New variable.
4169 (ix86_option_override_internal): Set ix86_tune_cost. Use
4170 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
4171 l1_cache_size and l2_cache_size.
4172
4173 2012-06-13 Richard Guenther <rguenther@suse.de>
4174
4175 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
4176 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
4177 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
4178 VR_ANTI_RANGE with VR_ANTI_RANGE.
4179
4180 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
4181
4182 * config.gcc (unsupported): Move obsoleted FPA-based configurations
4183 here from ...
4184 (obsolete): ... here.
4185 (arm*-*-freebsd*): Remove.
4186 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
4187 (arm*-*-uclinux*): Likewise.
4188 (arm*-*-ecos-elf): Remove.
4189 (arm*-*-rtems*): Remove.
4190 (arm*-*-elf): Remove.
4191 (arm*-wince-pe*): Remove.
4192 (arm, --with-fpu): Remove support for fpa and Maverick variants.
4193 * arm/ecos-elf.h: Delete.
4194 * arm/t-strongarm-elf: Delete.
4195 * arm/rtems-elf.h: Delete.
4196 * arm/wince-pe.h: Delete.
4197 * arm/pe.c: Delete.
4198 * arm/pe.h: Delete.
4199 * arm/t-wince-pe: Delete.
4200
4201 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
4202
4203 PR tree-optimization/53647
4204 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
4205 targets with no defined cache line size.
4206
4207 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
4208
4209 * targhooks.c (default_builtin_vectorized_conversion): Handle
4210 vec_construct, using vectype to base cost on subparts.
4211 * target.h (enum vect_cost_for_stmt): Add vec_construct.
4212 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
4213 instead of scalar_to-vec.
4214 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
4215 vec_construct in same way as default for now.
4216 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4217 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4218 Handle vec_construct, including special case for 32-bit loads.
4219
4220 2012-06-13 Xinyu Qi <xyqi@marvell.com>
4221
4222 * config/arm/arm.c (FL_IWMMXT2): New define.
4223 (arm_arch_iwmmxt2): New variable.
4224 (arm_option_override): Enable use of iWMMXt with VFP.
4225 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
4226 Thumb mode. Set arm_arch_iwmmxt2.
4227 (arm_expand_binop_builtin): Accept VOIDmode op.
4228 (enum arm_builtins): Revise built-in fcode.
4229 (IWMMXT2_BUILTIN): New define.
4230 (IWMMXT2_BUILTIN2): Likewise.
4231 (iwmmx2_mbuiltin): Likewise.
4232 (builtin_description bdesc_2arg): Revise built in declaration.
4233 (builtin_description bdesc_1arg): Likewise.
4234 (arm_init_iwmmxt_builtins): Revise built in initialization.
4235 (arm_expand_builtin): Revise built in expansion.
4236 (arm_output_iwmmxt_shift_immediate): New function.
4237 (arm_output_iwmmxt_tinsr): Likewise.
4238 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
4239 (arm_output_iwmmxt_tinsr): Likewise.
4240 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
4241 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
4242 (rorv4hi3, rorv2si3, rordi3): Likewise.
4243 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
4244 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
4245 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
4246 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
4247 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
4248 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
4249 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
4250 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
4251 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
4252 (ror<mode>3, ror<mode>3_di): Likewise.
4253 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
4254 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
4255 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
4256 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
4257 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
4258 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
4259 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
4260 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
4261 (All instruction patterns): Add wtype attribute.
4262 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
4263 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
4264 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
4265 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
4266 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
4267 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
4268 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
4269 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
4270 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
4271 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
4272 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
4273 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
4274 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
4275 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
4276 (iwmmxt2.md): Include.
4277 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
4278 (TARGET_IWMMXT2): New define.
4279 (TARGET_REALLY_IWMMXT2): Likewise.
4280 (arm_arch_iwmmxt2): Declare.
4281 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
4282 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
4283 Use C name-mangling for intrinsics.
4284 (__v8qi): Redefine.
4285 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
4286 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
4287 (_m_from_int): Likewise.
4288 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
4289 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
4290 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
4291 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
4292 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
4293 (_mm_tbcst_pi32): Likewise.
4294 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
4295 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
4296 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
4297 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
4298 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
4299 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
4300 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
4301 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
4302 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
4303 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
4304 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
4305 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
4306 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
4307 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
4308 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
4309 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
4310 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
4311 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
4312 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
4313 (_m_to_int): New define.
4314 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
4315 * config/arm/arm-arches.def (iwmmxt2): Likewise.
4316 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
4317 iwmmxt2.md.
4318 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
4319 (arch): Add "iwmmxt2".
4320 (arch_enabled): Handle "iwmmxt2".
4321 (wtype): New attribute.
4322 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
4323 (UNSPEC_WALIGNI): New unspec.
4324 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
4325 * config/arm/iterators.md (VMMX2): New mode_iterator.
4326 * config/arm/marvell-f-iwmmxt.md: New file.
4327 * config/arm/iwmmxt2.md: New file.
4328
4329 2012-06-12 Jakub Jelinek <jakub@redhat.com>
4330
4331 PR c/53532
4332 PR c/51034
4333 PR c/53196
4334 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
4335 if type isn't complete.
4336
4337 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
4338
4339 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
4340
4341 2012-06-12 Richard Henderson <rth@redhat.com>
4342
4343 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
4344 iterator instead of INT.
4345
4346 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
4347
4348 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
4349 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
4350 declaration.
4351 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
4352 (tree_ssa_phiopt): Call gate_hoist_loads.
4353 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
4354 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
4355 hoist_adjacent_loads.
4356 (local_mem_dependence): New function.
4357 (hoist_adjacent_loads): Likewise.
4358 (gate_hoist_loads): Likewise.
4359 * common.opt (fhoist-adjacent-loads): New switch.
4360 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
4361
4362 2012-06-12 Michael Matz <matz@suse.de>
4363
4364 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
4365 (nonoverlapping_memrefs_p): Don't call it here ...
4366 (true_dependence_1): ... but here.
4367
4368 2012-06-12 Richard Guenther <rguenther@suse.de>
4369
4370 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
4371 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
4372 and MEM_SIZE only refines it. Reflect that and be less conservative
4373 if either of the latter is not known.
4374
4375 2012-06-12 Jakub Jelinek <jakub@redhat.com>
4376
4377 PR rtl-optimization/53589
4378 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
4379 discovery even when e->dest != target. If any LABEL_REF points
4380 to e->dest label, redirect it to target's label.
4381
4382 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
4383
4384 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
4385 condition for generating REG_FRAME_RELATED_EXPR note.
4386 (pop): Add code for generating REG_CFA_RESTORE,
4387 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
4388 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
4389 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
4390
4391 2012-06-11 Richard Henderson <rth@redhat.com>
4392
4393 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
4394 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
4395
4396 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
4397
4398 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
4399
4400 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
4401 Mention that this hook needs to be defined for native TLS.
4402 * doc/tm.texi: Regenerate.
4403
4404 2012-06-11 Mike Stump <mikestump@comcast.net>
4405
4406 * emit-rtl.c (init_emit_once): Iterate through the
4407 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
4408 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
4409 all the MIN_MODE_PARTIAL_INT modes anymore.
4410
4411 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
4412
4413 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
4414
4415 2012-06-11 Roland McGrath <mcgrathr@google.com>
4416
4417 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
4418 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
4419 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
4420 operand.
4421
4422 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
4423
4424 PR target/53511
4425 * config/sh/sh.md (fmasf4): New expander.
4426 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
4427 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
4428 * config/sh/sh.opt (mfused-madd): Remove.
4429 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
4430 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
4431 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
4432 as extra options.
4433 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
4434 descriptions.
4435
4436 2012-06-11 Richard Henderson <rth@redhat.com>
4437
4438 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
4439
4440 2012-06-11 Richard Guenther <rguenther@suse.de>
4441
4442 PR middle-end/53470
4443 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
4444 replace it with the first non-BLOCK context.
4445
4446 2012-06-11 Richard Guenther <rguenther@suse.de>
4447
4448 * alias.c (aliases_everything_p): Remove.
4449 (DIFFERENT_ALIAS_SETS_P): Likewise.
4450 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
4451 Do not use aliases_everything_p or special-case ANDs. Do not
4452 special-case BLKmode moves.
4453 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
4454 - for SCATCH only.
4455
4456 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
4457
4458 Fix CRIS build errors with --enable-build-with-cxx.
4459 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
4460 variable "and" to "andop".
4461 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
4462 temporary variable for memory model, passing C++-type-correct
4463 parameter type to expand_mem_thread_fence.
4464 ("atomic_compare_and_swap<mode>"): Ditto.
4465
4466 2012-06-09 Richard Henderson <rth@redhat.com>
4467
4468 PR c++/53602
4469 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
4470 (pass_jump): Rename from pass_jump2.
4471 (execute_jump2, pass_jump2): New.
4472 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
4473 perform cfg cleanup here. Move the test of PUSH_ROUNDING
4474 and ACCUMULATE_OUTGOING_ARGS test...
4475 (gate_handle_stack_adjustments): ... here.
4476 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
4477 Place new pass_jump2 after pass_stack_adjustments.
4478 * tree-pass.h (pass_jump): Declare.
4479
4480 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
4481
4482 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
4483 count trucation.
4484
4485 2012-06-08 Richard Henderson <rth@redhat.com>
4486
4487 PR c++/53602
4488 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
4489 note to a clobber insn when no other insn is available.
4490
4491 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
4492
4493 * config/avr/avr.c (avr_case_values_threshold): Return 7.
4494
4495 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
4496
4497 * genhooks.c (main): Set progname.
4498 (emit_documentation): Remove variable found_start, always bail out
4499 when a place is missing.
4500 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
4501
4502 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4503
4504 PR middle-end/53580
4505 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
4506 call walk_gimple_seq_mod instead of walk_gimple_seq.
4507 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
4508 scan_omp_for, scan_omp_sections, scan_omp_single,
4509 execute_lower_omp): Adjust callers.
4510 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
4511 returns false, replace stmt with GIMPLE_NOP.
4512 (check_omp_nesting_restrictions): Instead of issuing warnings,
4513 issue errors and return false if any errors were reported.
4514
4515 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4516
4517 * doc/invoke.texi (fconserve-space): Remove documentation.
4518
4519 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
4520
4521 * config/rs6000/rs6000-tables.opt: Regenerated.
4522
4523 2012-06-06 Richard Guenther <rguenther@suse.de>
4524
4525 PR tree-optimization/53081
4526 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
4527 (adjacent_dr_p): ... this and make it work for reads, too.
4528 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
4529 (struct partition_s): Change main_stmt to main_dr, add
4530 secondary_dr member.
4531 (build_size_arg_loc): Change to date data-reference and not
4532 gimplify here.
4533 (build_addr_arg_loc): New function split out from ...
4534 (generate_memset_builtin): ... here. Use it and simplify.
4535 (generate_memcpy_builtin): New function.
4536 (generate_code_for_partition): Adjust.
4537 (classify_partition): Streamline pattern detection. Detect memcpy.
4538 (ldist_gen): Adjust.
4539 (tree_loop_distribution): Adjust seed statements for memcpy
4540 recognition.
4541
4542 2012-06-06 Matt Turner <mattst88@gmail.com>
4543
4544 * config/arm/mmintrin.h (_mm_empty): New.
4545 (_m_empty): New.
4546
4547 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
4548
4549 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
4550 * common.opt (fsched-pressure-algorithm=): Remove.
4551 * flag-types.h (sched_pressure_algorithm): Move to...
4552 * sched-int.h (sched_pressure_algorithm): ...here.
4553 * params.def (sched-pressure-algorithm): New param.
4554 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
4555 * common/config/s390/s390-common.c (s390_option_optimization_table):
4556 Remove OPT_fsched_pressure_algorithm_ entry.
4557 * config/s390/s390.c (s390_option_override): Set a default value for
4558 PARAM_SCHED_PRESSURE_ALGORITHM.
4559
4560 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4561
4562 PR target/53487
4563 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
4564 doing an unsigned compare, make sure the second argument is not a
4565 negative constant.
4566 (rs6000_emit_cmove): Don't allow floating point comparisons when
4567 generating ISEL moves.
4568
4569 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
4570
4571 * config/rs6000/e5500.md: New file.
4572 * config/rs6000/e6500.md: New file.
4573 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4574 e5500 and e6500.
4575 (rs6000_option_override_internal): Altivec and Spe options not
4576 allowed with e5500. Spe options not allowed with e6500. Increase
4577 move inline limit for e5500 and e6500. Disable string instructions
4578 for e5500 and e6500. Enable branch targets alignment for e5500 and
4579 e6500. Initialize rs6000_cost for e5500 and e6500.
4580 (rs6000_adjust_cost): Add extra scheduling cycles between compare
4581 and brnach for e5500 and e6500.
4582 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
4583 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
4584 e6500.
4585 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
4586 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
4587 ppce6500.
4588 Include e5500.md and e6500.md.
4589 * config/rs6000/rs6000-opt.h (processor_type): Add
4590 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
4591 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
4592 (powerpc*-*-*): Add new cores e5500, e6500.
4593 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
4594
4595 2012-06-05 Richard Guenther <rguenther@suse.de>
4596
4597 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
4598
4599 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
4600
4601 PR target/53575
4602 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
4603 is used for x86_64-*-*.
4604
4605 2012-06-05 Richard Guenther <rguenther@suse.de>
4606
4607 PR tree-optimization/30442
4608 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
4609 vectorization stop analysis at the first stmt we cannot compute
4610 a data-reference for instead of giving up completely.
4611
4612 2012-06-05 Richard Guenther <rguenther@suse.de>
4613
4614 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
4615 (partition_alloc): Initialize it.
4616 (partition_has_writes): New function.
4617 (rdg_flag_uses): Adjust.
4618 (rdg_flag_vertex): Likewise.
4619 (rdg_flag_vertex_and_dependent): Likewise.
4620 (rdg_flag_loop_exits): Likewise.
4621 (build_rdg_partition_for_component): Likewise.
4622 (rdg_build_partitions): Likewise.
4623
4624 2012-06-05 Richard Guenther <rguenther@suse.de>
4625
4626 PR tree-optimization/53081
4627 * tree-loop-distribution.c (generate_memset_builtin): Handle all
4628 kinds of byte-sized stores.
4629 (classify_partition): Likewise.
4630 (tree_loop_distribution): Adjust seed statements used for
4631 !flag_tree_loop_distribution.
4632
4633 2012-06-05 Alan Modra <amodra@gmail.com>
4634
4635 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
4636 (rs6000_emit_prologue): Ensure register used for inline saves
4637 of vector regs is not the static chain register. Revise comment.
4638
4639 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4640
4641 * doc/md.texi (Standard Pattern Names For Generation): Document
4642 sincos pattern.
4643
4644 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
4645
4646 PR bootstrap/53555
4647 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
4648
4649 2012-06-04 Jason Merrill <jason@redhat.com>
4650
4651 * dwarf2out.c (is_unit_die): New.
4652 (copy_declaration_context, copy_ancestor_tree): Use it.
4653 (copy_decls_walk): Likewise.
4654
4655 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
4656
4657 PR c++/53524
4658 * doc/invoke.texi (Wenum-compare): Update documentation.
4659
4660 2012-06-04 Dodji Seketeli <dodji@redhat.com>
4661
4662 PR preprocessor/53463
4663 * parser.c (cp_parser_assignment_expression): Use the location
4664 for the '=' as the default location for the expression.
4665
4666 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
4667
4668 PR target/53559
4669 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
4670 operands.
4671 (altivec_stvlxl): Ditto.
4672 (altivec_stvrx): Ditto.
4673 (altivec_stvrxl): Ditto.
4674
4675 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
4676
4677 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
4678 (ira_uniform_class_p): New macro.
4679
4680 * ira.c (setup_uniform_class_p): New function.
4681 (setup_allocno_and_important_classes): Call the function.
4682 (print_unform_and_important_classes): New function.
4683 (print_classes): Rename to print_translated_classes.
4684 (ira_debug_allocno_classes): Add call of
4685 print_unform_and_important_classes.
4686
4687 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
4688 classes instead of pressure classes.
4689
4690 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
4691
4692 PR middle-end/47530
4693 * trans-mem.c (expand_block_edges): Do not skip the first
4694 statement when resetting the BB.
4695
4696 2012-06-04 Richard Guenther <rguenther@suse.de>
4697
4698 * tree-data-ref.c (stores_from_loop): Remove.
4699 (stmt_with_adjacent_zero_store_dr_p): Likewise.
4700 (stores_zero_from_loop): Likewise.
4701 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
4702 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
4703 (adjacent_store_dr_p): New function.
4704 * tree-loop-distribution.c (generate_memset_builtin): Pass
4705 the RDG, use the already available data-reference.
4706 (generate_code_for_partition): Pass down RDG.
4707 (classify_partition): Inline parts of the former
4708 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
4709 (ldist_gen): Remember if there was any detected builtin and
4710 do less work if not and flag_tree_loop_distribution is not set.
4711 (tree_loop_distribution): Inline and fuse stores_from_loop
4712 and stores_zero_from_loop here.
4713
4714 2012-06-04 Richard Guenther <rguenther@suse.de>
4715
4716 PR middle-end/53471
4717 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
4718 create new assembler names.
4719
4720 2012-06-04 Richard Guenther <rguenther@suse.de>
4721
4722 * tree-data-ref.c (struct rdg_vertex_info): Remove.
4723 (rdg_vertex_for_stmt): Simplify using gimple_uid.
4724 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
4725 hashtable. Record stmt data-references.
4726 (hash_stmt_vertex_info): Remove.
4727 (eq_stmt_vertex_info): Likewise.
4728 (hash_stmt_vertex_del): Likewise.
4729 (build_empty_rdg): Simplify.
4730 (build_rdg): Adjust.
4731 (free_rdg): Likewise.
4732 (ref_base_address): Remove.
4733 (have_similar_memory_accesses): Likewise.
4734 * tree-data-ref.h (create_rdg_vertices): Remove.
4735 (struct rdg_vertex): Add datarefs member.
4736 (RDGV_DATAREFS): New define.
4737 (RDG_DATAREFS): Likewise.
4738 (have_similar_memory_accesses): Remove.
4739 (rdg_has_similar_memory_accesses): Likewise.
4740 * tree-loop-distribution.c (ref_base_address): Re-implement here.
4741 (similar_memory_accesses): Re-implement using existing data-references.
4742 (tree_loop_distribution): Initialize stmt uids for the stmt to
4743 RDG index mapping.
4744 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4745 access stmt vinfo for stmts in loop.
4746
4747 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
4748
4749 PR target/53461
4750 * config/m68k/m68k.md ("tablejump"): Fix check for
4751 CASE_VECTOR_PC_RELATIVE.
4752
4753 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4754
4755 * output.h (merge_weak, assemble_alias,
4756 initializer_constant_valid_p,
4757 initializer_constant_valid_for_bitfield_p): Move protos from here...
4758 * tree.h: ... to here.
4759 * cgraphclones.c: Do not include output.h.
4760 * gimplify.c: Likewise.
4761 * reload.c: Likewise.
4762 * recog.c: Likewise.
4763 * tree-ssa-loop-ivopts.c: Likewise.
4764 * tree-switch-conversion.c: Likewise.
4765 * c-parser.c: Likewise.
4766 * c-typeck.c: Likewise.
4767 * Makefile.in: Fix dependencies.
4768
4769 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
4770
4771 PR target/46261
4772 * config/avr/avr-stdint.h: New file.
4773 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
4774 newlib-stdint.h
4775
4776 2012-06-04 Jakub Jelinek <jakub@redhat.com>
4777
4778 PR tree-optimization/53550
4779 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
4780 is POINTER_TYPE_P, use sizetype as step type instead of type.
4781
4782 2012-06-04 Richard Guenther <rguenther@suse.de>
4783
4784 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
4785 (ref_base_address_1): Likewise.
4786 (remove_similar_memory_refs): Likewise.
4787 * tree-data-ref.h (remove_similar_memory_refs): Remove.
4788 * tree-loop-distribution.c (classify_partition): Do not classify
4789 as builtin if -ftree-loop-distribute-patterns is not enabled.
4790 (fuse_partitions_with_similar_memory_accesses): Inline ...
4791 (ldist_gen): ... here. Fuse all non-builtin partitions if
4792 -ftree-loop-distribution is not enabled. Properly return
4793 the number of created partitions. Do not update SSA form here but ...
4794 (tree_loop_distribution): ... once here for the whole function.
4795 Only walk innermost loops, constrain loops we consider here
4796 further. Do not call remove_similar_memory_refs.
4797 (distribute_loop): Do not check number of loop nodes here.
4798
4799 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4800
4801 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
4802
4803 2012-06-03 Martin Jambor <mjambor@suse.cz>
4804
4805 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
4806 (ipa_get_jf_known_type_base_type): Likewise.
4807 (ipa_get_jf_known_type_component_type): Likewise.
4808 (ipa_get_jf_constant): Likewise.
4809 (ipa_get_jf_pass_through_formal_id): Likewise.
4810 (ipa_get_jf_pass_through_operation): Likewise.
4811 (ipa_get_jf_ancestor_offset): Likewise.
4812 (ipa_get_jf_ancestor_type): Likewise.
4813 (ipa_get_jf_ancestor_formal_id): Likewise.
4814 (ipa_get_jf_member_ptr_pfn): Likewise.
4815 * ipa-prop.c (ipa_set_jf_known_type): New function.
4816 (ipa_set_jf_constant): Likewise.
4817 (ipa_set_jf_simple_pass_through): Likewise.
4818 (ipa_set_jf_arith_pass_through): Likewise.
4819 (ipa_set_ancestor_jf): Likewise.
4820 (fill_member_ptr_cst_jump_function): Moved up and renamed to
4821 ipa_set_jf_member_ptr_cst.
4822 (detect_type_change_1): Use the new jump function creation functions.
4823 (compute_complex_assign_jump_func): Likewise.
4824 (compute_complex_ancestor_jump_func): Likewise.
4825 (compute_known_type_jump_func): Likewise.
4826 (compute_scalar_jump_functions): Likewise.
4827 (compute_pass_through_member_ptrs): Likewise.
4828 (determine_cst_member_ptr): Likewise.
4829 (combine_known_type_and_ancestor_jfs): Likewise.
4830 (try_make_edge_direct_simple_call): Likewise.
4831 (try_make_edge_direct_virtual_call): Likewise.
4832 (update_indirect_edges_after_inlining): Likewise.
4833 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
4834 access functions. Incorporat NOP_EXPR and BINFO handling from its
4835 callers.
4836 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
4837 which was in its callers.
4838 (ipa_value_from_jfunc): Use jump function access functions. Some
4839 functionality moved to functions above.
4840 (propagate_vals_accross_ancestor): Likewise.
4841 (propagate_vals_accross_pass_through): Use jump function access
4842 functions.
4843 (propagate_accross_jump_function): Likewise.
4844 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
4845 access functions.
4846 (inline_merge_summary): Likewise.
4847
4848 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4849
4850 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
4851 * config/pa/pa.c (pa_attr_length_millicode_call): Use
4852 MAX_PCREL17F_OFFSET instead of fixed offset.
4853 (pa_attr_length_call): Likewise.
4854 (pa_attr_length_indirect_call): Likewise.
4855
4856 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
4857
4858 PR target/53512
4859 * config/sh/sh.opt (mfsca, mfsrra): New options.
4860 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
4861 condition.
4862 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
4863 (sinssf2, cossf2): Fold expanders to ...
4864 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
4865 TARGET_FSCA condition.
4866 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
4867 TARGET_FSCA.
4868 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
4869 -mno-fsca, -mfsrra, -mno-fsrra.
4870
4871 2012-06-03 Matt Turner <mattst88@gmail.com>
4872
4873 * config/mips/4600.md (r4700_imul_si): New.
4874 (r4700_imul_di): New.
4875 (r4700_fmul_single): New.
4876 (r4700_fmul_double): New.
4877 * config/mips/mips-cpus.def: Add r4700.
4878 * config/mips/mips.c: Likewise.
4879 * config/mips/mips.md: Likewise.
4880 * config/mips/mips-tables.opt: Regenerate.
4881
4882 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
4883
4884 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
4885 new function sparc_initial_elimination_offset.
4886 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
4887 function.
4888 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
4889 Prototype it.
4890
4891 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
4892
4893 * expmed.c (expand_mult, choose_multiplier): Change
4894 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
4895 * expr.c (convert_modes): Likewise.
4896 * explow.c (plus_constant): Likewise.
4897 * fixed-value.c (fixed_saturate1, fixed_saturate2)
4898 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
4899 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
4900 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
4901 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
4902 (do_fixed_shift, fixed_convert, fixed_convert)
4903 (fixed_convert_from_int, fixed_convert_from_int)
4904 (fixed_convert_from_real): Likewise.
4905 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
4906 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
4907 * varasm.c (output_constructor_bitfield): Likewise.
4908 * tree-vrp.c (register_edge_assert_for_2): Likewise.
4909 * double-int.c (rshift_double, lshift_double): Likewise.
4910 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
4911 Likewise.
4912 * simplify-rtx.c (mode_signbit_p)
4913 (simplify_const_unary_operation, simplify_binary_operation_1)
4914 (simplify_immed_subreg): Likewise.
4915 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
4916 * tree-vect-generic.c (build_replicated_const): Likewise.
4917 * dbxout.c (stabstr_O): Likewise.
4918 * emit-rtl.c (immed_double_int_const, immed_double_const)
4919 (gen_lowpart_common, init_emit_once): Likewise.
4920 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
4921 (widest_int_cst_value, upper_bound_in_type): Likewise.
4922 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
4923 (fixup_unsigned_type): Likewise.
4924 * real.c (real_to_integer2, real_from_integer): Likewise.
4925 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
4926 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
4927
4928 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
4929
4930 PR middle-end/53501
4931 * fold-const.c (fold_binary_loc): Refine previous change.
4932
4933 2012-06-01 Olivier Hainque <hainque@adacore.com>
4934
4935 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
4936 the "do {" part of the do-while(0) loop.
4937
4938 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4939
4940 * config/i386/i386.c (x86_sched_reorder): New function.
4941 Added new function x86_sched_reorder.
4942
4943 2012-06-01 Richard Guenther <rguenther@suse.de>
4944
4945 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4946 Handle PHIs.
4947 (classify_partition): Likewise.
4948
4949 2012-06-01 Richard Guenther <rguenther@suse.de>
4950
4951 * tree-loop-distribution.c (enum partition_kind): New enum.
4952 (struct partition_s): Add kind and main_stmt members.
4953 (partition_alloc): Initialize kind to PKIND_NORMAL.
4954 (partition_builtin_p): New function.
4955 (copy_loop_before): Remove failure path and assert instead.
4956 (generate_loops_for_partition): Likewise.
4957 (generate_memset_zero): Fold into ...
4958 (generate_memset_builtin): ... this.
4959 (classify_partition): New function with code from
4960 can_generate_builtin and generate_builtin.
4961 (generate_builtin): Remove.
4962 (can_generate_builtin): Likewise.
4963 (fuse_partitions_with_similar_memory_accesses): Call
4964 partition_builtin_p instead of can_generate_builtin.
4965 (rdg_build_partitions): Do not call
4966 fuse_partitions_with_similar_memory_accesses here...
4967 (ldist_gen): ... but here after classifying all partitions.
4968 Remove failure path of generate_code_for_partition.
4969 (generate_code_for_partition): Generate code according
4970 to partition classification.
4971
4972 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
4973 Jonathan Wakely <jwakely.gcc@gmail.com>
4974
4975 PR c++/50134
4976 * doc/invoke.texi (Warning Options): Explain purpose and differences
4977 between -Wmissing-prototypes and -Wmissing-declarations.
4978
4979 2012-06-01 Christian Bruel <christian.bruel@st.com>
4980
4981 * gcc.c (save_switch): Add user_p parameter.
4982 (read_specs): Likewise.
4983 (set_specs): Likewise.
4984 (validate_switches): Likewise.
4985 (validate_switches_from_spec): Likewise.
4986 (validate_all_switches): Pass on user_p parameter.
4987 (struct spec_list): Add user_p field.
4988 (struct switchstr): Add known field.
4989 (save_switch): Add known parameter.
4990 (INIT_STATIC_SPEC): Initialize user_p;
4991 (driver_unknown_option_callbac): call save_switch if
4992 OPT_SPECIAL_unknown.
4993 (driver_handle_option): Propagate OPT_specs.
4994 (do_spec_1): Set validated only if known.
4995 (check_live_switch): Likewise.
4996 (validate_switches): Set validated if known or user_spec.
4997
4998 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
4999
5000 Add CRIS atomic patterns for 1, 2, and 4 bytes.
5001 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
5002 * config/cris/cris-protos.h: Declare it.
5003 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
5004 (TARGET_DEFAULT): Add alignment by 32.
5005 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
5006 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
5007 TARGET_CPU_DEFAULT == 32.
5008 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
5009 * config/cris/cris.md: Include sync.md. Avoid allocating specific
5010 numbers by replacing the define_constants for all UNSPECs with the
5011 equivalent define_c_enum construct.
5012 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
5013 * config/cris/sync.md: New file.
5014
5015 2012-05-31 Matt Turner <mattst88@gmail.com>
5016
5017 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
5018 (r4600_imul_di): New.
5019 (r4600_idiv_si): Rename from r4600_idiv.
5020 (r4600_idiv_di): New.
5021
5022 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5023
5024 * output.h (__gcc_host_wide_int__): Move to hwint.h.
5025 (decl_default_tls_model): Move to tree.h
5026 (dump_file): Move to system.h.
5027 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
5028 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
5029 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
5030 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
5031 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
5032 dbxout_stab_value_internal_label,
5033 dbxout_stab_value_internal_label_diff): Move from here ...
5034 * dbxout.h: ... to here.
5035 * system.h (dump_file): Moved here from output.h.
5036 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
5037 * tree.h (decl_default_tls_model): Moved here from output.h.
5038 * varasm.c (default_stabs_asm_out_destructor,
5039 default_stabs_asm_out_constructor): Move from here ...
5040 * dbxout.c: ... to here.
5041
5042 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
5043
5044 * collect2.h (dump_file): Rename to dump_ld_file.
5045 * collect2.c: Likewise.
5046 * tlink.c: Likewise.
5047
5048 * alias.c: Do not include output.h.
5049 * auto-inc-dec.c: Likewise.
5050 * bt-load.c: Likewise.
5051 * caller-save.c: Likewise.
5052 * cfg.c: Likewise.
5053 * cfgbuild.c: Likewise.
5054 * cfgcleanup.c: Likewise.
5055 * cfglayout.c: Likewise.
5056 * cfgloop.c: Likewise.
5057 * cfgloopanal.c: Likewise.
5058 * cfgloopmanip.c: Likewise.
5059 * cfgrtl.c: Likewise.
5060 * cgraph.c: Likewise.
5061 * cgraphclones.c: Likewise.
5062 * combine-stack-adj.c: Likewise.
5063 * combine.c: Likewise.
5064 * cprop.c: Likewise.
5065 * cse.c: Likewise.
5066 * cselib.c: Likewise.
5067 * dbgcnt.c: Likewise.
5068 * df-problems.c: Likewise.
5069 * df-scan.c: Likewise.
5070 * dojump.c: Likewise.
5071 * fwprop.c: Likewise.
5072 * gcse.c: Likewise.
5073 * graph.c: Likewise.
5074 * haifa-sched.c: Likewise.
5075 * hw-doloop.c: Likewise.
5076 * ipa-inline-transform.c: Likewise.
5077 * ipa-pure-const.c: Likewise.
5078 * ipa-reference.c: Likewise.
5079 * ipa-utils.c: Likewise.
5080 * ira-build.c: Likewise.
5081 * ira-emit.c: Likewise.
5082 * lcm.c: Likewise.
5083 * loop-doloop.c: Likewise.
5084 * loop-invariant.c: Likewise.
5085 * loop-iv.c: Likewise.
5086 * loop-unroll.c: Likewise.
5087 * loop-unswitch.c: Likewise.
5088 * lto-cgraph.c: Likewise.
5089 * lto-section-in.c: Likewise.
5090 * lto-streamer-in.c: Likewise.
5091 * mcf.c: Likewise.
5092 * mode-switching.c: Likewise.
5093 * postreload-gcse.c: Likewise.
5094 * postreload.c: Likewise.
5095 * predict.c: Likewise.
5096 * profile.c: Likewise.
5097 * ree.c: Likewise.
5098 * reg-stack.c: Likewise.
5099 * regcprop.c: Likewise.
5100 * regmove.c: Likewise.
5101 * regstat.c: Likewise.
5102 * reload1.c: Likewise.
5103 * sched-ebb.c: Likewise.
5104 * sel-sched-dump.c: Likewise.
5105 * simplify-rtx.c: Likewise.
5106 * stor-layout.c: Likewise.
5107 * store-motion.c: Likewise.
5108 * tracer.c: Likewise.
5109 * tree-affine.c: Likewise.
5110 * tree-cfg.c: Likewise.
5111 * tree-cfgcleanup.c: Likewise.
5112 * tree-dfa.c: Likewise.
5113 * tree-into-ssa.c: Likewise.
5114 * tree-nomudflap.c: Likewise.
5115 * tree-optimize.c: Likewise.
5116 * tree-pretty-print.c: Likewise.
5117 * tree-profile.c: Likewise.
5118 * tree-ssa-address.c: Likewise.
5119 * tree-ssa-ccp.c: Likewise.
5120 * tree-ssa-copy.c: Likewise.
5121 * tree-ssa-dom.c: Likewise.
5122 * tree-ssa-loop-ch.c: Likewise.
5123 * tree-ssa-loop-im.c: Likewise.
5124 * tree-ssa-loop-manip.c: Likewise.
5125 * tree-ssa-loop-niter.c: Likewise.
5126 * tree-ssa-loop-prefetch.c: Likewise.
5127 * tree-ssa-loop-unswitch.c: Likewise.
5128 * tree-ssa-loop.c: Likewise.
5129 * tree-ssa-propagate.c: Likewise.
5130 * tree-ssa-structalias.c: Likewise.
5131 * tree-ssa-tail-merge.c: Likewise.
5132 * tree-ssa-threadedge.c: Likewise.
5133 * tree-ssa-threadupdate.c: Likewise.
5134 * tree-ssa-uncprop.c: Likewise.
5135 * tree-ssa-uninit.c: Likewise.
5136 * tree-ssa.c: Likewise.
5137 * value-prof.c: Likewise.
5138 * var-tracking.c: Likewise.
5139 * web.c: Likewise.
5140
5141 * config/m32r/m32r.c: Include dbxout.h.
5142 * config/pa/pa.c: Likewise.
5143 * config/rs6000/rs6000.c: Likewise.
5144
5145 * Makefile.in: Fix dependencies.
5146 * config/rs6000/t-rs5000: Likewise.
5147
5148 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
5149
5150 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
5151 * gimple.h (block_in_transaction): Check for flag_tm.
5152
5153 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
5154
5155 PR tree-optimization/52558
5156 * cfg.c (alloc_aux_for_edge): Fix comment.
5157 (alloc_aux_for_edge): Remove static.
5158 * basic-block.h (alloc_aux_for_edge): Protoize.
5159 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
5160 (execute_sm_if_changed_flag): New.
5161 (execute_sm_if_changed_flag_set): New.
5162 (execute_sm): Do not generate data races unless requested.
5163 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
5164 (tree_ssa_lim_finalize): Call free_aux_for_edges.
5165 * gimple.h (block_in_transaction): New.
5166 (gimple_in_transaction): Use block_in_transaction.
5167
5168 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5169
5170 PR target/51345
5171 * config/avr/avr.opt (-msp8): Document it.
5172 * doc/invoke.texi (AVR Options): Ditto. And document related
5173 built-in macros.
5174
5175 2012-05-31 Diego Novillo <dnovillo@google.com>
5176
5177 * configure.ac (CXX_FOR_BUILD): Define and substitute.
5178 (BUILD_CXXFLAGS): Define and substitute.
5179 * Makefile.in (BUILD_CXXFLAGS): Define.
5180 (CXX_FOR_BUILD): Define.
5181 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
5182 (LINKER_FOR_BUILD): Likewise.
5183 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
5184 (BUILD_LINKERFLAGS): Likewise.
5185 * configure: Regenerate.
5186
5187 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
5188
5189 * Makefile.in: Fix many dependencies.
5190 * tree-profile.c: Don't include regs.h.
5191 * tree-vectorizer.c: Don't include cfglayout.h.
5192 * tree-vect-stmts.c: Likewise.
5193 * tree-vect-slp.c: Likewise.
5194 * tree-vect-loop.c: Likewise.
5195 * reg-stack.c: Likewise.
5196 * tree-ssa-loop-manip.c: Likewise.
5197 * toplev.c: Likewise.
5198 * varasm.c: Don't include cfglayout.h, basic-block.h,
5199 and tree-iterator.h.
5200 * tree-cfgcleanup.c: Don't include cfglayout.h.
5201 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
5202 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
5203 * cgraphclones.c: Don't include plugin.h.
5204
5205 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5206
5207 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
5208 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
5209 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
5210
5211 2012-05-31 Richard Guenther <rguenther@suse.de>
5212
5213 * tree-loop-distribution.c (struct partition_s): New struct,
5214 typedef and vector type.
5215 (partition_alloc, partition_free): New functions.
5216 (generate_loops_for_partition, generate_builtin,
5217 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
5218 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
5219 build_rdg_partition_for_component, can_generate_builtin,
5220 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
5221 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
5222 number_of_rw_in_partition, partition_contains_all_rw,
5223 ldist_gen): Use partition_t instead of bitmap.
5224
5225 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5226
5227 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
5228 * doc/avr-mmcu.texi: Regenerate.
5229
5230 2012-05-31 Richard Guenther <rguenther@suse.de>
5231
5232 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
5233 Use FOR_EACH_SSA_DEF_OPERAND.
5234 (generate_builtin): Adjust.
5235 (stmt_generated_in_another_partition): Remove.
5236 (add_scalar_computations_to_partition): Likewise.
5237 (rdg_build_partitions): Do not call
5238 add_scalar_computations_to_partition.
5239
5240 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
5241
5242 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
5243 double ints throughout.
5244 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
5245 Check that the position of the field is representable as an integer.
5246
5247 2012-05-31 Richard Guenther <rguenther@suse.de>
5248
5249 * tree-data-ref.c (dr_analyze_innermost): Properly convert
5250 the MEM_REF offset to sizetype.
5251
5252 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5253
5254 * doc/invoke.texi (AVR Options): Fix typos.
5255
5256 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
5257
5258 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
5259 and -mcpu= options.
5260 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
5261 non-v32 into --march=v0_v10.
5262
5263 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5264
5265 * ira-int.h (target_ira_int): Rename x_move_cost to
5266 x_ira_register_move_cost, x_may_move_in_cost to
5267 x_ira_may_move_in_cost and x_may_move_out_cost to
5268 x_ira_may_move_out_cost. Delete the old fields with
5269 those names and also x_ira_max_register_move_cost,
5270 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
5271 (move_cost, may_move_in_cost, may_move_out_cost)
5272 (ira_max_register_move_cost, ira_max_may_move_in_cost)
5273 (ira_max_may_move_out_cost): Delete.
5274 * ira.c (init_move_cost): Rename to...
5275 (ira_init_register_move_cost): ...this, deleting the old
5276 function with that name. Apply above variable renamings.
5277 Retain asserts for null fields.
5278 (ira_init_once): Don't initialize register move costs here.
5279 (free_register_move_costs): Apply above variable renamings.
5280 Remove code for deleted fields.
5281
5282 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5283
5284 * ira.c (init_move_cost): Adjust choice of subclasses to match
5285 the current ira_init_register_move_cost choice. Use
5286 ira_class_subset_p instead of reg_class_subset_p.
5287 (ira_init_register_move_cost): Assert that move_cost,
5288 may_move_in_cost and may_move_out_cost already hold the desired
5289 values for their ira_* equivalents. For the latter two,
5290 ignore classes that can't store a register of the given mode.
5291
5292 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5293
5294 * ira.c (setup_allocno_and_important_classes): Use
5295 ira_class_hard_regs_num to check whether a class has any
5296 allocatable registers.
5297 (ira_init_register_move_cost): Likewise.
5298
5299 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5300
5301 * ira.c (init_move_cost): Adjust local variable names to match
5302 file conventions. Use ira_assert instead of gcc_assert.
5303
5304 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5305
5306 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
5307 Move these definitions and associated target_globals fields to...
5308 * ira-int.h: ...here.
5309 * rtl.h (init_move_cost): Delete.
5310 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
5311 * ira.c: ...here, making the latter static.
5312
5313 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5314
5315 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
5316 and ira_register_move_cost instead of init_move_cost and move_cost.
5317
5318 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5319
5320 * ira.h (target_ira): Delete x_ira_available_class_regs.
5321 (ira_available_class_regs): Delete.
5322 * ira.c (setup_available_class_regs): Delete.
5323 (setup_alloc_classes): Don't call it.
5324 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
5325 ira_available_class_regs.
5326 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
5327 (model_spill_cost): Likewise.
5328 * ira-build.c (low_pressure_loop_node_p): Likewise.
5329 * ira-color.c (color_pass): Likewise.
5330 * ira-emit.c (change_loop): Likewise.
5331 * ira-lives.c (inc_register_pressure, dec_register_pressure)
5332 (single_reg_class, ira_implicitly_set_insn_hard_regs)
5333 (process_bb_node_lives): Likewise.
5334 * loop-invariant.c (gain_for_invariant): Likewise.
5335
5336 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5337
5338 PR target/52999
5339 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
5340 (pa_section_type_flags): New.
5341 (pa_legitimate_constant_p): Revert previous change.
5342
5343 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
5344
5345 * ira.c (allocate_initial_values): Make static.
5346
5347 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
5348
5349 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
5350 Generate tls_initial_exec_64_sun only when !TARGET_X32.
5351
5352 2012-05-30 Richard Guenther <rguenther@suse.de>
5353
5354 PR middle-end/53501
5355 * fold-const.c (fold_binary_loc): Make sure to call
5356 fold_plusminus_mult_expr with the original sign of operands.
5357
5358 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
5359
5360 * Makefile.in: Fix many dependencies.
5361 (DWARF2_H): Depend on dwarf2.def.
5362 (RTL_ERROR_H): Depend on rtl-error.h.
5363 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
5364 all gimple-pretty-print.h and tree-pretty-print.h references.
5365
5366 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
5367
5368 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
5369 concatenations.
5370
5371 2012-05-30 Richard Guenther <rguenther@suse.de>
5372
5373 PR middle-end/53522
5374 * tree-emutls.c (gen_emutls_addr): Do not add globals to
5375 referenced-vars.
5376
5377 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
5378
5379 * explow.c (probe_stack_range): Restore simple control flow and stop
5380 again when the probe cannot be generated if HAVE_check_stack.
5381
5382 2012-05-30 Jakub Jelinek <jakub@redhat.com>
5383
5384 PR rtl-optimization/53519
5385 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
5386 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
5387
5388 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5389
5390 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
5391
5392 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
5393
5394 PR debug/53453
5395 * doc/tm.texi: Update.
5396 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
5397 * target.def (force_at_comp_dir): New hook.
5398 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
5399 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
5400
5401 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
5402
5403 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
5404 Darwin >= 10.
5405 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
5406 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
5407
5408 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
5409
5410 PR target/51340
5411 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
5412 flag_unsafe_math_optimizations is set.
5413 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
5414 Update description of -mfused-madd.
5415
5416 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
5417
5418 PR target/52941
5419 * config/sh/predicates.md (atomic_arith_operand,
5420 atomic_logical_operand): New predicates.
5421 * config/sh/sh.c (sh_option_override): Check atomic options.
5422 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
5423 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
5424 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
5425 UNSUPPORTED_HARD_ATOMIC_CPU.
5426 * config/sh/sync.md: Update description comments.
5427 (I12): New mode iterator.
5428 (fetchop_predicate, fetchop_constraint): New code attributes.
5429 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
5430 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
5431 atomic_fetch_<fetchop_name>si_hard,
5432 atomic_fetch_<fetchop_name><mode>_hard,
5433 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
5434 atomic_<fetchop_name>_fetchsi_hard,
5435 atomic_<fetchop_name>_fetch<mode>_hard,
5436 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
5437 atomic_test_and_set_hard): New insns.
5438 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
5439 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
5440 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
5441 atomic_test_and_set_soft): Use same formatting for the first line of
5442 the asm block as in new insns above.
5443 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
5444 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
5445 atomic_test_and_set): Integrate new *_hard insns into expanders.
5446 * config/sh/sh.opt (mhard-atomic): New option.
5447 * doc/invoke.texi (SH Options): Document it.
5448
5449 2012-05-29 Meador Inge <meadori@codesourcery.com>
5450
5451 * c-decl.c (c_push_function_context): Always create a new language
5452 function.
5453 (c_pop_function_context): Clear the language function created in
5454 c_push_function_context.
5455
5456 2012-05-29 Matt Turner <mattst88@gmail.com>
5457
5458 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
5459 (define_bypass "ev6_fcmov"): New.
5460
5461 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
5462
5463 * integrate.c: Remove.
5464 * integrate.h: Remove.
5465 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
5466 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
5467 * config/rs6000/t-rs6000: Likewise
5468 * config/spu/t-spu-elf: Likewise.
5469 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
5470 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
5471 from integrate.h to here.
5472 (initial_value_entry): New prototype.
5473 * reload.h (allocate_initial_values): Remove prototype.
5474 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
5475 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
5476 integrate.c.
5477 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
5478 set_decl_abstract_flags, set_block_abstract_flags): Move from
5479 integrate.c to here, the only user.
5480 * expmed.c (extract_fixed_bit_field): Remove outdated comment
5481 about integrate.c.
5482 * function.c: Don't include integrate.h.
5483 (struct initial_value_pair, struct initial_value_struct,
5484 get_hard_reg_initial_val, has_hard_reg_initial_val,
5485 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
5486 integrate.c to here.
5487 (initial_value_entry): New function.
5488 * genemit.c (main): Don't print integrate.h include line.
5489 * ira.c: Don't include integrate.h.
5490 (allocate_initial_values): Move from integrate.c to here.
5491 (ira): Update allocate_initial_values call.
5492 * tree-inline.c: Don't include integrate.h.
5493 (function_attribute_inlinable_p): Moved from integrate.c to here.
5494 * cfgexpand.c: Don't include integrate.h.
5495 * except.c: Likewise.
5496 * langhooks.c: Likewise.
5497 * passes.c: Likewise.
5498 * toplev.c: Likewise.
5499 * config/frv/frv.c: Likewise.
5500 * config/pa/pa.c: Likewise.
5501 * config/spu/spu.c: Likewise.
5502 * config/epiphany/epiphany.c: Likewise.
5503 * config/mep/mep.c: Likewise.
5504 * config/score/score.c: Likewise.
5505 * config/picochip/picochip.c: Likewise.
5506 * config/sh/sh.c: Likewise.
5507 * config/alpha/alpha.c: Likewise.
5508 * config/microblaze/microblaze.c: Likewise.
5509 * config/mips/mips.c: Likewise.
5510 * config/v850/v850.c: Likewise.
5511 * config/mmix/mmix.c: Likewise.
5512 * config/bfin/bfin.c: Likewise.
5513 * config/arm/arm.c: Likewise.
5514 * config/s390/s390.c: Likewise.
5515 * config/m32r/m32r.c: Likewise.
5516 * config/rs6000/rs6000.c: Likewise.
5517 * config/c6x/c6x.c: Include function.h instead of integrate.h.
5518 * config/tilegx/tilegx.c: Likewise.
5519 * config/tilepro/tilepro.c: Likewise.
5520
5521 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
5522
5523 * config/avr/t-avr (s-avr-mmcu-texi): Call
5524 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
5525
5526 2012-05-29 Michael Matz <matz@suse.de>
5527
5528 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
5529 assign_temp): Remove 'keep' argument.
5530 (mark_temp_addr_taken): Remove prototype.
5531 * tree.h (expand_decl): Remove prototype.
5532 * function.c (struct temp_slot): Remove addr_taken and keep member.
5533 (assign_stack_temp_for_type) Don't initialize above, remove
5534 keep argument.
5535 (assign_stack_temp, assign_temp): Remove keep argument.
5536 (mark_temp_addr_taken): Remove.
5537 (preserve_temp_slots): Remove handling of addr_taken and keep members.
5538 (free_temp_slots): Ditto.
5539 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
5540 dead code.
5541 * stmt.c (expand_asm_operands): Remove dead code.
5542 (expand_decl): Remove.
5543 * c-decl.c (finish_struct): Don't call expand_decl.
5544 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
5545 and assign_stack_temp.
5546 * calls.c (save_fixed_argument_area, initialize_argument_information,
5547 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
5548 * expmed.c (extract_bit_field_1): Ditto.
5549 * expr.c (emit_group_load_1, emit_group_store,
5550 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
5551 store_field, expand_constructor, expand_cond_expr_using_cmove,
5552 expand_expr_real_2, expand_expr_real_1): Ditto.
5553 * stmt.c (expand_asm_operands, expand_return): Ditto.
5554
5555 * function.c (pop_temp_slots): Call free_temp_slots.
5556 * calls.c (store_one_arg): Don't call preserve_temp_slots or
5557 free_temp_slots.
5558 * expr.c (expand_assignment): Don't call free_temp_slots.
5559
5560 * config/arm/arm.c (neon_expand_vector_init): Ditto.
5561 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
5562 (ix86_expand_vector_extract): Ditto.
5563 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
5564 ia64_expand_movxf_movrf): Ditto.
5565 * config/mips/mips.c (mips_expand_vi_general): Ditto.
5566 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
5567 extendsfdf2): Ditto.
5568 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
5569 rs6000_expand_vector_set, rs6000_expand_vector_extract,
5570 rs6000_allocate_stack_temp): Ditto.
5571 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
5572 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5573 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
5574 sparc_expand_vector_init): Ditto.
5575
5576 2012-05-29 Michael Matz <matz@suse.de>
5577
5578 * c-tree.h (c_expand_decl): Remove prototype.
5579
5580 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
5581 a kept temp.
5582 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
5583 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
5584 COMPOUND_LITERAL_EXPR.
5585 * function.c (expand_function_start): Don't call expand_decl,
5586 instead assert that we have RTL assigned.
5587 * tree-ssa-live.c (remove_unused_locals): Clear
5588 nonlocal_goto_save_area if its backing variable is removed.
5589 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
5590 as mem inputs.
5591 (expand_decl): Assert that this does nothing.
5592 * calls.c (expand_call): Don't call mark_temp_addr_taken.
5593
5594 2012-05-29 Richard Guenther <rguenther@suse.de>
5595
5596 PR tree-optimization/53516
5597 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
5598 bitfield accesses.
5599 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5600
5601 2012-05-29 Joseph Myers <joseph@codesourcery.com>
5602
5603 * LANGUAGES: Fix typos.
5604 * Makefile.in: Fix typos.
5605 * alias.c: Fix typos.
5606 * auto-inc-dec.c: Fix typos.
5607 * bb-reorder.c: Fix typos.
5608 * cfgcleanup.c: Fix typos.
5609 * cgraph.c: Fix typos.
5610 * cgraph.h: Fix typos.
5611 * cgraphunit.c: Fix typos.
5612 * collect2-aix.h: Fix typos.
5613 * collect2.c: Fix typos.
5614 * compare-elim.c: Fix typos.
5615 * config/alpha/vms.h: Fix typos.
5616 * config/arm/README-interworking: Fix typos.
5617 * config/arm/arm.c: Fix typos.
5618 * config/arm/iterators.md: Fix typos.
5619 * config/arm/vxworks.h: Fix typos.
5620 * config/avr/avr.c: Fix typos.
5621 * config/avr/avr.h: Fix typos.
5622 * config/avr/avr.md: Fix typos.
5623 * config/avr/builtins.def: Fix typos.
5624 * config/c6x/c6x.c: Fix typos.
5625 * config/cr16/cr16.c: Fix typos.
5626 * config/cr16/cr16.md: Fix typos.
5627 * config/cris/cris.md: Fix typos.
5628 * config/darwin.c: Fix typos.
5629 * config/darwin.opt: Fix typos.
5630 * config/i386/i386-c.c: Fix typos.
5631 * config/i386/i386.c: Fix typos.
5632 * config/ia64/ia64.c: Fix typos.
5633 * config/m68k/cf.md: Fix typos.
5634 * config/mep/mep.c: Fix typos.
5635 * config/microblaze/microblaze.c: Fix typos.
5636 * config/microblaze/microblaze.h: Fix typos.
5637 * config/mn10300/mn10300.c: Fix typos.
5638 * config/mn10300/mn10300.md: Fix typos.
5639 * config/pa/pa.c: Fix typos.
5640 * config/picochip/picochip.h: Fix typos.
5641 * config/rs6000/a2.md: Fix typos.
5642 * config/rs6000/rs6000.c: Fix typos.
5643 * config/rs6000/vector.md: Fix typos.
5644 * config/rx/rx.md: Fix typos.
5645 * config/rx/rx.opt: Fix typos.
5646 * config/s390/2097.md: Fix typos.
5647 * config/s390/s390.c: Fix typos.
5648 * config/s390/s390.h: Fix typos.
5649 * config/sh/sh.c: Fix typos.
5650 * config/sh/sh.md: Fix typos.
5651 * config/sparc/sync.md: Fix typos.
5652 * config/spu/spu.c: Fix typos.
5653 * config/spu/spu.md: Fix typos.
5654 * config/vms/vms.c: Fix typos.
5655 * config/vxworks-dummy.h: Fix typos.
5656 * config/vxworks.h: Fix typos.
5657 * cselib.c: Fix typos.
5658 * df-scan.c: Fix typos.
5659 * df.h: Fix typos.
5660 * doc/extend.texi: Fix typos.
5661 * doc/install.texi: Fix typos.
5662 * doc/invoke.texi: Fix typos.
5663 * doc/md.texi: Fix typos.
5664 * doc/plugins.texi: Fix typos.
5665 * doc/rtl.texi: Fix typos.
5666 * dse.c: Fix typos.
5667 * dwarf2asm.c: Fix typos.
5668 * dwarf2out.c: Fix typos.
5669 * except.h: Fix typos.
5670 * expr.c: Fix typos.
5671 * fold-const.c: Fix typos.
5672 * gcc.c: Fix typos.
5673 * gcse.c: Fix typos.
5674 * genautomata.c: Fix typos.
5675 * gengtype-state.c: Fix typos.
5676 * gengtype.c: Fix typos.
5677 * genhooks.c: Fix typos.
5678 * gimple-fold.c: Fix typos.
5679 * gimple-pretty-print.c: Fix typos.
5680 * gimple.c: Fix typos.
5681 * gimple.h: Fix typos.
5682 * gimplify.c: Fix typos.
5683 * graphite-interchange.c: Fix typos.
5684 * graphite-sese-to-poly.c: Fix typos.
5685 * ifcvt.c: Fix typos.
5686 * input.c: Fix typos.
5687 * ipa-cp.c: Fix typos.
5688 * ipa-inline-analysis.c: Fix typos.
5689 * ipa-inline-transform.c: Fix typos.
5690 * ipa-inline.c: Fix typos.
5691 * ipa-pure-const.c: Fix typos.
5692 * ipa-ref.h: Fix typos.
5693 * ipa-reference.c: Fix typos.
5694 * ipa-utils.c: Fix typos.
5695 * ipa.c: Fix typos.
5696 * ira-emit.c: Fix typos.
5697 * ira-lives.c: Fix typos.
5698 * lto-streamer.c: Fix typos.
5699 * lto-streamer.h: Fix typos.
5700 * lto-wrapper.c: Fix typos.
5701 * mcf.c: Fix typos.
5702 * mode-switching.c: Fix typos.
5703 * modulo-sched.c: Fix typos.
5704 * plugin.c: Fix typos.
5705 * postreload.c: Fix typos.
5706 * sched-deps.c: Fix typos.
5707 * sel-sched-ir.c: Fix typos.
5708 * sel-sched-ir.h: Fix typos.
5709 * sel-sched.c: Fix typos.
5710 * sese.c: Fix typos.
5711 * stor-layout.c: Fix typos.
5712 * target-hooks-macros.h: Fix typos.
5713 * target.def: Fix typos.
5714 * trans-mem.c: Fix typos.
5715 * tree-eh.c: Fix typos.
5716 * tree-predcom.c: Fix typos.
5717 * tree-sra.c: Fix typos.
5718 * tree-ssa-address.c: Fix typos.
5719 * tree-ssa-loop-ivopts.c: Fix typos.
5720 * tree-ssa-loop-niter.c: Fix typos.
5721 * tree-ssa-math-opts.c: Fix typos.
5722 * tree-ssa-pre.c: Fix typos.
5723 * tree-ssa-propagate.c: Fix typos.
5724 * tree-ssa-reassoc.c: Fix typos.
5725 * tree-ssa-sccvn.c: Fix typos.
5726 * tree-ssa-ter.c: Fix typos.
5727 * tree-ssa-uninit.c: Fix typos.
5728 * tree-ssanames.c: Fix typos.
5729 * tree-vect-generic.c: Fix typos.
5730 * tree-vect-slp.c: Fix typos.
5731 * tree.c: Fix typos.
5732 * tree.h: Fix typos.
5733 * varasm.c: Fix typos.
5734 * varpool.c: Fix typos.
5735
5736 2012-05-29 Joseph Myers <joseph@codesourcery.com>
5737
5738 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
5739
5740 2012-05-29 Richard Guenther <rguenther@suse.de>
5741
5742 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
5743 for globals.
5744 (add_referenced_var_1): Re-organize. Assert we are not
5745 called for globals.
5746 (remove_referenced_var): Likewise.
5747 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
5748 * tree-mudflap.c (execute_mudflap_function_ops): Do not
5749 call add_referenced_var on globals.
5750 * matrix-reorg.c (transform_access_sites): Likewise.
5751
5752 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
5753
5754 * alias.c (reg_known_value): Make this a VEC.
5755 (reg_known_equiv_p): Make this an sbitmap.
5756 (reg_known_value_size): Remove.
5757 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
5758 set_reg_known_equiv_p): Update for reg_known_value and
5759 reg_known_value_size data structure change.
5760 (init_alias_analysis, end_alias_analysis): Likewise.
5761
5762 2012-05-29 Jakub Jelinek <jakub@redhat.com>
5763
5764 PR middle-end/53510
5765 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
5766 to avoid leaking memory. No need to handle memory allocation
5767 failure. Double string_len on each reallocation instead of adding 2.
5768 * gcov.c (read_line): Likewise.
5769
5770 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
5771
5772 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
5773 New macros.
5774 * config/cris/cris.md ("trap"): Define, enabled for
5775 TARGET_TRAP_USING_BREAK8.
5776 * config/cris/cris.opt (mtrap-using-break8): New option.
5777
5778 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5779
5780 PR c++/25137
5781 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
5782 for C++.
5783
5784 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
5785
5786 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
5787 (Standard Names): Fix typos in documentation of atomic patterns.
5788
5789 2012-05-27 Nathan Sidwell <nathan@acm.org>
5790
5791 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
5792
5793 2012-05-26 Jason Merrill <jason@redhat.com>
5794
5795 PR c++/53220
5796 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
5797 about array compound literals.
5798
5799 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
5800
5801 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
5802 if CLEANUP_NO_INSN_DEL.
5803 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
5804 from cfg_layout_merge_blocks.
5805 (emit_nop_for_unique_locus_between): New function.
5806 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
5807 (cfg_layout_merge_blocks): Likewise.
5808
5809 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
5810 Paolo Bonzini <bonzini@gnu.org>
5811
5812 * df-scan.c (df_def_record_1): Assert a parallel must contain an
5813 EXPR_LIST at this point. Receive the LOC and move its extraction...
5814 (df_defs_record): ... here. Change if-else to a switch statement.
5815 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
5816 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
5817 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
5818 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
5819 regs_invalidated_by_call.
5820 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
5821 df_get_call_refs().
5822
5823 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
5824
5825 PR lto/52178
5826 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
5827 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
5828
5829 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5830
5831 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
5832 software floating point emulation. No longer build the multilibs
5833 with -mstrict-align.
5834
5835 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
5836
5837 PR middle-end/53008
5838 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
5839 accessed indirectly.
5840 (ipa_tm_create_version): Same.
5841
5842 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
5843
5844 PR target/53474
5845 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
5846 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
5847
5848 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
5849
5850 PR target/53435
5851 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
5852 (ix86_expand_vec_perm): Use int mode instead of float.
5853 (expand_vec_perm_pshufb): Remove handling of useseless type
5854 conversion.
5855
5856 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
5857
5858 PR ada/52362
5859 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
5860 gnu_ld variables to yes.
5861 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
5862 (HAVE_GNU_AS): Likewise.
5863 * config.in: Regenerate.
5864 * configure: Likewise.
5865
5866 2012-05-25 Tristan Gingold <gingold@adacore.com>
5867
5868 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
5869 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
5870 and preferred_alignment.
5871
5872 2012-05-25 Tristan Gingold <gingold@adacore.com>
5873
5874 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
5875
5876 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
5877
5878 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
5879 volatile bitfields case.
5880
5881 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
5882
5883 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5884 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
5885 (adjacent_mem_locations): Move some code to and call...
5886 (get_memref_parts): ...new function.
5887 (mem_locations_overlap): New function.
5888 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
5889 (is_mem_ref): Rename to...
5890 (find_mem_ref): ...this. Return MEM rtx.
5891 (get_store_dest): Remove function.
5892 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
5893 new parameter and adjust calls.
5894 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
5895 mem refs overlap for true_store_to_load_dep_costly.
5896 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
5897 passed to adjacent_mem_locations.
5898 (is_costly_group): Walk resolved dependency list.
5899 (force_new_group): Emit group ending nop for Power6/Power7.
5900 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
5901 (group_ending_nop): New define_insn.
5902
5903 2012-05-24 Dodji Seketeli <dodji@redhat.com>
5904
5905 Make unwound macro expansion trace less redundant
5906 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
5907 context of macro definition in the trace, when it's redundant.
5908 Update comments.
5909
5910 2012-05-24 Richard Guenther <rguenther@suse.de>
5911
5912 PR middle-end/53460
5913 * tree-profile.c (tree_profiling): Cleanup the CFG if
5914 execute_fixup_cfg requests it.
5915
5916 2012-05-24 Richard Guenther <rguenther@suse.de>
5917
5918 * tree-flow.h (create_var_ann): Remove.
5919 * tree-dfa.c (create_var_ann): Remove and inline into its
5920 single caller ...
5921 (add_referenced_var_1): ... here.
5922 * varpool.c (add_new_static_var): Do not call add_referenced_var
5923 for global vars.
5924 * gimple-fold.c (canonicalize_constructor_val): Likewise.
5925 * tree-switch-conversion.c (build_one_array): Likewise.
5926 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
5927 * tree-flow-inline.h (gimple_referenced_vars): Guard against
5928 NULL fn argument.
5929 * tree-inline.c (remap_gimple_op_r): Likewise. Check
5930 gimple_referenced_vars instead of gimple_in_ssa_p.
5931 (copy_tree_body_r): Likewise.
5932 (setup_one_parameter): Likewise.
5933 (declare_return_variable): Likewise.
5934 (tree_function_versioning): Likewise.
5935
5936 2012-05-24 Jakub Jelinek <jakub@redhat.com>
5937
5938 PR tree-optimization/53465
5939 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
5940 vr0 into *vr, then vrp_meet that.
5941 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
5942 have any equivalences.
5943 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
5944 first time.
5945
5946 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
5947
5948 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
5949 hard registers.
5950 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
5951 check end_regno - 1 is a hard register.
5952
5953 2012-05-24 Richard Guenther <rguenther@suse.de>
5954
5955 * varpool.c (add_new_static_var): Remove call to create_var_ann.
5956 * tree-ssa-operands.c (create_vop_var): Likewise.
5957
5958 2012-05-24 Richard Guenther <rguenther@suse.de>
5959
5960 PR bootstrap/53466
5961 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
5962 handle globals.
5963 (remove_unused_locals): Pass global_unused_vars to
5964 remove_unused_scope_block_p. Restore code walking all
5965 referenced vars and pruning them.
5966
5967 2012-05-23 Jan Hubicka <jh@suse.cz>
5968
5969 * tree.h (alias_diag_flags): Remove.
5970 (alias_pair): Remove emitted_diags.
5971 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
5972 symbol_alias_set_t, symbol_alias_set_destroy,
5973 symbol_alias_set_contains, propagate_aliases_backward): Remove.
5974 * toplev.c (compile_file): Do not call finish_aliases_2
5975 * cgraphunit.c (cgraph_process_new_functions): Do not call
5976 finish_aliases_1.
5977 (handle_alias_pairs): Output diagnostics about aliases to externals.
5978 (assemble_thunks_and_aliases): Use do_assemble_alias.
5979 (output_weakrefs): Likewise.
5980 (finalize_compilation_unit): Do not call finish_aliases_1.
5981 * ipa.c (symtab_remove_unreachable_nodes): De not call
5982 remove_unreachable_alias_pairs.
5983 * varasm.c (do_assemble_alias): Export.
5984 (symbol_alias_set_create, symbol_alias_set_destroy,
5985 symbol_alias_set_contains, symbol_alias_set_insert,
5986 propagate_aliases_forward, propagate_aliases_backward,
5987 propagate_aliases_backward, trivially_visible_alias,
5988 trivially_defined_alias, remove_unreachable_alias_pairs,
5989 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
5990 * output.h (do_assemble_alias): Declare.
5991 * varpool.c (varpool_remove_unreferenced_decls): Do not call
5992 finish_aliases_1.
5993
5994 2012-05-23 Martin Jambor <mjambor@suse.cz>
5995
5996 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
5997
5998 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
5999
6000 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
6001 size handling.
6002 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
6003 (iterative_hash_gimple_type): Adjust comment.
6004 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
6005 domain for an array type instead of the domain type itself.
6006
6007 2012-05-23 Richard Guenther <rguenther@suse.de>
6008
6009 PR tree-optimization/53438
6010 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
6011
6012 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
6013
6014 PR target/53448
6015 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
6016 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
6017 ASM_OUTPUT_ALIGN.
6018
6019 2012-05-23 Richard Guenther <rguenther@suse.de>
6020
6021 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
6022 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
6023 via the global_unused_vars bitmap.
6024 (remove_unused_locals): Handle global vars in local-decls via
6025 a global_unused_vars bitmap instead of the used flag in the
6026 var annotation. Simplify global variable handling and removal.
6027
6028 2012-05-22 Jan Hubicka <jh@suse.cz>
6029
6030 PR middle-end/53426
6031 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
6032 from other partitions.
6033
6034 2012-05-22 Jan Hubicka <jh@suse.cz>
6035
6036 PR middle-end/53161
6037 * symtab.c (symtab_register_node): Fix ordering issue.
6038
6039 2012-05-22 Steven Drake <sbd@NetBSD.org>
6040
6041 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
6042
6043 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
6044
6045 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6046 Use strip_name_encoding target hook.
6047
6048 2012-05-22 Richard Guenther <rguenther@suse.de>
6049
6050 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
6051 (init_function_for_compilation): Remove.
6052 * tree-dfa.c (find_vars_r): Take struct function argument.
6053 (find_referenced_vars_in): Adjust.
6054 * tree-ssa-operands.c (clobber_stats): Remove.
6055 (create_vop_var): Take struct function argument. Mark
6056 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
6057 (init_ssa_operands): Take struct function argument.
6058 (fini_ssa_operands): Do not dump dead stats.
6059 * tree-ssa-operands.h (init_ssa_operands): Take struct function
6060 argument.
6061 * cgraphunit.c (init_lowered_empty_function): Adjust.
6062 * lto-streamer-in.c (input_cfg): Likewise.
6063 * tree-inline.c (initialize_cfun): Likewise.
6064 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
6065 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
6066 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
6067 virtual operands are not registers.
6068
6069 2012-05-22 Richard Guenther <rguenther@suse.de>
6070
6071 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
6072
6073 2012-05-22 Richard Guenther <rguenther@suse.de>
6074
6075 PR middle-end/53437
6076 * tree-inline.c (setup_one_parameter): Create a dummy init
6077 statement for unused parameters when not optimizing.
6078
6079 2012-05-22 Richard Guenther <rguenther@suse.de>
6080
6081 * tree-flow.h (add_referenced_var_1): Declare.
6082 (add_referenced_var): Define.
6083 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
6084 (add_referenced_var): Rename to ...
6085 (add_referenced_var_1): ... this. Take struct function argument.
6086
6087 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6088
6089 PR target/53334
6090 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
6091 * config/arm/arm.c (arm_validize_comparison): Define.
6092 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
6093 arm_validize_comparison.
6094 ("cbranchdi4"): Likewise.
6095 ("cstoredi4"): Likewise.
6096 ("movsicc"): Likewise.
6097 ("movsfcc"): Likewise.
6098 ("movdfcc"): Likewise.
6099
6100 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
6101
6102 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
6103 the mw_reg_pool size.
6104
6105 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
6106
6107 PR tree-optimization/53336
6108 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
6109 non-integer integral types to offset type and vice versa.
6110
6111 2012-05-22 Alan Modra <amodra@gmail.com>
6112
6113 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
6114 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
6115 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
6116 V_SAVE_INLINE): Delete.
6117 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
6118 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
6119 For ELF targets, use out-of-line restores for -Os and any number
6120 of regs if the restore exits, and out-of-line gp save for two or
6121 more regs. Use save_reg_p to test for holes in reg restore set.
6122 Replace "#if" with "if".
6123
6124 2012-05-22 Alan Modra <amodra@gmail.com>
6125
6126 * config/rs6000/rs6000.c (save_reg_p): New function.
6127 (first_reg_to_save, first_fp_reg_to_save): Use it here.
6128 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
6129 (emit_frame_save): Use gen_frame_store.
6130 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
6131 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
6132 vrsave and toc.
6133 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
6134 vrsave, toc, gp and fp restores.
6135
6136 2012-05-22 Alan Modra <amodra@gmail.com>
6137
6138 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
6139 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
6140 Move function pointer variables after forward declarations.
6141 (rs6000_builtin_support_vector_misalignment): Make static.
6142 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
6143 (rs6000_function_value, rs6000_can_eliminate): Likewise.
6144
6145 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
6146
6147 PR rtl-optimization/53373
6148 * caller-save.c (save_call_clobbered_regs): Look into a possible
6149 PARALLEL manually rather than using single_set on a call insn.
6150
6151 2012-05-21 Jakub Jelinek <jakub@redhat.com>
6152
6153 PR tree-optimization/53436
6154 * omp-low.c (omp_build_component_ref): New function.
6155 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
6156
6157 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
6158
6159 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
6160 arguments to bool.
6161 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
6162 Do not print '.' here. Output operand lossage error for unhandled
6163 sizes. Move.
6164 <case '*'>: Move.
6165 <case '&'>: Ditto.
6166 <case 'Y'>: Ditto.
6167 <case 'z'>: Hardcode "code" argument into error strings.
6168 <case 'Z'>: Ditto.
6169 <case 'D'>: Merge AVX and non-AVX codes.
6170 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
6171 Update call to put_condition_code.
6172
6173 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
6174
6175 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
6176 CC_STATUS_INIT.
6177 (clzsi2): New expander.
6178 (*clzsi2_68k): New insn.
6179 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
6180
6181 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
6182
6183 * gimple.h (gimple_set_in_transaction): Remove.
6184 (gimple_in_transaction): Look in BB instead.
6185 (gimple_statement_base): Remove in_transaction field.
6186 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
6187 * trans-mem.c (compute_transaction_bits): Place transaction bit
6188 information into basic blocks.
6189
6190 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
6191
6192 * expr.c (get_def_for_expr_class): Define only if
6193 HAVE_conditional_move.
6194 (convert_tree_comp_to_rtx): Likewise.
6195
6196 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
6197
6198 PR target/53399
6199 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
6200 for TARGET_BMI.
6201 (ffssi2_no_cmove): Ditto.
6202 (*ffs<mode>_1): Remove insn pattern.
6203 (*tzcnt<mode>_1): New insn pattern.
6204 (*bsf<mode>1): Ditto.
6205
6206 2012-05-21 Richard Guenther <rguenther@suse.de>
6207
6208 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
6209 more referenced vars.
6210 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
6211 flag on variables that have a var-annotation.
6212
6213 2012-05-21 Joseph Myers <joseph@codesourcery.com>
6214
6215 PR c/53418
6216 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
6217 from folded operands before wrapping another around the
6218 conditional expression.
6219
6220 2012-05-21 Jakub Jelinek <jakub@redhat.com>
6221
6222 PR tree-optimization/53366
6223 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
6224 tests if complex_numbers == 2, but there are non-complex number loads
6225 too.
6226
6227 PR tree-optimization/53409
6228 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
6229 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
6230
6231 PR tree-optimization/53410
6232 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
6233 instead of build_int_cst (type, 0) where vector types might be
6234 involved. Instead of build_int_cst (type, 1) convert the original
6235 integer_onep argument to the desired type.
6236
6237 2012-05-21 Michael Matz <matz@suse.de>
6238
6239 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
6240 (simplify_test_exp): Handle one more case of distributive law,
6241 decrease cost threshold.
6242 (tests_attr_p, get_attr_order): New functions.
6243 (optimize_attrs): Use topological order, inline only cheap values.
6244 (write_attr_set): Reset our_known_true after some time.
6245
6246 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
6247
6248 PR target/53425
6249 * config/i386/i386.c (type_natural_mode): Warn passing SSE
6250 vector argument without SSE enabled changes the ABI.
6251
6252 2012-05-21 Richard Guenther <rguenther@suse.de>
6253
6254 PR tree-optimization/53408
6255 * tree-vect-loop.c (vectorizable_induction): Properly check
6256 the restriction that we cannot handle induction results from
6257 the inner loop outside of the outer loop.
6258
6259 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
6260
6261 PR target/53416
6262 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
6263 (UNSPECV_RDRAND): This.
6264 (rdrand<mode>_1): Updated.
6265
6266 2012-05-21 Richard Guenther <rguenther@suse.de>
6267
6268 * tree-loop-distribution.c (can_generate_builtin): Reject
6269 volatile stmts.
6270
6271 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
6272
6273 * Makefile.in (options.c): Add options.h to included header
6274 files, before tm.h.
6275
6276 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
6277
6278 * tree-parloops.c : Add myself to contributors, update
6279 TODO list, add link to wiki.
6280
6281 2012-05-21 Alan Modra <amodra@gmail.com>
6282
6283 * config/rs6000/predicates.md (input_operand): Don't match
6284 constant pool addresses. Remove label_ref, high and plus from
6285 match_code list. Remove redundant CONSTANT_P test.
6286 (splat_input_operand): Similarly update match_code list.
6287 (small_toc_ref): New predicate.
6288 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
6289 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
6290 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
6291 register checks to..
6292 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
6293 generated by create_TOC_reference.
6294 (rs6000_legitimize_address): Update cerate_TOC_reference call.
6295 (rs6000_delegitimize_address): Handle new rtl for toc refs.
6296 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
6297 (use_toc_relative_ref): New function, split out from..
6298 (rs6000_emit_move): ..here. Remove redundant tests. Update
6299 create_TOC_reference calls.
6300 (rs6000_legitimize_reload_address): Formatting. Handle splitting
6301 of medium/large model toc addresses. Use use_toc_relative_ref.
6302 (print_operand): Formatting, style. Adjust for toc changes.
6303 (print_operand_address): Likewise.
6304 (rs6000_output_addr_const_extra): Likewise.
6305 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
6306 than a PLUS. Use this formulation for both high and low part
6307 of -mcmodel=medium/large toc reference too. Before reload,
6308 always use the small model formulation.
6309 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
6310 a PLUS in high part of addresses here.
6311 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
6312 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
6313 (largetoc_high, largetoc_low): Move earlier. Cope when no
6314 base reg available.
6315 (largetoc_high_plus): New insn.
6316 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
6317 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
6318 (tocref): ..instead do so here, new insn and split.
6319
6320 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
6321
6322 * config/i386/driver-i386.c (host_detect_local_cpu): Support
6323 RDRND, F16C and FSGSBASE.
6324
6325 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6326
6327 PR rtl-optimzation/53373
6328 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
6329 call pattern. Update split patterns.
6330 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
6331 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
6332
6333 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
6334
6335 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
6336 for outer loops.
6337
6338 2012-05-18 Jan Hubicka <jh@suse.cz>
6339
6340 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
6341 (cgraph_process_new_functions): Process also aliases.
6342 * lto-streamer-out.c (struct sets): Remove.
6343 (trivally_defined_alias): Remove.
6344 (output_alias_pair_p): Remove.
6345 (output_unreferenced_globals): Remove.
6346 (produce_symtab); Do not handle alias pairs.
6347 (produce_asm_for_decls): Likewise.
6348 * lto-streamer-in.c (input_alias_pairs): Remove.
6349 (lto_read_body): Do not input alias pairs.
6350 (lto_input_constructors_and_inits): Remove.
6351
6352 2012-05-18 Jan Hubicka <jh@suse.cz>
6353
6354 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
6355 aliases.
6356
6357 2012-05-18 Jan Hubicka <jh@suse.cz>
6358
6359 * cgraphbuild.c (record_reference): Update.
6360 * lto-cgraph.c (lto_output_varpool_node): External vars
6361 are not in other partition even if they are not output
6362 in current partition.
6363 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
6364 argument; fix.
6365 (canonicalize_constructor_val): Take FROM_DECL argument.
6366 (fold_ctor_reference, fold_string_cst_ctor_reference,
6367 fold_array_ctor_reference, fold_nonarray_ctor_reference,
6368 fold_ctor_reference): Likewise.
6369 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
6370 * gimple.h (gimple_fold_builtin): Likewise.
6371
6372 2012-05-18 Olivier Hainque <hainque@adacore.com>
6373
6374 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
6375 $(libsubdir) as libexecsubdir.
6376
6377 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6378
6379 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
6380 relied on signed overflow behavior.
6381
6382 2012-05-18 Richard Guenther <rguenther@suse.de>
6383
6384 PR tree-optimization/53346
6385 * tree-loop-distribution.c (ldist_gen): Make sure to apply
6386 builtin transform even when only a single partition with
6387 all reads/writes exists.
6388
6389 2012-05-18 Richard Guenther <rguenther@suse.de>
6390
6391 PR tree-optimization/53390
6392 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
6393 strided loads.
6394
6395 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6396
6397 * tree-ssa-reassoc.c (bip_map): Remove decl.
6398 (completely_remove_stmt): Remove function.
6399 (remove_def_if_absorbed_call): Remove function.
6400 (remove_visited_stmt_chain): Remove __builtin_powi handling.
6401 (possibly_move_powi): Remove function.
6402 (rewrite_expr_tree): Remove calls to possibly_move_powi.
6403 (rewrite_expr_tree_parallel): Likewise.
6404 (attempt_builtin_powi): Build multiplies explicitly rather than
6405 relying on the ops vector and rank system.
6406 (transform_stmt_to_copy): New function.
6407 (transform_stmt_to_multiply): Likewise.
6408 (reassociate_bb): Handle leftover operations after __builtin_powi
6409 optimization; build a final multiply if necessary.
6410
6411 2012-05-18 Jan Hubicka <jh@suse.cz>
6412
6413 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
6414 (mark_functions_to_output): Fix sanity check.
6415 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
6416
6417 2012-05-18 Richard Guenther <rguenther@suse.de>
6418
6419 * tree-flow.h (mark_symbols_for_renaming): Remove.
6420 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
6421 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
6422 (copy_debug_stmt): Likewise.
6423 (expand_call_inline): Likewise.
6424 (declare_return_variable): Mark the return variable for renaming
6425 if necessary.
6426
6427 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
6428
6429 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
6430 prototype.
6431 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
6432 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
6433 (ashrdi3,lshrdi3): Likewise.
6434 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
6435
6436 2012-05-18 Meador Inge <meadori@codesourcery.com>
6437
6438 PR rtl-optimization/53352
6439 * cse.c (equiv_constant): Ignore paradoxical subregs.
6440
6441 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
6442
6443 PR rtl-optimization/53125
6444 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
6445 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
6446 die in the basic block. Correctly top off REG_FREQ and
6447 REG_FREQ_CALLS_CROSSED.
6448 Remove do_not_gen.
6449 (regstat_compute_ri): Allocate and free local_live_last_luid.
6450 Remove do_not_gen.
6451 (regstat_bb_compute_calls_crossed): Correctly top off
6452 REG_FREQ_CALLS_CROSSED.
6453
6454 2012-05-17 Jan Hubicka <jh@suse.cz>
6455
6456 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
6457 constructor over decl without.
6458 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
6459 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
6460 * cgraphunit.c (process_function_and_variable_attributes): Finalize
6461 extrnal decls.
6462 (mark_functions_to_output): Also accept bodies for functions with
6463 clones.
6464 (output_in_order): Skip external vars.
6465 * lto-cgraph.c (lto_output_node): External functions are never in other
6466 partition.
6467 (lto_output_varpool_node): Likewise.
6468 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
6469 forgotten initializers.
6470 * ipa.c (process_references): Handle external vars.
6471 (symtab_remove_unreachable_nodes): Update to handle external vars.
6472 (varpool_externally_visible_p): External vars are externally visible.
6473 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
6474 * varpool.c (varpool_remove_node): Remove constructor.
6475 (decide_is_variable_needed): Handle externals.
6476 (varpool_remove_unreferenced_decls): Likewise.
6477
6478 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6479
6480 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
6481 (enable_warning_as_error): Do not special case Wuninitialized.
6482 * optc-gen.awk: Add sanity checks.
6483
6484 2012-05-17 Jan Hubicka <jh@suse.cz>
6485
6486 * ipa-reference.c (is_proper_for_analysis): Do not check flags
6487 that might change as result of global optimization.
6488 (analyze_function): Do not check analyzed and externally_visible
6489 flags; be happy about address dereferences.
6490 (propagate): Prune all_module_statics so it really contains just
6491 statics; prune all the local summaries.
6492 (ipa_reference_write_optimization_summary): Simplify.
6493
6494 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6495
6496 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
6497 * config/m68k/m68k-tables.opt: Regenerated.
6498 * doc/invoke.texi (M680x0 Options): Document.
6499
6500 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
6501 Patrick Marlier <patrick.marlier@gmail.com>
6502
6503 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
6504 indirect calls.
6505
6506 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
6507
6508 * configure: Regenerated.
6509
6510 2012-05-16 Andrew Pinski <apinski@cavium.com>
6511
6512 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
6513 GIMPLE_ASSIGN.
6514
6515 2012-05-16 David S. Miller <davem@davemloft.net>
6516
6517 * jump.c (delete_related_insns): If we remove a CALL, make sure
6518 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
6519
6520 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6521
6522 PR tree-optimization/53217
6523 * tree-ssa-reassoc.c (bip_map): New static variable.
6524 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
6525 (attempt_builtin_powi): Save feeding multiplies on a stack.
6526 (reassociate_bb): Create and destroy bip_map.
6527
6528 2012-05-16 Olivier Hainque <hainque@adacore.com>
6529
6530 * Makefile.in (install-no-fixedincludes): New target, former toplevel
6531 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
6532 Add comments and improve stamp preservation across the whole sequence.
6533 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
6534
6535 2012-05-16 Richard Guenther <rguenther@suse.de>
6536
6537 * tree-inline.c (insert_init_stmt): Do not call
6538 mark_symbols_for_renaming.
6539 (setup_one_parameter): Avoid initializing unused parameters.
6540 (declare_return_variable): Properly handle DECL_BY_REFERENCE
6541 return vars in SSA form.
6542
6543 2012-05-16 Richard Guenther <rguenther@suse.de>
6544
6545 * tree-flow.h (get_virtual_var): Remove.
6546 * tree-dfa.c (get_virtual_var): Likewise.
6547
6548 2012-05-16 Richard Guenther <rguenther@suse.de>
6549
6550 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
6551 Remove set-only bitmap of new names.
6552 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
6553 CFG hooks.
6554 * tree-flow.h (ssa_names_to_replace): Remove.
6555 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
6556
6557 2012-05-16 Richard Guenther <rguenther@suse.de>
6558
6559 PR tree-optimization/53364
6560 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
6561 detect a view-conversion of the decl.
6562
6563 2012-05-16 Dodji Seketeli <dodji@redhat.com>
6564
6565 PR preprocessor/7263
6566 * c-tree.h (enum c_declspec_word): Declare new enum.
6567 (struct c_declspecs::locations): New member.
6568 (declspecs_add_qual, declspecs_add_scspec)
6569 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
6570 location parameter.
6571 * c-decl.c (build_null_declspecs): Initialize the new struct
6572 c_declspecs::locations member.
6573 (declspecs_add_addrspace): Take a location parameter for the
6574 address space. Store it onto declaration specifiers.
6575 (declspecs_add_qual): Likewise, take a location parameter for the
6576 qualifier.
6577 (declspecs_add_type): Likewise, take a location parameter for the
6578 type specifier.
6579 (declspecs_add_scspec): Likewise, take a location parameter for
6580 the storage class specifier.
6581 (declspecs_add_attrs): Likewise, take a location parameter for the
6582 first attribute.
6583 (declspecs_add_alignas): Likewise, take a location parameter for
6584 the alignas token.
6585 (finish_declspecs): For diagnostics, use the location of the
6586 relevant declspec, instead of the global input_location.
6587 * c-parser.c (c_parser_parameter_declaration): Pass the precise
6588 virtual location of the declspec to the declspecs-setters.
6589 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
6590 repeatedly.
6591
6592 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
6593
6594 * configure.ac: Stack protector enabling for Android targets.
6595 * configure: Regenerate.
6596
6597 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
6598
6599 * ira.c (pseudo_move_insn): Delete.
6600 (find_moveable_pseudos): Don't set it.
6601 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
6602 the definitions of the original pseudo. Delete all of them.
6603
6604 2012-05-16 Olivier Hainque <hainque@adacore.com>
6605
6606 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6607 PROCESSOR_PPC8548.
6608 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
6609 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
6610 * config/rs6000/8540.md: indicate that the units/patterns apply to
6611 ppc8548 as well.
6612
6613 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
6614 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
6615 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
6616 related flags, check that what is queried is supported by the selected
6617 configuration. Rework the single/double_float and MASK_STRING resets to
6618 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
6619 costs for PROCESSOR_PPC8548 as well.
6620 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
6621 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
6622 statement instead of a sequence of ifs.
6623
6624 * config/rs6000/rs6000.h (TARGET_E500): Remove.
6625 (TARGET_NO_LWSYNC): Adjust accordingly.
6626 * config/rs6000/e500.h (TARGET_E500): Remove.
6627 (CHECK_E500_OPTIONS): Adjust accordingly.
6628 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
6629 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
6630 * config/rs6000/linuxspe.h: Likewise.
6631 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
6632 superfluous comments.
6633 * config/rs6000/e500-double.h: Remove.
6634
6635 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
6636 default to with_cpu=8548 if --enable-e500-double, and to 8540
6637 otherwise.
6638 (set misc flags section): For powerpc*|rs6000*, remove inclusion
6639 of e500-double.h for --enable-e500-double.
6640
6641 2012-05-16 Olivier Hainque <hainque@adacore.com>
6642
6643 * Makefile.in (s-header-vars): Resort to -n instead of trailing
6644 -e d in sed invocation.
6645
6646 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
6647
6648 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
6649 source-code.
6650 * doc/tm.texi: Regenerate.
6651
6652 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6653
6654 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
6655
6656 2012-05-15 Jakub Jelinek <jakub@redhat.com>
6657
6658 PR target/53358
6659 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
6660 that operands[2] is either immediate, or q_regs_operand.
6661
6662 2012-05-15 Richard Guenther <rguenther@suse.de>
6663
6664 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
6665 (assemble_thunk): Likewise. Manually rename and register
6666 function arguments.
6667
6668 2012-05-15 Richard Guenther <rguenther@suse.de>
6669
6670 PR tree-optimization/53355
6671 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
6672 by constants.
6673
6674 2012-05-15 Tristan Gingold <gingold@adacore.com>
6675
6676 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
6677
6678 2012-05-15 Richard Guenther <rguenther@suse.de>
6679
6680 * gimple.c (gimple_set_modified): Move ...
6681 * gimple.h (gimple_set_modified): ... here.
6682
6683 2012-05-15 Tristan Gingold <gingold@adacore.com>
6684
6685 * ira-color.c (move_spill_restore): Add a guard.
6686
6687 2012-05-15 Tristan Gingold <gingold@adacore.com>
6688
6689 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
6690 plus_constant.
6691
6692 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
6693
6694 * gimplify.c (gimplify_init_constructor): Do a block move for very
6695 small objects as well.
6696
6697 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
6698
6699 * ira.c (find_moveable_pseudos): Skip registers whose
6700 DF_REG_EQ_USE_COUNT is nonzero.
6701
6702 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6703
6704 * doc/md.texi (fma): Define to only be applicable for single rounding.
6705
6706 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
6707
6708 PR target/46098
6709 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
6710 generate target register for "load" class builtins.
6711
6712 Revert:
6713 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
6714
6715 PR target/46098
6716 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6717 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6718 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6719 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6720 (<sse>_movu<ssemodesuffix>): New expander.
6721 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6722 (avx_movdqu<avxmodesuffix>): New expander.
6723 (*sse2_movdqu): Rename from sse2_movdqu.
6724 (sse2_movdqu): New expander.
6725
6726 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
6727
6728 PR target/52607
6729 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
6730 (canonicalize_perm): ... new function.
6731 (expand_vec_perm_2vperm2f128_vshuf): New function.
6732 (ix86_expand_vec_perm_const_1): Call it.
6733
6734 2012-05-14 Andrew Pinski <apinski@cavium.com>
6735 H.J. Lu <hongjiu.lu@intel.com>
6736 Jakub Jelinek <jakub@redhat.com>
6737
6738 PR target/53315
6739 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
6740 (xbegin): Updated.
6741
6742 2012-05-14 Jakub Jelinek <jakub@redhat.com>
6743
6744 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
6745 lineno 1 the same as lineno 0 before first start file directive.
6746 (optimize_macinfo_range): Likewise.
6747
6748 * dwarf2out.c (have_macinfo): Define.
6749 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
6750 attribute, don't force empty compilation unit and don't emit any
6751 .debug_macinfo/.debug_macro section if macinfo_table is empty.
6752
6753 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
6754
6755 PR target/53344
6756 * config/avr/avr.c (avr_const_address_lo16): Remove.
6757 (avr_assemble_integer): Print ".byte lo8(x)",
6758 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
6759 .warning if 3-byte address is assembled.
6760 * doc/extend.texi (AVR Named Address Spaces): Document that
6761 binutils 2.23 is needed to assemble 3-byte addresses.
6762
6763 2012-05-14 Richard Guenther <rguenther@suse.de>
6764
6765 * tree-vect-data-refs.c (vect_setup_realignment): Remove
6766 call to mark_symbols_for_renaming.
6767 (vect_permute_load_chain): Likewise.
6768 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
6769 instead of calling mark_symbols_for_renaming.
6770 * tree-vect-stmts.c (read_vector_array): Remove call to
6771 mark_symbols_for_renaming.
6772 (write_vector_array): Likewise.
6773 (vectorizable_call): Likewise.
6774 (vectorizable_store): Likewise.
6775 (vectorizable_load): Likewise.
6776 * matrix-reorg.c (transform_allocation_sites): Likewise.
6777 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
6778 (create_expression_by_pieces): Likewise.
6779
6780 2012-05-14 Richard Guenther <rguenther@suse.de>
6781
6782 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
6783 of statements for renaming.
6784 (force_gimple_operand_1): Likewise, consistently for both
6785 calls to force_gimple_operand and force_gimple_operand_gsi.
6786
6787 2012-05-14 Richard Guenther <rguenther@suse.de>
6788
6789 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
6790 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
6791 to update_ssa.
6792 (expand_omp_for): Likewise.
6793 (expand_omp_for_generic): Adjust conditional add to referenced vars.
6794 Use make_rename_temp for temporaries that should be rewritten into
6795 SSA form.
6796 (expand_omp_for_static_nochunk): Likewise.
6797 (expand_omp_atomic_pipeline): Likewise.
6798
6799 2012-05-14 Richard Guenther <rguenther@suse.de>
6800
6801 PR tree-optimization/53331
6802 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
6803 strided loads.
6804 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
6805
6806 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6807
6808 PR 53063
6809 * doc/options.texi: (LangEnabledBy): Document it.
6810 * optc-gen.awk: Handle LangEnabledBy.
6811 * opth-gen.awk: Generate declaration for lang-specific functions.
6812 * opt-read.awk: Record lang numbers.
6813 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
6814 (lang_sanitized_name): New.
6815
6816 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6817
6818 * attribs.c (decl_attributes): Avoid emitting a warning if
6819 ATTR_FLAG_BUILT_IN.
6820 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
6821 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
6822 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
6823 define a string "1".
6824 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
6825 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
6826 BUILT_IN_STRCPY): Use it for these functions.
6827 * postreload.c (reload_combine): Deal with SETs inside
6828 CALL_INSN_FUNCTION_USAGE.
6829 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
6830 Look for REG_RETURNED notes and use a cheap restore if possible.
6831 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
6832 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
6833 * ira-build.c (ira_create_allocno, create_cap_allocno,
6834 propagate_allocno_info, propagate_some_info_from_allocno,
6835 copy_info_to_removed_store_destination, ira_flattening): Handle it.
6836 * ira-lives.c (pseudo_regno_single_word_and_live_p,
6837 find_call_crossed_cheap_reg): New static functions.
6838 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
6839 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
6840 a REG_RETURNED note in that case.
6841 * ira.c (setup_reg_renumber): Change assert to allow cases where
6842 allocnos only cross calls for which they are cheap to restore.
6843 * ira-costs.c (ira_tune_allocno_costs): Compare
6844 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
6845 than 0.
6846 * reg-notes.def (REG_RETURNED): New note.
6847 * cse.c (cse_insn): Likewise.
6848 * sched-deps.c (sched_analyze_insn): Likewise.
6849 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
6850 * calls.c (decl_return_flags): New static function.
6851 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
6852 functions that return one of their arguments.
6853 * regcprop.c (struct kill_set_value_data): New.
6854 (kill_set_value): Interpret data as a pointer to such a struct.
6855 Do nothing if the caller wants the register to be ignored.
6856 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
6857
6858 2012-05-14 Richard Guenther <rguenther@suse.de>
6859
6860 PR tree-optimization/53340
6861 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
6862
6863 2012-05-14 Richard Guenther <rguenther@suse.de>
6864
6865 * gimplify.c (gimplify_expr): Remove odd code.
6866
6867 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
6868
6869 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
6870 into a PLUS_EXPR byte offset.
6871
6872 * tree-ssa-pre.c (can_value_number_call): Delete.
6873 (compute_avail): Skip all statements with side effects.
6874 <GIMPLE_CALL>: Skip calls to internal functions.
6875
6876 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
6877
6878 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
6879
6880 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6881
6882 * common.opt (Wtype-limits): Use EnabledBy.
6883
6884 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
6885
6886 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
6887 (pushtf splitter): Ditto.
6888 (movtf): Ditto.
6889 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
6890 (<code>tf2): Enable for TARGET_SSE.
6891 (*absnegtf2_sse): Ditto.
6892 (copysign<mode>3): Enable TFmode for TARGET_SSE.
6893 (copysign<mode>3_const): Ditto.
6894 (copysign<mode>3_var): Ditto.
6895 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
6896 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
6897 (*<code>tf3): Ditto.
6898 * config/i386/i386.c (struct builtin_description bdesc_args)
6899 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
6900 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
6901 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
6902 Emit a normal call if SSE isn't available.
6903
6904 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
6905
6906 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
6907 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6908 (<code><mode>3): Ditto.
6909 (*andnot<mode>3): Ditto.
6910 (*andnottf3): Ditto.
6911 (*<code><mode>3): Ditto.
6912 (<code>tf3): Ditto.
6913
6914 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6915
6916 * optc-gen.awk: Error instead of warning for conflicting help.
6917
6918 2012-05-12 Jason Merrill <jason@redhat.com>
6919
6920 PR debug/53235
6921 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
6922 comdat types.
6923
6924 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
6925
6926 * function.c (requires_stack_frame_p): If the function can throw
6927 non-call exceptions, return true if the insn can throw internally.
6928
6929 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
6930
6931 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
6932
6933 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
6934
6935 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6936 ORDERED and UNORDERED conditions.
6937
6938 2012-05-11 Richard Guenther <rguenther@suse.de>
6939
6940 * tree-flow.h (referenced_var_check_and_insert): Remove.
6941 (find_new_referenced_vars): Likewise.
6942 * tree-dfa.c (referenced_var_check_and_insert): Make static.
6943 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
6944 * tree-inline.c (copy_bb): Use find_referenced_vars_in
6945 instead of find_new_referenced_vars.
6946 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
6947
6948 2012-05-11 Richard Guenther <rguenther@suse.de>
6949
6950 * tree-pass.h (pass_rest_of_compilation,
6951 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
6952 Remove.
6953 * passes.c (pass_all_optimizations, pass_postreload,
6954 pass_all_early_optimizations): Make static.
6955 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
6956 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
6957 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
6958 (delete_tree_ssa): Do not call fini_phinodes.
6959 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
6960
6961 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6962
6963 PR 53063
6964 * doc/options.texi (EnabledBy): Document
6965 * opts.c: Include opts.h and options.h before tm.h.
6966 (finish_options): Do not handle some sub-options here...
6967 (common_handle_option): ... instead call common_handle_option_auto
6968 here.
6969 * optc-gen.awk: Handle EnabledBy.
6970 * opth-gen.awk: Declare common_handle_option_auto.
6971 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
6972 (Wmaybe-uninitialized): Likewise.
6973 (Wunused-but-set-variable): Likewise.
6974 (Wunused-function): Likewise.
6975 (Wunused-label): Likewise.
6976 (Wunused-value): Likewise.
6977 (Wunused-variable): Likewise.
6978 * opt-read.awk: Create opt_numbers array.
6979
6980 2012-05-11 Richard Guenther <rguenther@suse.de>
6981
6982 PR tree-optimization/53295
6983 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
6984 strides.
6985 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
6986 strides when analyzing data-references in a loop context.
6987 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
6988 non-constant strides for now.
6989 (vect_enhance_data_refs_alignment): Ignore data references
6990 that are strided loads.
6991 (vect_analyze_data_ref_access): Handle non-constant strides.
6992 (vect_check_strided_load): Verify the data-reference is a load.
6993 (vect_analyze_data_refs): Restructure to make strided load
6994 support not dependent on gather support.
6995 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
6996 when doing strided or gather loads.
6997 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
6998 integer_zerop to compare stride with zero.
6999
7000 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7001
7002 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
7003
7004 2012-05-11 Jan Hubicka <jh@suse.cz>
7005
7006 PR bootstrap/53300
7007 * varpool.c (varpool_assemble_decl): Also output constat pool entries
7008 that output_constant_pool missed.
7009
7010 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
7011
7012 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
7013 MULTILIB_EXTRA_OPTS.
7014
7015 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
7016
7017 PR target/53291
7018 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
7019
7020 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
7021
7022 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
7023 optimization for TARGET_AVX.
7024 (*movti_internal_sse): Ditto.
7025 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
7026 (*movdi_internal): Ditto.
7027 (*movsi_internal): Ditto.
7028 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
7029 (*movdf_internal_rex64): Ditto.
7030 (*movfd_internal): Ditto.
7031 (*movsf_internal): Ditto.
7032 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
7033
7034 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
7035
7036 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
7037 reference as size attribute.
7038
7039 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
7040 Tristan Gingold <gingold@adacore.com>
7041
7042 * doc/md.texi (Standard Names): Document probe_stack_address.
7043 * explow.c (emit_stack_probe): Handle probe_stack_address.
7044 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
7045 (UNSPECV_PROBE_STACK_RANGE): Likewise.
7046 (probe_stack_address): New insn.
7047 (probe_stack_range): Likewise.
7048 * config/ia64/ia64.c: Include common/common-target.h.
7049 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
7050 checking is enabled.
7051 (ia64_emit_probe_stack_range): New function.
7052 (output_probe_stack_range): Likewise.
7053 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
7054 builtin stack checking is enabled.
7055 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
7056 and UNSPECV_PROBE_STACK_ADDRESS.
7057 (unknown_for_bundling_p): New predicate.
7058 (group_barrier_needed): Use important_for_bundling_p.
7059 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
7060 (issue_nops_and_insn): Likewise.
7061 (bundling): Likewise.
7062 (final_emit_insn_group_barriers): Likewise.
7063 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
7064 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
7065 (STACK_CHECK_PROTECT): Likewise.
7066 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7067
7068 2012-05-10 Jan Hubicka <jh@suse.cz>
7069
7070 * ipa-inline.c (update_all_callee_keys): Remove.
7071 (inline_small_functions): Simplify priority updating.
7072
7073 2012-05-10 Jan Hubicka <jh@suse.cz>
7074
7075 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
7076
7077 2012-05-10 Jan Hubicka <jh@suse.cz>
7078
7079 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
7080 (symtab_remove_unreachable_nodes): ... this one.
7081 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
7082 * cgraphunit.c (ipa_passes): Update.
7083 * cgraphclones.c (cgraph_materialize_all_clones): Update.
7084 * cgraph.c (cgraph_release_function_body): Only turn initial
7085 into error mark when initial was previously set.
7086 * ipa-inline.c (ipa_inline): Update.
7087 * ipa.c: Include ipa-inline.h
7088 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
7089 (enqueue_node): New function.
7090 (process_references): Update.
7091 (symtab_remove_unreachable_nodes): Cleanup.
7092 * passes.c (execute_todo, execute_one_pass): Update.
7093
7094 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
7095
7096 PR rtl-optimization/53125
7097 * ira.c (ira): Call find_moveable_pseudos and
7098 move_unallocated_pseudos if only ira_conflicts_p is true.
7099
7100 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
7101
7102 * config/i386/i386.md (*movoi_internal_avx): Handle
7103 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
7104 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
7105 (*movti_internal_sse): Ditto.
7106 (*movtf_internal): Ditto.
7107 * config/i386/sse.md (ssePSmode): New mode attribute.
7108 (*move<mode>_internal): Use ssePSmode.
7109 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
7110 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
7111 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
7112 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
7113
7114 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
7115
7116 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
7117 DECL_ORIGINAL_TYPE if it is present.
7118
7119 2012-05-10 Nick Clifton <nickc@redhat.com>
7120
7121 PR target/53120
7122 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
7123 a "0" constraint to being a (match_dup 0).
7124
7125 2012-05-10 Richard Guenther <rguenther@suse.de>
7126
7127 * stor-layout.c (byte_from_pos): Amend comment.
7128
7129 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7130
7131 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
7132 Document requirement to call in constructors.
7133
7134 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
7135
7136 2012-05-10 Richard Guenther <rguenther@suse.de>
7137
7138 * tree.h (TYPE_IS_SIZETYPE): Remove.
7139 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
7140 (extract_muldiv_1): Likewise.
7141 * gimple.c (gtc_visit): Likewise.
7142 (gimple_types_compatible_p): Likewise.
7143 (iterative_hash_canonical_type): Likewise.
7144 (gimple_canonical_types_compatible_p): Likewise.
7145 * gimplify.c (gimplify_one_sizepos): Likewise.
7146 * print-tree.c (print_node): Likewise.
7147 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
7148
7149 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
7150
7151 PR target/52908
7152 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
7153 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
7154 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
7155 instead of xop_mulv2div2di3_low.
7156 (xop_p<macs>dql): Fix vec_select selector.
7157 (xop_p<macs>dqh): Ditto.
7158 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
7159 (xop_mulv2div2di3_high): Ditto.
7160
7161 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7162
7163 PR c++/53289
7164 * diagnostic.h (diagnostic_context): Add last_location.
7165 * diagnostic.c (diagnostic_initialize): Initialize it.
7166 (diagnostic_show_locus): Use it.
7167
7168 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7169
7170 * doc/extend.texi (Function Attributes): Point xref to section
7171 about Pragmas.
7172
7173 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
7174
7175 * config/i386/i386.c (*movdf_internal_rex64): Remove
7176 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
7177 Calculate "mode" attribute according to
7178 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
7179 (*movdf_internal): Ditto.
7180
7181 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
7182
7183 PR target/44141
7184 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
7185 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
7186 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
7187 or when optimizing for size.
7188 * config/i386/sse.md (*mov<mode>_internal): Remove
7189 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
7190 Calculate "mode" attribute according to optimize_function_for_size_p
7191 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
7192 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
7193 depending on the mode of the instruction. Calculate "mode" attribute
7194 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
7195 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
7196 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
7197
7198 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
7199
7200 PR target/53256
7201 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
7202 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
7203 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
7204 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
7205 (expand_prologue): Move initialization of cfun->machine->is_naked,
7206 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
7207 (avr_set_current_function): ...this new static function.
7208 (TARGET_SET_CURRENT_FUNCTION): New define.
7209 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
7210 checking attributes of current_function_decl.
7211 (avr_regs_to_save): Ditto.
7212 (signal_function_p): Rename to avr_signal_function_p.
7213 (interrupt_function_p): Rename to avr_interrupt_function_p.
7214
7215 * doc/extend.texi (Function Attributes): Better explanation of
7216 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
7217 alphabetical order.
7218
7219 2012-05-09 Michael Matz <matz@suse.de>
7220
7221 PR tree-optimization/53185
7222 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
7223 peeling when we see strided loads.
7224
7225 2012-05-09 Matthias Klose <doko@ubuntu.com>
7226
7227 * gcc-ar.c (main): Don't check for execute bits for the plugin.
7228
7229 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7230
7231 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
7232 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
7233 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
7234 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
7235 (USE_LOAD_POST_INCREMENT): Define.
7236 (USE_LOAD_PRE_INCREMENT): Define.
7237 (USE_LOAD_POST_DECREMENT): Define.
7238 (USE_LOAD_PRE_DECREMENT): Define.
7239 (USE_STORE_PRE_DECREMENT): Define.
7240 (USE_STORE_PRE_INCREMENT): Define.
7241 (USE_STORE_POST_DECREMENT): Define.
7242 (USE_STORE_POST_INCREMENT): Define.
7243 (arm_auto_incmodes): Add enumeration.
7244 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
7245 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
7246
7247 2012-05-09 Jakub Jelinek <jakub@redhat.com>
7248
7249 PR tree-optimization/53226
7250 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
7251 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
7252 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
7253 doesn't need to be revisited, look for earliest stmt with
7254 !gimple_plf (stmt, GF_PLF_1) if something changed.
7255
7256 2012-05-09 Terry Guo <terry.guo@arm.com>
7257
7258 * genmultilib: Update copyright dates.
7259 * doc/fragments.texi: Ditto.
7260
7261 2012-05-09 Terry Guo <terry.guo@arm.com>
7262
7263 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
7264 * genmultilib (MULTILIB_REQUIRED): New.
7265 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
7266
7267 2012-05-09 Richard Guenther <rguenther@suse.de>
7268
7269 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
7270 (vect_do_peeling_for_loop_bound): Likewise.
7271 (vect_do_peeling_for_alignment): Likewise.
7272 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
7273 (vect_do_peeling_for_loop_bound): Get check_profitability and
7274 threshold as parameters.
7275 (vect_do_peeling_for_alignment): Likewise.
7276 (vect_loop_versioning): Likewise.
7277 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
7278 and threshold here. Control where to put the check here.
7279
7280 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
7281
7282 PR middle-end/53249
7283 * dwarf2out.h (get_address_mode): Move declaration to...
7284 * rtl.h: ...here.
7285 * dwarf2out.c (get_address_mode): Move definition to...
7286 * rtlanal.c: ...here.
7287 * var-tracking.c (get_address_mode): Delete.
7288 * combine.c (find_split_point): Use get_address_mode instead of
7289 targetm.addr_space.address_mode.
7290 * cselib.c (cselib_record_sets): Likewise.
7291 * dse.c (canon_address, record_store): Likewise.
7292 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
7293 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
7294 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
7295 (expand_expr_real_1): Likewise.
7296 * ifcvt.c (noce_try_cmove_arith): Likewise.
7297 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
7298 * reload.c (find_reloads): Likewise.
7299 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7300 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
7301
7302 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
7303
7304 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
7305 information from the instruction produced.
7306
7307 2012-05-09 Richard Guenther <rguenther@suse.de>
7308
7309 * stor-layout.c (bit_from_pos): Document.
7310 (byte_from_pos): Likewise. Optimize.
7311 (pos_from_bit): Likewise.
7312 (normalize_offset): Use pos_from_bit instead of replicating it.
7313
7314 2012-05-09 Alan Modra <amodra@gmail.com>
7315
7316 PR target/53271
7317 * config/rs6000/rs6000.c (gen_frame_set): New function.
7318 (gen_frame_load, gen_frame_store): New functions.
7319 (rs6000_savres_rtx): Use the above.
7320 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
7321 Correct mode used for CR2 in save/restore_world patterns.
7322 Don't emit instructions for eh_return frame unwind reg info.
7323
7324 2012-05-08 Jan Hubicka <jh@suse.cz>
7325
7326 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
7327 with VALUE_EXPR.
7328 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
7329 are removable.
7330 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
7331 need to wrapup.
7332 (compile_file): Do not output variables.
7333 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
7334 output it.
7335 * langhooks.c: Include timevar.h
7336 (write_global_declarations): Finalize compilation unit after wrapup;
7337 set timevars correctly.
7338 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
7339 not to be added to varpool.
7340 * varpool.c (varpool_assemble_decl): Sanity check that we are called
7341 only on cases where it makes sense; skip constant pool and value expr
7342 vars.
7343
7344 2012-05-08 David S. Miller <davem@davemloft.net>
7345
7346 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
7347 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
7348 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
7349
7350 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
7351
7352 PR rtl-optimization/53278
7353 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
7354 speed_p code from earlier patch.
7355
7356 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
7357
7358 PR target/51244
7359 * config/sh/sh.md (*branch_true, *branch_false): New insns.
7360
7361 2012-05-08 Teresa Johnson <tejohnson@google.com>
7362
7363 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
7364 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
7365
7366 2012-05-08 Jan Hubicka <jh@suse.cz>
7367
7368 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
7369 (cgraph_create_node_1): Rename to ...
7370 (cgraph_create_empty_node): ... this one; export.
7371 (cgraph_create_node): Update.
7372 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
7373 (cgraph_create_edge_including_clones): Likewise.
7374 (cgraph_find_replacement_node): Likewise.
7375 (cgraph_clone_edge): Likewise.
7376 (cgraph_clone_node): Likewise.
7377 (clone_function_name): Likewise.
7378 (cgraph_create_virtual_clone): Likewise.
7379 (cgraph_remove_node_and_inline_clones): Likewise.
7380 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
7381 * cgraph.h: Reorder declarations so they match file of origin.
7382 (cgraph_create_empty_node): Declare.
7383 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
7384 (cgraph_copy_node_for_versioning): Likewise.
7385 (cgraph_function_versioning): Likewise.
7386 (cgraph_materialize_clone): Likewise.
7387 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7388 (cgraph_materialize_all_clones): Likewise.
7389 * cgraphclones.c: New file.
7390 * Makefile.in: Update for cgraphclones.
7391
7392 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
7393
7394 PR target/53176
7395 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
7396 (ix86_rtx_costs): Handle SET.
7397
7398 2012-05-08 Michael Matz <matz@suse.de>
7399
7400 * basic-block.h (struct rtl_bb_info): Remove visited member and
7401 move head_ member to ...
7402 (struct basic_block_def.basic_block_il_dependent): ... the new
7403 member x, replacing but containing old member rtl.
7404 (enum bb_flags): New BB_VISITED flag.
7405 (BB_HEADER, BB_FOOTER): New macros.
7406
7407 * jump.c (mark_all_labels): Adjust.
7408 * cfgcleanup.c (try_optimize_cfg): Adjust.
7409 * cfglayout.c (record_effective_endpoints): Adjust.
7410 (relink_block_chain): Ditto (and don't fiddle with visited).
7411 (fixup_reorder_chain): Adjust.
7412 (fixup_fallthru_exit_predecessor): Ditto.
7413 (cfg_layout_duplicate_bb): Ditto.
7414 * combine.c (update_cfg_for_uncondjump): Adjust.
7415 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
7416 (bb_visited_trace): New accessor.
7417 (mark_bb_visited): Move in front.
7418 (rotate_loop): Use bb_visited_trace.
7419 (find_traces_1_round): Ditto.
7420 (emit_barrier_after): Ditto.
7421 (copy_bb): Ditto, and initialize visited on resize.
7422 (reorder_basic_blocks): Initize visited member.
7423 (duplicate_computed_gotos): Clear bb flags at start, use
7424 BB_VISITED flags.
7425
7426 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
7427 (rtl_verify_flow_info_1): Ditto.
7428 (cfg_layout_split_block): Ditto.
7429 (cfg_layout_delete_block): Ditto.
7430 (cfg_layout_merge_blocks): Ditto.
7431 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
7432
7433 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
7434
7435 PR target/53272
7436 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
7437 when a constant source operand matches an "I" constraint, the "no
7438 CC0 change" applies to a register-destination only, not a
7439 strict_low_part-destination.
7440
7441 2012-05-08 Richard Guenther <rguenther@suse.de>
7442
7443 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
7444 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
7445
7446 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
7447
7448 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
7449
7450 * doc/avr-mmcu.texi: New auto-generated file.
7451 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
7452 to document all valid -mmcu= arguments.
7453
7454 * config/avr/avr.h (arch_info_s): New struct definition.
7455 * config/avr/avr-devices.c (avr_texinfo): New variable.
7456 * config/avr/gen-avr-mmcu-texi.c: New file.
7457 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
7458
7459 2012-05-08 Dehao Chen <dehao@google.com>
7460
7461 * predict.c (find_qualified_ssa_name): New.
7462 (find_ssa_name_in_expr): New.
7463 (find_ssa_name_in_assign_stmt): New.
7464 (is_comparison_with_loop_invariant_p): New.
7465 (is_bound_expr_similar): New.
7466 (predict_iv_comparison): New.
7467 (predict_loops): Add heuristic for loop-nested branches that compare an
7468 induction variable to a loop bound variable.
7469 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
7470
7471 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
7472
7473 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
7474 TARGET_BDVER2 defines where appropriate.
7475
7476 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
7477
7478 * configure.ac (PLUGIN_LD): Rename into...
7479 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
7480 * config.in: Regenerate.
7481 * configure: Likewise.
7482 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
7483
7484 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
7485
7486 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
7487 computation using the precision of the index type.
7488 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
7489 (fold_array_ctor_reference): Do index computations in the index type.
7490
7491 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
7492
7493 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
7494 down to plus_constant.
7495 (expand_epilogue): Ditto.
7496
7497 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7498
7499 * postreload.c (reload_cse_regs): Make static.
7500 * reload.h (reload_cse_regs): Remove prototype.
7501
7502 2012-05-07 Richard Henderson <rth@redhat.com>
7503
7504 * config/alpha/alpha.md (clear_cache): New pattern.
7505
7506 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7507
7508 PR middle-end/53245
7509 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
7510 is folded to a type boundary value, verify that the resulting case
7511 label is still a care range.
7512
7513 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
7514
7515 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
7516 only for TARGET_GENERIC, when not optimizing for size.
7517 (*ffs<mode>_1): Ditto.
7518
7519 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7520
7521 * tree-cfg.c (verify_gimple_switch): Tighten checks.
7522
7523 2012-05-07 Jakub Jelinek <jakub@redhat.com>
7524
7525 PR tree-optimization/53239
7526 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
7527 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
7528
7529 2012-05-07 Richard Guenther <rguenther@suse.de>
7530
7531 PR tree-optimization/53195
7532 * tree-inline.c (setup_one_parameter): Properly add referenced
7533 vars from the parameters new known value.
7534
7535 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7536
7537 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
7538 (sched_branch_type): Remove.
7539 (m68k_sched_md_init_global): Don't allocate it.
7540 (m68k_sched_md_finish_global): Don't free it.
7541 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
7542 * config/m68k/m68k.md: Set the type of insns using
7543 m68k_sched_branch_type to bcc directly.
7544
7545 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7546
7547 * config/sol2.c (solaris_override_options): New function.
7548 * config/sol2-protos.h (solaris_override_options): Declare.
7549 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
7550
7551 2012-05-07 Richard Guenther <rguenther@suse.de>
7552
7553 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
7554 whether we failed to compute data dependences.
7555 (loop_prefetch_arrays): Fail if we failed.
7556
7557 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
7558 Paolo Bonzini <bonzini@gnu.org>
7559
7560 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
7561 Emit bsf when optimizing for size.
7562 (*ffs<mode>_1): Ditto.
7563
7564 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
7565
7566 PR target/53250
7567 * config/sh/sh.c (sh_rtx_costs): Handle SET.
7568
7569 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
7570
7571 PR target/53227
7572 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
7573 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
7574 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
7575 (bswapsi2): Ditto.
7576 (*bswapdi2_doubleword): New insn pattern.
7577 (*bswap<mode>2): Rename from *bswap<mode>2_1.
7578
7579 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7580
7581 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
7582 (mips_set_reg_reg_cost): Likewise.
7583 (mips_rtx_costs): Handle SET.
7584
7585 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7586
7587 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
7588 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
7589 to compute the cost of moves. Set the mode of the target register.
7590
7591 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
7592
7593 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
7594 plus_constant function.
7595 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
7596 that the mode is sensible.
7597 (use_anchored_address, round_push, allocate_dynamic_stack_space)
7598 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
7599 plus_constant.
7600
7601 * alias.c (canon_rtx): Likewise.
7602 (init_alias_analysis): Likewise.
7603 * builtins.c (expand_builtin_return_addr)
7604 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
7605 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
7606 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
7607 (expand_builtin_stpcpy): Likewise.
7608 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
7609 (compute_argument_addresses, internal_arg_pointer_based_exp)
7610 (expand_call, emit_library_call_value_1): Likewise.
7611 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
7612 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
7613 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
7614 * cse.c (insert_const_anchor, find_reg_offset_for_const)
7615 (use_related_value, fold_rtx): Likewise.
7616 * cselib.c (cselib_subst_to_values): Likewise.
7617 * dse.c (record_store, check_mem_read_rtx): Likewise.
7618 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
7619 * emit-rtl.c (adjust_address_1): Likewise.
7620 * except.c (sjlj_emit_function_enter)
7621 (expand_builtin_extract_return_addr)
7622 (expand_builtin_frob_return_addr): Likewise.
7623 * expmed.c (expand_divmod): Likewise.
7624 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
7625 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
7626 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
7627 * function.c (assign_stack_local_1)
7628 (instantiate_virtual_regs_in_rtx): Likewise.
7629 * optabs.c (prepare_cmp_insn): Likewise.
7630 * recog.c (offsettable_address_addr_space_p): Likewise.
7631 * reload.c (find_reloads_address, form_sum)
7632 (find_reloads_subreg_address): Likewise.
7633 * reload1.c (init_reload, eliminate_regs_1)
7634 (eliminate_regs_in_insn): Likewise.
7635 * simplify-rtx.c (simplify_unary_operation_1)
7636 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
7637 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
7638 (vt_add_function_parameter): Likewise.
7639
7640 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
7641 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
7642 * config/alpha/alpha.c (alpha_legitimize_address_1)
7643 (get_unaligned_address, alpha_expand_unaligned_load)
7644 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
7645 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
7646 (alpha_expand_builtin_establish_vms_condition_handler)
7647 (alpha_setup_incoming_varargs, emit_frame_store_1)
7648 (alpha_expand_prologue, alpha_expand_epilogue)
7649 (alpha_use_linkage): Likewise.
7650 * config/alpha/alpha.md: Likewise.
7651
7652 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
7653 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
7654 (thumb_legitimize_address, arm_gen_load_multiple_1)
7655 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
7656 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
7657 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
7658 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
7659 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
7660 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
7661 (thumb_expand_movmemqi, arm_set_return_address)
7662 (thumb_set_return_address): Likewise.
7663 * config/arm/arm.md: Likewise.
7664
7665 * config/avr/avr.c (avr_incoming_return_addr_rtx)
7666 (avr_prologue_setup_frame, expand_epilogue)
7667 (avr_const_address_lo16): Likewise.
7668
7669 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
7670 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
7671 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
7672 (bfin_output_mi_thunk): Likewise.
7673
7674 * config/c6x/c6x.c (c6x_initialize_trampoline)
7675 (c6x_output_mi_thunk): Likewise.
7676
7677 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
7678 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
7679
7680 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
7681 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
7682 (cris_emit_movem_store, cris_trampoline_init): Likewise.
7683 * config/cris/cris.md: Likewise.
7684
7685 * config/darwin.c (machopic_indirect_data_reference)
7686 (machopic_legitimize_pic_address): Likewise.
7687
7688 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
7689 (epiphany_expand_prologue, epiphany_expand_epilogue)
7690 (epiphany_trampoline_init): Likewise.
7691 * config/epiphany/epiphany.md: Likewise.
7692
7693 * config/fr30/fr30.c (fr30_move_double): Likewise.
7694
7695 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
7696 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
7697 (frv_index_memory, unspec_got_name, frv_find_base_term)
7698 (frv_output_dwarf_dtprel): Likewise.
7699
7700 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
7701 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
7702
7703 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
7704 * config/i386/i386.c (setup_incoming_varargs_64)
7705 (setup_incoming_varargs_ms_64, choose_baseaddr)
7706 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
7707 (ix86_emit_probe_stack_range, ix86_expand_prologue)
7708 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
7709 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
7710 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
7711 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
7712 (x86_output_mi_thunk): Likewise.
7713 * config/i386/i386.md: Likewise.
7714
7715 * config/ia64/ia64.c (ia64_expand_load_address)
7716 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
7717 (do_spill, ia64_trampoline_init): Likewise.
7718
7719 * config/iq2000/iq2000.c (iq2000_va_start)
7720 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
7721 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
7722 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
7723
7724 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7725
7726 * config/m32c/m32c.c (m32c_return_addr_rtx)
7727 (m32c_expand_insv): Likewise.
7728
7729 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
7730 (m32r_legitimize_pic_address, m32r_print_operand)
7731 (m32r_print_operand_address): Likewise.
7732
7733 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7734 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
7735 (EH_RETURN_HANDLER_RTX): Likewise.
7736 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
7737 (m68k_expand_epilogue, legitimize_pic_address)
7738 (m68k_output_mi_thunk): Likewise.
7739 * config/m68k/m68k.md: Likewise.
7740
7741 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7742 (mcore_expand_epilog): Likewise.
7743 * config/mcore/mcore.md: Likewise.
7744
7745 * config/mep/mep.c (mep_allocate_initial_value)
7746 (mep_expand_prologue, mep_expand_epilogue): Likewise.
7747
7748 * config/microblaze/microblaze.c (double_memory_operand)
7749 (microblaze_block_move_loop): Likewise.
7750
7751 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
7752 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
7753 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
7754 (mips_expand_prologue, mips_epilogue_set_cfa)
7755 (mips_expand_epilogue): Likewise.
7756 * config/mips/mips.md: Likewise.
7757
7758 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
7759 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
7760
7761 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
7762 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
7763
7764 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
7765 (EH_RETURN_HANDLER_RTX): Likewise.
7766 * config/moxie/moxie.c (moxie_static_chain): Likewise.
7767
7768 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
7769 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
7770 (pa_return_addr_rtx, hppa_builtin_saveregs)
7771 (pa_trampoline_init): Likewise.
7772 * config/pa/pa.md: Likewise.
7773
7774 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
7775
7776 * config/picochip/picochip.c (picochip_static_chain): Likewise.
7777
7778 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
7779 * config/rs6000/rs6000.c (rs6000_legitimize_address)
7780 (setup_incoming_varargs, print_operand, rs6000_return_addr)
7781 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
7782 (rs6000_emit_epilogue)
7783 (rs6000_machopic_legitimize_pic_address): Likewise.
7784
7785 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7786
7787 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
7788 (DYNAMIC_CHAIN_ADDRESS): Likewise.
7789 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
7790 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
7791 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
7792 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
7793 (s390_emit_epilogue, s390_function_profiler): Likewise.
7794 * config/s390/s390.md: Likewise.
7795
7796 * config/score/score.c (score_add_offset, score_prologue): Likewise.
7797
7798 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
7799 (sh_output_mi_thunk): Likewise.
7800 * config/sh/sh.md: Likewise.
7801
7802 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
7803 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
7804 * config/sparc/sparc.c (sparc_legitimize_pic_address)
7805 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
7806 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
7807 (emit_and_preserve): Likewise.
7808 * config/sparc/sparc.md: Likewise.
7809
7810 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7811 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
7812 (spu_setup_incoming_varargs, ea_load_store_inline)
7813 (spu_expand_load): Likewise.
7814
7815 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
7816 (combine_bnp): Likewise.
7817
7818 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7819 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
7820 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
7821
7822 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7823 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
7824 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
7825
7826 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
7827 * config/v850/v850.md: Likewise.
7828
7829 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
7830 (EH_RETURN_HANDLER_RTX): Likewise.
7831 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
7832 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
7833 (print_operand_address, vax_trampoline_init): Likewise.
7834
7835 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
7836 (xtensa_function_value_regno_p): Likewise.
7837
7838 2012-05-04 Andrew Pinski <apinski@cavium.com>
7839
7840 * expr.c (get_def_for_expr_class): New function.
7841 (convert_tree_comp_to_rtx): New function.
7842 (expand_cond_expr_using_cmove): New function.
7843 (expand_expr_real_2 <case COND_EXPR>): Call
7844 expand_cond_expr_using_cmove first and return if it succeeds.
7845 Remove the check for HAVE_conditional_move since we should have
7846 already converted it to a conditional move.
7847 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
7848 modes of DImode for 32bits and TImode.
7849
7850 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
7851
7852 PR other/29442
7853 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
7854 (print_md_ptr_loc, print_c_condition): Use them.
7855 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
7856 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
7857 attr_file, dfa_file, latency_file): New global variables.
7858 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
7859 write_upcase, write_indent, write_length_unit_log, write_test_expr,
7860 write_attr_get, write_insn_cases, write_eligible_delay,
7861 write_const_num_delay_slots): Accept FILE pointer and toss it around.
7862 Update all callers.
7863 (write_header, open_outfile, handle_arg): New funcions.
7864 (make_automaton_attrs): Write prototypes as extern to the output
7865 files.
7866 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
7867 names from the command line. Open the output files and write out
7868 internal functions for DFA functions to dfa_file_name, insn latency
7869 functions to latency_file_name, and everything else to attr_file.
7870 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
7871 (BACKEND): Build libbackend first.
7872 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
7873 (.PRECIOUS): Likewise.
7874 (insn-dfatab.o): New rule.
7875 (insn-latencytab.o): New rule.
7876 (simple_rtl_generated_c): Do not include insn-attrtab.c.
7877 (s-attrtab): New rule.
7878
7879 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
7880
7881 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
7882 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
7883 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
7884 * reorg.c (get_jump_flags): Do not set the removed flags.
7885
7886 * doc/md.texi (attr_flag): Update for abovementioned changes.
7887
7888 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
7889
7890 PR target/53228
7891 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
7892 (TARGET_CMOV): Rename from TARGET_CMOVE.
7893 (TARGET_CMOVE): New define.
7894 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
7895 Do not set TARGET_CMOVE here.
7896
7897 2012-05-04 Dodji Seketeli <dodji@redhat.com>
7898
7899 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
7900 * opts.c (finish_options): Activate -Wunused-local-typedefs if
7901 -Wunused is activated.
7902 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
7903
7904 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7905
7906 * config/s390/s390.md (*movmem_short, *clrmem_short)
7907 (*cmpmem_short): Move the mode check from the insn condition to
7908 the match_scratch.
7909
7910 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7911
7912 PR tree-optimization/52633
7913 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
7914 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
7915 (vect_recog_over_widening_pattern): Remove handling of code that was
7916 already detected as over-widening pattern. Remove special handling
7917 of "unsigned" cases. Instead, support general case of conversion
7918 of the shift result to another type.
7919
7920 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7921
7922 * tree-vect-patterns.c (vect_single_imm_use): New function.
7923 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
7924 (vect_recog_over_widening_pattern): Likewise.
7925 (vect_recog_widen_shift_pattern): Likewise.
7926
7927 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7928
7929 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
7930 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
7931 (vect_recog_widen_mult_pattern): Likewise.
7932 (vect_operation_fits_smaller_type): Likewise.
7933 (vect_recog_over_widening_pattern): Likewise.
7934 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
7935
7936 2012-05-04 Richard Guenther <rguenther@suse.de>
7937
7938 PR lto/50602
7939 * lto-wrapper.c (merge_and_complain): Complain about mismatches
7940 of -freg-struct-return and -fpcc-struct-return.
7941 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
7942 from the input file options and ignore those from the link
7943 command line.
7944
7945 2012-05-04 Richard Guenther <rguenther@suse.de>
7946
7947 PR tree-optimization/53168
7948 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
7949 memory reads when the result is a constant we can pun.
7950
7951 2012-05-04 Richard Guenther <rguenther@suse.de>
7952
7953 * common.opt (flto-report): Do not mark as Optimization.
7954
7955 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
7956
7957 PR target/48496
7958 * recog.c (constrain_operands): If extra constraints are present, also
7959 accept pseudo-registers with equivalent memory locations during reload.
7960
7961 2012-05-04 Olivier Hainque <hainque@adacore.com>
7962
7963 * collect2.c (may_unlink_output_file): New global.
7964 (maybe_unlink): Honor it.
7965 * collect2.h: Add extern for it.
7966 * tlink.c (do_tlink): Set it to true if the link succeeded.
7967
7968 2012-05-04 Olivier Hainque <hainque@adacore.com>
7969
7970 * gcc.c (eval_spec_function): Finalize/restore the current string
7971 obstack state as part of the context push/pop operations.
7972
7973 2012-05-04 Bin Cheng <bin.cheng@arm.com>
7974
7975 PR rtl-optimization/52804
7976 * reload1.c (reload_reg_reaches_end_p): Check whether successor
7977 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
7978 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
7979 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
7980 RELOAD_FOR_OUTADDR_ADDRESS.
7981
7982 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7983
7984 PR c++/24985
7985 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
7986 for macro expansion.
7987
7988 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7989
7990 * flags.h (flag_permissive): Do not declare.
7991 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
7992 option specially.
7993 * toplev.c (flag_permissive): Do not define.
7994 * c-tree.h (system_header_p): Delete unused.
7995
7996 2012-05-03 David S. Miller <davem@davemloft.net>
7997
7998 PR target/52684
7999 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
8000 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
8001 (sparc_emit_float_lib_cmp): Likewise.
8002
8003 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8004
8005 PR target/53199
8006 * config/rs6000/rs6000.md (bswapdi splitters): If
8007 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
8008 default) is used, generate an alternate sequence that does not
8009 depend on using indexed addressing.
8010
8011 2012-05-03 Jason Merrill <jason@redhat.com>
8012
8013 * gengtype.c (write_types): Fix warning message.
8014 (write_local): Likewise.
8015
8016 2012-05-02 Jason Merrill <jason@redhat.com>
8017
8018 * dwarf2out.c (struct external_ref, build_local_stub): New.
8019 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
8020 (optimize_external_refs, optimize_external_refs_1): New.
8021 (change_AT_die_ref): New.
8022 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
8023 (build_abbrev_table): Take the external refs hashtable.
8024 (output_comp_unit): Get it from optimize_external_refs and pass it in.
8025
8026 2012-05-03 Jan Hubicka <jh@suse.cz>
8027
8028 PR middle-end/53093
8029 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
8030
8031 2012-05-03 Jan Hubicka <jh@suse.cz>
8032
8033 PR middle-end/53106
8034 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
8035
8036 2012-05-03 Jason Merrill <jason@redhat.com>
8037
8038 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
8039 use_debug_types to discriminate the die_id union.
8040 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
8041 (build_abbrev_table, output_die): Likewise.
8042 (prune_unused_types_walk_attribs): Likewise.
8043 (generate_type_signature, copy_declaration_context): Set it.
8044 (remove_child_or_replace_with_skeleton): Set it.
8045 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
8046 check use_debug_types.
8047 (dwarf2out_finish): Do break_out_includes after .debug_types.
8048
8049 2012-05-03 Jason Merrill <jason@redhat.com>
8050
8051 * dwarf2out.c (modified_type_die): Use scope_die_for.
8052 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
8053 (uses_local_type_r, uses_local_type): New.
8054 (scope_die_for): Keep a type that uses a local type in local scope.
8055 Use get_context_die for namespace and type scope.
8056
8057 2012-05-03 Jason Merrill <jason@redhat.com>
8058
8059 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
8060 pc thunk.
8061 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
8062 (dwarf2out_finish): Likewise.
8063
8064 2012-05-03 Martin Jambor <mjambor@suse.cz>
8065
8066 * builtins.c (get_object_alignment_1): Return whether we can determine
8067 the alignment or conservatively assume byte alignment. Return the
8068 alignment by reference. Use get_pointer_alignment_1 for dereference
8069 alignment.
8070 (get_pointer_alignment_1): Return whether we can determine the
8071 alignment or conservatively assume byte alignment. Return the
8072 alignment by reference. Use get_ptr_info_alignment to get SSA name
8073 alignment.
8074 (get_object_alignment): Update call to get_object_alignment_1.
8075 (get_object_or_type_alignment): Likewise, fall back to type alignment
8076 only when it returned false.
8077 (get_pointer_alignment): Update call to get_pointer_alignment_1.
8078 * fold-const.c (get_pointer_modulus_and_residue): Update call to
8079 get_object_alignment_1.
8080 * ipa-prop.c (ipa_modify_call_arguments): Update call to
8081 get_pointer_alignment_1.
8082 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
8083 of MEM_REF or TARGET_MEM_REF only when it returns false.
8084 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
8085 get_object_alignment_1.
8086 (ccp_finalize): Use set_ptr_info_alignment.
8087 * tree.h (get_object_alignment_1): Update declaration.
8088 (get_pointer_alignment_1): Likewise.
8089 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
8090 (dump_gimple_stmt): Likewise.
8091 * tree-flow.h (ptr_info_def): Updated comments of fields align and
8092 misalign.
8093 (get_ptr_info_alignment): Declared.
8094 (mark_ptr_info_alignment_unknown): Likewise.
8095 (set_ptr_info_alignment): Likewise.
8096 (adjust_ptr_info_misalignment): Likewise.
8097 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
8098 and set alignment of SSA names.
8099 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
8100 mark_ptr_info_alignment_unknown.
8101 * tree-ssanames.c (get_ptr_info_alignment): New function.
8102 (mark_ptr_info_alignment_unknown): Likewise.
8103 (set_ptr_info_alignment): Likewise.
8104 (adjust_ptr_info_misalignment): Likewise.
8105 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
8106 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8107 Likewise.
8108 (bump_vector_ptr): Likewise.
8109 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
8110 (vectorizable_store): Likewise.
8111 (vectorizable_load): Likewise.
8112
8113 2012-05-03 Michael Matz <matz@suse.de>
8114
8115 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
8116 in front of basic_block_def.
8117 (struct basic_block_def): Make il.gimple the full struct, not a
8118 pointer.
8119 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
8120
8121 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
8122 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
8123 NULL il.gimple, which can't happen anymore.
8124 * gimple.h (bb_seq): il.gimple can't be NULL.
8125 (bb_seq_add): Ditto.
8126 (set_bb_seq): Adjust.
8127 (gsi_start_bb, gsi_last_bb): Tidy.
8128 * lto-streamer-in.c (make_new_block): Don't zero members that
8129 are zeroed already, don't allocate a gimple_bb_info.
8130 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
8131 (remove_bb): Clear all il.gimple members.
8132 (gimple_verify_flow_info): Adjust for flat il.gimple.
8133 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
8134
8135 * coretypes.h (const_gimple_seq): Remove typedef.
8136 * gimple.h (gimple_seq_first): Take gimple_seq.
8137 (gimple_seq_first_stmt): Ditto.
8138 (gimple_seq_last): Ditto.
8139 (gimple_seq_last_stmt): Ditto.
8140 (gimple_seq_empty_p): Ditto.
8141
8142 2012-05-03 Richard Guenther <rguenther@suse.de>
8143
8144 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
8145 operations.
8146 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
8147 (compute_avail): Do not add possibly trapping operations to
8148 EXP_GEN if they might not be executed in the block.
8149
8150 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
8151
8152 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
8153
8154 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
8155
8156 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
8157 information as early as possible. Update dominance info instead of
8158 discarding it.
8159
8160 2012-05-03 Richard Guenther <rguenther@suse.de>
8161
8162 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
8163 (union_contains_value): Remove.
8164 (vro_valid_in_sets): Likewise.
8165 (op_valid_in_sets): New function.
8166 (valid_in_sets): Use op_valid_in_sets.
8167 (insert_into_preds_of_block): Move dumping ...
8168 (do_regular_insertion): ... here.
8169 (do_partial_partial_insertion): ... and here. Dump that
8170 we've found a partial partial redundancy.
8171 (insert): Dump the current insert iteration.
8172
8173 2012-05-03 Jakub Jelinek <jakub@redhat.com>
8174
8175 PR plugins/53126
8176 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
8177 append program name to it and pass that as first argument
8178 to make_relative_prefix. Always pass standard_libexec_prefix
8179 as last argument to make_relative_prefix. If
8180 make_relative_prefix returns NULL, fall back to
8181 standard_libexec_prefix.
8182
8183 PR debug/53174
8184 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
8185 removed.
8186
8187 PR target/53187
8188 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
8189 mode, return that mode.
8190
8191 PR target/53194
8192 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
8193 define __ATOMIC_HLE_* macros here.
8194 (ix86_target_macros): But here, using cpp_define_formatted.
8195
8196 2012-05-03 Richard Guenther <rguenther@suse.de>
8197
8198 PR tree-optimization/53144
8199 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
8200 Rename to ...
8201 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
8202 with SSA name values.
8203 (vn_reference_lookup_3): Adjust callers.
8204
8205 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8206
8207 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
8208 has_fma4 for AMD processors with both fma3 and fma4 support.
8209
8210 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
8211
8212 PR target/53201
8213 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
8214 "-mno-hle".
8215
8216 2012-05-03 Michael Matz <matz@suse.de>
8217
8218 PR bootstrap/53197
8219 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
8220 (dse_enter_block): Properly iterate the whole sequence even
8221 if the last statement was removed.
8222
8223 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
8224
8225 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
8226 unset flag_jump_tables.
8227 * stmt.c (expand_case): Remove special flag_pic case conditional
8228 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
8229
8230 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8231
8232 * common/config/s390/s390-common.c (s390_option_optimization_table):
8233 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
8234 default when optimizing.
8235
8236 2012-05-02 Martin Jambor <mjambor@suse.cz>
8237
8238 PR lto/52605
8239 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
8240 of a variable when the contect is a function.
8241
8242 2012-05-02 Michael Matz <matz@suse.de>
8243
8244 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
8245 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
8246 (const_gimple_seq_node): Remove.
8247 (gimple_seq_node): Typedef as gimple.
8248 (struct gimple_statement_base): Add next and prev members,
8249 adjust all WORD markers in using structs.
8250 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
8251 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
8252 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
8253 gimple are the same.
8254 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
8255 gimple_seq, adjust.
8256 (gimple_init_singleton): New function.
8257 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
8258 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
8259 (gsi_stmt): Adjust.
8260 (gsi_stmt_ptr): Remove.
8261 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
8262
8263 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
8264 again, adjust for above changes.
8265 (update_call_edge_frequencies): Adjust for above changes.
8266 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
8267 (gsi_insert_seq_nodes_after): Ditto.
8268 (gsi_split_seq_after): Ditto.
8269 (gsi_set_stmt): Ditto.
8270 (gsi_split_seq_before): Ditto.
8271 (gsi_remove): Ditto.
8272 (gsi_insert_seq_before_without_update): Don't free sequence.
8273 (gsi_insert_seq_after_without_update): Ditto.
8274 (gsi_replace): Assert some more invariants.
8275 (gsi_insert_before_without_update, gsi_insert_after_without_update):
8276 Tidy.
8277 (gsi_for_stmt): Don't search for stmt.
8278 (gsi_insert_on_edge_immediate): Tidy.
8279
8280 * gimple.c (gimple_alloc_k): Remove "sequences".
8281 (gimple_seq_cache): Remove.
8282 (gimple_alloc_stat): Make stmt a singleton sequence.
8283 (gimple_seq_alloc, gimple_seq_free): Remove.
8284 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
8285 (gimple_copy): Ditto.
8286 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
8287 create iterator from correct sequence.
8288 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
8289
8290 2012-05-02 Michael Matz <matz@suse.de>
8291
8292 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
8293 gimple_seq.
8294 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
8295 sequence, lazily allocate it.
8296 (bb_seq_addr): New function.
8297 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
8298 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
8299 (gsi_none): New function.
8300 (gsi_start_bb): Adjust.
8301 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
8302 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
8303 (gsi_last_bb): Adjust.
8304 (gsi_seq): Adjust.
8305 * tree-flow-inline.h (phi_nodes_ptr): New function.
8306
8307 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
8308 datastructure and interface change.
8309 (gsi_insert_seq_before_without_update): Ditto.
8310 (gsi_insert_seq_nodes_after): Ditto.
8311 (gsi_insert_seq_after_without_update): Ditto.
8312 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
8313 (gsi_split_seq_before): Ditto.
8314 (gsi_start_phis): Adjust.
8315 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
8316 (vect_transform_loop): Ditto.
8317 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
8318 gimple_seq_copy): Don't use gimple_seq_alloc.
8319 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
8320 (gimplify_seq_add_seq): Ditto.
8321 * lto-streamer-in.c (make_new_block): Ditto.
8322 * tree-cfg.c (create_bb): Ditto.
8323 * tree-sra.c (initialize_parameter_reductions): Ditto.
8324
8325 2012-05-02 Michael Matz <matz@suse.de>
8326
8327 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
8328 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
8329 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
8330 set_bb_seq): Move down to after gimple_statement_d definition.
8331
8332 2012-05-02 Michael Matz <matz@suse.de>
8333
8334 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8335 gsi_replace_with_seq, instead of inserting itself.
8336 * gimple-iterator.c (gsi_replace_with_seq): New function.
8337 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
8338 iterator instead of statement, advance it.
8339 (ssa_forward_propagate_and_combine): Adjust call to above.
8340
8341 2012-05-02 Michael Matz <matz@suse.de>
8342
8343 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
8344 gimple_seq_alloc.
8345 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
8346 * tree-nested.c (walk_gimple_omp_for): Ditto.
8347 * trans-mem.c (lower_transaction): Ditto.
8348 * tree-eh.c (do_return_redirection): Ditto.
8349 (do_goto_redirection): Ditto.
8350 (lower_try_finally_switch): Ditto.
8351 * gimplify.c (gimplify_stmt): Ditto.
8352 (gimplify_scan_omp_clauses): Ditto.
8353 (gimplify_omp_for): Ditto.
8354 (gimplify_function_tree): Ditto.
8355 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
8356 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
8357 (mf_build_check_statement_for): Ditto.
8358 (mx_register_decls): Ditto.
8359 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
8360 and don't use itertors to append.
8361 (insert_stmts): Ditto.
8362 (insert_out_of_ssa_copy): Ditto.
8363 (insert_out_of_ssa_copy_on_edge): Ditto.
8364
8365 2012-05-02 Michael Matz <matz@suse.de>
8366
8367 * gimple.h (gimple_bind_body_ptr): New function.
8368 (gimple_bind_body): Use it.
8369 (gimple_catch_handler): Use gimple_catch_handler_ptr.
8370 (gimple_eh_filter_failure_ptr): New function.
8371 (gimple_eh_filter_failure): Use it.
8372 (gimple_eh_else_n_body_ptr): New function.
8373 (gimple_eh_else_n_body): Use it.
8374 (gimple_eh_else_e_body_ptr): New function.
8375 (gimple_eh_else_e_body): Use it.
8376 (gimple_try_eval_ptr): New function.
8377 (gimple_try_eval): Use it.
8378 (gimple_try_cleanup_ptr): New function.
8379 (gimple_try_cleanup): Use it.
8380 (gimple_wce_cleanup_ptr): New function.
8381 (gimple_wce_cleanup): Use it.
8382 (gimple_omp_body_ptr): New function.
8383 (gimple_omp_body): Use it.
8384 (gimple_omp_for_pre_body_ptr): New function.
8385 (gimple_omp_for_pre_body): Use it.
8386 (gimple_transaction_body_ptr): New function.
8387 (gimple_transaction_body): Use it.
8388 (gsi_split_seq_before): Adjust to return nothing and take pointer
8389 to sequence.
8390 (gsi_set_stmt): Declare.
8391 (gsi_replace_with_seq): Declare.
8392 (walk_gimple_seq_mod): Declare.
8393 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
8394
8395 * gimple-iterator.c (gsi_set_stmt): New function.
8396 (gsi_split_seq_before): Return new sequence via pointer argument.
8397 (gsi_replace): Use gsi_set_stmt.
8398
8399 * tree-ssa-loop-im.c (move_computations_stmt): First remove
8400 then insert stmt.
8401 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
8402 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
8403 return new stmt.
8404 (reserve_phi_args_for_new_edge): Change call to above,
8405 use gsi_set_stmt.
8406
8407 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
8408 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
8409 iterators. Adjust call to lower_omp.
8410 (lower_lastprivate_clauses): Adjust call to lower_omp.
8411 (lower_reduction_clauses): Ditto.
8412 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
8413 (lower_omp_sections): Don't explicitely count sequence length,
8414 nullify lowered bodies earlier, ensure stmts are part of only
8415 one sequence, adjust call to lower_omp.
8416 (lower_omp_single): Ensure stmts are part of only one sequence,
8417 adjust call to lower_omp.
8418 (lower_omp_master): Ditto.
8419 (lower_omp_ordered): Ditto.
8420 (lower_omp_critical): Ditto.
8421 (lower_omp_for): Ditto.
8422 (lower_omp_taskreg): Ditto, tidy.
8423 (lower_omp_1): Adjust calls to lower_omp.
8424 (execute_lower_omp): Ditto.
8425 (lower_omp): Adjust to take pointer to sequence.
8426 (diagnose_sb_2): Use walk_gimple_seq_mod.
8427 (diagnose_omp_structured_block_errors): Ditto and set possibly
8428 changed function body.
8429 * gimple-low.c (lower_function_body): Set function body after
8430 it stabilizes.
8431 (lower_sequence): Adjust to take pointer to sequence.
8432 (lower_omp_directive): Ensure stmt isn't put twice into the
8433 sequence, adjust call to lower_sequence.
8434 (lower_stmt): Adjust calls to lower_sequence.
8435 (lower_gimple_bind): Ditto.
8436 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
8437 * tree-nested.c (walk_body): Take pointer to sequence, use
8438 walk_gimple_seq_mod.
8439 (walk_function): Adjust call to walk_body, set possibly changed body.
8440 (walk_gimple_omp_for): Adjust calls to walk_body.
8441 (convert_nonlocal_omp_clauses): Ditto.
8442 (convert_nonlocal_reference_stmt): Ditto.
8443 (convert_local_omp_clauses): Ditto.
8444 (convert_local_reference_stmt): Ditto.
8445 (convert_tramp_reference_stmt): Ditto.
8446 (convert_gimple_call): Ditto.
8447 (convert_nl_goto_reference): Use local iterator copy.
8448 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
8449 but taking pointer to sequence, ensure gsi_start is called with
8450 callers lvalue.
8451 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
8452 asserting that the sequence head didn't change.
8453 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
8454 walk_gimple_seq_mod.
8455 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
8456 (execute_lower_tm): Ditto, and set possibly changed body.
8457 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
8458 call gsi_start with that lvalue.
8459 (replace_goto_queue_stmt_list): Ditto.
8460 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
8461 (replace_goto_queue): Ditto.
8462 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
8463 (lower_try_finally_onedest): Ditto.
8464 (lower_try_finally_copy): Ditto.
8465 (lower_try_finally_switch): Ditto.
8466 (lower_try_finally): Ditto.
8467 (lower_eh_filter): Ditto.
8468 (lower_eh_must_not_throw): Ditto.
8469 (lower_cleanup): Ditto.
8470 (lower_eh_constructs_2): Ditto.
8471 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
8472 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
8473 set possibly changed body.
8474 (optimize_double_finally): Call gsi_start with lvalue.
8475
8476 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
8477 (gimple_split_block): Ditto.
8478 (gimple_merge_blocks): Use gsi_start_phis.
8479 (move_stmt_r): Use walk_gimple_seq_mod.
8480 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
8481 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
8482 (rebuild_cgraph_edges): Ditto.
8483 (cgraph_rebuild_references): Ditto.
8484 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
8485 * tree-inline.c (copy_phis_for_bb): Ditto.
8486 * tree-ssa-dce.c: Ditto.
8487
8488 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
8489
8490 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
8491 Andi Kleen <ak@linux.intel.com>
8492
8493 * coretypes.h (MEMMODEL_MASK): New.
8494 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
8495 and return new variable.
8496 (expand_builtin_atomic_exchange): Mask memmodel values.
8497 (expand_builtin_atomic_compare_exchange): Ditto.
8498 (expand_builtin_atomic_load): Ditto.
8499 (expand_builtin_atomic_store): Ditto.
8500 (expand_builtin_atomic_clear): Ditto.
8501 * doc/extend.texi: Mention port-dependent memory model flags.
8502 * config/i386/cpuid.h (bit_HLE): New.
8503 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8504 HLE support.
8505 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
8506 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
8507 (ix86_target_string)<-mhle>: New.
8508 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
8509 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
8510 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
8511 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
8512 enabled for generic, generic64 and core-avx2.
8513 (ix86_print_operand): Generate HLE lock prefixes.
8514 (ix86_memmodel_check): New.
8515 (TARGET_MEMMODEL_CHECK): Ditto.
8516 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
8517 (IX86_HLE_ACQUIRE): Ditto.
8518 (IX86_HLE_RELEASE): Ditto.
8519 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
8520 * config/i386/i386.opt (mhle): Ditto.
8521 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
8522 success model to instruction emitter.
8523 (atomic_fetch_add<mode>): Ditto.
8524 (atomic_exchange<mode>): Ditto.
8525 (atomic_add<mode>): Ditto.
8526 (atomic_sub<mode>): Ditto.
8527 (atomic_<code><mode>): Ditto.
8528 (*atomic_compare_and_swap_doubledi_pic): Ditto.
8529 (atomic_compare_and_swap_single<mode>): Define and use argument
8530 for success model.
8531 (atomic_compare_and_swap_double<mode>): Ditto.
8532 * configure.ac: Check if assembler support HLE prefixes.
8533 * configure: Regenerate.
8534 * config.in: Ditto.
8535
8536 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
8537
8538 PR middle-end/53153
8539 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
8540 split out from ...
8541 (gimplify_switch_expr): ... here.
8542 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
8543 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
8544 to clean up case labels with values outside the index type range.
8545 (simplify_gimple_switch): Call it if something changed.
8546 Remove strange and unnecessary assert.
8547
8548 2012-05-02 Richard Guenther <rguenther@suse.de>
8549
8550 * fold-const.c (div_if_zero_remainder): sizetypes no longer
8551 sign-extend.
8552 (int_const_binop_1): New worker for int_const_binop with
8553 overflowable parameter. Pass it through to force_fit_type_double.
8554 (int_const_binop): Wrap around int_const_binop_1 with overflowable
8555 equal to one.
8556 (size_binop_loc): Call int_const_binop_1 with overflowable equal
8557 to minus one, forcing overflow detection for even unsigned types.
8558 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
8559 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
8560 * stor-layout.c (initialize_sizetypes): sizetypes no longer
8561 sign-extend.
8562 (layout_type): For zero-sized arrays ignore overflow on the
8563 size calculations.
8564 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
8565 (bit_value_binop_1): Likewise.
8566 * tree.c (double_int_to_tree): Likewise.
8567 (double_int_fits_to_tree_p): Likewise.
8568 (force_fit_type_double): Likewise.
8569 (host_integerp): Likewise.
8570 (int_fits_type_p): Likewise.
8571 * varasm.c (output_constructor_regular_field): Sign-extend the
8572 field-offset to cater for negative offsets produced by the Ada
8573 frontend.
8574 * omp-low.c (extract_omp_for_data): Convert the loop step to
8575 signed for pointer adjustments.
8576
8577 2012-05-02 Richard Guenther <rguenther@suse.de>
8578
8579 * tree.c (valid_constant_size_p): New function.
8580 * tree.h (valid_constant_size_p): Declare.
8581 * cfgexpand.c (expand_one_var): Adjust check for too large
8582 variables by using valid_constant_size_p.
8583 * varasm.c (assemble_variable): Likewise.
8584
8585 * c-decl.c (grokdeclarator): Properly check for sizes that
8586 cover more than half of the address-space.
8587
8588 2012-05-02 Jakub Jelinek <jakub@redhat.com>
8589
8590 PR tree-optimization/53163
8591 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
8592 return value from compute_all_dependences.
8593
8594 PR rtl-optimization/53160
8595 * ree.c (combine_reaching_defs): Handle the case where cand->insn
8596 has been modified by ree pass already.
8597
8598 2012-05-01 Ian Lance Taylor <iant@google.com>
8599
8600 PR c/37303
8601 * c-decl.c (build_compound_literal): Make the decl readonly if it
8602 an array of a readonly type.
8603 * gimplify.c (gimplify_compound_literal_expr): Add fallback
8604 parameter. Change all callers. If the decl is not addressable
8605 and is not an l-value, make it readonly.
8606
8607 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
8608
8609 * ira.c (allocated_reg_info_size): New static variable.
8610 (expand_reg_info): Manage it. Call
8611 setup_preferred_alternate_classes_for_new_pseudos.
8612 (ira): Don't do it here. Remove local allocated_reg_info_size,
8613 set the global before calling find_moveable_pseudos.
8614 (find_moveable_pseudos): Call expand_reg_info rather than
8615 resize_reg_info.
8616
8617 2012-05-01 Richard Henderson <rth@redhat.com>
8618
8619 * common.opt (fsync-libcalls): New.
8620 * doc/invoke.texi: Document it.
8621 * optabs.c (init_sync_libfuncs): Honor it.
8622
8623 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
8624 Richard Sandiford <r.sandiford@uk.ibm.com>
8625
8626 PR rtl-optimization/52543
8627 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
8628 lower-subreg.h.
8629 * lower-subreg.h: New file.
8630 * target-globals.h (this_target_lower_subreg): Declare.
8631 (target_globals): Add lower_subreg;
8632 (restore_target_globals): Restore this_target_lower_subreg.
8633 * target-globals.c: Include it.
8634 (default_target_globals): Add default_target_lower_subreg.
8635 (save_target_globals): Initialize target_lower_subreg.
8636 * rtl.h (init_lower_subreg): Added declaration.
8637 * toplev.c (backend_init_target): Call initializer for lower-subreg
8638 pass.
8639 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
8640 (default_target_lower_subreg): New variable.
8641 (this_target_lower_subreg): Likewise.
8642 (twice_word_mode, choices): New macros.
8643 (shift_cost, compute_splitting_shift, compute_costs)
8644 (init_lower_subreg): New functions.
8645 (resolve_simple_move): Add speed_p argument. Check choices.
8646 (find_pseudo_copy): Don't check the mode size here.
8647 (resolve_simple_move): Assert the mode size.
8648 (find_decomposable_shift_zext): Add speed_p argument and return
8649 a bool. Check choices.
8650 (resolve_shift_zext): Add comment.
8651 (dump_shift_choices, dump_choices): New functions.
8652 (decompose_multiword_subregs): Dump list of profitable
8653 transformations. Add code to skip non profitable transformations.
8654 Update calls to simple_move and find_decomposable_shift_zext.
8655
8656 2012-05-01 Ian Bolton <ian.bolton@arm.com>
8657 Sameera Deshpande <sameera.deshpande@arm.com>
8658 Greta Yorsh <greta.yorsh@arm.com>
8659
8660 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
8661 (thumb1_unexpanded_epilogue): ...this.
8662 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
8663 (thumb1_unexpanded_epilogue): ...this.
8664 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
8665 (thumb1_unexpanded_epilogue): ...this.
8666
8667 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
8670 comparing enumeration values. Update comments.
8671
8672 2012-05-01 Alan Modra <amodra@gmail.com>
8673
8674 PR target/53038
8675 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
8676 load_cr_save, add_crlr_cfa_restore): New functions.
8677 (rs6000_restore_saved_cr): Rename to..
8678 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
8679 (rs6000_emit_epilogue): Use new functions. Adjust condition
8680 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
8681 regs when using out-of-line restore only when shrink wrapping.
8682
8683 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8684
8685 PR middle-end/53136
8686 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
8687 calls to cgraph_node_name in xstrdup.
8688 (ipa_make_edge_direct_to_target): Ditto.
8689 * cgraph.c (dump_cgraph_node): Ditto.
8690 * tree-sra.c (convert_callers_for_node): Ditto.
8691 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
8692 * ipa-cp.c (perhaps_add_new_callers): Ditto.
8693 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
8694 (cgraph_materialize_all_clones): Ditto.
8695 * ipa-inline.c (report_inline_failed_reason): Ditto.
8696 (want_early_inline_function_p): Ditto.
8697 (edge_badness): Ditto.
8698 (update_edge_key): Ditto.
8699 (flatten_function): Ditto.
8700 (ipa_inline): Ditto.
8701 (inline_always_inline_functions): Ditto.
8702 (early_inline_small_functions): Ditto.
8703
8704 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8705
8706 PR target/53141
8707 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
8708 constraints 0 and 1.
8709
8710 012-04-30 Jan Hubicka <jh@suse.cz>
8711
8712 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
8713 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
8714 (cgraph_add_to_same_comdat_group): Remove.
8715 (cgraph_add_asm_node): Move to cgraphunit.c.
8716 (cgraph_make_decl_local): Move to symtab.c
8717 (cgraph_make_node_local_1): Update.
8718 (cgraph_can_remove_if_no_direct_calls_and): Update.
8719 (used_from_object_file_p): Update.
8720 (resolution_used_from_other_file_p): Move to symtab.c
8721 (cgraph_used_from_object_file_p): move to symtab.c
8722 (verify_cgraph_node): Verify same comdat groups.
8723 * cgraph.h (cgraph_asm_node): Rename to ...
8724 (asm_node): ... this one.
8725 (cgraph_asm_nodes): Rename to ...
8726 (asm_nodes): ... this one.
8727 (symtab_add_to_same_comdat_group): New function.
8728 (symtab_dissolve_same_comdat_group_list): New function.
8729 (symtab_used_from_object_file_p): Declare.
8730 (symtab_make_decl_local): Declare.
8731 (cgraph_add_to_same_comdat_group): Remove.
8732 (cgraph_add_asm_node): Remove.
8733 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
8734 Remove.
8735 (cgraph_finalize_compilation_unit): Rename to ...
8736 (finalize_compilation_unit): ... this one.
8737 (cgraph_optimize): Rename to ....
8738 (compile): ... this one.
8739 (add_asm_node): Declare.
8740 (fixup_same_cpp_alias_visibility): Declare.
8741 (cgraph_make_decl_local): Remove.
8742 (varpool_assemble_pending_decls): Rename to ...
8743 (varpool_output_variables): ... this one.
8744 (varpool_remove_unreferenced_decls): Remove.
8745 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
8746 (preserve_function_body_p): Make static.
8747 * toplev.c (compile_file): Update comments; update.
8748 * cgraphunit.c: Update comments.
8749 (cgraph_expand_all_functions): Rename to ...
8750 (expand_all_functions): ... this one; update.
8751 (cgraph_mark_functions_to_output): Rename to ...
8752 (mark_functions_to_output): ... this one; cleanup.
8753 (cgraph_output_pending_asms): Remove prototype.
8754 (asm_nodes, asm_last_node): New static vars.
8755 (cgraph_process_new_functions): Update.
8756 (cgraph_reset_node): Cleanup; add comment.
8757 (cgraph_add_new_function): Update.
8758 (cgraph_output_pending_asms): Rename to ...
8759 (output_asm_statements): ... this one.
8760 (add_asm_node): New function.
8761 (fixup_same_cpp_alias_visibility): New function based on code
8762 in cgraph_analyze_function.
8763 (cgraph_analyze_function): Use it.
8764 (cgraph_order_sort): Update.
8765 (cgraph_output_in_order): Update.
8766 (cgraph_function_versioning): Update.
8767 (cgraph_optimize): Rename to ...
8768 (compile): ... this one; initialize streamer hooks here.
8769 (cgraph_finalize_compilation_unit): Rename to ...
8770 (finalize_compilation_unit): ... this one; do not initialize streamer
8771 hook here.
8772 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
8773 * dwarf2out.c: Update ocmment.
8774 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
8775 * method.c (use_thunk): Likewise.
8776 * semantics.c (maybe_add_lambda_conv_op): Likewise.
8777 * decl2.c (maybe_emit_vtables): Likewise.
8778 (cp_write_global_declarations): Use finalize_compilation_unit.
8779 * parser.c (cp_parser_asm_definition): Use add_asm_node.
8780 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
8781 * c-decl.c (c_write_global_declarations): Use
8782 finalize_compilation_unit.
8783 * langhooks.c (write_global_declarations): Update.
8784 * ipa.c (cgraph_externally_visible_p): Update.
8785 (dissolve_same_comdat_group_list): Remove.
8786 (function_and_variable_visibility): Update.
8787 * symtab.c: Inlcude lto-streamer.h and rtl.h
8788 (ld_plugin_symbol_resolution_names): New.
8789 (symtab_add_to_same_comdat_group): New.
8790 (symtab_dissolve_same_comdat_group_list): New.
8791 (resolution_used_from_other_file_p): Move here from cgraph.c
8792 (symtab_used_from_object_file_p): New.
8793 (symtab_make_decl_local): New.
8794 * passes.c (register_pass): Update comments.
8795 * c-parser.c (c_parser_asm_definition): Update.
8796 * varpool.c (varpool_analyze_node): Use
8797 fixup_same_cpp_alias_visibility.
8798 (varpool_remove_unreferenced_decls): Make static.
8799 (varpool_assemble_pending_decls): Rename to ...
8800 (varpool_output_variables): ... this one; call
8801 varpool_remove_unreferenced_decls.
8802 (varpool_used_from_object_file_p): Remove.
8803
8804 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
8805
8806 PR c++/51033
8807 * c-typeck.c (build_array_ref): Call
8808 convert_vector_to_pointer_for_subscript.
8809 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
8810
8811 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8812
8813 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
8814 to compile-time "mode == <MODE>mode" checks.
8815 (and splitter): Ditto.
8816
8817 2012-04-30 Richard Henderson <rth@redhat.com>
8818
8819 * config/arm/arm.md (UNSPEC_LL): New.
8820 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
8821 (arm_load_exclusivedi): Use %H0.
8822
8823 2012-04-30 Jason Merrill <jason@redhat.com>
8824
8825 * dwarf2out.c (comdat_symbol_id): Add const.
8826 (union die_symbol_or_type_node): Add const to die_symbol.
8827 (output_die_symbol, output_die, output_comp_unit): Adjust.
8828
8829 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
8830
8831 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
8832 * config/arm/neon.md (negdi2_neon): New insn.
8833 Also add splitters for core and NEON registers.
8834
8835 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
8836
8837 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
8838 (arm_print_operand): Add 'x' format.
8839 * config/arm/constraints.md (Dn): Allow const_int.
8840 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
8841 Use 'x' format to print constants.
8842 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
8843 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
8844 is enabled.
8845 (movdi_vfp_cortexa8): Likewise.
8846
8847 2012-04-30 Ian Bolton <ian.bolton@arm.com>
8848 Sameera Deshpande <sameera.deshpande@arm.com>
8849 Greta Yorsh <greta.yorsh@arm.com>
8850
8851 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
8852 * config/arm/arm.c (ldm_stm_operation_p): New function.
8853 * config/arm/predicates.md (load_multiple_operation): Update predicate.
8854 (store_multiple_operation): Likewise.
8855
8856 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
8857 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
8858 * config/arm/predicates.md (load_multiple_operation): Add arguments.
8859 (store_multiple_operation): Likewise.
8860
8861 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8862
8863 * config/i386/i386.md (and<mode>3): Expand masking operations with
8864 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
8865 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
8866
8867 2012-04-30 Dodji Seketeli <dodji@redhat.com>
8868
8869 Add -Wvarargs option
8870 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
8871 argument for the various warning_at calls.
8872 * docs/invoke.texi: Update the documentation.
8873
8874 2012-04-30 Dodji Seketeli <dodji@redhat.com>
8875
8876 Switch -ftrack-macro-expansion=2 on by default.
8877 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
8878 by default.
8879
8880 Fix va_start related location
8881 * builtins.c (fold_builtin_next_arg): Unwinds to the first
8882 location in real source code.
8883
8884 Make conversion warnings work on NULL with -ftrack-macro-expansion
8885 * input.h (expansion_point_location_if_in_system_header): Declare
8886 new function.
8887 * input.c (expansion_point_location_if_in_system_header): Define it.
8888
8889 Fix -Wuninitialized for -ftrack-macro-expansion
8890 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
8891 declaration. Use linemap_location_before_p for source locations.
8892
8893 Strip "<built-in>" loc from displayed expansion context
8894 * input.c (expand_location_1): When expanding to spelling location
8895 in a context of a macro expansion, skip reserved system header
8896 locations. Update comments. * tree-diagnostic.c
8897 (maybe_unwind_expanded_macro_loc): Likewise.
8898
8899 Make expand_location resolve to locus in main source file
8900 * input.c (expand_location_1): New. Takes a parameter to choose
8901 whether to resolve the location to spelling or expansion point.
8902 Was factorized from ...
8903 (expand_location): ... here.
8904 (expand_location_to_spelling_point): New. Implemented in terms of
8905 expand_location_1.
8906 * diagnostic.c (diagnostic_build_prefix): Use the new
8907 expand_location_to_spelling_point instead of expand_location.
8908
8909 Fix PCH crash on GTYed pointer-to-scalar field of a struct
8910 * gengtype.c (write_types_process_field): Force second argument of
8911 the call to the PCH object hierarchy walker to be 'x'.
8912
8913 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
8914
8915 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
8916 predicate to discriminate types.
8917
8918 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8919
8920 * doc/invoke.texi (Wmissing-format-attribute): Document as an
8921 alias of Wsuggest-attribute=format.
8922 * c-typeck.c (convert_for_assignment): Replace
8923 Wmissing-format-attribute with Wsuggest-attribute=format.
8924 (digest_init): Likewise.
8925
8926 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8927
8928 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
8929 * common.opt (Wmissing-noreturn): Alias of
8930 -Wsuggest-attribute=noreturn.
8931
8932 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
8933
8934 PR target/53156
8935 * config/cris/cris.md (andqu): New peephole2.
8936 (andu): Tweak head comment.
8937
8938 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
8939 Steven Bosscher <steven@gcc.gnu.org>
8940 Maxim Kuvyrkov <maxim@codesourcery.com>
8941
8942 PR tree-optimization/38785
8943 * common.opt (ftree-partial-pre): New option.
8944 * doc/invoke.texi: Document it.
8945 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
8946 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
8947 benefit speed path.
8948 (execute_pre): Use flag_tree_partial_pre.
8949
8950 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8951
8952 PR target/52999
8953 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
8954 in constant pool.
8955
8956 2012-04-27 Ollie Wild <aaw@google.com>
8957
8958 * doc/invoke.texi (Wliteral-suffix): Document new option.
8959
8960 2012-04-27 Tom Tromey <tromey@redhat.com>
8961
8962 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
8963 (dwarf_tag_name): Use get_DW_TAG_name.
8964 (dwarf_attr_name): Use get_DW_AT_name.
8965 (dwarf_form_name): Use get_DW_FORM_name.
8966 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
8967
8968 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
8969
8970 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
8971 arguments are -1 and 0, by negating the result of the conditional.
8972
8973 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
8974
8975 PR target/53138
8976 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
8977
8978 2012-04-27 Richard Guenther <rguenther@suse.de>
8979
8980 * tree-flow.h (is_hidden_global_store): Remove.
8981 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
8982 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
8983 (stmt_may_clobber_global_p): Likewise.
8984 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
8985 (stmt_may_clobber_global_p): Likewise.
8986 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
8987 stmt_may_clobber_global_p.
8988 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
8989
8990 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
8991
8992 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
8993 place.
8994
8995 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
8996 reorganize some fields and update comments. Rename bit_test_uniq
8997 and bit_test_count to uniq resp. count. Remove bit_test_bb.
8998 (collect_switch_conv_info): New function, collects info about a
8999 GIMPLE_SWITCH into a struct switch_conv_info.
9000 (check_range): Simplify to use pre-recorded info. Fix think-o in
9001 range-branch ratio check.
9002 (check_process_case): Remove function.
9003 (check_all_empty_except_final): New function, verifies that all
9004 non-final basic blocks are empty.
9005 (process_switch): Simplify to use pre-recorded info. Call
9006 collect_switch_conv_info to do that. Assert that degenerate switch
9007 statements have been cleaned up.
9008
9009 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
9010
9011 PR middle-end/27139
9012 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
9013
9014 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9015
9016 PR c/53130
9017 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
9018
9019 2012-04-27 Tom de Vries <tom@codesourcery.com>
9020
9021 PR tree-optimization/51879
9022 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
9023 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
9024 of ...
9025 (defs_to_varying): ... here. Don't set use_processed.
9026 (visit_reference_op_call): Handle gimple_vdef.
9027 Handle case that lhs is NULL_TREE.
9028 (visit_use): Use mark_use_processed. Handle calls with side-effect
9029 using visit_reference_op_call.
9030
9031 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
9032
9033 * sched-deps.c (fixup_sched_groups): Rename to...
9034 (chain_to_prev_insn): ...this.
9035 (chain_to_prev_insn_p): New function.
9036 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
9037
9038 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
9039
9040 * sched-int.h (_haifa_insn_data): Move priority_status.
9041 Add model_index.
9042 (INSN_MODEL_INDEX): New macro.
9043 * haifa-sched.c (insn_delay): New function.
9044 (sched_regno_pressure_class): Update commentary.
9045 (mark_regno_birth_or_death): Pass the liveness bitmap and
9046 pressure array as arguments, instead of using curr_reg_live and
9047 curr_reg_pressure. Only update the pressure if the bit in the
9048 liveness set has changed.
9049 (initiate_reg_pressure_info): Always trust the live-in set for
9050 SCHED_PRESSURE_MODEL.
9051 (initiate_bb_reg_pressure_info): Update call to
9052 mark_regno_birth_or_death.
9053 (dep_list_size): Take the list as argument.
9054 (calculate_reg_deaths): New function, extracted from...
9055 (setup_insn_reg_pressure_info): ...here.
9056 (MODEL_BAR): New macro.
9057 (model_pressure_data, model_insn_info, model_pressure_limit)
9058 (model_pressure_group): New structures.
9059 (model_schedule, model_worklist, model_insns, model_num_insns)
9060 (model_curr_point, model_before_pressure, model_next_priority):
9061 New variables.
9062 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
9063 (MODEL_INSN_INFO, MODEL_INSN): New macros.
9064 (model_index, model_update_limit_points_in_group): New functions.
9065 (model_update_limit_points, model_last_use_except): Likewise.
9066 (model_start_update_pressure, model_update_pressure): Likewise.
9067 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
9068 (model_excess_cost, model_dump_pressure_points): Likewise.
9069 (model_set_excess_costs): Likewise.
9070 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
9071 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
9072 schedule as an alternative tie-breaker. Update the call to
9073 dep_list_size.
9074 (ready_sort): Call model_set_excess_costs.
9075 (update_register_pressure): Update call to mark_regno_birth_or_death.
9076 Rely on that function to check liveness rather than doing it here.
9077 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
9078 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
9079 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
9080 (model_record_pressure, model_record_pressures): New functions.
9081 (model_record_final_pressures, model_add_successors_to_worklist)
9082 (model_promote_predecessors, model_choose_insn): Likewise.
9083 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
9084 (model_start_schedule, model_finalize_pressure_group): Likewise.
9085 (model_end_schedule): Likewise.
9086 (schedule_insn): Say when we're scheduling the next instruction
9087 in the model schedule.
9088 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
9089 (queue_to_ready): Do not add instructions that are
9090 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
9091 Always allow the next instruction in the model schedule to be added.
9092 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
9093 and delay for SCHED_PRESSURE_MODEL too.
9094 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
9095 SCHED_PRIORITY_MODEL, but also take the DFA into account.
9096 (schedule_block): Call model_start_schedule and model_end_schedule.
9097 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
9098 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
9099 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
9100 region_ref_regs.
9101 (sched_finish): Update accordingly.
9102 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
9103 to SCHED_PRESSURE_MODEL.
9104 (add_jump_dependencies): Update call to dep_list_size.
9105 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
9106 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
9107 to SCHED_PRESSURE_MODEL.
9108 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
9109 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
9110 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
9111 handling to SCHED_PRESSURE_MODEL.
9112
9113 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
9114
9115 * common.opt (fsched-pressure-algorithm=): New option.
9116 * flag-types.h (sched_pressure_algorithm): New enum.
9117 * sched-int.h (sched_pressure_p): Replace with...
9118 (sched_pressure): ...this new variable.
9119 * haifa-sched.c (sched_pressure_p): Replace with...
9120 (sched_pressure): ...this new variable.
9121 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
9122 (update_reg_and_insn_max_reg_pressure, schedule_insn)
9123 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
9124 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
9125 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
9126 (sched_analyze_insn): Likewise.
9127 * sched-rgn.c (schedule_region): Likewise.
9128 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
9129
9130 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
9131
9132 * PR middle-end/52997
9133 * ira.c (find_moveable_pseudos): Call resize_reg_info.
9134
9135 PR middle-end/52940
9136 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
9137 * expr.c (convert_move): Honor unsignedp when extending partial int
9138 modes.
9139 * genmodes.c (complete_mode): Don't clear component field of partial
9140 int modes.
9141 (emit_mode_inner): Don't emit it however.
9142 (calc_wider_mode): Partial int modes widen to their component.
9143
9144 2012-04-26 David S. Miller <davem@davemloft.net>
9145
9146 * config/sparc/niagara4.md: New file.
9147 * config/sparc/sparc.md: Include it.
9148 * config/sparc/sparc.c (niagara4_costs): New processor costs.
9149 (sparc_option_override): Use it.
9150 (sparc_use_sched_lookahead): Return 2 for niagara4.
9151 (sparc_issue_rate): Likewise.
9152
9153 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
9154 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
9155 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
9156 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
9157 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
9158 alignaddrldi_vis): Set type to gsr.
9159 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
9160 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
9161 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
9162 v<vis3_shift_patname><mode>3, fmean16_vis,
9163 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
9164 fucmp<code>8<P:mode>_vis): Set type to fga.
9165 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
9166 * config/sparc/niagara.md: Likewise.
9167 * config/sparc/niagara2.md: Likewise.
9168 * config/sparc/ultra3.md: Likewise, and fix type matching for
9169 us3_ialuX reservation.
9170
9171 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9172
9173 * reload.c (find_reloads): Change the loop nesting when trying an
9174 alternative with swapped operands.
9175
9176 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9177
9178 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
9179 comment. Delete unused parameter first_exp_point_map.
9180 (virt_loc_aware_diagnostic_finalizer): Update call.
9181
9182 2012-04-26 Michael Hope <michael.hope@linaro.org>
9183 Richard Earnshaw <rearnsha@arm.com>
9184
9185 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
9186 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
9187 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
9188 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
9189
9190 2012-04-25 Sriraman Tallam <tmsriram@google.com>
9191
9192 * doc/extend.texi: Document avx2 support.
9193 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
9194
9195 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
9196
9197 PR target/53120
9198 * config/cris/cris.md ("*andhi_lowpart_v32")
9199 ("*andqi_lowpart_v32"): Change first input-only operand from
9200 a (match_operand ...) to (match_dup 0). Drop alternatives with
9201 const_int-matching constraints for redundancy.
9202 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
9203 three-operand alternative.
9204
9205 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9206
9207 PR target/53110
9208 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
9209 instead expand it as zero extension.
9210
9211 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
9212
9213 PR debug/52857
9214 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
9215
9216 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9217
9218 * common.opt (flag_debug_types_section): Default to 0.
9219 (dwarf_version): Default to 4.
9220 (dwarf_record_gcc_switches): Default to 1.
9221 (dwarf_strict): Default to 0.
9222 * toplev.c (process_options): Don't handle dwarf_strict
9223 or dwarf_version here.
9224 * config/vxworks.c (vxworks_override_options): Don't
9225 test whether dwarf_strict or dwarf_version are negative,
9226 instead test !global_options_set.x_dwarf_*.
9227 * config/darwin.c (darwin_override_options): Default to
9228 dwarf_version 2.
9229 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
9230 and -fno-debug-types-section are now the default.
9231
9232 2012-04-25 Jan Hubicka <jh@suse.cz>
9233
9234 * cgraphunit.c: Update toplevel comment.
9235 (tree_rest_of_compilation): Merge into cgraph_expand_function.
9236 (cgraph_analyze_function): Make static.
9237 (cgraph_decide_is_function_needed): Make static.
9238 (cgraph_add_new_function): Use expand_function instead of
9239 rest_of_compilation.
9240 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
9241 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
9242 Move to cgraph.c
9243 (cgraph_inline_p): Remove.
9244 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
9245 (init_cgraph): Add comment.
9246 * cgraphbuild.c (record_reference, mark_address, mark_load,
9247 mark_store): Do not call analyze_expr hook.
9248 * cgraph.c: Update toplevel comment.
9249 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
9250 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
9251 Move fere from cgraphunit.c
9252 (cgraph_mark_force_output_node): Move to cgraph.h
9253 * cgraph.h: Reorder so the comments match the function placement.
9254 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
9255 (cgraph_mark_force_output_node): Move here from cgraph.c
9256 * tree.c (free_lang_data): Do not clear analyze_expr hook.
9257 * ipa-inline-transform.c (preserve_function_body_p): New function.
9258 (inline_transform): Update.
9259 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
9260 * langhooks.h (lang_hooks_for_callgraph): Remove.
9261 (lang_hooks): Remove callgraph.
9262 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
9263 * varpool.c: Remove out of date comment.
9264 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
9265 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
9266
9267 2012-04-25 Jan Hubicka <jh@suse.cz>
9268
9269 PR middle-end/53089
9270 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
9271 forward declaration.
9272 (cgraph_finalize_function): Finalize them here.
9273 * symtab.c (dump_symtab): Dump ctors and dtors.
9274
9275 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9276
9277 PR middle-end/52979
9278 * stor-layout.c (get_best_mode): Don't return mode with bitsize
9279 larger than maxbits. Don't compute maxbits modulo align.
9280 Also check that unit bytes long store at bitpos / unit * unit
9281 doesn't affect bits beyond bitregion_end.
9282 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
9283 would not fit into bitregion_start ... bitregion_end + 1 bit region.
9284 (store_split_bit_field): Decrease unit close to end of bitregion_end
9285 if access is restricted in order to avoid mutual recursion.
9286
9287 PR tree-optimization/53058
9288 * double-int.h (double_int_max_value, double_int_min_value): New
9289 prototypes.
9290 * double-int.c (double_int_max_value, double_int_min_value): New
9291 functions.
9292 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
9293 or GT_EXPR with double_int_max_value instead of double_int_mask.
9294
9295 2012-04-25 Richard Guenther <rguenther@suse.de>
9296
9297 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
9298 * tree-vect-loop.c (vect_transform_loop): Adjust.
9299 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
9300 the maximum number of iterations for the epilogue loop.
9301 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
9302
9303 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9304
9305 PR c/52880
9306 * c-typeck.c (set_nonincremental_init,
9307 set_nonincremental_init_from_string): Pass true instead of false
9308 as IMPLICIT to add_pending_init.
9309
9310 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9311
9312 * c-typeck.c (pop_init_level): Improve diagnostics.
9313
9314 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
9315
9316 * compare-elim.c (try_eliminate_compare): Also handle operands with
9317 implicit extensions.
9318
9319 2012-04-25 Alan Modra <amodra@gmail.com>
9320
9321 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
9322 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
9323 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
9324 (no_global_regs_above): Delete.
9325 (no_global_regs): New function.
9326 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
9327 value for load multiple test.
9328 (savres_routine_syms): Increase size.
9329 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
9330 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
9331 rather than a number of boolean flags. Update all callers.
9332 (rs6000_savres_routine_name): Generate vector save/restore names.
9333 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
9334 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
9335 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
9336 and using_store_multiple. Expand uses. Don't always use r11 as
9337 frame reg when needed for out-of-line saves. Set up initial offset
9338 for out-of-line vector saves when buying stack frame. Handle pointer
9339 reg setup for out-of-line fp save. Emit call to out-of-line vector
9340 save function. Choose r11 or r12 for vrsave reg when available for
9341 better scheduling.
9342 (rs6000_output_function_prologue): Don't emit .extern for ELF.
9343 (rs6000_emit_epilogue): Choose a better frame reg when restoring
9344 from back-chain to suit out-of-line vector restore functions. Emit
9345 call to out-of-line vector restore function. Adjust register used
9346 for cr restore. Tweak pointer register setup for gpr restore.
9347 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
9348 FIXED_R13.
9349 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
9350 (V_SAVE_INLINE): Define.
9351 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
9352
9353 2012-04-25 Alan Modra <amodra@gmail.com>
9354
9355 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
9356 out-of-line save/restore for large frames. Don't disable
9357 out-of-line saves on ABI_AIX when using static chain reg.
9358 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
9359 clobber static chain reg, and tweak for out-of-line gpr saves
9360 that use r1.
9361
9362 2012-04-25 Alan Modra <amodra@gmail.com>
9363
9364 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
9365 (rs6000_emit_prologue): Use the above to catch register overlap.
9366
9367 2012-04-25 Alan Modra <amodra@gmail.com>
9368
9369 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
9370 decl. Move logic selecting update reg to callers. Update all callers.
9371 (rs6000_emit_allocate_stack): Add copy_off param.
9372 (emit_frame_save): Don't handle reg+reg addressing.
9373 (ptr_regno_for_savres): New function, extracted from..
9374 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
9375 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
9376 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
9377 frame offset adjustment for out-of-line save with copy from sp.
9378 Simplify condition controlling whether cr is saved early or
9379 late. Use ptr_regno_for_savres to verify correct reg is set
9380 up for out-of-line saves. Pass the actual pointer reg used to
9381 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
9382 function. Rearrange spe vars so code is similar to that
9383 elsewhere in this function. Don't update frame_off when spe
9384 save code will restore r11. Use emit_frame_save for spe and
9385 gpr saves. Consolidate darwin out-of-line gpr setup with that
9386 for other abis. Don't assume frame_offset is zero and frame
9387 reg is sp when setting up altivec reg saves, and calculate
9388 exact offset requirement.
9389 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
9390 spe restore code. Consolidate darwin out-of-line gpr setup
9391 with that for other abis.
9392
9393 2012-04-25 Alan Modra <amodra@gmail.com>
9394
9395 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
9396 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
9397 the replacement.
9398 (emit_frame_save): Delete frame_ptr param. Rename total_size to
9399 frame_reg_to_sp.
9400 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
9401 and emit_frame_save calls. Cope with possibly missing note.
9402
9403 2012-04-24 Sriraman Tallam <tmsriram@google.com>
9404
9405 * config/i386/i386.c (build_processor_model_struct): New function.
9406 (make_var_decl): New function.
9407 (fold_builtin_cpu): New function.
9408 (ix86_fold_builtin): New function.
9409 (make_cpu_type_builtin): New function.
9410 (ix86_init_platform_type_builtins): New function.
9411 (ix86_expand_builtin): Expand new builtins by folding them.
9412 (ix86_init_builtins): Make new builtins to detect CPU type.
9413 (TARGET_FOLD_BUILTIN): New macro.
9414 (IX86_BUILTIN_CPU_INIT): New enum value.
9415 (IX86_BUILTIN_CPU_IS): New enum value.
9416 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
9417 * config/i386/i386-builtin-types.def: New function type.
9418 * testsuite/gcc.target/builtin_target.c: New testcase.
9419 * doc/extend.texi: Document builtins.
9420
9421 2012-04-24 Olivier Hainque <hainque@adacore.com>
9422
9423 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
9424 * toplev.c (process_options): Default to dwarf_version 2.
9425 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
9426 and dwarf_version 2.
9427
9428 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9429
9430 * tree-pretty-print.h (default_tree_printer): Do not declare.
9431 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
9432 intl.h.
9433 (default_tree_diagnostic_starter): Make static.
9434 (default_tree_printer): Move to here. Make static.
9435 (tree_diagnostics_defaults): New.
9436 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
9437 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
9438 * toplev.c: Do not include tree-pass.h.
9439 (default_tree_printer): Move from here.
9440 (general_init): Use tree_diagnostics_defaults.
9441
9442 2012-04-24 Chao-ying Fu <fu@mips.com>
9443
9444 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
9445 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
9446 * config/mips/gnu-user.h
9447 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
9448 (GNU_USER_TARGET_LINK_SPEC): New define.
9449 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9450 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
9451 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
9452 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
9453 GNU_USER_TARGET_ENDFILE_SPEC.
9454 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
9455 (GNU_USER_TARGET_LINK_SPEC): New define.
9456 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9457 * config/mips/linux-common.h: New file.
9458
9459 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9460
9461 PR target/47197
9462 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
9463 (altivec_build_resolved_builtin): Call fully_fold_convert.
9464
9465 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
9466
9467 PR target/53065
9468 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
9469
9470 2012-04-24 Richard Guenther <rguenther@suse.de>
9471
9472 PR tree-optimization/53085
9473 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
9474 stores.
9475
9476 2012-04-24 Richard Guenther <rguenther@suse.de>
9477
9478 * tree-if-conv.c (main_tree_if_conversion): Move bb under
9479 ENABLE_CHECKING.
9480
9481 2012-04-24 Jim Meyering <meyering@redhat.com>
9482
9483 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
9484 absence of an define_enum call.
9485
9486 2012-04-24 Richard Guenther <rguenther@suse.de>
9487
9488 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
9489 the epilogue loop is not re-used as unvectorized version
9490 record the its maximum number of iterations.
9491
9492 2012-04-24 Andrew Pinski <apinski@cavium.com>
9493
9494 * tree-ssa-forwprop.c (simplify_bitwise_binary):
9495 Don't directly use def1/def2.
9496
9497 2012-04-24 Richard Guenther <rguenther@suse.de>
9498
9499 PR tree-optimization/53098
9500 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
9501 comparison sign.
9502
9503 2012-04-24 Andrew Pinski <apinski@cavium.com>
9504
9505 PR tree-opt/33512
9506 * tree-ssa-forwprop.c (defcodefor_name): New function.
9507 (simplify_bitwise_binary): Use defcodefor_name instead of manually
9508 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
9509 Simplify "(~X | Y) & X" to "X & Y" and
9510 "(~X & Y) | X" to "X | Y".
9511
9512 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9513
9514 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
9515 validate_change to add clobbers if IN_GROUP is nonzero.
9516 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
9517 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
9518 prototype.
9519 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
9520 set to false.
9521 * config/s390/s390.c (insn_invalid_p): Likewise.
9522
9523 2012-04-24 Jakub Jelinek <jakub@redhat.com>
9524
9525 PR middle-end/53084
9526 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
9527 (output_addressed_constants): Likewise.
9528
9529 PR middle-end/52999
9530 * varasm.c (get_section): Don't ICE for section conflicts with
9531 built-in section kinds.
9532
9533 2012-04-23 DJ Delorie <dj@redhat.com>
9534
9535 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
9536 (LIBSTDCXX): Change to CPP2.
9537
9538 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
9539
9540 PR bootstrap/52878
9541 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
9542 extra_masks.
9543
9544 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
9545
9546 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
9547 (*addsi_2_zext): Ditto.
9548 (*add<mode>_3): Ditto.
9549 (*addsi_3_zext): Ditto.
9550 (*add<mode>_5): Ditto.
9551
9552 2012-04-23 Andrew Pinski <apinski@cavium.com>
9553
9554 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
9555 (C & B) to (A OP0) & B.
9556
9557 2012-04-23 Martin Jambor <mjambor@suse.cz>
9558
9559 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
9560 temporaries created for a bitfield (reverting revision 122014).
9561
9562 2012-04-23 Richard Guenther <rguenther@suse.de>
9563
9564 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
9565 the condition using is_gimple_condexpr and avoid the not necessary
9566 boolification.
9567 (set_prologue_iterations): Likewise.
9568 (vect_loop_versioning): Likewise.
9569
9570 2012-04-23 Richard Guenther <rguenther@suse.de>
9571
9572 PR tree-optimization/53070
9573 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
9574 (main_tree_if_conversion): Verify we succeeded in that.
9575
9576 2012-04-23 Jan Hubicka <jh@suse.cz>
9577
9578 * lto-symtab.c (lto_cgraph_replace_node): Do not call
9579 mark_reahcable_node.
9580 * cgraph.c (cgraph_remove_node): Do not clear reachable.
9581 (cgraph_mark_reachable_node): Remove.
9582 (cgraph_mark_force_output_node): Do not set reachable.
9583 (dump_cgraph_node): Do not dump reachable.
9584 (cgraph_create_virtual_clone): Do not set reachable.
9585 * cgraph.h (cgraph_node): Remove reachable flag.
9586 (varpool_node): Remove reachable flag.
9587 (cgraph_mark_if_needed): Remove.
9588 (cgraph_mark_reachable_node): Remove.
9589 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
9590 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
9591 reachable.
9592 (cgraph_add_new_function): Likewise.
9593 (cgraph_mark_if_needed): Remove.
9594 (cgraph_analyze_function): Do not set target as reachable.
9595 (process_function_and_variable_attributes): Do not care about
9596 dllexport.
9597 (cgraph_analyze_functions): Do not set reachable flags.
9598 (cgraph_mark_functions_to_output): Do not check reachability.
9599 (cgraph_copy_node_for_versioning): Do not set reachable flag.
9600 (dbxout_expand_expr): Update.
9601 * c-decl.c (merge_decls): Do not track changed externs.
9602 * ipa.c: Include pointer-set.h
9603 (enqueue_cgraph_node): Use reachable pointer set.
9604 (process_references): Likewise.
9605 (cgraph_remove_unreachable_nodes): Likewise.
9606 (whole_program_function_and_variable_visibility): Do not recompute
9607 reachable.
9608 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
9609
9610 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
9611
9612 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
9613
9614 2012-04-23 Richard Guenther <rguenther@suse.de>
9615
9616 PR c/53060
9617 * c-typeck.c (build_binary_op): Fix typo.
9618
9619 2012-04-23 Jakub Jelinek <jakub@redhat.com>
9620
9621 PR tree-optimizations/52891
9622 * tree-vect-patterns.c (adjust_bool_pattern): Use
9623 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
9624 but with non-standard precision.
9625
9626 2012-04-22 Jan Hubicka <jh@suse.cz>
9627
9628 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
9629 tree refs.
9630
9631 2012-04-22 Jan Hubicka <jh@suse.cz>
9632
9633 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
9634 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9635 mark_load, mark_store): Do not mark varpool nodes as needed.
9636 * cgraph.c (cgraph_new_nodes): Remove.
9637 (cgraph_create_function_alias): Do not mark nodes as reachable.
9638 (cgraph_add_thunk): Likewise.
9639 (cgraph_mark_reachable_node): Do not manage the queue.
9640 * cgraph.h (cgraph_node): Remove next_needed.
9641 (varpool_nodes_queue): Remove next_needed and prev_needed.
9642 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
9643 (cgraph_new_nodes): Declare.
9644 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
9645 (varpool_analyze_pending_decls): Remove.
9646 (varpool_analyze_node): New.
9647 (varpool_mark_needed_node): Remove.
9648 (varpool_first_variable, varpool_next_variable): New inlines.
9649 (varpool_first_static_initializer, varpool_next_static_initializer):
9650 Update.
9651 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
9652 (varpool_first_defined_variable): New inline.
9653 (varpool_next_defined_variable): New inline
9654 (FOR_EACH_VARIABLE): Reimplement.
9655 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
9656 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
9657 needed flag.
9658 * cgraphunit.c (cgraph_new_nodes): Declare here.
9659 (enqueue_node): New function.
9660 (cgraph_process_new_functions): update for new
9661 node set; when constructing cgraph enqueue node for processing.
9662 (cgraph_add_new_function): Use new node set.
9663 (process_function_and_variable_attributes): Do not set varpool needed
9664 flags.
9665 (referred_to_p): New function.
9666 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
9667 when varpool is in construction.
9668 (cgraph_analyze_functions): Rewrite.
9669 (cgraph_expand_all_functions): Update.
9670 (cgraph_output_in_order): Do not analyze pending decls; do not set
9671 needed flags.
9672 (cgraph_optimize): Do not analyze pending decls.
9673 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
9674 in other partition; do not mark node as needed.
9675 * dwarf2out.c (reference_to_unused): Use analyzed flag.
9676 (premark_types_used_by_global_vars_helper): Likewise.
9677 * ipa.c (process_references): Do not call varpool_mark_needed_node.
9678 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
9679 cgrpah queues.
9680 (function_and_variable_visibility): Do not mark node as needed.
9681 (whole_program_function_and_variable_visibility): Likewise.
9682 * Makefile.in (gt-varpool.h): No longer needed.
9683 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
9684 (ipa_write_summaries): Do not use needed flag.
9685 * varpool.c: Do not include gt-varpool.h
9686 (x_varpool_nodes_queue, x_varpool_last_needed_node,
9687 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
9688 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
9689 Remove.
9690 (varpool_remove_node): Do not update the lists.
9691 (dump_varpool_node): Do not dump needed flag.
9692 (varpool_enqueue_needed_node): Remove.
9693 (varpool_mark_needed_node): Remove.
9694 (varpool_reset_queue): Remove.
9695 (varpool_finalize_decl): Move to cgraphunit.c
9696 (varpool_analyze_node): New functions based on former
9697 varpool_analyze_pending_decls.
9698 (varpool_analyze_pending_decls): Remove.
9699 (varpool_assemble_decl): Do not update the lists.
9700 (enqueue_node): New function.
9701 (varpool_remove_unreferenced_decls): Rewrite.
9702 (varpool_empty_needed_queue): Remove.
9703 (add_new_static_var): Do not mark node as needed.
9704 (varpool_create_variable_alias): Handle expansion state
9705 creation.
9706 * except.c (output_ttype): Do not mark node as needed.
9707 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
9708 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
9709 Likewise.
9710 * tree-switch-conversion.c (build_one_array): Likewise.
9711
9712 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9713
9714 PR c/44774
9715 * doc/invoke.texi (pedantic): Rename to Wpedantic.
9716 * common.opt (Wpedantic): New.
9717 (pedantic): Alias Wpedantic.
9718 * diagnostic.c (warning_at): Likewise.
9719 * c-decl.c (diagnose_mismatched_decls): Likewise.
9720 (build_array_declarator): Likewise.
9721 (mark_forward_parm_decls):
9722 (check_bitfield_type_and_width): Likewise.
9723 (grokdeclarator): Likewise.
9724 (grokfield): Likewise.
9725 (finish_struct): Likewise.
9726 (build_enumerator): Likewise.
9727 (store_parm_decls_oldstyle): Likewise.
9728 (declspecs_add_qual): Likewise.
9729 (declspecs_add_type): Likewise.
9730 (finish_declspecs): Likewise.
9731 * c-typeck.c (composite_type): Likewise.
9732 (comp_target_types): Likewise.
9733 (build_array_ref): Likewise.
9734 (pointer_diff): Likewise.
9735 (build_unary_op): Likewise.
9736 (build_conditional_expr): Likewise.
9737 (build_c_cast): Likewise.
9738 (convert_for_assignment): Likewise.
9739 (maybe_warn_string_init): Likewise.
9740 (digest_init): Likewise.
9741 (pop_init_level): Likewise.
9742 (set_init_index): Likewise.
9743 (c_finish_goto_label): Likewise.
9744 (c_finish_return): Likewise.
9745 (do_case): Likewise.
9746 (build_binary_op): Likewise.
9747 * c-parser.c (static): Likewise.
9748 (c_parser_external_declaration): Likewise.
9749 (c_parser_declaration_or_fndef): Likewise.
9750 (c_parser_static_assert_declaration_no_se): Likewise.
9751 (c_parser_enum_specifier): Likewise.
9752 (c_parser_struct_or_union_specifier): Likewise.
9753 (c_parser_struct_declaration): Likewise.
9754 (c_parser_alignas_specifier): Likewise.
9755 (c_parser_braced_init): Likewise.
9756 (c_parser_initelt): Likewise.
9757 (c_parser_compound_statement_nostart): Likewise.
9758 (c_parser_conditional_expression): Likewise.
9759 (c_parser_alignof_expression): Likewise.
9760 (c_parser_postfix_expression): Likewise.
9761 (c_parser_postfix_expression_after_paren_): Likewise.
9762 (c_parser_objc_class_instance_variables): Likewise.
9763 (c_parser_objc_method_definition): Likewise.
9764 (c_parser_objc_methodprotolist): Likewise.
9765
9766 2012-04-22 Ian Lance Taylor <iant@google.com>
9767
9768 * godump.c (go_output_typedef): Dump size of structs.
9769
9770 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
9771
9772 Correcting transform_to_exit_first_loop + fix to PR46886
9773 * tree-parloops.c (transform_to_exit_first_loop): Remove
9774 setting of number of iterations according to the loop pattern.
9775 Duplicate from entry to exit->src instead of loop->latch.
9776 (pallelize_loops): Remove the condition preventing do-while loops.
9777 * tree-cfg.c (bool bb_in_region_p): New.
9778 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
9779 Adjust redirection of the duplicated iteration.
9780
9781 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
9782
9783 PR bootstrap/53021
9784 * rtl.def (ADDRESS): Use "i" rather than "w".
9785 * rtl.h (find_base_term): Delete.
9786 (may_be_sp_based_p): Declare.
9787 * rtl.c (rtx_code_size): Remove ADDRESS special case.
9788 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
9789 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
9790 * alias.c: ...here.
9791 (find_base_term): Make static.
9792 (may_be_sp_based_p): New function.
9793 * dse.c (record_store): Use it.
9794 * store-motion.c (store_killed_in_insn): Likewise.
9795
9796 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
9797
9798 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
9799
9800 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9801
9802 PR 35441
9803 * c-typeck.c (inform_declaration): New.
9804 (build_function_call_vec): Do not pretty-print
9805 expressions when caret is enabled.
9806 (convert_arguments): Use inform_declaration.
9807
9808 2012-04-20 Jim Meyering <meyering@redhat.com>
9809
9810 * genmodes.c (make_complex_modes): Don't truncate a mode name of
9811 length 7 or more when prepending a "C". Suggested by Richard Guenther.
9812
9813 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9814
9815 PR rtl-optimization/44214
9816 * fold-const.c (exact_inverse): New function.
9817 (fold_binary_loc): Fold vector and complex division by constant into
9818 multiply by recripocal with flag_reciprocal_math; fold vector division
9819 by constant into multiply by reciprocal with exact inverse.
9820
9821 2012-04-20 Jan Hubicka <jh@suse.cz>
9822
9823 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
9824 force flags.
9825 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
9826 (cgraph_remove_node): Update.
9827 (cgraph_mark_needed_node): Remove.
9828 (cgraph_mark_force_output_node): New.
9829 (dump_cgraph_node): Do not dump needed flag.
9830 (cgraph_node_cannot_be_local_p_1): Update.
9831 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
9832 * cgraph.h (symtab_node_base): Add force_output flag.
9833 (cgraph_node): Remove needed flag.
9834 (varpool_node): Remove force_output flag.
9835 (cgraph_mark_needed_node): Remove.
9836 (cgraph_mark_force_output_node): New.
9837 (cgraph_only_called_directly_or_aliased_p,
9838 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
9839 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
9840 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
9841 (cgraph_add_new_function): Update.
9842 (cgraph_mark_if_needed): Update.
9843 (verify_cgraph_node): Update.
9844 (cgraph_analyze_function): Alias target is reachable.
9845 (process_function_and_variable_attributes): Update: externally_visible
9846 flag makes function reachable.
9847 (cgraph_analyze_functions): Update dumping.
9848 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9849 input_overwrite_node, input_varpool_node): Update streaming.
9850 * lto-streamer-out.c (produce_symtab): Use force_output.
9851 * ipa.c (process_references): Weakrefs must be processed.
9852 (cgraph_remove_unreachable_nodes): Likewise; update for new
9853 force_output flag.
9854 (varpool_externally_visible_p): Weakrefs are externally visible
9855 even if they are not.
9856 (function_and_variable_visibility): Update; when processing alias
9857 pair force the targets to be output.
9858 (whole_program_function_and_variable_visility): Use
9859 mark_reachable_node.
9860 * trans-mem.c (ipa_tm_mark_needed_node): Remove
9861 (ipa_tm_mark_force_output_node): New function.
9862 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
9863 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
9864 aliases.
9865 * varasm.c (mark_decl_referenced): Update.
9866 (find_decl_and_mark_needed): Remove.
9867 (find_decl): New function.
9868 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
9869 alias targets as needed.
9870 (dump_tm_clone_pairs): Update.
9871 * tree-inline.c (copy_bb): Update check.
9872 * symtab.c (dump_symtab_base): Dump force_output.
9873 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
9874 * passes.c (execute_todo): Fix dumping.
9875 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
9876 (varpool_analyze_pending_decls): Alias target is reachable.
9877 (varpool_create_variable_alias): Finalize weakrefs.
9878
9879 2012-04-20 Jakub Jelinek <jakub@redhat.com>
9880
9881 PR bootstrap/53021
9882 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
9883 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
9884 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
9885 macros instead of constants.
9886 * dse.c (record_store): Check for SP ADDRESS by comparing
9887 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
9888 XEXP to be stack_pointer_rtx.
9889
9890 2012-04-20 Richard Guenther <rguenther@suse.de>
9891
9892 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
9893 update_call_from_tree when propagating into a call.
9894
9895 2012-04-20 Alan Modra <amodra@gmail.com>
9896
9897 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
9898 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
9899 sp_offset to frame_off. Move world save code earlier.
9900
9901 2012-04-20 Richard Guenther <rguenther@suse.de>
9902
9903 PR tree-optimization/53050
9904 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
9905 Do only one transform on COND_EXPRs at the same time.
9906
9907 2012-04-19 Jan Hubicka <jh@suse.cz>
9908
9909 * symtab.c (dump_symtab_base): Revert accidental checkin.
9910
9911 2012-04-20 Alan Modra <amodra@gmail.com>
9912
9913 PR target/53040
9914 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
9915 static chain, set REST_INLINE_FPRS too.
9916
9917 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
9918
9919 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
9920 nodes.
9921
9922 2012-04-20 Richard Guenther <rguenther@suse.de>
9923
9924 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
9925 loops that can never run more often than the vectorization factor.
9926
9927 2012-04-19 Jan Hubicka <jh@suse.cz>
9928
9929 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
9930
9931 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
9932
9933 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
9934
9935 2012-04-19 Jim Meyering <meyering@redhat.com>
9936
9937 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
9938 We verified above that the string(including trailing NUL) fits in buf,
9939 so just use memcpy.
9940
9941 2012-04-19 Richard Guenther <rguenther@suse.de>
9942
9943 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
9944 for dumping DECL_SECTION_NAME.
9945
9946 2012-04-19 Michael Matz <matz@suse.de>
9947
9948 PR middle-end/52977
9949 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
9950 (struct tree_vector): Adjust GTY length.
9951 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
9952
9953 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
9954 members.
9955 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
9956 caller emitted the length calulation already.
9957 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
9958 before handling any of the fields for structs.
9959
9960 2012-04-19 Richard Guenther <rguenther@suse.de>
9961
9962 PR tree-optimization/53031
9963 * tree-vrp.c (adjust_range_with_scev): Revert back to
9964 using max_loop_iterations.
9965
9966 2012-04-19 Michael Matz <matz@suse.de>
9967
9968 * diagnostic.c (emit_diagnostic): Move va_end call after user
9969 of the va_list.
9970 (warning, warning_at, pedwarn, permerror): Ditto.
9971
9972 2012-04-19 Richard Guenther <rguenther@suse.de>
9973
9974 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
9975 array access.
9976
9977 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
9978
9979 PR target/53033
9980 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
9981 the case *(X+const).
9982
9983 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9984
9985 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
9986
9987 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9988
9989 PR c/52283/37985
9990 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
9991 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
9992
9993 2012-04-19 Richard Guenther <rguenther@suse.de>
9994
9995 PR rtl-optimization/44688
9996 * loop-iv.c (determine_max_iter): Only return max_iter.
9997 (iv_number_of_iterations): Also use the recorded loop bound
9998 on the maximum number of iterations.
9999 * loop-unroll.c (decide_unroll_runtime_iterations): Use
10000 max_iter to avoid unrolling loops that do not roll.
10001 (decide_unroll_stupid): Likewise.
10002
10003 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
10004
10005 * targhooks.c (default_case_values_threshold): Fix code style nit.
10006
10007 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
10008 case range and type folding from here...
10009 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
10010 type, as documented in tree.def.
10011
10012 2012-04-18 Jan Hubicka <jh@suse.cz>
10013
10014 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
10015 Declare.
10016 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
10017 cgraph hash and same comdat groups.
10018 (cgraph_optimize): Verify symbol table.
10019 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
10020 (dissolve_same_comdat_group_list): Work on symtab nodes.
10021 (function_and_variable_visibility): Dissolve variable same comdat group
10022 lists, too.
10023 * symtab.c: Include timevar.h
10024 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
10025
10026 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
10027
10028 * tree-switch-conversion.c (info): Remove global pass info.
10029 (check_range, check_process_case, check_final_bb, create_temp_arrays,
10030 free_temp_arrays, gather_default_values, build_constructors,
10031 array_value_type, build_one_array, build_arrays, gen_def_assigns,
10032 fix_phi_nodes, gen_inbound_check): Pass info around from ...
10033 (process_switch): ... here. Unify message format. Return a const
10034 char pointer to the failure reason message.
10035 (do_switchconv): Unify message format. Update process_switch usage.
10036
10037 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
10038 * tree-cfg.c (edge_to_cases): Fix documentation.
10039
10040 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
10041
10042 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
10043
10044 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10045
10046 PR tree-optimization/52976
10047 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
10048 (possibly_move_powi): New function.
10049 (rewrite_expr_tree): Call possibly_move_powi.
10050 (rewrite_expr_tree_parallel): Likewise.
10051 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
10052 call add_to_ops_vec instead.
10053
10054 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10055
10056 PR tree-optimization/52976
10057 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
10058 (decrement_power): Likewise.
10059 (propagate_op_to_single_use): Likewise.
10060 (zero_one_operation): Handle __builtin_pow* calls in linearized
10061 expression trees; factor logic into propagate_op_to_single_use.
10062 (undistribute_ops_list): Allow operands with repeat counts > 1.
10063
10064 2012-04-18 Richard Guenther <rguenther@suse.de>
10065
10066 PR tree-optimization/44688
10067 * cfgloop.h (record_niter_bound): Declare.
10068 * tree-ssa-loop-niter.c (record_niter_bound): Export.
10069 Update the estimation with the upper bound here...
10070 (estimate_numbers_of_iterations_loop): ... instead of here.
10071 Do not forcefully reset a recorded upper bound.
10072 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
10073 Record the maximum number of loop iterations of the prologue loop.
10074
10075 2012-04-18 Jan Hubicka <jh@suse.cz>
10076
10077 * lto-symtab.c (lto_cgraph_replace_node): Update.
10078 * cgraphbuild.c (record_reference, record_type_list,
10079 record_eh_tables, mark_address, mark_load, mark_store): Update.
10080 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
10081 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
10082 Update.
10083 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
10084 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
10085 * reload.c: Fix typo in comment.
10086 * rtlanal.c: Likewise.
10087 * tree-emultls.c (gen_emutls_addr): Update.
10088 * ipa-reference.c (analyze_function): Update.
10089 * cgraphunit.c (cgraph_analyze_function,
10090 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
10091 Update.
10092 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
10093 (ipa_remove_reference): Likewise.
10094 (ipa_remove_all_refering): Rename to ...
10095 (ipa_remove_all_referring): ... this one; update.
10096 (ipa_dump_references): Update.
10097 (ipa_dump_referring): Update.
10098 (ipa_clone_references): Update.
10099 (ipa_clone_refering): Rename to ...
10100 (ipa_clone_referring): ... this one; update.
10101 (ipa_ref_cannot_lead_to_return): Update.
10102 (ipa_ref_has_aliases_p): Update.
10103 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
10104 forward typedefs.
10105 (ipa_ref_type): Remove.
10106 (ipa_ref_ptr_u): Remove.
10107 (ipa_ref): Remove referencing, refered, refered_index, refering_type
10108 and refered_type; add referring, referred and referred_index.
10109 (ipa_ref_list): Rename refering to referring.
10110 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
10111 ipa_clone_references, ipa_clone_referring): Update prototypes.
10112 * lto-cgraph.c (referenced_from_other_partition_p): Update.
10113 (lto_output_ref): Update.
10114 (add_references): Update.
10115 (input_varpool_node): Update.
10116 (input_refs): Update.
10117 * ipa-ref-inline.h (ipa_ref_node): Update.
10118 (ipa_ref_varpool_node): Update.
10119 (ipa_ref_referring_node): Update.
10120 (ipa_ref_referring_varpool_node): Update.
10121 (ipa_ref_referring_ref_list): Update.
10122 (ipa_ref_referred_ref_list): Update.
10123 (ipa_ref_list_first_referring): Update.
10124 (ipa_empty_ref_list): Update.
10125 (ipa_ref_list_refering_iterate): Rename to ...
10126 (ipa_ref_list_referring_iterate): ... this one.
10127 * cse.c: Update comment.
10128 * ipa-utils.c (ipa_reverse_postorder): Update.
10129 * tree-ssa-alias.c: Update.
10130 * ipa-inline.c (reset_edge_caches): Update.
10131 (update_caller_keys): Update.
10132 * ipa-inline.h: Update comments.
10133 * jump.c: Update comment.
10134 * alias.c: Likewise.
10135 * ipa.c (process_references): Update.
10136 (cgraph_remove_unreachable_nodes): Likewise.
10137 (ipa_discover_readonly_nonaddressable_var): Likewise.
10138 (cgraph_address_taken_from_non_vtable_p): Likewise.
10139 * trans-mem.c (ipa_tm_execute): Update.
10140 * simplify-rtx.c: Fix comment.
10141 * rtl.c: Fix comment.
10142 * symtab.c (symtab_unregister_node): Update.
10143 * varpool.c (dump_varpool_node): Update.
10144 (varpool_analyze_pending_decls): Update.
10145 (assemble_aliases): Update.
10146 (varpool_for_node_and_aliases): Update.
10147
10148 2012-04-18 Richard Guenther <rguenther@suse.de>
10149
10150 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
10151 use_undefined_p parameter.
10152 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
10153 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
10154 Likewise.
10155 (estimate_numbers_of_iterations): Likewise.
10156 (estimated_loop_iterations): Adjust.
10157 (max_loop_iterations): Likewise.
10158 (scev_probably_wraps_p): Likewise.
10159 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
10160 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
10161 not max_loop_iterations.
10162 (execute_vrp): Remove explicit number of iterations estimation.
10163
10164 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
10165
10166 * config/i386/linux-common.h: New.
10167
10168 * config.gcc: Add i386/linux-common.h before
10169 all i386/linux.h and i386/linux64.h usages.
10170
10171 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
10172 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
10173 * config/i386/gnu-user64.h: Likewise.
10174
10175 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
10176 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
10177 (GNU_USER_TARGET_MATHFILE_SPEC): New.
10178 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
10179
10180 2012-04-18 Jan Hubicka <jh@suse.cz>
10181
10182 * cgraph.c (cgraph_node_name): Remove.
10183 (dump_cgraph_node): Use dump_symtab_base; reformat.
10184 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
10185 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
10186 Declare.
10187 (cgraph_node_name, varpool_node_name): Remove.
10188 (cgraph_node_asm_name, varpool_node_asm_name,
10189 cgraph_node_name, varpool_node_name): New.
10190 * tree-pass.h (TODO_dump_cgraph): Rename to ...
10191 (TODO_dump_symtab): ... this one.
10192 * ipa-cp (pass_ipa_cp): Update.
10193 * ia-reference.c (generate_summary, read_write_all_from_decl,
10194 propagate, ipa_reference_read_optimization_summary): Update.
10195 * cgraphunit.c (cgraph_analyze_functions): Update.
10196 (cgraph_optimize): Update.
10197 * ipa-ref.c (ipa_dump_references): Update.
10198 (ipa_dump_refering): Update.
10199 * ipa-inline.c (pass_ipa_inline): Update.
10200 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
10201 * ipa.c (pass_ipa_function_visibility,
10202 pass_ipa_whole_program_visibility): Update.
10203 * tree-sra.c (pass_early_ipa_sra): Update.
10204 * symtab.c: Include langhooks.h
10205 (symtab_node_asm_name): New.
10206 (symtab_node_name): New.
10207 (symtab_type_names): New static var.
10208 (dump_symtab_base): New.
10209 (dump_symtab_node, dump_symtab): New.
10210 (debug_symtab_node, debug_symtab): New.
10211 * tree-ssa-structalias.c: Dump symbol table.
10212 * pases.c (execute_todo): Handle TODO_dump_symtab instead
10213 of TODO_dump_cgraph.
10214 * varpoo.c (varpool_node_name): Remove.
10215 (dump_varpool_node): Use dump_symtab_base; reformat.
10216
10217 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
10218
10219 * doc/invoke.texi (Language Independent Options): @item should be
10220 before @opindex.
10221
10222 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10223
10224 PR bootstrap/53021
10225 * rtl.c (rtx_code_size): Handle ADDRESS.
10226
10227 2012-04-17 Tom de Vries <tom@codesourcery.com>
10228
10229 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
10230 is not a STMT_LIST.
10231
10232 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
10233
10234 PR target/53020
10235 * config/i386/sync.md (atomic_<code><mode>): Rename to
10236 atomic_<logic><mode>.
10237
10238 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10239
10240 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
10241 * alias.c (reg_base_value): Expand and update comment.
10242 (arg_base_value): New variable.
10243 (unique_id): Move up file.
10244 (unique_base_value, unique_base_value_p, known_base_value_p): New.
10245 (find_base_value): Use arg_base_value and known_base_value_p.
10246 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
10247 (find_base_term): Use known_base_value_p.
10248 (base_alias_check): Use unique_base_value_p.
10249 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
10250 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
10251
10252 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
10253
10254 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
10255
10256 2012-04-17 Michael Matz <matz@suse.de>
10257
10258 PR tree-optimization/18437
10259 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
10260 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
10261 (vect_check_strided_load): Declare.
10262 * tree-vect-data-refs.c (vect_check_strided_load): New function.
10263 (vect_analyze_data_refs): Use it to accept strided loads.
10264 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
10265
10266 2012-04-17 Richard Guenther <rguenther@suse.de>
10267
10268 PR middle-end/53011
10269 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
10270 loops when redirecting an entry or latch edge.
10271
10272 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
10273
10274 * sel-sched.c (sel_global_init): Revert previous change.
10275
10276 2012-04-17 Richard Guenther <rguenther@suse.de>
10277
10278 * tree-flow.h (array_at_struct_end_p): Move declaration ...
10279 * tree.h (array_at_struct_end_p): ... here.
10280 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
10281 * expr.c (array_at_struct_end_p): ... here. Rewrite.
10282
10283 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
10284
10285 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
10286 COST_TABLE): Remove.
10287 (estimate_case_costs): Remove.
10288 (expand_case): Do not call estimate_case_costs
10289 to set use_cost_table.
10290 (balance_case_nodes): Do not use use_cost_table.
10291
10292 2012-04-16 Jan Hubicka <jh@suse.cz>
10293
10294 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
10295 (hash_node, eq_node): Remove.
10296 (cgraph_create_node): Do not handle hashtable.
10297 (cgraph_get_node): Remove.
10298 (cgraph_insert_node_to_hashtable): Remove.
10299 (hash_node_by_assembler_name): Remove.
10300 (eq_assembler_name): Remove.
10301 (cgraph_node_for_asm): Rewrite.
10302 (cgraph_find_replacement_node): Break out from ...
10303 (cgraph_remove_node): ... here; do not maintain hashtables.
10304 (change_decl_assembler_name): Remove.
10305 (cgraph_clone_node): Do not maintain hashtables.
10306 * cgraph.h (const_symtab_node): New typedef.
10307 (cgraph_insert_node_to_hashtable): Remove.
10308 (symtab_get_node, symtab_node_for_asm,
10309 symtab_insert_node_to_hashtable): Declare.
10310 (cgraph_find_replacement_node): Declare.
10311 (cgraph_get_node, varpool_get_node): Turn into inlines.
10312 (cgraph, varpool): Work sanely on NULL pointers.
10313 (FOR_EACH_SYMBOL): New walker.
10314 * ipa-inline-transform.c (save_inline_function_body): Use
10315 symtab_insert_node_to_hashtable.
10316 * symtab.c: Include ggc.h and diagnostics.h
10317 (symtab_hash, assembler_name_hash): New static vars;
10318 (hash_node, eq_node, hash_node_by_assembler_name,
10319 eq_assembler_name, insert_to_assembler_name_hash,
10320 unlink_from_assembler_name_hash): New.
10321 (symtab_register_node): Update hashtables.
10322 (symtab_insert_node_to_hashtable): New.
10323 (symtab_unregister_node): Update hashtables.
10324 (symtab_get_node): New.
10325 (symtab_node_for_asm): New.
10326 (change_decl_assembler_name): New.
10327 * Makefile.in (symtab.o): Needs GTY.
10328 * varpool.c (varpool_hash): Remove.
10329 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
10330 (varpool_node): Rewrite using varpool_get_node.
10331 (varpool_remove_node): DO not maintain hashtables.
10332 (varpool_node_for_asm): Rewrite.
10333
10334 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
10335
10336 * doc/invoke.texi: Copy-edit to put verbs in the present tense
10337 when describing the current behavior of GCC.
10338
10339 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
10340
10341 * genemit.c (gen_exp): Remove ADDRESS handling.
10342 * genoutput.c (scan_operands): Likewise.
10343 * genpeep.c (match_rtx): Likewise.
10344 * genrecog.c (add_to_sequence): Likewise.
10345
10346 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
10347
10348 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
10349
10350 2012-04-16 Martin Jambor <mjambor@suse.cz>
10351
10352 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
10353 bit-fields.
10354
10355 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
10356
10357 PR target/51819
10358 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
10359 hints for 'A' operand types.
10360
10361 2012-04-16 Jan Hubicka <jh@suse.cz>
10362
10363 * cgraph.h (symtab_node_base): Add next and previous pointers.
10364 (cgraph_node): Remove next and preivous pointers.
10365 (varpool_node): Likewise; remove next/previous GTY marker;
10366 it is not type safe.
10367 (symtab_node_def): Update GTY marker
10368 (x_cgraph_nodes, cgraph_nodes): Remove.
10369 (symtab_nodes): New function.
10370 (cgraph_order): Rename to ...
10371 (symtab_order): ... this one.
10372 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
10373 Declare.
10374 (x_varpool_nodes, varpool_nodes): Remove.
10375 (FOR_EACH_STATIC_VARIABLE): Update.
10376 (symtab_function_p, symtab_variable_p): New function.
10377 (FOR_EACH_VARIABLE): Update.
10378 (varpool_first_variable, varpool_next_variable): New functions.
10379 (FOR_EACH_VARIABLE): Update.
10380 (cgraph_first_defined_function): Update.
10381 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
10382 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
10383 (cgraph_first_function, cgraph_next_function): New.
10384 (FOR_EACH_FUNCTION): Update.
10385 (cgraph_first_function_with_gimple_body,
10386 cgraph_next_function_with_gimple_body): Update.
10387 * symtab.c: New file.
10388 * cgraph.c: Update copyright dates.
10389 (x_cgraph_nodes, cgraph_order): Remove.
10390 (NEXT_FREE_NODE): Update.
10391 (SET_NEXT_FREE_NODE): New.
10392 (cgraph_create_node_1): Remove common code.
10393 (cgraph_create_node): Remove common code; call symtab_register_node.
10394 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
10395 (cgraph_add_asm_node): Update.
10396 (cgraph_clone_node): Register new node.
10397 * cgraphunit.c (process_function_and_variable_attributes): Update.
10398 (cgraph_analyze_functions): Update.
10399 (cgraph_analyze_functions): Update.
10400 (cgraph_output_in_order): Update.
10401 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
10402 Update.
10403 * ipa-inline.c (recursive_inlining): Update.
10404 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
10405 * ipa.c (cgraph_remove_unreachable_nodes): Update.
10406 * Makefile.in: Add symtab.o
10407 * varpool.c (x_varpool_nodes): Remove
10408 (varpool_node): Remove common code; call symtab_register_node.
10409 (varpool_remove_node): Remove common code; call symtab_unregister_node.
10410
10411 2012-04-16 Richard Guenther <rguenther@suse.de>
10412
10413 PR middle-end/52977
10414 * tree.h (VECTOR_CST_NELTS): Adjust.
10415 (struct tree_vector): Add explicit length field.
10416 (make_vector_stat): Declare.
10417 (make_vector): Define.
10418 * tree.c (make_vector_stat): New function.
10419 (build_vector_stat): Use it.
10420 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
10421
10422 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10423
10424 PR tree-optimization/52976
10425 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
10426 (undistribute_ops_list): Ops with repeat counts aren't eligible for
10427 undistribution.
10428 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
10429
10430 2012-04-16 Jan Hubicka <jh@suse.cz>
10431
10432 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
10433 New macros.
10434 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
10435 walkers to walk cgraph and varpool.
10436 * cgraph.c (cgraph_node_for_asm): Likewise.
10437 (dump_cgraph): Likewise.
10438 * value-prof.c (init_node_map): Likewise.
10439 * tree.c (free_lang_data_in_cgraph): Likewise.
10440 * tree-emutls.c: (ipa_lower_emutls): Likewise.
10441 * ipa-reference.c (generate_summary, propagate): Likewise.
10442 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
10443 cgraph_mark_functions_to_output, cgraph_output_in_order,
10444 output_weakrefs, cgraph_materialize_all_clones,
10445 cgraph_optimize): Likewise.
10446 * lto-cgraph.c (merge_profile_summaries): Likewise.
10447 (input_cgraph): Likewise.
10448 * ipa-pure-const.c (generate_summary): Likewise.
10449 (propagate): Likwise.
10450 * ipa-utils.c (ipa_reduced_postorder): Likewise.
10451 (ipa_free_postorder_info): Likewise.
10452 (ipa_reverse_postorder): Likewise.
10453 * ipa-inline.c (ipa_inline): Likewise.
10454 * matrix-reorg.c (find_matrices_decl): Likewise.
10455 (matrix_reorg): Likewise.
10456 * tree-vectorizer.c (increase_alignment): Likewise.
10457 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
10458 (function_and_variable_visibility): Likewise.
10459 (whole_program_function_and_variable_visibility): Likewise.
10460 (ipa_cdtor_merge): Likewise.
10461 * trans-mem.c (ipa_tm_execute): Likewise.
10462 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
10463 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
10464 (ipa_print_all_params): Likewise.
10465 (ipa_update_after_lto_read): Likewise.
10466 * tree-profie.c (tree_profiling): Likewise.
10467 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10468 * passes.c (dump_passes): Likewise.
10469 (do_per_function): Likewise.
10470 (ipa_write_summaries): Likewise.
10471 * varpool.c (dump_varpool): Likewise.
10472 (varpool_node_for_asm): Likewise.
10473 (varpool_assemble_pending_decls): Likewise.
10474
10475 2012-04-16 Richard Guenther <rguenther@suse.de>
10476
10477 PR tree-optimization/52975
10478 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
10479 condition but always mark it with TRUTH_NOT_EXPR.
10480
10481 2012-04-16 Richard Guenther <rguenther@suse.de>
10482
10483 PR tree-optimization/52975
10484 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
10485 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
10486 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
10487 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
10488
10489 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
10490
10491 * config/i386/sse.md (ssse3_plusminus): New code iterator.
10492 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
10493 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
10494 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
10495 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
10496 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
10497 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
10498
10499 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
10500 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
10501 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
10502 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
10503 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
10504 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
10505
10506 (xop_plus): New code iterator.
10507 (macs): New code attribute.
10508 (macds): Ditto.
10509 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
10510 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
10511 iterator.
10512 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
10513 xop_plus code iterator.
10514 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
10515 xop_plus code iterator.
10516 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
10517 xop_plus code iterator.
10518 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
10519 xop_plus code iterator.
10520
10521 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
10522 any_extend code iterator.
10523 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
10524 any_extend code iterator.
10525 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
10526 any_extend code iterator.
10527 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
10528 any_extend code iterator.
10529 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
10530 any_extend code iterator.
10531 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
10532 any_extend code iterator.
10533
10534 2012-04-14 Tom de Vries <tom@codesourcery.com>
10535
10536 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
10537 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
10538 DELETED_LABEL note, and move it to ...
10539 * cfgrtl.c (delete_insn): ... here. Change return type to void.
10540 (delete_insn_and_edges): Likewise.
10541 (delete_insn_chain): Handle new return type of delete_insn. Delete
10542 chain backwards rather than forwards.
10543 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
10544 void.
10545 * cfglayout.c (fixup_reorder_chain): Delete unused label.
10546
10547 2012-04-14 Jan Hubicka <jh@suse.cz>
10548
10549 * cgraph.h: Update copyrights;
10550 (symtab_node): Turn to union typedef.
10551 (symtab_node_base): New structure.
10552 (symtab_type): Add SYMTAB_SYMBOL tag.
10553 (cgraph_node): Annotate some pinters with nested_ptr.
10554 (varpool_node): Likewise.
10555 (cgraph_local_info): Remove lto_file_data
10556 and externally_visible.
10557 (cgraph_node): Remove decl; same_comdat_group list;
10558 aux; ref_list; order; address_taken; reachable_from_other_parittion,
10559 in_other_partition; resolution.
10560 (varpool_node): Remove decl; same_comdat_group;
10561 ref_list; lto_file_data; aux; order; resolution; externally_visible;
10562 used_from_other_partition; in_other_partition.
10563 (symtab_node_def): New union.
10564 (cgraph, varpool): Update.
10565 (varpool_first_static_initializer, varpool_next_static_initializer,
10566 cgraph_only_called_directly_or_aliased_p,
10567 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
10568 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
10569 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
10570 field references.
10571 * cgraph.c: Likewise.
10572 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
10573 * cgraphbuild.c: Likewise.
10574 * lto-symtab.c: Likewise.
10575 * c-gimplify.c: Likewise.
10576 * value-prof.c: Likewise.
10577 * tree.c: Likewise.
10578 * ipa-cp.c: Likewise.
10579 * tree-emutls.c: Likewise.
10580 * ipa-inline-transform.c: Likwise.
10581 * ipa-reference.c: Likewise.
10582 * cgraphunit.c: Likewise.
10583 * ipa-ref.c: Likewise.
10584 * lto-cgraph.c: Likewise.
10585 * ipa-ref-inline.h: Likewise.
10586 * ipa-pure-const.c: Likewise.
10587 * lto-streamer-out.c: Likewise.
10588 * ipa-utils.c: Likewise.
10589 * ipa-inline.c: Likewise.
10590 * matrix-reorg.c: Likewise.
10591 * tree-eh.c: Likewise.
10592 * tree-vectorizer.c: Likewise.
10593 * ipa-split.c: Likewise.
10594 * ipa.c: Likewise.
10595 * trans-mem.c: Likewise.
10596 * ipa-inline-analysis.c: Likewise.
10597 * gimplify.c: Likewise.
10598 * cfgexpand.c: Likewise.
10599 * tree-sra.c: Likewise.
10600 * ipa-prop.c: Likewise.
10601 * varasm.c: Likewise.
10602 * tree-nested.c: Likewise.
10603 * tree-inline.c: Likewise.
10604 * tree-profile.c: Likewise.
10605 * tree-ssa-structalias.c: Likewise.
10606 * passes.c: Likewise.
10607 * varpool.c: Likewise.
10608
10609 2012-04-14 Tom de Vries <tom@codesourcery.com>
10610
10611 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
10612 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
10613 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
10614 of find_edge.
10615 (gsi_advance_fw_nondebug_nonlocal): New function.
10616 (local_def): Removed function.
10617 (same_succ_hash): Use stmt_local_def.
10618 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
10619 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
10620
10621 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10622
10623 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
10624 and __ILP32__ for x32.
10625
10626 2012-04-13 Martin Jambor <mjambor@suse.cz>
10627
10628 PR middle-end/52939
10629 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
10630 fold_ctor_reference returns a zero constant.
10631
10632 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
10633
10634 * config.gcc: Add i386/gnu-user-common.h before all
10635 i386/gnu-user.h and i386/gnu-user64.h usages.
10636
10637 * config/i386/gnu-user-common.h: New.
10638
10639 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
10640 (CC1_SPEC): Likewise.
10641 (ENDFILE_SPEC): Likewise.
10642 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
10643 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
10644 (TARGET_OS_CPP_BUILTINS): Likewise.
10645 (LIBGCC2_HAS_TF_MODE): Likewise.
10646 (LIBGCC2_TF_CEXT): Likewise.
10647 (TF_SIZE): Likewise.
10648 (TARGET_ASM_FILE_END): Likewise.
10649 (STACK_CHECK_MOVING_SP): Likewise.
10650 (STACK_CHECK_STATIC_BUILTIN): Likewise.
10651 * config/i386/gnu-user64.h: Likewise.
10652
10653 2012-04-13 Martin Jambor <mjambor@suse.cz>
10654
10655 * expr.c (expand_expr_real_1): Pass type, not the expression, to
10656 set_mem_attributes for a memory temporary. Do not call the function
10657 for the memory temporary created for a bitfield.
10658
10659 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10660
10661 PR debug/48866
10662 * df.h (enum debug_temp_where): New.
10663 (dead_debug_init, dead_debug_finish) Declare.
10664 (dead_debug_add, dead_debug_insert_temp): Declare.
10665 (struct dead_debug_use, struct dead_debug): Moved from...
10666 * df-problems.c: ... here.
10667 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
10668 to a debug temp.
10669 (df_create_unused_note): Likewise.
10670 (df_set_dead_notes_for_mw): Move comment where it belongs.
10671 (dead_debug_init): Export.
10672 (dead_debug_reset_uses): New, factored out of...
10673 (dead_debug_finish): ...this. Export.
10674 (dead_debug_reset): Remove.
10675 (dead_debug_add): Export.
10676 (dead_debug_insert_before): Rename to...
10677 (dead_debug_insert_temp): ... this. Add where argument. Export.
10678 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
10679 Return insertion count.
10680 (df_note_bb_compute): Adjust.
10681 * dce.c (word_dce_process_block): Adjust dead debug uses.
10682 (dce_process_block): Likewise.
10683
10684 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10685
10686 * df-problems.c (df_note_bb_compute): Do not take note of
10687 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
10688
10689 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10690
10691 PR debug/51570
10692 * var-tracking.c (expand_depth): New type.
10693 (onepart_aux, expand_loc_callback_data): Change depth type to it.
10694 (loc_exp_dep_alloc): Adjust initializer.
10695 (update_depth): Use new type. Add entryvals.
10696 (vt_expand_var_loc_chain): Take note of expansions with
10697 ENTRY_VALUEs, but don't accept them right away. Run an optional
10698 second pass accepting the minimum ENTRY_VALUE count found in the
10699 first pass.
10700 (vt_expand_loc_callback, INIT_ELCD): Adjust.
10701
10702 2012-04-13 Tom de Vries <tom@codesourcery.com>
10703
10704 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
10705 parameters vuse and vuse_escaped.
10706 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
10707 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
10708 vuse1 != vuse2.
10709
10710 2012-04-13 Richard Guenther <rguenther@suse.de>
10711
10712 PR tree-optimization/52969
10713 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
10714 the condition for the COND_EXPR and handle predicate negation
10715 by swapping the COND_EXPR arms.
10716
10717 2012-04-13 Nick Clifton <nickc@redhat.com>
10718
10719 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
10720 TODO_dump_func flag.
10721
10722 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
10723
10724 PR rtl-optimization/52203
10725 PR rtl-optimization/52715
10726
10727 Revert the 2012-03-07 fix for PR 52203.
10728 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
10729 the insn does not modify DFA right before issuing, adjust
10730 issue_rate accordingly.
10731
10732 2012-04-13 Richard Guenther <rguenther@suse.de>
10733
10734 PR c/52549
10735 * c-typeck.c (pointer_diff): Remove bogus assert.
10736
10737 2012-04-13 Richard Guenther <rguenther@suse.de>
10738
10739 PR c/52862
10740 * convert.c (convert_to_pointer): Remove special-casing of zero.
10741
10742 2012-04-13 Joey Ye <joey.ye@arm.com>
10743
10744 * config/arm/constraints.md (Pe): New constraint.
10745 * config/arm/arm.md: New split for imm 256-510.
10746
10747 2012-04-13 Terry Guo <terry.guo@arm.com>
10748
10749 * config/arm/arm-cores.def: Added core cortex-m0plus.
10750 * config/arm/arm-tune.md: Regenerated.
10751 * config/arm/arm-tables.opt: Regenerated.
10752 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
10753
10754 2012-04-13 Alan Modra <amodra@gmail.com>
10755
10756 PR target/52828
10757 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
10758 tie regs on destination of sets. Delete forward declaration.
10759 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
10760 (rs6000_emit_prologue): Likewise.
10761 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
10762 and gen_stack_tie.
10763 (is_mem_ref): Use tie_operand to recognise stack ties.
10764 * config/rs6000/predicates.md (tie_operand): New.
10765 * config/rs6000/rs6000.md (restore_stack_block): Generate new
10766 stack tie rtl.
10767 (restore_stack_nonlocal): Likewise.
10768 (stack_tie): Update.
10769 (frame_tie): Delete.
10770
10771 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10772
10773 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
10774 HOST_WIDE_INT_PRINT_DEC in format strings.
10775
10776 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
10777
10778 PR target/52932
10779 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
10780 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
10781 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
10782 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
10783 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
10784 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
10785 avx2_permvarv8si using VI4F_256 mode iterator.
10786 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
10787 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
10788 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
10789 gen_avx2_permvarv8sf.
10790 (expand_vec_perm_pshufb): Ditto.
10791
10792 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10793
10794 PR target/52775
10795 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
10796 the list of options to enable the FCFID instruction.
10797 (TARGET_EXTRA_BUILTINS): Adjust comment.
10798
10799 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10800
10801 PR tree-optimization/18589
10802 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
10803 (operand_entry): Add count field.
10804 (add_repeat_to_ops_vec): New function.
10805 (completely_remove_stmt): Likewise.
10806 (remove_def_if_absorbed_call): Likewise.
10807 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
10808 (acceptable_pow_call): New function.
10809 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
10810 entries with repeat counts when found.
10811 (repeat_factor_d): New struct and associated typedefs.
10812 (repeat_factor_vec): New static vector variable.
10813 (compare_repeat_factors): New function.
10814 (get_reassoc_pow_ssa_name): Likewise.
10815 (attempt_builtin_powi): Likewise.
10816 (reassociate_bb): Call attempt_builtin_powi.
10817 (fini_reassoc): Two new calls to statistics_counter_event.
10818
10819 2012-04-12 Richard Guenther <rguenther@suse.de>
10820
10821 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
10822 * cgraph.h (tree_rest_of_compilation): Remove.
10823 * cgraph.c (cgraph_add_new_function): Move ...
10824 * cgraphunit.c (cgraph_add_new_function): ... here.
10825 (tree_rest_of_compilation): Make static.
10826 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
10827 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
10828 gate_all_early_local_passes, execute_all_early_local_passes,
10829 pass_early_local_passes, gate_all_early_optimizations,
10830 pass_all_early_optimizations): Move ...
10831 * passes.c (gate_all_optimizations, pass_all_optimizations,
10832 gate_all_early_local_passes, execute_all_early_local_passes,
10833 pass_early_local_passes, gate_all_early_optimizations,
10834 pass_all_early_optimizations): ... here.
10835 * tree-optimize.c (execute_free_datastructures): Remove.
10836 * tree-flow.h (execute_free_datastructures): Remove.
10837 * tree-optimize.c (execute_init_datastructures,
10838 pass_init_datastructures): Move ...
10839 * tree-ssa.c (execute_init_datastructures,
10840 pass_init_datastructures): ... here.
10841 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
10842 execute_free_datastructures.
10843
10844 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
10845
10846 * dbgcnt.def (ira_move): New counter.
10847 * ira-int.h (ira_create_new_reg): Declare function.
10848 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
10849 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
10850 no longer static. All callers changed.
10851 * ira.c: Include "dbgcnt.h".
10852 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
10853 move_unallocated_pseudos): New static functions.
10854 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
10855 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
10856 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
10857 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
10858 to the pseudos generated in find_moveable_pseudos.
10859 * Makefile.in (ira.o): Add $(DBGCNT_H).
10860
10861 2012-04-12 Richard Guenther <rguenther@suse.de>
10862
10863 PR tree-optimization/52943
10864 * tree-chrec.h (chrec_is_positive): Remove.
10865 * tree-scalar-evolution.c (chrec_is_positive): Move ...
10866 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
10867 Return false for a constant zero instead of negative.
10868 (analyze_siv_subscript_cst_affine): Handle zero difference
10869 in the initial condition explicitely.
10870
10871 2012-04-12 Richard Guenther <rguenther@suse.de>
10872
10873 * tree-parloops.c (parallelize_loops): Also consult the upper
10874 bound for the number of iterations.
10875 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10876 (loop_prefetch_arrays): Likewise.
10877
10878 2012-04-12 Richard Guenther <rguenther@suse.de>
10879
10880 * cfgloop.h (estimated_loop_iterations_int): Ditch
10881 'conservative' parameter.
10882 (max_stmt_executions_int): Likewise.
10883 (estimated_loop_iterations): Likewise.
10884 (max_stmt_executions): Likewise.
10885 (max_loop_iterations): Declare.
10886 (max_loop_iterations_int): Likewise.
10887 (estimated_stmt_executions): Likewise.
10888 (estimated_stmt_executions_int): Likewise.
10889 * tree-ssa-loop-niter.c (estimated_loop_iterations):
10890 Split parts to ...
10891 (max_loop_iterations): ... this.
10892 (estimated_loop_iterations_int): Split parts to ...
10893 (max_loop_iterations_int): ... this.
10894 (max_stmt_executions_int): Split parts to ...
10895 (estimated_stmt_executions_int): ... this.
10896 (max_stmt_executions): Split parts to ...
10897 (estimated_stmt_executions): ... this.
10898 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
10899 * predict.c (predict_loops): Likewise.
10900 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
10901 (analyze_siv_subscript_cst_affine): Likewise.
10902 (compute_overlap_steps_for_affine_1_2): Likewise.
10903 (analyze_subscript_affine_affine): Likewise.
10904 (init_omega_for_ddr_1): Likewise.
10905 * tree-parloops.c (parallelize_loops): Likewise.
10906 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10907 (may_eliminate_iv): Likewise.
10908 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10909 (loop_prefetch_arrays): Likewise.
10910 * tree-vrp.c (adjust_range_with_scev): Likewise.
10911
10912 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
10913
10914 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
10915 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
10916 Fix line width.
10917 (dump_table): Use bool type for need_align and have_df variables.
10918 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
10919 (regs_used): Remove register modifier.
10920 (barrier_align): Move variables slot, credit, jump_to_next
10921 into if block above for loop. Use bool type for jump_to_next.
10922 (sh_function_arg): Use NULL_RTX instead of 0.
10923
10924 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
10925
10926 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
10927 (bswapsi2): New expander.
10928
10929 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10930
10931 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
10932 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
10933
10934 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10935
10936 PR rtl-optimization/52876
10937 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
10938 Don't call mark_reg_pointer for incompatible pointer sign extension.
10939
10940 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
10941 directly.
10942
10943 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
10944
10945 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
10946 comparisons against TYPE_PRECISION.
10947 * tree-ssa-forwprop.c (combine_conversions): Likewise.
10948
10949 2012-04-11 Xinliang David Li <davidxl@google.com>
10950
10951 * tree-passes.h: Remove TODO_dump_func.
10952 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
10953 * trans-mem.c: Remove TODO_dump_func.
10954 * ira.c: Remove TODO_dump_func.
10955
10956 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10957
10958 * config/i386/i386.c (ix86_option_override_internal): Check
10959 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
10960 after TARGET_64BIT is updated.
10961
10962 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10963
10964 * config/sh/sh.h: Remove old secondary reload code.
10965
10966 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10967
10968 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
10969 (ready_reorder): ... this function.
10970
10971 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
10972
10973 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
10974 sched_init calls.
10975
10976 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
10977 insns so that no other insn is queued for a time before them.
10978
10979 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
10980 unknown.
10981
10982 2012-04-11 Richard Guenther <rguenther@suse.de>
10983
10984 PR middle-end/52621
10985 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
10986 consider loop nesting.
10987 (evolution_function_is_univariate_p): Properly check the remainder
10988 for chrecs.
10989
10990 2012-04-11 Richard Guenther <rguenther@suse.de>
10991
10992 PR middle-end/52918
10993 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
10994
10995 2012-04-11 Nick Clifton <nickc@redhat.com>
10996
10997 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
10998 information, if requested.
10999
11000 * config/rx/rx.c (rx_expand_prologue): Likewise.
11001
11002 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
11003 Michael Matz <matz@suse.de>
11004
11005 PR target/16458
11006 * rtlanal.c (unsigned_reg_p): New function.
11007 Update copyright notice dates.
11008 * rtl.h (unsigned_reg_p): Prototype it.
11009 Update copyright notice dates.
11010 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
11011 Update comment.
11012 * expr.c (expand_expr_real_1): Set register attributes.
11013 * stmt.c (expand_case): Likewise.
11014
11015 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
11016
11017 PR target/50751
11018 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
11019 consider_sh2a and allow_zero.
11020 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
11021 (disp_addr_displacement): New function.
11022 (sh_address_cost): Use disp_addr_displacement function instead
11023 of DISP_ADDR_OFFSET.
11024 (sh_legitimate_address_p): Adapt to changed
11025 sh_legitimate_index_p declaration.
11026 (sh_find_mov_disp_adjust): Remove HImode check.
11027 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
11028 disp_addr_displacement and max_mov_insn_displacement.
11029 (max_mov_insn_displacement): Remove HImode check.
11030 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
11031 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
11032 * config/sh/constraints.md (K05, K13): New constraints.
11033 (K12): Correct comment.
11034 (Sdd): Do not use DISP_ADDR_P macro.
11035 (Snd, Sbw): Use satisfies_constraint_Sdd.
11036 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
11037 (*extendhisi2_compact, movhi_i): Remove.
11038 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
11039 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
11040 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
11041 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
11042 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
11043 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
11044 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
11045 CONST_OK_FOR_Kxx.
11046 Add new peepholes for HImode displacement addressing.
11047
11048 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
11049
11050 * config/sh/sh.h (SIDI_OFF): Remove.
11051 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
11052 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
11053 or operand_subword.
11054
11055 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
11056
11057 PR target/52624
11058 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
11059 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
11060 * doc/md.texi (Standard Names): Add bswap.
11061 * builtin-types.def (BT_UINT16): New primitive type.
11062 (BT_FN_UINT16_UINT16): New function type.
11063 * builtins.def (BUILT_IN_BSWAP16): New.
11064 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
11065 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
11066 expand_builtin_bswap.
11067 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
11068 (fold_builtin_1): Likewise.
11069 (is_inexpensive_builtin): Likewise.
11070 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
11071 missing bits for bswap to libcall code.
11072 * tree.c (build_common_tree_nodes): Build uint16_type_node.
11073 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
11074 (uint16_type_node): New define.
11075 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
11076 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
11077 above builtin.
11078 (rs6000_init_builtins): Likewise.
11079 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
11080
11081 2012-04-11 Tristan Gingold <gingold@adacore.com>
11082
11083 * doc/extend.texi (Type Attributes): Move paragraph.
11084
11085 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11086
11087 PR 24985
11088 * diagnostic.h (show_caret): Declare.
11089 (caret_max_width): Declare.
11090 (diagnostic_show_locus): Declare.
11091 * diagnostic.c (diagnostic_initialize): Initialize to false.
11092 (diagnostic_show_locus): New.
11093 (diagnostic_report_diagnostic): Call it.
11094 (getenv_columns): New.
11095 (adjust_line): New.
11096 (diagnostic_set_caret_max_width): New.
11097 * input.c (read_line): New.
11098 (location_get_source_line): New.
11099 * input.h (location_get_source_line): Declare.
11100 * toplev.c (general_init): Initialize show_caret from options.
11101 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
11102 * opts.c (common_handle_option): Likewise.
11103 * pretty-print.h (pp_get_prefix): New.
11104 (pp_base_get_prefix): New.
11105 * common.opt (fdiagnostics-show-caret): New option.
11106 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
11107
11108 2012-04-11 Richard Guenther <rguenther@suse.de>
11109
11110 PR rtl-optimization/52881
11111 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
11112
11113 2012-04-11 Richard Guenther <rguenther@suse.de>
11114
11115 PR tree-optimization/52912
11116 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
11117 manipulation code we are threading through a loop header
11118 to an exit destination.
11119
11120 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
11121
11122 * tree.h (warn_if_unused_value): Move declaration from here.
11123 * stmt.c (warn_if_unused_value): Move definition from here.
11124
11125 2012-04-10 Michael Matz <matz@suse.de>
11126
11127 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
11128 grouped_stores.
11129 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
11130 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
11131 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
11132 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
11133 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
11134 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
11135 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
11136 (vect_record_strided_load_vectors): Rename to
11137 vect_record_grouped_load_vectors.
11138 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
11139 Rename use of above macros.
11140 (vect_verify_datarefs_alignment): Ditto.
11141 (vector_alignment_reachable_p): Ditto.
11142 (vect_peeling_hash_get_lowest_cost): Ditto.
11143 (vect_enhance_data_refs_alignment): Ditto.
11144 (vect_analyze_group_access): Ditto and rename stride to groupsize.
11145 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
11146 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
11147 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
11148 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
11149 (vect_record_strided_load_vectors): Rename to
11150 vect_record_grouped_load_vectors.
11151 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
11152 (destroy_loop_vec_info): Ditto.
11153 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
11154 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
11155 (vect_analyze_slp): Ditto.
11156 (new_bb_vec_info): Ditto.
11157 (destroy_bb_vec_info): Ditto.
11158 (vect_schedule_slp_instance): Ditto and rename strided_store to
11159 grouped_store.
11160 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
11161 vect_cost_group_size.
11162 (vect_model_store_cost): Rename use of above macros and call
11163 to vect_cost_strided_group_size.
11164 (vect_model_load_cost): Ditto.
11165 (vectorizable_store): Ditto, rename strided_store to grouped_store
11166 and calls to renamed tree-vectorizer.h functions.
11167 (vectorizable_load): Ditto.
11168 (vect_transform_stmt): Rename use of above macros and strided_store
11169 to grouped_store.
11170
11171 2012-04-10 Jan Hubicka <jh@suse.cz>
11172
11173 * cgraph.h: Remove misledaing comment on ipa-ref.h.
11174 (symtab_type): New enum.
11175 (symtab_node): New structure.
11176 (cgraph_node, varpool_node): Add symbol base type.
11177 (cgraph, varpool): New accestor functions.
11178 * cgraph.c (cgraph_create_node_1): Set symbol type.
11179 * varpool.c (varpool_node): Set symbol type.
11180
11181 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
11182 Richard Sandiford <rdsandiford@googlemail.com>
11183
11184 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
11185
11186 2012-04-10 Richard Guenther <rguenther@suse.de>
11187
11188 PR middle-end/52888
11189 * gimple-low.c (gimple_check_call_args): Properly account for
11190 compatible aggregate types.
11191
11192 2012-04-10 Richard Guenther <rguenther@suse.de>
11193
11194 * toplev.h (tree_rest_of_compilation): Remove.
11195 * tree-optimize.c (tree_rest_of_compilation): Likewise.
11196 * cgraph.h (tree_rest_of_compilation): Declare.
11197 * tree-optimize.c (tree_rest_of_compilation): Move ...
11198 * cgraphunit.c (tree_rest_of_compilation): ... here.
11199 * cgraph.c (cgraph_add_new_function): Adjust.
11200 * Makefile.in (tree-optimize.o): Adjust.
11201 (cgraphunit.o): Likewise.
11202
11203 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
11204
11205 PR tree-optimization/52870
11206 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
11207 presumed pattern statement is within the same loop or basic block.
11208
11209 2012-04-10 Tristan Gingold <gingold@adacore.com>
11210
11211 * gengtype.c (main): Make uintptr_t a known type.
11212
11213 2012-04-10 Richard Guenther <rguenther@suse.de>
11214
11215 * tree-pass.h (tree_lowering_passes): Remove.
11216 * tree-optimize.c (tree_lowering_passes): Remove.
11217 * cgraph.c (cgraph_add_new_function): Inline relevant parts
11218 of tree_lowering_passes, avoid redundant call of early local passes.
11219 * cgraphunit.c (cgraph_lower_function): Fold into ...
11220 (cgraph_analyze_function): ... its single caller. Inline
11221 relevant parts of tree_lowering_passes.
11222
11223 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
11224
11225 PR other/52777
11226 * config/pa/pa.opt: Remove SIO and GNU_LD.
11227
11228 2012-04-09 Jan Hubicka <jh@suse.cz>
11229
11230 PR lto/52722
11231 PR lto/51765
11232 PR lto/52634
11233 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
11234 boundary, add its target too.
11235 * lto.c (add_references_to_partition): Add also aliased nodes.
11236 (add_cgraph_node_to_partition,
11237 add_varpool_node_to_partition): Work on nodes, not functions/variables;
11238 when adding alias, add also the aliased object.
11239
11240 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
11241
11242 PR target/52883
11243 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
11244 VOIDmode immediate operands.
11245 * config/i386/constraints.md (Wz): New constraint.
11246 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
11247
11248 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
11249
11250 PR target/52717
11251 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
11252 the DECL generated for the special GOT helper.
11253
11254 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
11255
11256 * config/sh/constraints.md: Update list of constraints in
11257 comment block.
11258 (Sr0): Remove unused memory constraint.
11259
11260 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11261
11262 * tree-pretty-print.h: Update comment.
11263
11264 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
11265
11266 * config/sh/sh.md: Use braced string notation where applicable.
11267 (*prefetch_i4, prefetch_m2a): Merge into ...
11268 (*prefetch): ... this new insn.
11269
11270 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11271
11272 * config/sh/sh.h (high_life_started): Remove
11273 * config/sh/predicates.md (general_movdst_operand): Use
11274 'reload_in_progress' instead of 'high_life_started'.
11275 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
11276 divsi_inv_fp): Likewise.
11277
11278 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11279
11280 * config/sh/sh-protos.h (prepare_move_operands): Return void
11281 instead of int.
11282 * config/sh/sh.c (prepare_move_operands): Likewise.
11283 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
11284
11285 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11286
11287 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
11288 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
11289 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
11290 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
11291 commutative_float_operator, noncommutative_float_operator,
11292 sh_handle_pragma): Remove.
11293
11294 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
11295
11296 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
11297 Use @option markup on command-line options. Use @samp markup on
11298 literal keywords to options. Use @code markup on code fragments.
11299 Use other markup in preference to quotation marks in the text.
11300 Add markup to some passages without any.
11301
11302 2012-04-06 Mike Stump <mikestump@comcast.net>
11303
11304 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
11305
11306 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11307
11308 * config/sh/sh.c (hi_const): Remove.
11309 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
11310 of hi_const.
11311
11312 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11313
11314 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
11315 to bool.
11316 * config/sh/sh.c (sh_expand_t_scc): Likewise.
11317 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
11318 calling sh_expand_t_scc.
11319
11320 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11321
11322 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
11323 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
11324 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
11325 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
11326 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
11327 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
11328 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
11329 sh2a_is_function_vector_call): Use bool as return type.
11330 (sh_pass_in_reg_p): Remove.
11331 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
11332 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
11333 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
11334 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
11335 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
11336 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
11337 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
11338 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
11339 sh_loads_bankedreg_p): Use bool as return type.
11340 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
11341 'register' modifier.
11342
11343 2012-04-06 Matt Turner <mattst88@gmail.com>
11344
11345 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
11346
11347 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
11348
11349 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
11350 of the destination isn't also a FP_REGS register.
11351
11352 2012-04-05 Teresa Johnson <tejohnson@google.com>
11353 H.J. Lu <hongjiu.lu@intel.com>
11354
11355 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
11356 * config/i386/i386.md (move immediate to memory peephole2):
11357 Add cases for HImode move when LCP stall avoidance is needed.
11358 * config/i386/i386.c (initial_ix86_tune_features): Initialize
11359 X86_TUNE_LCP_STALL entry.
11360
11361 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
11362
11363 PR target/52882
11364 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
11365 CONST_INT operands, zero-extended with AND.
11366
11367 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
11368
11369 PR target/50751
11370 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
11371 first argument instead of mode size. Move displacement calculations
11372 to ...
11373 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
11374 ... these new functions.
11375 (disp_adjust): Remove max_mov_disp field.
11376 (sh_legitimate_index_p): Use max_mov_insn_displacement and
11377 mov_insn_alignment_mask.
11378 (sh_address_cost): Use max_mov_insn_displacement.
11379
11380 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
11381
11382 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
11383 (arch_enabled): Handle new arch types.
11384 (one_cmpldi2): Add NEON support.
11385
11386 2012-04-05 Richard Guenther <rguenther@suse.de>
11387
11388 * gimple.c (walk_gimple_op): Compute val_only for the LHS
11389 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
11390 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
11391 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
11392 ... here and make static.
11393 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
11394 Remove.
11395
11396 2012-04-05 Richard Guenther <rguenther@suse.de>
11397
11398 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
11399 basic-block before removing it.
11400
11401 2012-04-05 Richard Guenther <rguenther@suse.de>
11402
11403 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
11404 version namespace as we release the freelist.
11405
11406 2012-04-05 Richard Guenther <rguenther@suse.de>
11407
11408 * tree-nrv.c (tree_nrv): Release VDEFs.
11409 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11410 (sra_modify_assign): Likewise.
11411 * tree-vect-stmts.c (vect_remove_stores): Likewise.
11412 * tree-vect-loop.c (vect_transform_loop): Likewise.
11413 * tree-ssa-dom.c (optimize_stmt): Likewise.
11414 * tree-vect-slp.c (vect_schedule_slp): Likewise.
11415 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
11416
11417 2012-04-05 Richard Guenther <rguenther@suse.de>
11418
11419 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
11420 cleanup.
11421 * gimple.h (gsi_remove): Adjust.
11422 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
11423 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
11424 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
11425 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
11426 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
11427 * tree-ssa-pre.c (eliminate): Likewise.
11428
11429 2012-04-04 Mike Stump <mikestump@comcast.net>
11430
11431 * doc/rtl.texi (const_double): Document as sign-extending.
11432 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
11433 * emit-rtl.c (immed_double_int_const): Refine to state the
11434 value is signed.
11435 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
11436 CONST_DOUBLE integers.
11437 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
11438 negative values are converted. Fix conversions bigger than
11439 HOST_BITS_PER_WIDE_INT.
11440 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
11441 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
11442 * explow.c (plus_constant_mode): Add.
11443 (plus_constant): Implement with plus_constant_mode.
11444 * rtl.h (plus_constant_mode): Add.
11445
11446 2012-04-04 Richard Guenther <rguenther@suse.de>
11447
11448 PR tree-optimization/52808
11449 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
11450 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
11451
11452 2012-04-04 Tristan Gingold <gingold@adacore.com>
11453
11454 * expr.c (expand_expr_real_2): Handle larger sizetype in
11455 POINTER_PLUS_EXPR.
11456
11457 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11458
11459 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
11460 to m2a-single instead of m2e.
11461
11462 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
11463
11464 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
11465 Change type of BITOFFSET to signed. Make sure the lower bound of
11466 the computed range is non-negative by adjusting OFFSET and BITPOS.
11467 (expand_assignment): Adjust call to get_bit_range.
11468
11469 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
11470
11471 * h8300/h8300.c (h8300_current_function_monitor_function_p):
11472 New function. Added to check monitor functions.
11473 (h8300_option_override): Modified to generate error/warning
11474 messages for invalid combinations of different command line
11475 options.
11476 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
11477 save EXR on stack for monitor function in case of H8S target
11478 when "-mno-exr" is passed.
11479 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
11480 Add prototype.
11481 * doc/invoke.texi: Document H8S options.
11482
11483 2012-04-03 Tristan Gingold <gingold@adacore.com>
11484
11485 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
11486 of gcc_AC_FUNC_MMAP_BLACKLIST.
11487 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
11488 * Makefile.in (aclocal_deps): Add mmap.m4.
11489 * configure: Regenerate.
11490 * aclocal.m4: Regenerate.
11491
11492 2012-04-03 Richard Guenther <rguenther@suse.de>
11493
11494 PR tree-optimization/52808
11495 * tracer.c (tail_duplicate): Return whether we have duplicated
11496 any block.
11497 (tracer): If we have duplicated any block, cleanup the CFG.
11498 * cfghooks.c (duplicate_block): If we duplicated a loop
11499 header but not its loop, destroy the loop because it now has
11500 multiple entries.
11501 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
11502 the cfg manipulation routines we are not creating a multiple
11503 entry loop.
11504
11505 2012-04-03 Tristan Gingold <gingold@adacore.com>
11506
11507 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
11508 'byte' alignment.
11509 (vms_c_common_override_options): Allow parameterless variadic
11510 functions.
11511
11512 2012-04-03 Jakub Jelinek <jakub@redhat.com>
11513
11514 PR tree-optimization/52835
11515 * tree-data-ref.c (build_rdg): Return NULL if
11516 compute_data_dependences_for_loop failed.
11517
11518 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
11519
11520 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
11521 for REAL_CST as well.
11522 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
11523 In the bitfield case, if the value is a REAL_CST, convert it first to
11524 an INTEGER_CST.
11525
11526 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
11527
11528 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
11529 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
11530 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
11531
11532 * config/i386/biarchx32.h: New.
11533
11534 2012-04-02 Anatoly Sokolov <aesok@post.ru>
11535
11536 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
11537 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11538 (arm_preferred_reload_class): New function.
11539
11540 2012-04-02 Richard Guenther <rguenther@suse.de>
11541
11542 PR tree-optimization/52756
11543 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
11544 (thread_through_loop_header): After threading through the loop latch
11545 remove the split part from the loop and clear further threading
11546 opportunities that would create a multiple entry loop.
11547
11548 2012-04-02 Richard Guenther <rguenther@suse.de>
11549
11550 PR rtl-optimization/52800
11551 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
11552 CLEANUP_CFG_CHANGED.
11553
11554 2012-04-02 Richard Guenther <rguenther@suse.de>
11555
11556 PR middle-end/52803
11557 * loop-init.c (gate_handle_loop2): Destroy loops here if
11558 we don't enter RTL loop optimizers.
11559
11560 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
11561
11562 Partially revert:
11563 2012-03-29 Richard Guenther <rguenther@suse.de>
11564
11565 * rtl.h (extended_count): Remove.
11566 * combine.c (extended_count): Remove.
11567
11568 2012-04-02 Dodji Seketeli <dodji@redhat.com>
11569
11570 PR c++/40942
11571 * pt.c (more_specialized_fn): Don't apply decay conversion to
11572 types of function parameters.
11573
11574 2012-04-02 Tristan Gingold <gingold@adacore.com>
11575
11576 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
11577 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
11578 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
11579 (ggc_pch_this_base): Use uintptr_t instead of size_t.
11580
11581 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
11582
11583 PR bootstrap/52784
11584 * config/i386/i386.c (ix86_option_override_internal): Don't
11585 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
11586
11587 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
11588
11589 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
11590 (stmt_can_make_abnormal_goto): Use it.
11591 (is_ctrl_altering_stmt): Likewise.
11592
11593 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
11594 Kaz Kojima <kkojima@gcc.gnu.org>
11595
11596 * config/sh/sh.c (push_regs): Skip banked registers when
11597 resbank attribute is specified.
11598 (sh_expand_epilogue): Likewise.
11599
11600 2012-03-30 Richard Henderson <rth@redhat.com>
11601
11602 PR debug/52727
11603 * combine-stack-adj.c (prev_active_insn_bb): New.
11604 (next_active_insn_bb): New.
11605 (force_move_args_size_note): New.
11606 (combine_stack_adjustments_for_block): Use it.
11607
11608 2012-03-30 Richard Henderson <rth@redhat.com>
11609
11610 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
11611 (ix86_expand_vector_init_duplicate): Initialize it.
11612 (expand_vec_perm_palignr): Likewise.
11613 (ix86_expand_vec_perm_const): Likewise.
11614 (ix86_vectorize_vec_perm_const_ok): Likewise.
11615 (expand_vec_perm_blend): Use it.
11616 (expand_vec_perm_vpermil): Likewise.
11617 (expand_vec_perm_pshufb): Likewise.
11618 (expand_vec_perm_1): Likewise.
11619 (expand_vec_perm_pshuflw_pshufhw): Likewise.
11620 (expand_vec_perm_interleave2): Likewise.
11621 (expand_vec_perm_vpermq_perm_1): Likewise.
11622 (expand_vec_perm_vperm2f128): Likewise.
11623 (expand_vec_perm_interleave3): Likewise.
11624 (expand_vec_perm_vperm2f128_vblend): Likewise.
11625 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11626 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
11627 (expand_vec_perm_broadcast): Likewise.
11628 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11629
11630 2012-03-30 Richard Henderson <rth@redhat.com>
11631
11632 * dwarf2out.c (gen_variable_die): Initialize off.
11633
11634 2012-03-30 Tristan Gingold <gingold@adacore.com>
11635
11636 * config/vms/vms-f.c: New file.
11637 * config/vms/t-vms (vms-f.o): New rule.
11638 * config.gcc (*-*-*vms*): Define fortran_target_objs.
11639
11640 2012-03-30 Richard Guenther <rguenther@suse.de>
11641
11642 PR tree-optimization/52754
11643 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
11644 propagate arbitrary addresses into really plain dereferences.
11645
11646 2012-03-30 Richard Guenther <rguenther@suse.de>
11647
11648 PR middle-end/52772
11649 * except.c (emit_to_new_bb_before): Move loop updating ...
11650 (dw2_build_landing_pads): ... here. Use a proper block for
11651 querying the loop father.
11652
11653 2012-03-30 Tristan Gingold <gingold@adacore.com>
11654
11655 * config/ia64/ia64.c (ia64_section_type_flags): Remove
11656 common_object attribute handling.
11657 (SECTION_VMS_OVERLAY): Remove
11658 (ia64_vms_common_object_attribute): Replace abort with an assert.
11659 Do not set DECL_SECTION_NAME.
11660 (ia64_vms_output_aligned_decl_common): Handle common_object
11661 attribute.
11662 (ia64_vms_elf_asm_named_section): Remove.
11663 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
11664
11665 2012-03-30 Richard Guenther <rguenther@suse.de>
11666
11667 PR middle-end/52786
11668 * double-int.c (rshift_double): Remove not needed cast.
11669
11670 2012-03-30 Richard Guenther <rguenther@suse.de>
11671
11672 * tree-affine.h (print_aff): Remove.
11673 * tree-affine.c (print_aff): Make static.
11674 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
11675 (get_references_in_stmt): Likewise.
11676 (print_direction_vector): Likewise.
11677 (print_dir_vectors): Likewise.
11678 (print_dist_vectors): Likewise.
11679 (dump_subscript): Likewise.
11680 (dump_ddrs): Likewise.
11681 (dump_dist_dir_vectors): Likewise.
11682 (dump_data_references): Likewise.
11683 (dump_data_dependence_relation): Likewise.
11684 (dump_data_dependence_direction): Likewise.
11685 (dump_rdg_vertex): Likewise.
11686 (dump_rdg_component): Likewise.
11687 (debug_ddrs): Declare.
11688 (struct data_ref_loc_d): Move ...
11689 * tree-data-ref.c (struct data_ref_loc_d): ... here.
11690 (get_references_in_stmt): Make static.
11691 (dump_data_references): Likewise.
11692 (dump_subscript): Likewise.
11693 (print_direction_vector): Likewise.
11694 (print_dir_vectors): Likewise.
11695 (print_dist_vectors): Likewise.
11696 (dump_data_dependence_relation): Likewise.
11697 (dump_dist_dir_vectors): Likewise.
11698 (dump_ddrs): Likewise.
11699 (dump_rdg_vertex): Likewise.
11700 (dump_rdg_component): Likewise.
11701 (debug_ddrs): New function.
11702 (access_matrix_get_index_for_parameter): Remove.
11703
11704 2012-03-30 Tristan Gingold <gingold@adacore.com>
11705
11706 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
11707 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
11708 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
11709 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
11710 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
11711 (vms_patch_builtins): Handle new flags
11712 * config/vms/vms-crtlmap.map: Completed using nm on
11713 c and math system libraries.
11714 * config/vms/make-crtlmap.awk: Handle any number of flags.
11715
11716 2012-03-30 Martin Jambor <mjambor@suse.cz>
11717
11718 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
11719 is a builtin_stack_save in a dominating BB.
11720
11721 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
11722
11723 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
11724 crossing 128bit lane boundary.
11725
11726 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
11727
11728 * ira-color.c (setup_left_conflict_sizes_p): Process all
11729 conflicting objects.
11730
11731 2012-03-29 Jakub Jelinek <jakub@redhat.com>
11732
11733 PR tree-optimization/52760
11734 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
11735 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
11736
11737 2012-03-29 Richard Guenther <rguenther@suse.de>
11738
11739 * cgraph.h (cgraph_materialize_all_clones): Remove.
11740 (reset_inline_failed): Likewise.
11741 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
11742 * cgraphbuild.c (reset_inline_failed): Remove.
11743 * rtl.h (cse_main): Remove.
11744 (extended_count): Likewise.
11745 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
11746 (cse_main): Make static.
11747 * combine.c (extended_count): Remove.
11748 (dump_combine_stats): Mark as DEBUG_FUNCTION.
11749 * basic-block.h (reorder_basic_blocks): Remove.
11750 * bb-reorder.c (reorder_basic_blocks): Make static.
11751 * Makefile.in (dse.o): Remove dse.h dependency.
11752 * dse.h: Remove.
11753 * dse.c (gate_dse): Remove.
11754 (clear_alias_mode_eq): Likewise.
11755 (clear_alias_mode_hash): Likewise.
11756 (dse_record_singleton_alias_set): Likewise.
11757 (dse_invalidate_singleton_alias_set): Likewise.
11758
11759 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
11760
11761 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
11762 crtbegin_so%O%s for -shared.
11763 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
11764
11765 2012-03-29 Richard Guenther <rguenther@suse.de>
11766
11767 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
11768 (add_to_value): Remove.
11769 (print_value_expressions): Likewise.
11770 * tree-ssa-pre.c (add_to_value): Make static.
11771 (print_value_expressions): Likewise.
11772 * gimple.h (gimple_adjust_this_by_delta): Remove.
11773 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
11774
11775 2012-03-29 Richard Guenther <rguenther@suse.de>
11776
11777 PR middle-end/50708
11778 * double-int.h (rshift_double): Remove.
11779 * double-int.c (lshift_double): Use absu_hwi to make count positive.
11780 (rshift_double): Make static, take unsigned count argument,
11781 remove handling of negative count argument.
11782 (double_int_rshift): Dispatch to lshift_double.
11783
11784 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
11785
11786 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
11787 OPTION_MASK_ABI_64.
11788
11789 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
11790 (SPEC_X32): Likewise.
11791 (MULTILIB_DEFAULTS): Likewise.
11792
11793 * config/i386/i386.c (isa_opts): Remove -m64.
11794 (ix86_target_string): Properly handle -m32/-m64/-mx32.
11795 (ix86_option_override_internal): Properly
11796 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
11797 handle -m32, -m64 and -mx32.
11798
11799 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
11800 with OPTION_ABI_X32. Moved after TARGET_LP64.
11801 (TARGET_LP64): Changed to OPTION_ABI_64.
11802
11803 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
11804 (mx32): Replace ISA_X32 with ABI_X32.
11805
11806 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
11807
11808 * tree.c (tree_size) <VECTOR_CST>: New case.
11809
11810 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
11811
11812 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
11813 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
11814
11815 2012-03-28 Jakub Jelinek <jakub@redhat.com>
11816
11817 PR middle-end/52691
11818 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
11819 __builtin_va_start to __builtin_next_arg if the latter is
11820 builtin_decl_explicit_p rather than when it is not.
11821
11822 PR middle-end/52750
11823 * tree-vect-generic.c (vector_element): Perform multiplication
11824 for pos in bitsizetype type instead of idx type.
11825
11826 2012-03-28 Richard Guenther <rguenther@suse.de>
11827
11828 * loop-init.c (loop_optimizer_init): If loops are preserved
11829 perform incremental initialization of required loop features.
11830 (loop_optimizer_finalize): If loops are to be preserved only
11831 clean up optional loop features.
11832 (rtl_loop_done): Forcefully free loops here.
11833 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
11834 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
11835 to existing loops.
11836 (construct_init_block): Likewise.
11837 (construct_exit_block): Likewise.
11838 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
11839 the CFG after expanding.
11840 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
11841 If we needed to calculate them, free them afterwards.
11842 * tree-pass.h (PROP_loops): New define.
11843 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
11844 * basic-block.h (CLEANUP_CFG_CHANGED): New.
11845 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
11846 (cleanup_cfg): If we did something and have loops around, fix them up.
11847 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
11848 with CLEANUP_CFG_CHANGED.
11849 * cfghooks.c (merge_blocks): If we merge a loop header into
11850 its predecessor, update the loop structure.
11851 (duplicate_block): If we copy a loop latch, adjust loop state
11852 to note we may have multiple latches.
11853 (delete_basic_block): Mark loops for fixup if we remove a loop.
11854 * cfganal.c (forwarder_block_p): Protect loop latches, headers
11855 and preheaders.
11856 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
11857 (cfg_layout_can_merge_blocks_p): Likewise.
11858 * cprop.c (bypass_block): If we create a loop with multiple
11859 entries, mark it for removal.
11860 * except.c (emit_to_new_bb_before): Add the new basic-block
11861 to existing loops.
11862 * tree-eh.c (lower_resx): Likewise.
11863 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
11864 (expand_omp_taskreg): Likewise.
11865 * tree-inline.c (initialize_cfun): Likewise.
11866 * tree-mudflap.c (add_bb_to_loop): Prototype.
11867 (mf_build_check_statement_for): Properly add new basic-blocks
11868 to existing loops.
11869 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
11870 if we remove a loop.
11871 (thread_through_loop_header): Likewise.
11872 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
11873 new basic-blocks to existing loops.
11874 (expand_transaction): Likewise.
11875 * Makefile.in (except.o): Add $(CFGLOOP_H).
11876 (expr.o): Likewise.
11877 (cgraph.o): Likewise.
11878 (cprop.o): Likewise.
11879 (cfgexpand.o): Likewise.
11880 (cfganal.o): Likewise.
11881 (trans-mem.o): Likewise.
11882 (tree-eh.o): Likewise.
11883
11884 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
11885
11886 PR target/52692
11887 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
11888 (avr_builtin_decl): New static function.
11889 (struct avr_builtin_description, avr_bdesc): Move up.
11890 Add GTY marker. Add field fndecl. Remove redundant field id.
11891 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
11892 (avr_expand_builtin): Code cleanup because .id is removed.
11893
11894 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
11895
11896 PR target/52737
11897 * config.gcc (tm_file): Remove avr/multilib.h.
11898
11899 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
11900
11901 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
11902 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
11903 * config/avr/t-avr: Remove generation of multilib.h.
11904 * config/avr/t-multilib: Regenerate.
11905 * config/avr/multilib.h: Remove.
11906 * config/avr/avr.opt (-msp8): New option.
11907 (avr_sp8): New variable.
11908 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
11909 * config/avr/avr.h (AVR_HAVE_SPH): New define.
11910 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
11911 (avr_device_to_sp8): New prototype.
11912 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
11913 (DRIVER_SELF_SPECS): New define.
11914 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
11915 __AVR_SP8__, __AVR_HAVE_SPH__.
11916 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
11917 AVR_HAVE_8BIT_SP to decide if SP_H is present.
11918 (avr_file_start): Ditto.
11919
11920 2012-03-28 Jakub Jelinek <jakub@redhat.com>
11921
11922 PR target/52736
11923 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
11924 instead of 8 in adjust_address.
11925
11926 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
11927
11928 PR middle-end/51893
11929 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
11930 targets.
11931
11932 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
11933
11934 PR target/50751
11935 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
11936 Rearrange conditional logic. Move displacement address calculations
11937 to ...
11938 (sh_find_mov_disp_adjust): ... this new function.
11939
11940 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
11941
11942 * config/arm/arm.opt (mapcs): Remove MaskExists.
11943 * config/cris/linux.opt (mno-gotplt): Likewise.
11944 * config/i386/i386.opt (mhard-float): Likewise.
11945 (msse4): Likewise.
11946 (mno-sse4): Likewise.
11947 * config/m68k/m68k.opt (mhard-float): Likewise.
11948 * config/mep/mep.op (mcop32): Likewise.
11949 * config/pa/pa-hpux.opt (msio): Likewise.
11950 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
11951 * config/picochip/picochip.opt (mlittle): Likewise.
11952 * config/sh/sh.opt (mrenesas): Likewise.
11953 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
11954 * config/sparc/sparc.opt (mhard-float): Likewise.
11955 * config/v850/v850.opt (mv850es): Likewise.
11956 * config/vax/vax.opt (mg-float): Likewise.
11957
11958 2012-03-27 Martin Jambor <mjambor@suse.cz>
11959
11960 PR middle-end/52693
11961 * tree-sra.c (sra_modify_assign): Do not call
11962 load_assign_lhs_subreplacements when working with an unscalarizable
11963 region.
11964
11965 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
11966
11967 PR target/52698
11968 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
11969 New prototype.
11970 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
11971 * config/i386/i386.c: Include reload.h.
11972 (ix86_legitimize_reload_address): New function.
11973
11974 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
11975
11976 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
11977 hasn't been allocated. Define a target macro for Mask and
11978 InverseMask if it hasn't been defined. Remove MaskExists handling.
11979
11980 * doc/options.texi: Remove MaskExists.
11981
11982 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
11983
11984 PR target/52667
11985 * config/sh/sh.c (find_barrier): Add equality check of last_got
11986 to avoid going above orig insn. Update comments.
11987
11988 2012-03-27 Richard Guenther <rguenther@suse.de>
11989
11990 PR middle-end/52720
11991 * fold-const.c (try_move_mult_to_index): Handle &x.array more
11992 explicitely.
11993
11994 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
11995
11996 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
11997 of a unit before computing the offset in units.
11998 * expr.c (get_bit_range): Return the null range if the enclosing record
11999 is part of a larger bit field.
12000
12001 2012-03-27 Tristan Gingold <gingold@adacore.com>
12002
12003 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
12004 * config/ia64/ia64.md: Remove mode in template.
12005 Sign extend operand in expand_simple_binop.
12006 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
12007 CASE_VECTOR_MODE instead of TARGET_ILP32.
12008 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
12009
12010 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
12011
12012 * varasm.c (assemble_external): #if 0 out the new assert from the
12013 previous commit, it breaks the Java and Go front ends.
12014
12015 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
12016
12017 * toplev.c (check_global_declaration_1): Do not call assemble_external.
12018 * expr.c (emit_block_move_libcall_fn): Likewise.
12019 (clear_storage_libcall_fn): Likewise.
12020 (expand_expr_addr_expr_1): Likewise.
12021 (expand_expr_real_1): Likewise.
12022 * calls.c (rtx_for_function_call): Likewise.
12023
12024 * varasm.c (assemble_external): Assert this function is only called
12025 during or after expanding to RTL.
12026
12027 2012-03-26 Martin Jambor <mjambor@suse.cz>
12028
12029 PR tree-optimization/50052
12030 * tree-sra.c (tree_non_aligned_mem_p): Removed.
12031 (tree_non_aligned_mem_for_access_p): Likewise.
12032 (build_accesses_from_assign): Removed strict alignment requirements
12033 checks.
12034 (access_precludes_ipa_sra_p): Likewise.
12035
12036 2012-03-26 Richard Guenther <rguenther@suse.de>
12037
12038 PR tree-optimization/52701
12039 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
12040 compute and set the evolution part of PHI nodes.
12041
12042 2012-03-26 Richard Guenther <rguenther@suse.de>
12043
12044 PR tree-optimization/52721
12045 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
12046
12047 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
12048
12049 PR tree-optimization/52686
12050 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
12051 WIDEN_LSHIFT_EXPR.
12052
12053 2012-03-26 Tristan Gingold <gingold@adacore.com>
12054
12055 * config/alpha/vms.h (LINK_SPEC): Simplify.
12056 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
12057 (NAME__MAIN, SYMBOL__MAIN): Remove.
12058 (VMS_DEBUG_MAIN_POINTER): Remove.
12059 * config/ia64/vms.h: Likewise.
12060 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
12061 code to vms.c. Call vms_start_function.
12062 * config/ia64/ia64.c (ia64_start_function): Likewise.
12063 * config/vms/vms-protos.h (vms_start_function): Declare.
12064 * config/vms/vms.c (vms_start_function): New function.
12065 * config/vms/vms.h (MATH_LIBRARY): Define.
12066 (VMS_DEBUG_MAIN_POINTER): Define.
12067
12068 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
12069
12070 PR rtl-optimization/52629
12071 * reload1.c (count_pseudo): Short-circuit common case.
12072 (count_spilled_pseudo): Return early for pseudos without hard regs.
12073 Assert that the pseudo has got a hard reg before manipulating it.
12074
12075 2012-03-24 Jan Hubicka <jh@suse.cz>
12076
12077 PR lto/51663
12078 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
12079 (decide_is_variable_needed): Do not handle toplevel reorder here.
12080 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
12081 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
12082 even at -O0.
12083
12084 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
12085
12086 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
12087 and str_bitsize instead of more convoluted expressions.
12088
12089 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
12090
12091 PR target/52610
12092 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
12093
12094 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
12095
12096 PR target/52656
12097 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
12098
12099 2012-03-23 Martin Jambor <mjambor@suse.cz>
12100
12101 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
12102
12103 2012-03-23 Richard Guenther <rguenther@suse.de>
12104
12105 PR tree-optimization/52678
12106 * tree-vectorizer.h (struct _stmt_vec_info): Add
12107 loop_phi_evolution_part member.
12108 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
12109 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
12110 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
12111 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
12112 Use the cached evolution part and the PHI nodes value from
12113 the loop preheader edge instead of re-analyzing the evolution.
12114
12115 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12116
12117 * config/mips/mips-tables.opt: Update.
12118 * config/mips/mips.md (processor): Add xlp.
12119 * config/mips/mips-cpus.def: Add xlp.
12120 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
12121 5KF for now.
12122 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
12123 * doc/invoke.texi: Mention XLP.
12124
12125 2012-03-22 Jakub Jelinek <jakub@redhat.com>
12126
12127 PR middle-end/52547
12128 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
12129 on any new_local_var_chain vars declared during recursing on
12130 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
12131
12132 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
12133
12134 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
12135 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
12136 (ASM_OUTPUT_LOCAL): Ditto.
12137 (ASM_OUTPUT_COMMON): Remove.
12138 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
12139 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
12140
12141 2012-03-22 Jan Hubicka <jh@suse.cz>
12142
12143 PR middle-end/51737
12144 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
12145 parameter.
12146 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
12147 * ipa-inline-transform.c (save_inline_function_body): Remove
12148 copied clone if needed.
12149 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
12150
12151 2012-03-22 Richard Guenther <rguenther@suse.de>
12152
12153 PR middle-end/52666
12154 * fold-const.c (fold_ternary_loc): Fix typo.
12155
12156 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
12157
12158 PR target/52496
12159 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
12160 (unspecv): Add UNSPECV_MEMORY_BARRIER.
12161 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
12162 (delay_cycles_1, delay_cycles_2): Ditto.
12163 (delay_cycles_3, delay_cycles_4): Ditto.
12164 (nopv, *nopv): Ditto.
12165 (sleep, *sleep): Ditto.
12166 (wdr, *wdr): Ditto.
12167
12168 2012-03-22 Richard Guenther <rguenther@suse.de>
12169
12170 PR tree-optimization/52548
12171 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
12172 because of clobbers.
12173 (prune_clobbered_mems): New function.
12174 (compute_antic_aux): Use it to prune ANTIC_OUT.
12175 (compute_partial_antic_aux): Use it to prune PA_IN.
12176 (compute_avail): Only insert expressions into EXP_GEN that are not
12177 invalidated when translated up to the beginning of the block.
12178
12179 2012-03-22 Richard Guenther <rguenther@suse.de>
12180
12181 PR tree-optimization/52638
12182 * tree-vect-stmts.c (vect_init_vector_1): New function, split
12183 out from ...
12184 (vect_init_vector): ... here. Handle scalar vector inits.
12185 (vect_get_vec_def_for_operand): Adjust.
12186 (vectorizable_load): Likewise.
12187
12188 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
12189
12190 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
12191 (alpha*-*-freebsd*): Ditto.
12192 (alpha*-*-netbsd*): Ditto.
12193 (alpha*-*-openbsd*): Ditto.
12194 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
12195 (DWARF2_DEBUGGING_INFO): Remove.
12196 (PREFERRED_DEBUGGING_TYPE): Remove.
12197 (ASM_FINAL_SPEC): Remove.
12198 (IDENT_ASM_OP): Remove.
12199 (ASM_OUTPUT_IDENT): Remove.
12200 (SKIP_ASM_OP): Remove.
12201 (ASM_OUTPUT_SKIP): Remove.
12202 (ALIGN_ASM_OP): Remove.
12203 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
12204 (ASM_OUTPUT_CASE_LABEL): Remove.
12205 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
12206 (COMMON_ASM_OP): Remove.
12207 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
12208 (ASCII_DATA_ASM_OP): Remove.
12209 (READONLY_DATA_SECTION_ASM_OP): Remove.
12210 (INIT_SECTION_ASM_OP): Remove.
12211 (FINI_SECTION_ASM_OP): Remove.
12212 (ASM_SECTION_START_OP): Remove.
12213 (ASM_OUTPUT_SECTION_START_FILE): Remove.
12214 (TARGET_ASM_NAMED_SECTION): Remove.
12215 (TARGET_ASM_SELECT_SECTION): Remove.
12216 (MAKE_DECL_ONE_ONLY): Remove.
12217 (TYPE_ASM_OP): Remove.
12218 (SIZE_ASM_OP): Remove.
12219 (ASM_WEAKEN_LABEL): Remove.
12220 (TYPE_OPERAND_FMT): Remove.
12221 (ASM_DECLARE_RESULT): Remove.
12222 (ASM_DECLARE_OBJECT_NAME): Remove.
12223 (ASM_FINISH_DECLARE_OBJECT): Remove.
12224 (ELF_ASCII_ESCAPES): Remove.
12225 (ELF_STRING_LIMIT): Remove.
12226 (STRING_ASM_OP): Remove.
12227 (ASM_OUTPUT_EXTERNAL): Remove.
12228 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
12229 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
12230 before define.
12231 (ASM_DECLARE_FUNCTION_NAME): Ditto.
12232 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
12233 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
12234 (ASM_OUTPUT_SKIP): Ditto.
12235 (READONLY_DATA_SECTION_ASM_OP): Remove.
12236 (USER_LABEL_PREFIX): Remove.
12237 (ASM_OUTPUT_ASCII): Remove.
12238 (ASM_OUTPUT_CASE_LABEL): Remove.
12239 (NO_DOLLAR_IN_LABEL): Undefine.
12240
12241 2012-03-22 Richard Guenther <rguenther@suse.de>
12242
12243 PR tree-optimization/52459
12244 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
12245 PHI insertion for calls.
12246
12247 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
12248
12249 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
12250 find_sets_in_insn, canonicalize_insn): Split out from ...
12251 (cse_insn): ... here.
12252 (invalidate_from_clobbers): Take an insn instead of the pattern.
12253
12254 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
12255
12256 PR target/52479
12257 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
12258 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
12259 * config/sh/sh.md (sindf2, cosdf2): Remove.
12260
12261 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
12262
12263 PR target/52642
12264 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
12265 prologue for unwinder and profiler.
12266
12267 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
12268
12269 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
12270 Introduce emul_name to select the right linker emulation for
12271 powerpc64-*-freebsd*.
12272 * configure: Regenerate.
12273 * config.gcc: Add bits to support powerpc64-*-freebsd*.
12274 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
12275 * config/rs6000/freebsd64.h: New file.
12276 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
12277 POWERPC_FREEBSD.
12278 (rs6000_savres_strategy): Likewise.
12279 (rs6000_savres_routine_name): Likewise.
12280 (rs6000_elf_file_end): Likewise.
12281 * config/rs6000/t-freebsd64: New file.
12282 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
12283 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
12284
12285 * config/rs6000/freebsd64.h: Remove duplicated entries from last
12286 commit.
12287 * config/rs6000/t-freebsd64: Likewise.
12288
12289 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
12290
12291 PR rtl-optimization/52543
12292 PR target/52461
12293 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
12294 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
12295 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
12296 (avr_load_libgcc_p): Restrict to __flash loads.
12297 (avr_out_lpm): Only handle 1-byte loads from __flash.
12298 (avr_load_lpm): New function.
12299 (avr_find_unused_d_reg): Remove.
12300 (avr_out_lpm_no_lpmx): Remove.
12301 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
12302 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
12303 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
12304 (load_<mode>, load_<mode>_clobber): New insns.
12305 (mov<mode>): For multi-byte move from non-generic
12306 16-bit address spaces: Expand to load_<mode> resp.
12307 load_<mode>_clobber.
12308 (load<mode>_libgcc): Remove expander.
12309 (split-lpmx): Remove split.
12310
12311 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
12312
12313 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
12314 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
12315 All callers changed.
12316 (Fixed_core_reg): New feature.
12317 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
12318 disassembly.
12319 * neon-testgen.ml: Handle Fixed_core_reg.
12320
12321 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
12322
12323 * config/arm/arm.c (thumb2_reorg): Add complete support
12324 for 16-bit instructions.
12325 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
12326
12327 2012-03-21 Richard Guenther <rguenther@suse.de>
12328
12329 PR tree-optimizer/52636
12330 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
12331 to the appropriate type.
12332
12333 2012-03-21 Richard Guenther <rguenther@suse.de>
12334
12335 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
12336 dependencies.
12337 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
12338 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
12339 * passes.c (init_optimization_passes): Remove pass_init_function,
12340 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
12341 * tree-pass.h (pass_init_function): Remove.
12342 (pass_jump): Remove.
12343 (pass_initial_value_sets): Remove.
12344 (pass_unshare_all_rtl): Remove.
12345 * integrate.c (pass_initial_value_sets): Remove.
12346 * emit-rtl.c (pass_unshare_all_rtl): Remove.
12347 * tree.h (init_function_for_compilation): Remove.
12348 * function.c (init_function_for_compilation): Remove.
12349 (pass_init_function): Remove.
12350 * cfgcleanup.c (rest_of_handle_jump): Remove.
12351 (pass_jump): Remove.
12352
12353 2012-03-20 Jason Merrill <jason@redhat.com>
12354
12355 * tree-streamer-in.c (streamer_alloc_tree): Call
12356 ggc_alloc_zone_cleared_tree_node instead of
12357 ggc_alloc_zone_cleared_tree_node_stat.
12358
12359 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
12360
12361 * doc/extend.texi (Template Instantiation): Remove anachronisms.
12362
12363 2012-03-20 Jakub Jelinek <jakub@redhat.com>
12364
12365 PR target/52607
12366 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
12367 (ix86_expand_vec_perm_const_1): Call it.
12368
12369 * config/i386/i386.c (vselect_insn): New variable.
12370 (init_vselect_insn): New function.
12371 (expand_vselect, expand_vselect_insn): Add testing_p argument.
12372 Call init_vselect_insn if vselect_insn is NULL. Adjust
12373 PATTERN (vselect_insn), instead of creating a new insn each time,
12374 only emit a copy of it if not testing and recog has been successful.
12375 (expand_vec_perm_pshufb, expand_vec_perm_1,
12376 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
12377 callers.
12378
12379 PR target/52607
12380 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
12381 ("enabled" attribute): Handle avx2 and noavx2 isas.
12382 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
12383 New insns.
12384 (vec_dup<mode>): Add avx2 =x,x alternative.
12385 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
12386 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
12387 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
12388 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
12389 for V8SFmode.
12390 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
12391 if possible, handle also V8SFmode.
12392
12393 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
12394
12395 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
12396 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
12397 reg_or_zero_operand predicate.
12398 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
12399
12400 2012-03-20 Jakub Jelinek <jakub@redhat.com>
12401
12402 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
12403 If operand isn't UNSPEC, return 0.
12404
12405 2012-03-20 Richard Guenther <rguenther@suse.de>
12406
12407 * tree-pass.h (pass_rtl_eh): Remove.
12408 * except.c (gate_handle_eh): Likewise.
12409 (rest_of_handle_eh): Likewise.
12410 (pass_rtl_eh): Likewise.
12411 (finish_eh_generation): Export.
12412 * except.h (finish_eh_generation): Declare.
12413 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
12414 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
12415 after expanding stack alignment. Instead of compacting blocks
12416 call cleanup_cfg.
12417
12418 2012-03-20 Richard Guenther <rguenther@suse.de>
12419
12420 * stor-layout.c (finish_bitfield_representative): Fallback
12421 to conservative maximum size if the padding up to the next
12422 field cannot be computed as a constant.
12423 (finish_bitfield_layout): If we cannot compute the distance
12424 between the start of the bitfield representative and the
12425 bitfield member start a new representative.
12426 * expr.c (get_bit_range): The distance between the start of
12427 the bitfield representative and the bitfield member is zero
12428 if the field offsets are not constants.
12429
12430 2012-03-20 Tristan Gingold <gingold@adacore.com>
12431
12432 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
12433 convert in lowercase.
12434 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
12435 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
12436 * stor-layout.c (sizetype_tab): Adjust.
12437 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
12438 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
12439 instead of type_kind_last.
12440 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
12441 instead of size_int_kind.
12442 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
12443 * doc/tm.texi: Regenerate.
12444 * defaults.h (SIZETYPE): Provide a default value.
12445 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
12446 (SIZETYPE): Define.
12447
12448 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
12449
12450 * config/sh/sh.md: Use braced string notation where applicable.
12451
12452 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12453
12454 * config/i386/i386.md (allocate_stack): Simplify.
12455
12456 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12457
12458 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
12459 copy_to_mode_reg (Pmode, ...).
12460 (expand_builtin_frame_address): Ditto.
12461 * expr.c (emit_block_move_via_libcall): Ditto.
12462 (set_storage_via_libcall): Ditto.
12463
12464 * config/i386/i386.c (ix86_expand_movmem): Ditto.
12465 (ix86_expand_setmem): Ditto.
12466 (ix86_trampoline_init): DItto.
12467 * config/i386/i386.md (cmpstrnsi): Ditto.
12468
12469 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
12470
12471 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
12472 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
12473 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
12474 (SH Options): Likewise.
12475
12476 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12477
12478 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
12479 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
12480 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
12481 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
12482 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
12483
12484 Revert:
12485 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12486
12487 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12488 * config/i386/i386.c (ix86_decompose_address): Use
12489 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12490 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12491 thread pointer to a register.
12492
12493 Revert:
12494 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
12495
12496 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
12497 if Pmode != word_mode.
12498 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
12499 Pmode == SImode for TARGET_X32.
12500
12501 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
12502 (tls_initial_exec_x32): Likewise.
12503
12504 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
12505
12506 PR target/50751
12507 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
12508 DISP_ADDR_OFFSET): New macros.
12509 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
12510 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
12511 (sh_legitimize_address): Add QImode displacement handling.
12512 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
12513 vector subregs.
12514 (sh_secondary_reload): Add QImode displacement handling.
12515 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
12516 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
12517 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
12518 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
12519 to register operands only.
12520 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
12521 (extendqihi2): Change insn to expander.
12522 (*extendqihi2_compact_reg): New insn.
12523 (movqi_i, movqi): Replace with ...
12524 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
12525 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
12526 Add new peepholes for QImode displacement addressing.
12527
12528 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
12529
12530 PR c++/14710
12531 * doc/invoke.texi: Document -Wuseless-cast.
12532
12533 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
12534
12535 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
12536 * tree.h (handled_component_p): Reorder cases.
12537 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
12538 not initialize unsignedp.
12539 (loc_list_from_tree): Likewise.
12540 (fortran_common): Likewise.
12541 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
12542
12543 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12544
12545 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
12546 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
12547 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
12548 (ix86_split_long_move): Ditto.
12549 (legitimize_tls_address): Use ix86_gen_sub3.
12550 (construct_plt_address): Assert that Pmode == DImode.
12551
12552 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
12553
12554 * config/i386/i386.md: Remove empty predicates and/or constraints.
12555 * config/i386/sync.md: Ditto.
12556 * config/i386/sse.md: Ditto.
12557 * config/i386/mmx.md: Ditto.
12558 * config/i386/pentium.md: Ditto.
12559 * config/i386/athlon.md: Ditto.
12560
12561 2012-03-16 Richard Guenther <rguenther@suse.de>
12562
12563 PR tree-optimization/52603
12564 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
12565 comment.
12566
12567 Revert
12568 2012-03-14 Richard Guenther <rguenther@suse.de>
12569
12570 PR tree-optimization/52571
12571 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12572 flag_section_anchors check ...
12573 (vect_can_force_dr_alignment_p): ... here.
12574
12575 2012-03-16 Martin Jambor <mjambor@suse.cz>
12576
12577 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
12578 memory through MEM_REFs by calling extract_bit_field.
12579
12580 2012-03-16 Richard Guenther <rguenther@suse.de>
12581
12582 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
12583 and REFERENCE_TYPE interpretations.
12584 (can_native_interpret_type_p): New function.
12585 (fold_ternary_loc): Use native encode/interpret to fold
12586 BIT_FIELD_REFs of constants.
12587
12588 2012-03-16 Richard Guenther <rguenther@suse.de>
12589
12590 PR middle-end/52584
12591 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
12592 of vector constants and constructors.
12593
12594 2012-03-16 Richard Guenther <rguenther@suse.de>
12595
12596 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12597 VIEW_CONVERT_EXPR to convert constants.
12598 (vect_is_simple_use): Treat all constants as vec_constant_def.
12599
12600 2012-03-16 Richard Guenther <rguenther@suse.de>
12601 Kai Tietz <ktietz@redhat.com>
12602
12603 PR middle-end/48814
12604 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
12605 side-effects completely in the pre-queue and use a temporary
12606 for the result.
12607
12608 2012-03-16 Richard Guenther <rguenther@suse.de>
12609
12610 * stor-layout.c (finish_bitfield_representative): Fall back
12611 to the conservative maximum size if we cannot compute the
12612 size of the tail padding.
12613
12614 2012-03-16 Tristan Gingold <gingold@adacore.com>
12615
12616 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12617 __CRTL_VER and __VMS_VER.
12618 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
12619 and vms_c_get_vms_ver.
12620 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
12621 functions.
12622 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
12623 (VMS_DEFAULT_VMS_VER): Define.
12624 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
12625 (VMS_DEFAULT_VMS_VER): Define.
12626
12627 2012-03-16 Richard Guenther <rguenther@suse.de>
12628
12629 * tree-vect-loop.c (get_initial_def_for_induction): Use
12630 build_constructor directly.
12631 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12632 build_vector_from_val.
12633 * tree.c (build_vector_from_val): Avoid creating a constructor
12634 first when we want a constant vector.
12635
12636 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12637
12638 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
12639
12640 2012-03-16 Richard Guenther <rguenther@suse.de>
12641
12642 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
12643 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
12644 (struct tree_vector): Remove elements member, add variable size
12645 elts array member.
12646 (build_vector_stat): Declare.
12647 (build_vector): Define in terms of build_vector_stat.
12648 * tree.c (build_vector): Rename to ...
12649 (build_vector_stat): ... this. Take array of trees as parameter.
12650 (build_vector_from_ctor): Adjust.
12651 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
12652 initializer_zerop): Adjust.
12653 * cfgexpand.c (expand_debug_expr): Likewise.
12654 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
12655 const_vector_from_tree): Likewise.
12656 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
12657 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
12658 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
12659 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
12660 (lto_input_ts_vector_tree_pointers): Adjust.
12661 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
12662 (write_ts_vector_tree_pointers): Adjust.
12663 * varasm.c (const_hash_1, compare_constant, copy_constant,
12664 output_constant): Adjust.
12665 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
12666 * print-tree.c (print_node): Adjust.
12667 * tree-pretty-print.c (dump_generic_node): Adjust.
12668 * tree-vect-generic.c (uniform_vector_p, vector_element,
12669 lower_vec_perm): Adjust.
12670 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
12671 * tree-vect-slp.c (vect_get_constant_vectors,
12672 vect_transform_slp_perm_load): Adjust.
12673 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
12674 * expmed.c (make_tree): Adjust.
12675 * config/i386/i386.c (ix86_expand_builtin): Adjust.
12676 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
12677 and implementation.
12678 (sparc_fold_builtin): Adjust.
12679
12680 2012-03-16 Tristan Gingold <gingold@adacore.com>
12681
12682 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
12683 * config/vms/vms-stdint.h: New file.
12684
12685 2012-03-16 Tristan Gingold <gingold@adacore.com>
12686
12687 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
12688 (ia64-hp-*vms*): Replaced by ...
12689 (*-*-*vms*): ... This new entry.
12690
12691 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12692
12693 PR target/52568
12694 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
12695 (ix86_expand_vec_perm_const_1): Use it.
12696
12697 PR target/52568
12698 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
12699 (avx2_permv4df): Remove.
12700 (avx2_permv4di): Macroize into...
12701 (avx2_perm<mode>): ... this using VI8F_256 iterator.
12702 (avx2_permv4di_1): Macroize into...
12703 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
12704
12705 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
12706
12707 * combine.c (apply_distributive_law): Do not distribute SUBREG.
12708
12709 2012-03-15 Ira Rosen <irar@il.ibm.com>
12710 Ulrich Weigand <ulrich.weigand@linaro.org>
12711
12712 * tree-vect-patterns.c (widened_name_p): Rename to ...
12713 (type_conversion_p): ... this. Add new argument to determine
12714 if it's a promotion or demotion operation. Check for
12715 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
12716 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
12717 widened_name_p.
12718 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
12719 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
12720 Likewise.
12721 (vect_recog_mixed_size_cond_pattern): Likewise and allow
12722 non-constant then and else clauses.
12723
12724 2012-03-15 Ira Rosen <irar@il.ibm.com>
12725 Ulrich Weigand <ulrich.weigand@linaro.org>
12726
12727 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
12728 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
12729 vect_pattern_recog.
12730 * tree-vect-patterns.c (widened_name_p): Pass basic block
12731 info to vect_is_simple_use.
12732 (vect_recog_dot_prod_pattern): Fail for basic blocks.
12733 (vect_recog_widen_sum_pattern): Likewise.
12734 (vect_handle_widen_op_by_const): Support basic blocks.
12735 (vect_operation_fits_smaller_type,
12736 vect_recog_over_widening_pattern): Likewise.
12737 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
12738 Update call to vect_is_simple_use.
12739 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
12740 Add printing.
12741 (check_bool_pattern): Add an argument, update call to
12742 vect_is_simple_use and the recursive calls.
12743 (vect_recog_bool_pattern): Update relevant function calls.
12744 Add printing.
12745 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
12746 (vect_pattern_recog_1): Check for reduction only in loops.
12747 (vect_pattern_recog): Add new argument. Support basic blocks.
12748 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
12749 info to vect_is_simple_use_1.
12750 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
12751 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
12752
12753 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12754 Andrew Pinski <apinski@cavium.com>
12755
12756 PR middle-end/52592
12757 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
12758 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
12759 calls instead of __builtin_ir{int,ound}*.
12760
12761 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12762
12763 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
12764 documentation.
12765
12766 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12767
12768 * config.gcc (target_type_format_char): New. Document it. Set it for
12769 arm*-*-* .
12770 * configure.ac (gnu_unique_option): Use target_type_format_char
12771 in test. Comment rationale.
12772 * configure: Regenerate .
12773
12774 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12775
12776 PR tree-optimization/52267
12777 * tree-vrp.c (masked_increment): New function.
12778 (register_edge_assert_for_2): Derive ASSERT_EXPRs
12779 from (X & CST1) cmp CST2 tests.
12780
12781 2012-03-15 Richard Guenther <rguenther@suse.de>
12782
12783 PR middle-end/52580
12784 * tree-data-ref.c (subscript_dependence_tester_1): Check
12785 all dimensions for non-conflicting access functions.
12786
12787 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12788
12789 PR c++/44783
12790 * doc/invoke.texi [C++ Language Options]: Document
12791 -ftemplate-backtrace-limit.
12792
12793 2012-03-15 Tristan Gingold <gingold@adacore.com>
12794
12795 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
12796 before a parameter.
12797
12798 2012-03-15 Tristan Gingold <gingold@adacore.com>
12799
12800 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
12801 use DW_OP_call_frame_cfa.
12802
12803 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
12804
12805 PR target/50797
12806 * config/i386/i386-opts.h (pmode): New.
12807
12808 * config/i386/i386.c (ix86_option_override_internal): Properly
12809 check and set ix86_pmode.
12810
12811 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
12812
12813 * config/i386/i386.opt (maddress-mode=): New.
12814
12815 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
12816
12817 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12818
12819 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
12820 (dwarf2out_do_cfi_asm): Likewise.
12821 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
12822 handling.
12823 (add_data_member_location_attribute): Likewise.
12824 (gen_array_type_die): Likewise.
12825 (gen_subprogram_die): Likewise.
12826 (gen_producer_string): Likewise.
12827 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
12828 Remove MIPS_DEBUGGING_INFO handling.
12829 (sdb_debug_hooks): Likewise.
12830 (sdbout_begin_block): Likewise.
12831 (sdbout_end_block): Likewise.
12832 (sdbout_begin_prologue): Likewise.
12833 (sdbout_start_source_file): Likewise.
12834 (sdbout_end_source_file): Likewise.
12835 (sdbout_init): Likewise.
12836 * system.h (MIPS_DEBUGGING_INFO): Poison.
12837
12838 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12839
12840 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
12841 (alpha_file_start) [MS_STAMP]: Remove.
12842
12843 * config/alpha/elf.h (TARGET_GAS): Remove.
12844 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
12845 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
12846 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
12847 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
12848 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
12849 (alpha*-*-freebsd*): Likewise.
12850 (alpha*-*-netbsd*): Likewise.
12851 (alpha*-*-openbsd*): Likewise.
12852 (alpha*-*-*): Remove target_cpu_default2.
12853 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
12854 handling.
12855 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
12856 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
12857 * config/alpha/alpha.c (print_operand): Always assume
12858 TARGET_AS_SLASH_BEFORE_SUFFIX.
12859 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
12860 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
12861 ("*builtin_setjmp_receiver_er_1"): Remove.
12862 * config/alpha/alpha.opt (malpha-as): Remove.
12863 (mgas): Ignore.
12864 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
12865 -malpha-as, -mgas.
12866 Remove DEC Unix reference.
12867
12868 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
12869 (EXTENDED_COFF): Remove.
12870 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
12871 (EXTENDED_COFF): Don't undef.
12872 * config/alpha/alpha.c (alpha_file_start): Always assume
12873 OBJECT_FORMAT_ELF.
12874 Don't set targetm.asm_file_start_file_directive.
12875 [!OBJECT_FORMAT_ELF]: Remove.
12876 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12877
12878 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
12879 (DBX_DEBUGGING_INFO): Remove.
12880 (MIPS_DEBUGGING_INFO): Remove.
12881 (PREFERRED_DEBUGGING_TYPE): Remove.
12882 (DBX_OUTPUT_SOURCE_LINE): Remove.
12883 (SDB_OUTPUT_SOURCE_LINE): Remove.
12884 (DBX_CONTIN_LENGTH): Remove.
12885 (NO_DBX_FUNCTION_END): Remove.
12886 (ASM_STABS_OP): Remove.
12887 (ASM_STABN_OP): Remove.
12888 (ASM_STABD_OP): Remove.
12889 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
12890 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
12891 (PUT_SDB_DEF): Remove.
12892 (PUT_SDB_PLAIN_DEF): Remove.
12893 (PUT_SDB_TYPE): Remove.
12894 (sdb_label_count): Remove.
12895 (PUT_SDB_BLOCK_START): Remove.
12896 (PUT_SDB_BLOCK_END): Remove.
12897 (PUT_SDB_FUNCTION_START): Remove.
12898 (PUT_SDB_FUNCTION_END): Remove.
12899 (PUT_SDB_EPILOGUE_END): Remove.
12900 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
12901 (MIPS_DEBUGGING_INFO): Don't undef.
12902 (DBX_DEBUGGING_INFO): Don't undef.
12903 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
12904 (MIPS_DEBUGGING_INFO): Don't undef.
12905 (DBX_DEBUGGING_INFO): Don't undef.
12906 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
12907 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
12908 handling.
12909 (alpha_start_function): Likewise.
12910 (sdb_label_count): Remove.
12911 (alpha_output_filename): Remove DBX_DEBUG handling.
12912 (alpha_file_start): Likewise.
12913
12914 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12915
12916 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
12917 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
12918 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
12919 Solaris 8 support.
12920 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
12921 (ld_tls_support): Remove Solaris 8 references.
12922 (lwp_dir, lwp_spec): Remove support for alternate thread library.
12923 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
12924 * configure: Regenerate.
12925 * config.in: Regenerate.
12926
12927 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
12928 * config/i386/sol2.h: Remove Solaris 8 references.
12929
12930 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
12931 (i?86-*-solaris2.9): ... this.
12932 Remove Solaris 8 references.
12933 (Specific, *-*-solaris2*): Document Solaris 8 removal.
12934 Remove Solaris 8 references.
12935
12936 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12937
12938 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
12939 (mips-sgi-irix6.5*): Remove.
12940 * config.host (mips-sgi-irix*): Remove.
12941 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
12942 (set_have_as_tls): Remove *-*-irix6*.
12943 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
12944 * configure: Regenerate.
12945
12946 * config/mips/iris6.h: Remove.
12947 * config/mips/iris6.opt: Remove.
12948 * config/mips/t-irix6: Remove.
12949
12950 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
12951 (TARGET_IRIX6): Remove.
12952 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
12953 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
12954 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
12955 handling.
12956 (mips_file_start): Likewise.
12957 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
12958
12959 * config/mips/driver-native.c [__sgi__]: Remove.
12960 (host_detect_local_cpu) [__sgi__]: Remove.
12961
12962 * config/mips/gnu-user.h: Remove iris5.h reference.
12963
12964 * config/mips/mips-modes.def: Remove IRIX 6 reference.
12965 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
12966 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
12967 Remove.
12968
12969 * gcc.c (main): Move asm_debug initialization ...
12970 (asm_debug): ... here.
12971
12972 * ginclude/stddef.h (__STDDEF_H__): Don't define.
12973
12974 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
12975 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
12976 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12977 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12978 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
12979 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
12980 Remove.
12981 * doc/tm.texi: Regenerate.
12982
12983 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
12984 IRIX 6 reference.
12985 (MIPS Options, -march): Remove IRIX reference.
12986 * doc/install.texi (Binaries, SGI IRIX): Remove.
12987 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
12988 of section.
12989 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
12990
12991 2012-03-14 Martin Jambor <mjambor@suse.cz>
12992
12993 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
12994 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
12995 (expand_expr_real_1): Do not handle misalignment if modifier is
12996 EXPAND_WRITE.
12997
12998 2012-03-14 Richard Guenther <rguenther@suse.de>
12999
13000 PR middle-end/52584
13001 * tree-vect-generic.c (type_for_widest_vector_mode): Take
13002 element type instead of mode, use build_vector_type_for_mode
13003 instead of the langhook, build a vector of proper signedness.
13004 (expand_vector_operations_1): Adjust.
13005
13006 2012-03-14 Richard Guenther <rguenther@suse.de>
13007
13008 PR middle-end/52582
13009 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
13010 a cgraph node for a FUNCTION_DECL that comes from a constructor.
13011 (gimple_get_virt_method_for_binfo): Likewise.
13012
13013 2012-03-14 Richard Guenther <rguenther@suse.de>
13014
13015 PR tree-optimization/52571
13016 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
13017 flag_section_anchors check ...
13018 (vect_can_force_dr_alignment_p): ... here. Do not re-align
13019 DECL_COMMON variables.
13020
13021 2012-03-14 Richard Guenther <rguenther@suse.de>
13022
13023 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
13024 * stor-layout.c (start_bitfield_representative): New function.
13025 (finish_bitfield_representative): Likewise.
13026 (finish_bitfield_layout): Likewise.
13027 (finish_record_layout): Call finish_bitfield_layout.
13028 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
13029 for QUAL_UNION_TYPE fields.
13030 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
13031 Stream DECL_BIT_FIELD_REPRESENTATIVE.
13032 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
13033
13034 PR middle-end/52080
13035 PR middle-end/52097
13036 PR middle-end/48124
13037 * expr.c (get_bit_range): Unconditionally extract bitrange
13038 from DECL_BIT_FIELD_REPRESENTATIVE.
13039 (expand_assignment): Adjust call to get_bit_range.
13040
13041 2012-03-14 Richard Guenther <rguenther@suse.de>
13042
13043 PR middle-end/52578
13044 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
13045 the outermost conversion is a sign-change only.
13046 (fold_binary_loc): Disregard widening and sign-changing
13047 conversions when we determine if two variables are equal
13048 for reassociation.
13049 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
13050 (T1)x if the outermost conversion is a sign-change only.
13051
13052 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
13053
13054 Revert:
13055 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
13056
13057 * config/i386/predicates.md (constant_call_address_operand): Declare
13058 as special predicate. Update all uses.
13059
13060 2012-03-13 Jakub Jelinek <jakub@redhat.com>
13061
13062 PR c/52577
13063 * c-parser.c (c_parser_postfix_expression)
13064 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
13065
13066 * config/i386/smmintrin.h: Avoid /* within a comment.
13067 * config/i386/nmmintrin.h: Likewise.
13068
13069 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
13070
13071 * config/i386/i386.md (xbegin): Remove constraint from expander.
13072
13073 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
13074
13075 * config/i386/predicates.md (constant_call_address_operand): Declare
13076 as special predicate. Update all uses.
13077 * config/i386/i386.md: Remove mode from constant_call_address_operand
13078 predicates.
13079 * config/i386/i386.c (ix86_output_call_insn): Call
13080 constant_call_address_operand with VOIDmode.
13081
13082 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
13083
13084 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
13085 AND zero extended address correctly.
13086
13087 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
13088
13089 * config/i386/predicates.md (tls_symbolic_operand): Declare as
13090 special predicate.
13091 (tls_modbase_operand): Ditto.
13092 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
13093 tls_modbase_operand predicates.
13094
13095 2012-03-13 Martin Jambor <mjambor@suse.cz>
13096
13097 * expr.c (expand_assignment): Handle misaligned scalar writes to
13098 memory through top-level MEM_REFs by calling store_bit_field.
13099
13100 2012-03-13 Richard Guenther <rguenther@suse.de>
13101
13102 PR middle-end/52134
13103 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
13104 if Y is a constant multiple of 1 << CST.
13105
13106 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
13107
13108 PR target/52488
13109 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
13110 offset (size) to a value the insns can deal with.
13111 (expand_epilogue): Ditto.
13112
13113 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13114
13115 * config/arm/neon.ml (ops): Fixup expected instructions for
13116 unsigned vector compares.
13117
13118 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
13119
13120 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
13121 addresses only when %reg is not in word mode.
13122
13123 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13124
13125 * config/microblaze/microblaze.md: Fix typo.
13126 * tree-if-conv.c: Likewise.
13127 * tree-vect-patterns.c: Likewise.
13128
13129 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13130
13131 * config.gcc (extra_passes): Remove.
13132 * configure.ac (extra_passes): Don't substitute.
13133 * configure: Regenerate.
13134 * Makefile.in (EXTRA_PASSES): Remove.
13135 (GCC_PASSES): Remove $(EXTRA_PASSES).
13136 (MOSTLYCLEANFILES): Likewise.
13137 (native): Likewise.
13138 (install-common): Likewise.
13139
13140 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
13141
13142 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
13143 * config/i386/i386.c (ix86_decompose_address): Use
13144 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
13145 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
13146 thread pointer to a register.
13147
13148 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
13149
13150 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
13151 on tls_symbolic_operand.
13152 (tls_global_dynamic_64_<mode>): Likewise.
13153
13154 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
13155
13156 PR other/52545
13157 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
13158 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
13159
13160 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
13161
13162 PR target/52499
13163 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
13164 type from reg_class_t to enum reg_class.
13165 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
13166
13167 2012-03-12 Andrew Pinski <apinski@cavium.com>
13168
13169 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
13170 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
13171 (value_replacement): Likewise.
13172 (empty_block_p): Check also if the PHIs for the block are empty.
13173
13174 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
13175
13176 PR target/52148
13177 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
13178 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
13179 r184615 from 2012-02-28.
13180
13181 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
13182
13183 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
13184 (ix86_gen_tls_local_dynamic_base_64): Likewise.
13185 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
13186 and ix86_gen_tls_local_dynamic_base_64.
13187 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
13188 ix86_gen_tls_local_dynamic_base_64.
13189
13190 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
13191 (*tls_global_dynamic_64_<mode>): This.
13192 (tls_global_dynamic_64): Renamed to ...
13193 (tls_global_dynamic_64_<mode>): This.
13194 (*tls_local_dynamic_base_64): Renamed to ...
13195 (*tls_local_dynamic_base_64_<mode>): This.
13196 (tls_local_dynamic_base_64): Renamed to ...
13197 (tls_local_dynamic_base_64_<mode>): This.
13198
13199 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
13200
13201 * config/i386/i386.c (ix86_option_override_internal): Properly
13202 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
13203 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
13204 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
13205 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
13206
13207 * config/i386/sse.md (sse3_monitor64): Renamed to ...
13208 (sse3_monitor64_<mode>): This.
13209
13210 2012-03-12 Tristan Gingold <gingold@adacore.com>
13211
13212 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
13213 (ia64_function_arg_advance): Ditto.
13214
13215 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13216
13217 * config.gcc (mips*-*-openbsd*): Remove.
13218 * config/mips/openbsd.h: Remove.
13219 * config/mips/sdb.h: Remove.
13220
13221 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
13222 * config/mips/mips.c (sdb_label_count): Remove.
13223 (mips_debugger_offset): Remove #if 0 code.
13224 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
13225 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
13226
13227 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13228
13229 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
13230 binutils reference.
13231 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
13232 Update binutils references.
13233 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
13234 Update binutils reference.
13235 Update Sun as/GNU ld caveat.
13236 Document binutils largefile requirement for LTO plugin.
13237 Remove reference to alternate libpthread.
13238
13239 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13240
13241 * config.gcc (alpha*-dec-osf5.1*): Remove.
13242 * config.host (alpha*-dec-osf*): Remove.
13243 * configure.ac (*-*-osf*): Remove.
13244 (alpha*-dec-osf*): Remove.
13245 * configure: Regenerate.
13246
13247 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
13248 config/alpha/va_list.h, config/alpha/x-osf: Remove.
13249
13250 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
13251 * config/alpha/alpha.c (struct machine_function): Update comment.
13252 (alpha_start_function): Remove Tru64 UNIX as handling for
13253 max_frame_size.
13254 * config/alpha/alpha.md ("exception_receiver"): Remove
13255 TARGET_LD_BUGGY_LDGP.
13256 ("*exception_receiver_2"): Likewise.
13257 * except.c (finish_eh_generation): Remove Tru64 reference.
13258 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
13259 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
13260 * target.def (handle_pragma_extern_prefix): Remove.
13261
13262 * Makefile.in (mips-tfile.o-warn): Remove.
13263 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
13264 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
13265 * mips-tdump.c, mips-tfile.c: Remove.
13266
13267 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
13268 extern_prefix.
13269 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
13270 (Specific, alpha*-dec-osf5.1): Note removal.
13271 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
13272 Remove.
13273 * doc/tm.texi: Regenerate.
13274 * doc/trouble.texi (Cross-Compiler Problems): Remove.
13275
13276 2012-03-12 Richard Guenther <rguenther@suse.de>
13277
13278 * config/arm/arm.c (neon_dereference_pointer): Do not call
13279 covert during RTL expansion.
13280
13281 2012-03-12 Tristan Gingold <gingold@adacore.com>
13282
13283 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
13284 Options. Mention -mpointer-size.
13285
13286 2012-03-12 Richard Guenther <rguenther@suse.de>
13287
13288 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
13289 build_nonstandard_integer_type.
13290
13291 2012-03-12 Richard Guenther <rguenther@suse.de>
13292
13293 * tree.c (signed_or_unsigned_type_for): Use
13294 build_nonstandard_integer_type.
13295 (signed_type_for): Adjust documentation.
13296 (unsigned_type_for): Likewise.
13297 * tree-pretty-print.c (dump_generic_node): Use standard names
13298 for non-standard integer types if available.
13299
13300 2012-03-12 Tristan Gingold <gingold@adacore.com>
13301
13302 * config/vms/vms.opt: Add vms-opts.h header.
13303 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
13304 target mask.
13305 (-mvms-return-codes): Document.
13306 (-mpointer-size): New option.
13307 (vms_pointer_size): Add enumeration.
13308 * config/vms/vms-opts.h: New file.
13309 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
13310 __INITIAL_POINTER_SIZE.
13311 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
13312 (C_COMMON_OVERRIDE_OPTIONS): Define.
13313 (DWARF2_ADDR_SIZE): Define.
13314 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
13315 * config/vms/vms-protos.h (vms_c_common_override_options):
13316 New prototype.
13317 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
13318 if -mno-pointer-size.
13319 (vms_c_common_override_options): New function.
13320 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
13321 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
13322 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
13323 and flag_vms_pointer_size.
13324 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
13325 * config.gcc (*-*-*vms*): Define xm_file.
13326 (alpha*-dec-*vms*): Do not define xm_file.
13327 (alpha64-dec-*vms*): Remove.
13328 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
13329 and tmake_file.
13330
13331 2012-03-12 Jakub Jelinek <jakub@redhat.com>
13332
13333 PR tree-optimization/51721
13334 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
13335 if (int) unsvar cmp CST.
13336
13337 2012-03-12 Richard Guenther <rguenther@suse.de>
13338
13339 * tree-sra.c (create_access_replacement): Only rename the replacement
13340 if we can rewrite it into SSA form. Properly mark register typed
13341 replacements that we cannot rewrite with TREE_ADDRESSABLE.
13342 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
13343 for aggregate or BLKmode results.
13344
13345 2012-03-12 Jakub Jelinek <jakub@redhat.com>
13346
13347 PR tree-optimization/52533
13348 * tree-vrp.c (register_edge_assert_for_2): Use double_int
13349 type for mask, only handle shifts by non-zero in-range
13350 shift count, for LE_EXPR and GT_EXPR if new_val is
13351 maximum, don't add the assertion.
13352
13353 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
13354
13355 * doc/invoke.texi: Document -mrtm option.
13356 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
13357 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
13358 (ix86_handle_option): Handle OPT_mrtm.
13359 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
13360 xtestintrin.h.
13361 (x86_64-*-*): Ditto.
13362 * i386-builtin-types.def (INT_FTYPE_VOID): New.
13363 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13364 __RTM__ if needed.
13365 (ix86_target_string): Define -mrtm option.
13366 (PTA_RTM): New.
13367 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
13368 Handle new option.
13369 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
13370 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
13371 IX86_BUILTIN_XTEST.
13372 (bdesc_special_args): Ditto.
13373 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
13374 (ix86_expand_special_args_builtin): Handle new built-in type.
13375 (ix86_expand_builtin): Handle XABORT instruction.
13376 * config/i386/i386.h (TARGET_RTM): New.
13377 * config/i386/i386.md (UNSPECV_XBEGIN): New.
13378 (UNSPECV_XEND): Ditto.
13379 (UNSPECV_XABORT): Ditto.
13380 (UNSPECV_XTEST): Ditto.
13381 (xbegin): Ditto.
13382 (xbegin_1): Ditto.
13383 (xend): Ditto.
13384 (xabort): Ditto
13385 (xtest): Ditto.
13386 (xtest_1): Ditto.
13387 * config/i386/i386.opt (mrtm): New.
13388 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
13389 * config/i386/rtmintrin.h: New header.
13390 * config/i386/xtestintrin.h: Ditto.
13391
13392 2012-03-12 Tristan Gingold <gingold@adacore.com>
13393
13394 * ginclude/stddef.h: Adjust previous patch.
13395 Use __VMS__ instead of VMS.
13396
13397 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
13398
13399 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
13400 Also convert sequences with CC setting arithmetic instruction.
13401
13402 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
13403
13404 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
13405 from C Language Options to Preprocessor Options.
13406 (C Dialect Options): Move -no-integrated-cpp documentation
13407 from here...
13408 (Preprocessor Options): ...to here. Rewrite the description
13409 so it makes more sense, and remove discussion of merging front ends.
13410
13411 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13412
13413 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
13414 needed for loop.
13415 (ix86_expand_setmem): Likewise.
13416
13417 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
13418
13419 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
13420 convert_to_mode.
13421
13422 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13423
13424 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
13425 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
13426
13427 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13428
13429 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
13430
13431 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13432
13433 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
13434 TARGET_64BIT.
13435
13436 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13437 Uros Bizjak <ubizjak@gmail.com>
13438
13439 * config/i386/predicates.md (call_insn_operand): Allow
13440 constant_call_address_operand in Pmode only.
13441 (sibcall_insn_operand): Ditto.
13442 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
13443 (*call_vzeroupper): Ditto.
13444 (*sibcall): Ditto.
13445 (*sibcall_vzeroupper): Ditto.
13446 (*call_value): Ditto.
13447 (*call_value_vzeroupper): Ditto.
13448 (*sibcall_value): Ditto.
13449 (*sibcall_value_vzeroupper): Ditto.
13450 (*indirect_jump): Ditto.
13451 (*tablejump_1): Ditto.
13452 (indirect_jump): Convert memory address to word mode for TARGET_X32.
13453 (tablejump): Ditto.
13454 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
13455 to word mode.
13456
13457 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
13458
13459 PR target/51244
13460 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
13461 Use movrt_negc instead of negc pattern for non-SH2A.
13462 (*movnegt): Remove.
13463 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
13464
13465 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
13466
13467 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
13468 if Pmode != word_mode.
13469 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
13470 Pmode == SImode for TARGET_X32.
13471
13472 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
13473 (tls_initial_exec_x32): Likewise.
13474
13475 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
13476
13477 PR rtl-optimization/52528
13478 * combine.c (can_combine_p): Add setting of subst_low_luid
13479 before call to expand_field_assignment().
13480
13481 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
13482
13483 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
13484 and related program names.
13485
13486 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
13487
13488 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
13489
13490 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
13491
13492 PR target/52530
13493 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
13494 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
13495 to set code to 'q'.
13496 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
13497 (*movdi_internal_rex64): Use %E operand modifier for lea.
13498 (*movsi_internal): Ditto.
13499 (*lea_1): Ditto.
13500 (*lea<mode>_2): Ditto.
13501 (*lea_{3,4,5,6}_zext): Ditto.
13502 (*tls_global_dynamic_32_gnu): Ditto.
13503 (*tls_global_dynamic_64): Ditto.
13504 (*tls_dynamic_gnu2_lea_32): Ditto.
13505 (*tls_dynamic_gnu2_lea_64): Ditto.
13506 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
13507
13508 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13509
13510 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
13511 redefine to be NULL if the current bit-size is different from the
13512 configured bit-size.
13513
13514 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
13515 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
13516 set the default tuning. Add asserts to make sure the cpu and tune
13517 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
13518 test whether the index is set, instead of > 0.
13519 (rs6000_file_start): Do not reset the default cpu if the current
13520 bit-size is different from the configured bit-size.
13521
13522 2012-03-09 Tristan Gingold <gingold@adacore.com>
13523
13524 * config/vms/vms-crtlmap.map: Add comments.
13525 Add entries needed to build Ada RTS.
13526
13527 2012-03-09 Tristan Gingold <gingold@adacore.com>
13528
13529 * ginclude/stddef.h: Do not define __size_t on VMS.
13530
13531 2012-03-09 Tristan Gingold <gingold@adacore.com>
13532
13533 * c-tree.h (c_default_pointer_mode): New variable.
13534 * c-decl.c (c_default_pointer_mode): New variable.
13535 (c_build_pointer_type): New function.
13536 (grokdeclarator): Call c_build_pointer_type instead
13537 of build_pointer_type.
13538
13539 * config/vms/vms-c.c: Include c-tree.h
13540 (saved_pointer_mode): New variable.
13541 (handle_pragma_pointer_size): New function.
13542 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
13543 (vms_c_register_pragma): Register __pointer_size and
13544 __required_pointer_size pragmas.
13545
13546 2012-03-09 Tristan Gingold <gingold@adacore.com>
13547
13548 * config/vms/vms-c.c (vms_construct_include_filename): New function.
13549 (vms_c_register_includes): Reference it.
13550
13551 2012-03-09 Andrew Pinski <apinski@cavium.com>
13552
13553 PR middle-end/51988
13554 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
13555 print_generic_expr.
13556 (tree_ssa_phiopt_worker): Go through all the PHIs for
13557 value_replacement instead of just the singleton one.
13558 (value_replacement): Change return type to int. Return 0 instead of
13559 false.
13560 Allow the middle basic block to contain more than just the defining
13561 statement.
13562 Handle non empty middle basic blocks.
13563 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
13564
13565 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
13566
13567 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
13568 array reference and component reference.
13569 (analyze_scalar_evolution_for_address_of): New.
13570
13571 2012-03-08 Jie Zhang <jzhang918@gmail.com>
13572
13573 PR target/49862
13574 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
13575 (hwloop_pattern_reg): Fix set but not used warning.
13576 (bfin_reorg_loops): Remove unused parameter.
13577 (bfin_reorg): Update use of bfin_reorg_loops.
13578
13579 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
13580
13581 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
13582 with integer parameters in registers.
13583 (gen_push): Push register in word_mode instead of Pmode.
13584 (ix86_emit_save_regs): Likewise.
13585 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
13586 (gen_pop): Pop register in word_mode instead of Pmode.
13587 (ix86_emit_restore_regs_using_pop): Likewise.
13588 (ix86_expand_prologue): Replace Pmode with word_mode for push
13589 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
13590 restore RAX and R10 in word_mode.
13591 (ix86_emit_restore_regs_using_mov): Restore integer registers
13592 in word_mode.
13593 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
13594 word_mode.
13595 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
13596 (ix86_split_long_move): Likewise.
13597
13598 * config/i386/i386.md (W): New.
13599 (*push<mode>2_prologue): Replace :P with :W.
13600 (*pop<mode>1): Likewise.
13601 (*pop<mode>1_epilogue): Likewise.
13602 (push/pop peephole2): Use word_mode scratch registers.
13603
13604 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
13605
13606 * config/i386/predicates.md (indirect_branch_operand): Simplify.
13607
13608 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
13609
13610 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
13611 for constants in [-63,63].
13612
13613 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
13614
13615 PR target/52530
13616 Revert:
13617 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13618
13619 * config/i386/i386.c (ix86_print_operand_address): Only handle
13620 zero-extended DImode addresses.
13621
13622 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13623
13624 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
13625 * configure: Regenerate.
13626
13627 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
13628
13629 PR target/52496
13630 * config/avr/avr.c (avr_mem_clobber): New static function.
13631 (avr_expand_delay_cycles): Add memory clobber operand to
13632 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
13633 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
13634 (enable_interrupt, disable_interrupt): New expander.
13635 (nopv, sleep, wdr): New expanders.
13636 (delay_cycles_1): Add memory clobber.
13637 (delay_cycles_2): Add memory clobber.
13638 (delay_cycles_3): Add memory clobber.
13639 (delay_cycles_4): Add memory clobber.
13640 (cli_sei): New insn from former "enable_interrupt",
13641 "disable_interrupt" with memory clobber.
13642 (*wdt): New insn from former "wdt" with memory clobber.
13643 (*nopv): Similar, but for "nopv".
13644 (*sleep): Similar, but for "sleep".
13645
13646 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
13647 Kaz Kojima <kkojima@gcc.gnu.org>
13648
13649 PR target/52503
13650 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
13651 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
13652 (SUBTARGET_OVERRIDE_OPTIONS): Define.
13653
13654 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
13655
13656 * config/i386/predicates.md (x86_64_zext_general_operand): New.
13657 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
13658 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
13659
13660 2012-03-07 Walter Lee <walt@tilera.com>
13661
13662 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
13663 REG_CFA_* notes for the stack pointer.
13664 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
13665 EH_RETURN_STACKADJ_RTX.
13666 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
13667 generate REG_CFA_* notes for the stack pointer.
13668 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
13669 by EH_RETURN_STACKADJ_RTX.
13670
13671 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13672
13673 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
13674 when __AVR_3_BYTE_PC__ is defined.
13675
13676 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
13677
13678 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
13679 (ix86_print_operand): Handle '^'.
13680 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
13681 using P mode iterator. Add %^ to asm template to conditionally emit
13682 addr32 prefix.
13683 (*rep_movdi_rex64): Ditto.
13684 (*strsetdi_rex_1): Ditto.
13685 (*rep_stosdi_rex64): Ditto.
13686 (*strmov{si,hi,qi}_1): Add %^ to asm template to
13687 conditionally emit addr32 prefix.
13688 (*rep_mov{si,qi}): Ditto.
13689 (*strset{si,hi,qi}): Ditto.
13690 (*rep_stos{si,qi}): Ditto.
13691 (*cmpstrnqi_nz_1): Ditto.
13692 (*cmpstrnqi_1): Ditto.
13693 (*strlenqi_1): Ditto.
13694
13695 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
13696
13697 * config/i386/i386.c (function_value_64): Return pointers in
13698 word_mode instead of Pmode.
13699 (ix86_promote_function_mode): Likewise.
13700
13701 2012-03-07 Richard Guenther <rguenther@suse.de>
13702
13703 * coverage.c (get_gcov_type): Use type_for_mode.
13704 (get_gcov_unsigned_t): Likewise.
13705 * expr.c (store_constructor): Use type_for_mode.
13706 (try_casesi): Likewise.
13707 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
13708 (add_standard_iv_candidates): Use standard type trees.
13709 * dojump.c (do_jump): Remove dead code.
13710
13711 2012-03-07 Richard Guenther <rguenther@suse.de>
13712
13713 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
13714
13715 2012-03-07 Richard Guenther <rguenther@suse.de>
13716
13717 * convert.c (strip_float_extensions): Move ...
13718 * tree.c (strip_float_extensions): ... here.
13719
13720 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13721
13722 PR target/52484
13723 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
13724
13725 2012-03-07 Richard Guenther <rguenther@suse.de>
13726
13727 * omp-low.c (extract_omp_for_data): Use signed_type_for.
13728 (expand_omp_for_generic): Likewise.
13729 (expand_omp_for_static_nochunk): Likewise.
13730 (expand_omp_for_static_chunk): Likewise.
13731 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
13732 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13733 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13734 Use unsigned_type_for.
13735 (vect_create_cond_for_align_checks): Use signed_type_for.
13736
13737 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
13738
13739 PR rtl-optimization/52203
13740 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
13741 all callers to pass NULL except ...
13742 (reset_sched_cycles_in_current_ebb): ... here, save the value
13743 in new variable 'empty'. Increase issue_rate only for
13744 non-empty insns.
13745
13746 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
13747
13748 PR target/51417
13749 * Makefile.in: Let install-gcc-ar depend on installdirs,
13750 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
13751 Don't double canonicalize if cross-compiling.
13752
13753 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13754
13755 PR target/52506
13756 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
13757 to: RAMPZ, RAMPY, RAMPX, RAMPD.
13758 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
13759
13760 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13761
13762 PR target/52505
13763 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
13764 from RAM.
13765 * config/avr/avr.md (xload_8): Adjust insn length.
13766
13767 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13768
13769 PR target/52461
13770 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
13771 if RAMPZ affects reading from RAM.
13772
13773 2012-03-07 Richard Guenther <rguenther@suse.de>
13774
13775 PR pch/52518
13776 PR pch/38987
13777 * doc/invoke.texi (Precompiled Headers): Remove sentence that
13778 suggests you can include PCHs from inside another header.
13779
13780 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
13781
13782 PR middle-end/52515
13783 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
13784
13785 2012-03-07 Kai Tietz <ktietz@redhat.com>
13786
13787 * doc/invoke.texi (fwritable-relocated-rdata): Document
13788 new Cygwin/MinGW target option.
13789 * config/i386/winnt.c (i386_pe_unique_section): Ignore
13790 reloc if flag -fwritable-relocated-rdata is not set.
13791 (i386_pe_section_type_flags): Likewise.
13792 * config/i386/cygming.opt (fwritable-relocated-rdata):
13793 Add new flag variable flag_writable_rel_rdata.
13794
13795 2012-03-07 Richard Guenther <rguenther@suse.de>
13796
13797 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
13798 precision against gimple constraints.
13799
13800 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
13801
13802 PR middle-end/52372
13803 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
13804 variables.
13805 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
13806 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
13807 variables.
13808 (init_emit_regs): Move associated initialization to...
13809 (init_emit_once): ...here.
13810
13811 2012-03-06 Richard Henderson <rth@redhat.com>
13812
13813 * config/m68k/m68k.h (ISA_HAS_TAS): New.
13814 * config/m68k/sync.md (atomic_test_and_set): Use it.
13815 (atomic_test_and_set_1): Likewise.
13816
13817 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13818
13819 PR target/50310
13820 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
13821 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
13822 (vector_ltgt<mode>): Likewise.
13823 (vector_ordered<mode>): Likewise.
13824 (vector_unordered<mode>): Likewise.
13825 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13826
13827 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
13828
13829 * trans-mem.c: New typedef for tm_region_p.
13830 Define vector types for tm_region_p.
13831 (tm_region_init): Replace region_worklist to a vector called
13832 bb_regions.
13833
13834 2012-03-06 Richard Guenther <rguenther@suse.de>
13835
13836 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
13837 MEM_REF with constant pointer operand.
13838
13839 2012-03-06 Richard Guenther <rguenther@suse.de>
13840
13841 PR middle-end/52493
13842 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
13843
13844 2012-03-06 Tristan Gingold <gingold@adacore.com>
13845
13846 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
13847 (external_model_kind): Improve documentation.
13848 (vms_pragma_extern_model): Handle relaxed_redef.
13849 (vms_c_register_pragma): Allow expansion for nomember_alignment.
13850
13851 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
13852
13853 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
13854 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
13855 Some more notes on EIND usage and reorder EIND subsection.
13856
13857 2012-03-06 Tristan Gingold <gingold@adacore.com>
13858
13859 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
13860 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
13861
13862 2012-03-06 Tristan Gingold <gingold@adacore.com>
13863
13864 * config/vms/t-vmsnative (version): Define.
13865 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
13866
13867 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
13868
13869 PR rtl-optimization/52250
13870 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
13871 to put note list into. Unconditionally call move_bb_info.
13872 (move_bb_info): Do not assert the blocks being in the same region,
13873 just drop the note list if they are not.
13874
13875 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
13876
13877 PR target/51244
13878 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
13879 and use unified expansion logic.
13880 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
13881 closer to the existing movt insn.
13882 (negc): Rename insn to *negc. Add new expander.
13883 (movnegt): Use xor pattern for T bit negation. Reserve helper
13884 constant for negc pattern.
13885 (*movnegt): New insn and splitter.
13886
13887 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
13888
13889 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
13890 PLUS_EXPR.
13891
13892 2012-03-05 Richard Henderson <rth@redhat.com>
13893
13894 * genemit.c (main): Include "target.h" in insn-emit.c.
13895 * Makefile.in (insn-emit.o): Depend on TARGET_H.
13896 * config/sh/sync.md (atomic_test_and_set): Reference
13897 targetm.atomic_test_and_set_trueval instead of
13898 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
13899
13900 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
13901
13902 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
13903 Make static.
13904
13905 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
13906
13907 * langhooks.c (add_builtin_type): New function.
13908 * langhooks.h (add_builtin_type): Export it.
13909 * config/mep/mep.c (mep_init_builtins): Use it.
13910 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
13911
13912 2012-03-05 Jakub Jelinek <jakub@redhat.com>
13913
13914 PR debug/51902
13915 * tree.h (BLOCK_SAME_RANGE): Define.
13916 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
13917 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
13918 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
13919 isn't equal to supercontext fragment's fragment chain.
13920 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
13921 fragment origin.
13922 (blocks_nreverse_all): Likewise.
13923 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
13924 BLOCK_SUPERCONTEXT to supercontext fragment instead of
13925 supercontext fragment's fragment origin.
13926 * dwarf2out.c (add_high_low_attributes): If stmt has the same
13927 range as its parent (or parents thereof etc.), use the parent's
13928 DW_AT_ranges value instead of creating a new .debug_ranges range.
13929
13930 2012-03-05 Richard Henderson <rth@redhat.com>
13931
13932 PR tree-opt/52242
13933 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
13934 * omp-low.c (expand_omp_atomic): Assume anything aligned to
13935 BIGGEST_ALIGNMENT is aligned.
13936
13937 2012-03-05 Richard Henderson <rth@redhat.com>
13938
13939 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
13940 * config/sh/sh.c: ... here.
13941
13942 2012-03-05 Richard Henderson <rth@redhat.com>
13943
13944 PR target/52481
13945 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
13946 instead of calling negqi2 directly.
13947
13948 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
13949
13950 PR middle-end/52463
13951 * trans-mem.c (tm_region_init): Use last_basic_block.
13952
13953 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
13954
13955 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
13956 * config/sh/sync.md (atomic_test_and_set): New expander.
13957 (tasb, atomic_test_and_set_soft): New insns.
13958 * config/sh/sh.opt (menable-tas): New option.
13959 * doc/invoke.texi (SH Options): Document it.
13960
13961 2012-03-05 Richard Guenther <rguenther@suse.de>
13962
13963 * cfgloop.c (verify_loop_structure): Verify dominators before
13964 using them.
13965 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
13966 dominators from here.
13967 * graphite-scop-detection.c (create_sese_edges): Likewise.
13968 * loop-doloop.c (doloop_optimize_loops): Likewise.
13969 * loop-init.c (loop_optimizer_init): Likewise.
13970 * loop-unroll.c (unroll_and_peel_loops): Likewise.
13971 * loop-unswitch.c (unswitch_loops): Likewise.
13972 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13973 * tree-parloops.c (parallelize_loops): Likewise. Verify
13974 only when checking is enabled.
13975 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
13976
13977 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
13978
13979 * genautomata.c (parse_automata_opt): New static function.
13980 (initiate_automaton_gen): Remove all option handling code. Remove
13981 argc argument. All callers changed.
13982 (main): Call init_rtx_reader_args_cb with the new function as argument.
13983
13984 2012-03-05 Richard Guenther <rguenther@suse.de>
13985
13986 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
13987 * tree-if-conv.c (combine_blocks): Free post-dominator info
13988 after breaking it.
13989 * tree-parloops.c (create_parallel_loop): Free and re-compute
13990 dominator info after breaking it.
13991
13992 2012-03-05 Richard Guenther <rguenther@suse.de>
13993
13994 PR middle-end/52353
13995 * optabs.h (trapv_unoptab_p): New function.
13996 (trapv_binoptab_p): Likewise.
13997 * optabs.c (expand_binop): Use emit_libcall_block_1 with
13998 a proper equiv_may_trap argument.
13999 (expand_unop): Likewise.
14000 (emit_libcall_block_1): Take extra argument whether the
14001 instruction may trap. Renamed from ...
14002 (emit_libcall_block): ... this. New wrapper.
14003
14004 2012-03-05 Jakub Jelinek <jakub@redhat.com>
14005
14006 PR tree-optimization/51721
14007 * tree-vrp.c (register_edge_assert_for_2): If comparing
14008 lhs of right shift by constant with an integer constant,
14009 add ASSERT_EXPRs for the rhs1 of the right shift.
14010
14011 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
14012
14013 2012-03-05 Richard Guenther <rguenther@suse.de>
14014
14015 * tree.c (integer_zerop): Handle VECTOR_CSTs.
14016 (integer_onep): Likewise.
14017 (integer_all_onesp): Likewise.
14018
14019 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
14020
14021 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
14022
14023 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
14024
14025 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
14026 instead of TARGET_64BIT.
14027
14028 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
14029
14030 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
14031 adjust_stack_insn.
14032
14033 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
14034
14035 * config/i386/i386.c (ix86_print_operand_address): Only handle
14036 zero-extended DImode addresses.
14037
14038 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
14039
14040 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
14041 taken and cputaken as bool.
14042
14043 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
14044
14045 * config/i386/constraints.md (Ya): New internal constraint.
14046 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
14047 (*zero_extendsidi2_rex64): Add x,x alternative.
14048 (*zero_extendsidi2): Ditto. Add o,0 alternative.
14049 Remove flags reg clobber. Adjust corresponding splits.
14050 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
14051 zero_extendqisi2 expanders using SWI12 mode iterator.
14052 (zero_extend<mode>si2_and): Macroize insn from
14053 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
14054 splitters.
14055 (*zero_extend<mode>si2): Macroize insn from
14056 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
14057 (*zero_extend*2_movzbl_and): Remove insn patterns.
14058 (zero_extendqihi2_and): Merge corresponding splitter.
14059 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
14060 (*zero_extend*2_movzbl_and): Remove insn patterns.
14061 (*anddi_1): Split TYPE_IMOVX instructions.
14062 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
14063 (*andhi_1): Ditto.
14064 (and->zext splitter): Add splitter pattern.
14065 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
14066
14067 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
14068
14069 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
14070 x86-specific text.
14071 (Debugging Options): Likewise.
14072 (Optimize Options): Likewise.
14073 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
14074 with other architectures. Use official processor names with correct
14075 spelling/capitalization. Fix formatting and grammar issues.
14076 (i386 and x86-64 Windows Options): Similar cleanup here.
14077
14078 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
14079
14080 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
14081
14082 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
14083
14084 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
14085 DBX_REGISTER_NUMBER.
14086
14087 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
14088
14089 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
14090 operand is CONST_INT. Take COSTS_N_INSNS into account.
14091 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
14092 of shiftcosts.
14093
14094 2012-03-02 Richard Henderson <rth@redhat.com>
14095
14096 * optabs.c (expand_atomic_test_and_set): Honor
14097 atomic_test_and_set_trueval even when atomic_test_and_set
14098 optab is not in use.
14099
14100 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
14101
14102 PR target/48596
14103 PR target/48806
14104 * config/sh/sh.c (sh_register_move_cost): Increase cost between
14105 GENERAL_REGS and FP_REGS for SImode.
14106
14107 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
14108
14109 PR target/49486
14110 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
14111 (absdi2): New expander.
14112 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
14113
14114 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
14115
14116 * config/sh/sync.md (atomic_exchange<mode>): New expander.
14117 (atomic_exchange<mode>_soft): New insn.
14118
14119 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
14120
14121 * config/sh/sync.md: Update copyright notice dates.
14122 (atomic_compare_and_swap<mode>): Use SImode for return value instead
14123 of QImode.
14124 (atomic_compare_and_swap<mode>_soft): Likewise.
14125
14126 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
14127
14128 PR target/31640
14129 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
14130 * config/sh/sh.c: Update copyright notice dates.
14131 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
14132 alignment for TARGET_HARD_SH4.
14133 (sh_option_override): Reduce default function alignment. Set
14134 loop alignment to 4 bytes when not optimizing for size.
14135
14136 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
14137
14138 PR middle-end/50335
14139 * doc/invoke.texi (floop-flatten): Remove.
14140 * toplev.c (process_options): Remove references to flag_loop_flatten.
14141 * tree-ssa-loop.c (gate_graphite_transform): Same.
14142 * common.opt (floop-flatten): Obsolete.
14143 * graphite-poly.c (apply_poly_transforms): Remove reference to
14144 flag_loop_flatten.
14145 * Makefile.in (graphite-flattening.o): Remove.
14146 * graphite-flattening.c: Remove.
14147
14148 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
14149
14150 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
14151 having mode compatible with the mode of previous compare. Substitute
14152 compare mode of previous compare with the mode, compatible
14153 with eliminated and previous compare.
14154
14155 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
14156
14157 * config/rs6000/dfp.md (floatdidd2): New define_insn.
14158
14159 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
14160
14161 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
14162 compatible with CCGOCmode and CCGCmode.
14163
14164 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
14165
14166 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
14167
14168 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14169
14170 * config/arm/arm.c (arm_sat_operator_match): New function.
14171 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
14172 * config/arm/arm.md ("insn" attribute): Add "sat" value.
14173 ("SAT", "SATrev"): New code iterators.
14174 ("SATlo", "SAThi"): New code iterator attributes.
14175 ("*satsi_<SAT:code>"): New pattern.
14176 ("*satsi_<SAT:code>_shift"): Likewise.
14177 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
14178 and "shift" attributes.
14179 ("arm_usatsihi"): Add "insn" attribute.
14180 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
14181 by powers of two. Do not allow shift by 32.
14182
14183 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
14184
14185 PR target/46716
14186 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
14187 to pass the argument in the register of "natural" mode.
14188
14189 2012-03-02 Richard Guenther <rguenther@suse.de>
14190
14191 PR tree-optimization/52406
14192 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
14193 (struct indices): Add unconstrained_base member.
14194 (struct dr_alias): Remove unused vops member.
14195 (DR_UNCONSTRAINED_BASE): New define.
14196 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
14197 add indices to allow their disambiguation. Make DR_BASE_OBJECT
14198 be an artificial access that covers the whole indexed object,
14199 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
14200 plain decl base-objects to their MEM_REF variant.
14201 (dr_may_alias_p): When the base-object of either data reference
14202 has unknown size use only points-to information.
14203 (compute_affine_dependence): Make dumps easier to read and
14204 more verbose.
14205 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
14206 DR_REF when looking for packed references.
14207 (vect_supportable_dr_alignment): Likewise.
14208
14209 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
14210
14211 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
14212 Improve conditions for peepholes of loads followed by commutative
14213 operators.
14214 * config/arm/ldmstm.md: Regenerated.
14215
14216 2012-03-02 Richard Guenther <rguenther@suse.de>
14217
14218 * BASE-VER: Set to 4.8.0.
14219
14220 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
14221
14222 * config.gcc (obsolete): Add all ARM targets using the FPA.
14223 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
14224 * doc/install.texi: Avoid references to obsolete ARM ports.
14225
14226 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
14227
14228 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
14229
14230 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
14231 Joern Rennecke <joern.rennecke@embecosm.com>
14232
14233 * doc/extend.texi: Expand and update information on interrupt
14234 attribute for Epiphany.
14235
14236 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14237
14238 * config/sh/sh-protos.h: Update copyright notice dates.
14239 * config/sh/sh.h: Likewise.
14240 * config/sh/sh.md: Likewise.
14241 * config/sh/constraints.md: Likewise.
14242 * config/sh/predicates.md: Likewise.
14243
14244 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14245
14246 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
14247 * config/sh/sh.c (tertiary_reload_operand): Likewise.
14248
14249 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14250
14251 * config/sh/constraints.md: Fix comment typo.
14252
14253 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14254
14255 PR target/52408
14256 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
14257 unsigned HOST_WIDE_INT.
14258 (zvdep_imm64): Likewise.
14259 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
14260 (vdepi_and): Likewise.
14261 Likewise for unamed 64-bit patterns.
14262 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
14263
14264 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
14265
14266 PR debug/52001
14267 PR rtl-optimization/52417
14268 * cselib.c (cselib_any_perm_equivs): New variable.
14269 (cselib_reset_table): Check that it's not set when not
14270 preserving constants.
14271 (cselib_add_permanent_equiv): Set it.
14272 (cselib_have_permanent_equivalences): New.
14273 (cselib_init, cselib_finish): Reset it.
14274 * cselib.h (cselib_have_permanent_equivalences): Declare.
14275 * alias.c (get_addr): Restore earlier behavior when there
14276 aren't permanent equivalences.
14277
14278 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
14279
14280 * config/mn10300/mn10300-modes.def: Fix copyright notice.
14281 * config/v850/v850-modes.def: Fix copyright notice.
14282
14283 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
14284
14285 * doc/extend.texi (AVR Built-in Functions): Document
14286 __builtin_avr_flash_segment.
14287
14288 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
14289 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
14290 (*split.flash_segment): New insn-and-split.
14291 * config/avr/avr.c (avr_init_builtins): Add local variables:
14292 const_memx_void_node, const_memx_ptr_type_node,
14293 char_ftype_const_memx_ptr.
14294
14295 2012-03-01 Jakub Jelinek <jakub@redhat.com>
14296
14297 PR tree-optimization/52445
14298 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
14299 add ssa_name_ver, offset and size fields and change store field
14300 to bool.
14301 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
14302 (add_or_mark_expr): Likewise. Only consider previous stores
14303 with the same size and offset.
14304 (nt_init_block): Only look at gimple_assign_single_p stmts,
14305 doesn't look at rhs2.
14306
14307 2012-03-01 Richard Guenther <rguenther@suse.de>
14308
14309 PR middle-end/52443
14310 * tree-cfg.c (verify_gimple_assign_unary): Allow any
14311 conversions from integral types to pointer types.
14312
14313 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
14314
14315 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
14316 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
14317 unintentionally removed in r184616.
14318
14319 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14320
14321 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
14322 3DNow from bdver1.
14323
14324 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14325 Uros Bizjak <ubizjak@gmail.com>
14326
14327 PR target/52437
14328 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
14329 alternatives, add "e" constraint to the new last alternative
14330 and ! to last 3 alternatives.
14331
14332 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14333
14334 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
14335 DW_AT_artificial attributes at the end of the processing.
14336 (gen_array_type_die): Likewise.
14337 (gen_enumeration_type_die): Likewise.
14338 (gen_struct_or_union_type_die): Likewise.
14339 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
14340 the parent type.
14341
14342 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14343
14344 PR middle-end/52419
14345 * expr.c (expand_assignment): If doing misaligned store that doesn't
14346 cover all mode bits, perform a RMW cycle.
14347
14348 PR tree-optimization/52429
14349 * tree-parloops.c (separate_decls_in_region_debug): Return early
14350 if var is LABEL_DECL.
14351
14352 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14353
14354 PR tree-optimization/52424
14355 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
14356 calling dom_thread_across_edge.
14357
14358 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14359
14360 * config/avr/avr.c: Move definition of TARGET macros to end of file.
14361
14362 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14363
14364 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
14365 * config/avr/avr.c (avr_output_bld): Remove unused function.
14366 (avr_out_sbxx_branch): Use "%T" to print bit position.
14367
14368 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14369
14370 * config/avr/avr.md: Untabify.
14371
14372 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14373
14374 * config/avr/avr.md (eqne): New code iterator.
14375 (*dec-and-branchsi): Use it in text peephole's condition.
14376 (*dec-and-branchhi): Ditto.
14377 (*dec-and-branchqi): Ditto.
14378
14379 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14380
14381 PR target/49939
14382 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
14383 the device does not have the skip-bug.
14384
14385 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
14386
14387 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
14388 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
14389 -mpretend-cmove): New.
14390
14391 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14392
14393 PR bootstrap/52397
14394 * df.h (struct df_d): Adjust comment that hard_regs_live_count
14395 doesn't count DEBUG_INSN refs.
14396 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
14397 for DEBUG_INSN refs.
14398
14399 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14400
14401 Partially revert:
14402
14403 2012-02-20 Richard Guenther <rguenther@suse.de>
14404 PR tree-optimization/52298
14405 * tree-vect-stmts.c (vectorizable_load): Properly use
14406 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
14407
14408 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
14409
14410 PR middle-end/51752
14411 * gimple.h (gimple_in_transaction): New.
14412 (gimple_set_in_transaction): New.
14413 (struct gimple_statement_base): Add in_transaction field.
14414 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
14415 transaction loads.
14416 (tree_ssa_lim_initialize): Compute transaction bits.
14417 * tree.h (compute_transaction_bits): Protoize.
14418 * trans-mem.c (tm_region_init): Use the heap to store BB
14419 auxilliary data.
14420 (compute_transaction_bits): New.
14421
14422 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14423
14424 * gcc.c (display_help): Document --help=common and sort entries
14425 alphabetically.
14426
14427 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14428
14429 * doc/install.texi: Document check-$LANG specific shortcuts
14430
14431 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14432
14433 PR target/51534
14434 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
14435 and vcgtu.
14436 * config/arm/arm_neon.h: Regenerate.
14437 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
14438 (neon_vcgeu): New insn.
14439 (neon_vcgtu): Likewise.
14440 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
14441 (ops): Unsigned comparison intrinsics call a different builtin.
14442
14443 2012-02-28 Richard Guenther <rguenther@suse.de>
14444
14445 PR target/52407
14446 * config/i386/i386.c (ix86_expand_vector_set): Fix element
14447 ordering for the VEC_CONCAT for two element vectors for
14448 V2SFmode, V2SImode and V2DImode.
14449
14450 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
14451
14452 PR target/49448
14453 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
14454 detecting big-endian triplets.
14455
14456 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
14457
14458 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
14459 mode if there is no type information available.
14460
14461 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
14462
14463 PR tree-optimization/53207
14464 * doc/invoke.texi: Document as experimental and relying on graphite.
14465
14466 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14467
14468 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
14469 of initializer to changes from r184614.
14470
14471 2012-02-28 Richard Guenther <rguenther@suse.de>
14472
14473 PR tree-optimization/52395
14474 * tree-sra.c (build_ref_for_offset): Also look at the base
14475 TYPE_ALIGN when figuring out the alignment of the replacement.
14476
14477 2012-02-28 Richard Guenther <rguenther@suse.de>
14478
14479 PR tree-optimization/52402
14480 * ipa-prop.c (ipa_modify_call_arguments): Properly use
14481 mis-aligned types when creating the accesses at the call site.
14482
14483 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14484
14485 * config/avr/builtins.def: New file.
14486 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
14487 * config/avr/avr.c (enum avr_builtin_id): Use it.
14488 (avr_init_builtins): Use it. And use avr_bdesc.
14489 (bdesc_1arg): Remove.
14490 (bdesc_2arg): Remove.
14491 (bdesc_3arg): Remove.
14492 (struct avr_builtin_description): Add field n_args.
14493 (avr_bdesc): New static variable using builtins.def.
14494 (avr_expand_builtin): Use it.
14495 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
14496 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
14497 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
14498
14499 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14500
14501 PR target/52148
14502 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
14503 match only one single hard register with respective hard reg rtx.
14504 (movmemx_<mode>): Ditto.
14505 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
14506 insn anatomy of movmem[x]_<mode>.
14507 (avr_out_movmem): Same for printing assembler and operand usage.
14508
14509 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14510
14511 PR target/49868
14512 PR target/52261
14513 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
14514 address spaces located outside of device flash.
14515
14516 * config/avr/avr.h (base_arch_s): Remove field n_segments.
14517 (mcu_type_s): Add field n_flash.
14518 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
14519 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
14520 (AVR_MCU): Add N_FLASH argument.
14521 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
14522 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
14523 macro __FLASH<n> if that address space makes sense for the device.
14524 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
14525 outside of target flash.
14526 (avr_asm_named_section): Ditto.
14527 (avr_asm_select_section): Ditto.
14528 (avr_addr_space_convert): Ditto.
14529 (avr_emit_movmemhi): Ditto.
14530 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
14531 address space is outside of device flash.
14532 (avr_insert_attributes): Ditto.
14533 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
14534 avr_current_arch->n_segments.
14535
14536 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
14537
14538 PR target/52352
14539 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
14540 (*movabs<mode>_2): Likewise.
14541
14542 2012-02-27 Jakub Jelinek <jakub@redhat.com>
14543
14544 PR target/52375
14545 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
14546 s_register_operand in the test instead of REG_P. Don't call
14547 gen_reg_rtx if it won't be used.
14548
14549 PR tree-optimization/52376
14550 * ipa-split.c (split_function): Ignore CLOBBER stmts.
14551
14552 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
14553
14554 * ifcvt.c (noce_get_condition): Check condition variable is not
14555 small_register_classes_for_mode_p before accepting.
14556
14557 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
14558
14559 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
14560
14561 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14562
14563 Revert:
14564 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14565 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
14566 tuning parameters.
14567 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
14568
14569 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
14570
14571 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
14572
14573 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
14574
14575 * config/sh/predicates.md: Remove blank lines.
14576 * config/sh/sh.c: Fix typos in comments.
14577 * config/sh/constraints.md: Likewise.
14578 * config/sh/sh.md: Remove blank lines.
14579 Fix typos in comments. Use ;; as comment characters.
14580
14581 2012-02-26 Walter Lee <walt@tilera.com>
14582
14583 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
14584 (replace_mov_pcrel_step2): Ditto.
14585
14586 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
14587
14588 PR debug/52001
14589 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
14590 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
14591 and locs that reference values newer than the non-canonical value
14592 at hand. Return the canonical value as a worst case.
14593 (memrefs_conflict_p): Walk canonical value's locs.
14594
14595 PR debug/52001
14596 * cselib.c (preserve_only_constants): Rename to...
14597 (preserve_constants_and_equivs): ... this. Split out...
14598 (invariant_or_equiv_p): ... this. Preserve plus expressions
14599 of other preserved expressions too.
14600 (cselib_reset_table): Adjust.
14601 * var-tracking.c (reverse_op): Use canonical value to build
14602 reverse operation.
14603
14604 2012-02-23 Kai Tietz <ktietz@redhat.com>
14605
14606 * config/i386/i386.c (ix86_delegitimize_address): Handle
14607 UNSPEC_PCREL plus displacement.
14608
14609 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
14610
14611 PR target/52261
14612 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
14613 to test for unusedness in st X addressing.
14614
14615 2012-02-24 Richard Guenther <rguenther@suse.de>
14616
14617 PR middle-end/52361
14618 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
14619 (is_gimple_reg_type): Move inline ...
14620 * gimple.h (is_gimple_reg_type): ... here.
14621
14622 2012-02-24 Richard Guenther <rguenther@suse.de>
14623
14624 PR middle-end/52361
14625 * passes.c (execute_function_todo): When verifying SSA form
14626 verify gimple form first.
14627 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
14628
14629 2012-02-24 Richard Guenther <rguenther@suse.de>
14630
14631 PR middle-end/52355
14632 * fold-const.c (fold_addr_of_array_ref_difference): New function.
14633 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
14634
14635 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14636
14637 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
14638
14639 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14640
14641 * tree-phinodes.c (make_phi_node): Mark static.
14642 * tree-flow.h (make_phi_node): Remove extern decl.
14643 * doc/gimple.texi (make_phi_node): Remove documentation.
14644
14645 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14646
14647 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
14648 * tree-ssa-sccvn.c (print_scc): Ditto.
14649
14650 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14651
14652 * doc/passes.texi (Full redundancy elimination): Fix typo.
14653
14654 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14655
14656 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
14657
14658 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
14659
14660 PR bootstrap/52287
14661 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
14662
14663 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
14664
14665 PR c/52290
14666 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
14667
14668 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
14669
14670 * config/avr/avr.md (code_stdname): Add ior, xor.
14671 (xior): New code iterator.
14672 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
14673 (*<code_stdname><mode>qi.byte1-3): Ditto.
14674
14675 2012-02-23 Jakub Jelinek <jakub@redhat.com>
14676
14677 PR tree-optimization/52019
14678 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
14679 CLOBBER stmts.
14680
14681 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14682
14683 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
14684 HAVE_INITFINI_ARRAY to work around namespace pollution in
14685 certain versions of newlib system headers.
14686 * config.in: Regenerate.
14687 * configure: Regenerate.
14688 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
14689 instead of HAVE_INITFINI_ARRAY.
14690
14691 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
14692
14693 PR target/52330
14694 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
14695 is not offsettable memory reference.
14696
14697 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14698
14699 PR target/18145
14700 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
14701 setting avr_need_clear_bss_p for __gnu_lto* symbols.
14702
14703 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14704
14705 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
14706 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
14707
14708 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14709
14710 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
14711 library on Solaris 8 even without TLS support.
14712 * configure: Regenerate.
14713
14714 2012-02-22 Richard Guenther <rguenther@suse.de>
14715
14716 PR middle-end/52329
14717 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
14718 for GIMPLE_DEBUG stmts.
14719
14720 2012-02-22 Martin Jambor <mjambor@suse.cz>
14721
14722 PR middle-end/51782
14723 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
14724 according to the base object.
14725
14726 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14727
14728 PR rtl-optimization/50063
14729 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
14730 and 2 (8-bit SP) in operand 2.
14731 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
14732 setup to use movhi_sp_r instead of vanilla move to write SP.
14733 Adjust REG_CFA notes to superseed unspec.
14734 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
14735 of vanilla move.
14736 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
14737 known to be off) only with TARGET_NO_INTERRUPTS. Never use
14738 irq_state 1 (IRQ known to be on) here.
14739
14740 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
14741
14742 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
14743 WORDS_BIG_ENDIAN.
14744 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
14745 assign_hard_reg): Likewise.
14746
14747 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14748
14749 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
14750
14751 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14752
14753 * config/avr/avr.md
14754 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
14755 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
14756
14757 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14758
14759 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
14760 prototype from here to...
14761 * config/avr/avr.h: ...here.
14762
14763 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
14764
14765 PR target/52294
14766 * thumb2.md (thumb2_shiftsi3_short): Split register and
14767 immediate shifts. For register shifts tie operands 0 and 1.
14768 (peephole2 for above): Check that register-controlled shifts
14769 have suitably tied operands.
14770
14771 2012-02-21 Quentin Neill <quentin.neill@amd.com>
14772
14773 PR target/52137
14774 * config/i386/bdver1.md (bdver1_call, bdver1_push,
14775 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
14776 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
14777 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
14778 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
14779 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
14780 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
14781 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
14782 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
14783 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
14784 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
14785 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
14786 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
14787 bdver1_ssevector_avx256_unaligned_load,
14788 bdver1_ssevector_sse128_unaligned_load,
14789 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
14790 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
14791 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
14792 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
14793 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
14794 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
14795 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
14796 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
14797 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
14798 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
14799 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
14800 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
14801 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
14802 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
14803 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
14804 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
14805 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
14806 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
14807 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
14808 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
14809 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
14810 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
14811 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
14812 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
14813 bdver1_ssediv_double_load, bdver1_ssediv_double,
14814 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
14815 Add "bdver2" attribute.
14816
14817 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14818
14819 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
14820 default if possible and not specified otherwise.
14821
14822 2012-02-21 Richard Guenther <rguenther@suse.de>
14823
14824 PR middle-end/52314
14825 * gimplify.c (create_tmp_from_val): Use the main variant type
14826 for the type of the temporary we create.
14827
14828 2012-02-21 Richard Guenther <rguenther@suse.de>
14829
14830 PR tree-optimization/52324
14831 * gimplify.c (gimplify_expr): When re-gimplifying expressions
14832 do not gimplify a MEM_REF address operand if it is already
14833 in suitable form.
14834
14835 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14836
14837 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
14838 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
14839
14840 2012-02-21 Richard Guenther <rguenther@suse.de>
14841
14842 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
14843 nested_in_vect_loop.
14844
14845 2012-02-21 Jakub Jelinek <jakub@redhat.com>
14846
14847 PR tree-optimization/52318
14848 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
14849 vdef also to non-pure/const call stmts in the sequence.
14850
14851 2012-02-21 Tristan Gingold <gingold@adacore.com>
14852
14853 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
14854
14855 2012-02-20 David S. Miller <davem@davemloft.net>
14856
14857 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
14858 don't use the "rd %pc" instruction on v9 for PIC register loads.
14859
14860 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
14861
14862 PR middle-end/52141
14863 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
14864 in a transaction safe function.
14865
14866 2012-02-20 Kai Tietz <ktietz@redhat.com>
14867
14868 PR target/52238
14869 * stor-layout.c (place_field): Handle desired_align for
14870 ms-bitfields, too.
14871
14872 2012-02-20 Richard Guenther <rguenther@suse.de>
14873
14874 PR tree-optimization/52298
14875 * tree-vect-stmts.c (vectorizable_store): Properly use
14876 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
14877 outer loops.
14878 (vectorizable_load): Likewise.
14879 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
14880 Access DR_STEP after ensuring it is not NULL.
14881
14882 2012-02-20 Jakub Jelinek <jakub@redhat.com>
14883
14884 PR tree-optimization/52286
14885 * fold-const.c (fold_binary_loc): For (X & C1) | C2
14886 optimization use double_int_to_tree instead of build_int_cst_wide,
14887 rewrite to use double_int vars.
14888
14889 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14890
14891 PR target/50166
14892 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
14893 Define _start.
14894 Remove -e 0 from $gcc_cv_ld invocation.
14895 Only use __GLIBC_PREREQ if defined.
14896 Enable on Solaris since Solaris 8 patch.
14897 (gcc_SUN_LD_VERSION): New macro.
14898 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
14899 gcc_SUN_LD_VERSION for version number format.
14900 * configure: Regenerate.
14901 * varasm.c (get_elf_initfini_array_priority_section): Set
14902 SECTION_NOTYPE for non-default priority.
14903 Use get_section instead of get_unnamed_section to emit
14904 .init_array/.fini_array with default priority.
14905
14906 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
14907
14908 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
14909 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
14910 (mips_start_unique_function, mips_output_mips16_rdhwr)
14911 (mips_code_end): New functions.
14912 (TARGET_ASM_CODE_END): Define.
14913
14914 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
14915
14916 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
14917 to stubs with non-sibling calls.
14918
14919 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
14920
14921 * doc/invoke.texi (-fira-* options): Copy-edit.
14922 (ira-* parameters): Copy-edit.
14923
14924 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
14925
14926 * doc/invoke.texi: Minor copy-edits to bring into conformance with
14927 GCC coding conventions.
14928
14929 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
14930
14931 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
14932 when used as adjectives.
14933
14934 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
14935
14936 * doc/invoke.texi: Clean up "that"/"which" confusion.
14937
14938 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
14939
14940 * system.h: Poison SMALL_REGISTER_CLASSES
14941 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
14942 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
14943
14944 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14945
14946 PR tree-optimization/52285
14947 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
14948 when deciding if a call is a tail call or tail recursion.
14949
14950 2012-02-16 Kai Tietz <ktietz@redhat.com>
14951
14952 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14953 interger-constant displacement for UNSPEC_PCREL.
14954
14955 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14956
14957 PR rtl-optimization/52208
14958 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
14959 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
14960
14961 PR tree-optimization/52255
14962 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
14963 loop->header has virtual PHI, but exit_e->dest doesn't, add
14964 virtual PHI to exit_e->dest and adjust all uses after the loop.
14965
14966 PR debug/52260
14967 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
14968 children with clone_tree_hash, not after it.
14969
14970 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
14971
14972 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
14973 extended identifiers.
14974
14975 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14976
14977 PR middle-end/51929
14978 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
14979 a same_body_alias, also test whether e->callee isn't a former
14980 or current clone of the decl this is a same body alias of.
14981
14982 PR translation/52264
14983 * cgraphunit.c (verify_cgraph_node): Fix a typo.
14984
14985 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
14986
14987 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
14988
14989 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14990
14991 PR target/52199
14992 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14993 force_reg instead of copy_to_reg for better optimization. Force
14994 non-register or memory operands into a register.
14995
14996 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
14997
14998 * extend.texi: Reserve upper bits of memory model for future use.
14999
15000 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
15001 Anatoly Sokolov <aesok@post.ru>
15002 Eric Weddington <eric.weddington@atmel.com>
15003
15004 PR target/52261
15005 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
15006 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
15007 Rewrite initializers for .macro.
15008 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
15009 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
15010 atxmega32d4, atxmega32x1.
15011 avrxmega4: atxmega64a3, atxmega64d3.
15012 avrxmega5: atxmega64a1, atxmega64a1u.
15013 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
15014 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
15015 avrxmega7: atxmega128a1, atxmega128a1u.
15016 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
15017 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
15018 (struct base_arch_s): Rename reserved to xmega_p.
15019 Rename reserved2 to have_rampd.
15020 (AVR_XMEGA): New define.
15021 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
15022 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
15023 * config/avr/predicates.md (io_address_operand): Take into
15024 account SFR offset.
15025 (low_io_address_operand): Ditto.
15026 (high_io_address_operand): Ditto.
15027 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
15028 (enabled, movhi_sp_r): Use them.
15029 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
15030 cpp_define_formatted to built-in define __AVR_ARCH__.
15031 (__AVR_XMEGA__): New built-in define.
15032 (__AVR_HAVE_RAMPD__): New built-in define.
15033 (__AVR_HAVE_RAMPX__): New built-in define.
15034 (__AVR_HAVE_RAMPY__): New built-in define.
15035 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
15036
15037 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
15038 (avr_option_override): Initialize them.
15039 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
15040 (avr_init_expanders): Initialize them. No more block several calls.
15041 (emit_push_sfr): New static function.
15042 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
15043 Handle AVR_XMEGA.
15044 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
15045 (avr_print_operand): Print addreeses as symbols for
15046 RAMPX, RAMPY, RAMPD, CCP.
15047 (output_movhi): Handle AVR_XMEGA when writing to SP.
15048 (avr_out_movhi_mr_r_xmega): New static function.
15049 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
15050 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
15051 __RAMPD__, __CCP__ as needed.
15052
15053 * config/avr/multilib.h: Regenerate.
15054 * config/avr/t-multilib: Regenerate.
15055 * config/avr/avr-tables.opt: Regenerate.
15056
15057 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
15058
15059 PR tree-optimization/50561
15060 * graphite-flattening.c (lst_project_loop): Do not
15061 remove old scattering dimensions after flattening.
15062 (lst_do_flatten): Likewise.
15063
15064 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
15065
15066 * doc/extend.texi (AVR Built-in Functions): Remove doc for
15067 __builtin_avr_map8, __builtin_avr_map16.
15068 Document __builtin_avr_insert_bits.
15069
15070 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
15071 (insert_bits): New insn.
15072 (adjust_len.map_bits): Rename to insert_bits.
15073 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
15074 * avr-protos.h (avr_out_map_bits): Remove.
15075 (avr_out_insert_bits, avr_has_nibble_0xf): New.
15076 * config/avr/constraints.md (Cxf,C0f): New.
15077 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
15078 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
15079 New built-in define __BUILTIN_AVR_INSERT_BITS.
15080 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
15081 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
15082 (avr_move_bits): Rewrite.
15083 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
15084 functions.
15085 (avr_map_op_t): New typedef.
15086 (avr_map_op): New static variable.
15087 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
15088 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
15089 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
15090 (bdesc_3arg, avr_expand_triop_builtin): New.
15091 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
15092 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
15093 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
15094 (avr_map_equal_p, avr_map_sig_p): Remove.
15095 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
15096 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
15097 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
15098 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
15099 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
15100 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
15101
15102 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
15103
15104 * config/c6x/c6x.md (reserve_cycles): New attribute.
15105 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
15106 don't reserve functional units after the branch occurs.
15107
15108 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
15109
15110 PR middle-end/52142
15111 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
15112 functions into non-tm_pure functions.
15113
15114 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
15115
15116 PR lto/52178
15117 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
15118 (iterative_hash_canonical_type): Likewise.
15119 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
15120 the dead edges.
15121
15122 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
15123
15124 * haifa-sched.c (prune_ready_list): Ensure that if there is a
15125 sched-group insn, it either remains alone or the entire list is pruned.
15126
15127 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
15128
15129 * doc/install.texi (Prerequisites): Fix grammar.
15130 (Configuration): Likewise.
15131
15132 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
15133
15134 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
15135 MPC as part of GCC before describing configuring with --with-gmp etc.
15136 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
15137 sources are present.
15138
15139 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15140
15141 PR debug/51950
15142 * dwarf2out.c (clone_tree_hash): New function.
15143 (copy_decls_walk): Use it instead of clone_tree.
15144
15145 2012-02-14 Richard Guenther <rguenther@suse.de>
15146
15147 PR tree-optimization/52244
15148 PR tree-optimization/51528
15149 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
15150 replacements for integral types.
15151
15152 2012-02-14 Walter Lee <walt@tilera.com>
15153
15154 * config.gcc: Handle tilegx and tilepro.
15155 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
15156 tilegx and tilepro.
15157 Add HAVE_AS_TLS check for tilegx and tilepro.
15158 * configure: Regenerate.
15159 * doc/contrib.texi: Add Mat Hostetter and self.
15160 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
15161 Document instruction intrinsics and network accessing intrinsics.
15162 (TILEPro Built-in Functions): New node. Document instruction
15163 intrinsics and network accessing intrinsics.
15164 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
15165 (Specific, tilepro-*-linux*): Likewise.
15166 * doc/invoke.texi (TILE-Gx Options): New section.
15167 (TILEPro Options): New section.
15168 * doc/md.texi (TILE-Gx): New section.
15169 (TILEPro): New section.
15170 * common/config/tilegx/tilegx-common.c: New file.
15171 * common/config/tilepro/tilepro-common.c: New file.
15172 * config/tilegx/constraints.md: New file.
15173 * config/tilegx/linux.h: New file.
15174 * config/tilegx/mul-tables.c: New file.
15175 * config/tilegx/predicates.md: New file.
15176 * config/tilegx/sync.md: New file.
15177 * config/tilegx/t-tilegx: New file.
15178 * config/tilegx/tilegx-builtins.h: New file.
15179 * config/tilegx/tilegx-c.c: New file.
15180 * config/tilegx/tilegx-generic.md: New file.
15181 * config/tilegx/tilegx-modes.def: New file.
15182 * config/tilegx/tilegx-multiply.h: New file.
15183 * config/tilegx/tilegx-protos.h: New file.
15184 * config/tilegx/tilegx.c: New file.
15185 * config/tilegx/tilegx.h: New file.
15186 * config/tilegx/tilegx.md: New file.
15187 * config/tilegx/tilegx.opt: New file.
15188 * config/tilepro/constraints.md: New file.
15189 * config/tilepro/gen-mul-tables.cc: New file.
15190 * config/tilepro/linux.h: New file.
15191 * config/tilepro/mul-tables.c: New file.
15192 * config/tilepro/predicates.md: New file.
15193 * config/tilepro/t-tilepro: New file.
15194 * config/tilepro/tilepro-builtins.h: New file.
15195 * config/tilepro/tilepro-c.c: New file.
15196 * config/tilepro/tilepro-generic.md: New file.
15197 * config/tilepro/tilepro-modes.def: New file.
15198 * config/tilepro/tilepro-multiply.h: New file.
15199 * config/tilepro/tilepro-protos.h: New file.
15200 * config/tilepro/tilepro.c: New file.
15201 * config/tilepro/tilepro.h: New file.
15202 * config/tilepro/tilepro.md: New file.
15203 * config/tilepro/tilepro.opt: New file.
15204
15205 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15206
15207 PR tree-optimization/52210
15208 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
15209 vect_model_simple_cost with two entry vect_def_type array instead
15210 of an address of dt.
15211
15212 2012-02-14 Richard Guenther <rguenther@suse.de>
15213
15214 PR lto/52178
15215 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
15216 Do not stream DECL_QUALIFIER.
15217 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
15218 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
15219 (find_decls_types_r): Do not walk DECL_QUALIFIER.
15220
15221 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15222
15223 PR c/52181
15224 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
15225 newdecl.
15226
15227 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15228
15229 PR bootstrap/52172
15230 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
15231 * cselib.c (cselib_subst_to_values_from_insn): New function.
15232 * sched-deps.c (add_insn_mem_dependence,
15233 sched_analyze_1, sched_analyze_2): Use it.
15234
15235 2012-02-13 Jan Hubicka <jh@suse.cz>
15236
15237 PR middle-end/52214
15238 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
15239
15240 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
15241
15242 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
15243 (GTM_SELF_SPECS): Define if not already defined.
15244 (driver_self_specs): Add GTM_SELF_SPECS.
15245 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
15246 (GTM_SELF_SPECS): Define.
15247 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
15248 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
15249
15250 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15251
15252 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
15253 away if seen.
15254
15255 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
15256
15257 PR middle-end/52230
15258 * omp-low.c (expand_omp_for): If a static schedule without chunk size
15259 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
15260
15261 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
15262
15263 PR c/52190
15264 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
15265
15266 2012-02-13 Richard Guenther <rguenther@suse.de>
15267
15268 PR translation/52211
15269 * passes.c (enable_disable_pass): Fix typo.
15270
15271 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15272
15273 PR middle-end/52209
15274 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
15275 XOR for reduce_bit_field if type is unsigned.
15276
15277 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
15278
15279 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
15280 disallow changes from SFmode to mode with different size in FP regs.
15281
15282 2012-02-12 Robert Millan <rmh@gnu.org>
15283 Gerald Pfeifer <gerald@pfeifer.com>
15284
15285 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
15286 Tweak comment.
15287
15288 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
15289
15290 PR rtl-optimization/52175
15291 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
15292 to frame-related instructions.
15293
15294 2012-02-10 Jason Merrill <jason@redhat.com>
15295
15296 PR c++/51910
15297 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
15298 (demangle_new_symbols): Fill it.
15299 (scan_linker_output): Walk it.
15300 (start_tweaking): Split out from scan_linker_output.
15301 (maybe_tweak): Update sym->chosen.
15302 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
15303
15304 2012-02-11 Jakub Jelinek <jakub@redhat.com>
15305
15306 PR debug/52132
15307 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
15308
15309 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
15310
15311 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
15312 having the same mode as previous compare.
15313
15314 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
15315
15316 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
15317 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
15318 (nonlocal_goto_internal): Likewise.
15319 (nonlocal_goto): Emit a use and an indirect jump directly.
15320
15321 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
15322
15323 PR c/52190
15324 * doc/extend.texi : Update comments for __atomic_compare_exchange and
15325 __atomic_{is,always}_lock_free.
15326
15327 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
15328
15329 PR target/52146
15330 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
15331 negative constant address for TARGET_X32.
15332
15333 2012-02-10 Richard Henderson <rth@redhat.com>
15334
15335 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
15336 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
15337 for GIMPLE_TRANSACTION. Tidy if's into a switch.
15338
15339 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15340 Ira Rosen <irar@il.ibm.com>
15341
15342 PR tree-optimization/50031
15343 * targhooks.c (default_builtin_vectorization_cost): Handle
15344 vec_promote_demote.
15345 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
15346 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
15347 all types of reduction and pattern statements.
15348 (vect_estimate_min_profitable_iters): Likewise.
15349 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
15350 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
15351 for explicit realigns.
15352 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
15353 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
15354 vec_promote_demote.
15355 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15356 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
15357 vec_perm for VSX and handle vec_promote_demote.
15358
15359 2012-02-10 Jakub Jelinek <jakub@redhat.com>
15360
15361 PR middle-end/52177
15362 * builtins.c (fold_builtin_atomic_always_lock_free,
15363 expand_builtin_atomic_always_lock_free,
15364 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
15365 Return and/or test boolean_true_node/boolean_false_node instead of
15366 integer_one_node/integer_zero_node.
15367
15368 2012-02-10 Jan Hubicka <jh@suse.cz>
15369
15370 PR middle-end/48600
15371 * predict.c (predict_paths_for_bb): Prevent looping.
15372 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
15373
15374 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
15375
15376 * config/arm/arm.c (output_move_double): In one case properly
15377 count number of instructions that will be emitted.
15378
15379 2012-02-10 Richard Guenther <rguenther@suse.de>
15380
15381 PR translation/52193
15382 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
15383
15384 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
15385
15386 PR middle-end/52140
15387 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
15388
15389 2012-02-09 Jakub Jelinek <jakub@redhat.com>
15390
15391 PR debug/52165
15392 * var-tracking.c (emit_note_insn_var_location): If
15393 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
15394 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
15395 non-NOTE_DURING_CALL_P insn.
15396
15397 2012-02-09 Bin Cheng <bin.cheng@arm.com>
15398
15399 PR middle-end/51867
15400 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
15401
15402 2012-02-08 Magnus Granberg <zorry@gentoo.org>
15403
15404 PR driver/48524
15405 * gcc.c (switch_matches) Support switches with separated form,
15406 -D and -U.
15407
15408 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
15409
15410 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
15411 (SP_ADDR): Ditto.
15412 (RAMPZ_ADDR): Ditto.
15413 * config/avr/avr.c (avr_addr_t): New typedef.
15414 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
15415 (avr_init_expanders): Initialize it.
15416 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
15417 SREG_ADDR.
15418 (expand_epilogue): Ditto.
15419 (avr_print_operand): Ditto.
15420 (avr_file_start): Ditto.
15421 (avr_emit_movmemhi): Ditto.
15422
15423 2012-02-08 Richard Guenther <rguenther@suse.de>
15424
15425 PR tree-optimization/46886
15426 * tree-flow.h (do_while_loop_p): Declare.
15427 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
15428 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
15429
15430 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
15431
15432 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
15433 always succeed for integers larger than a native word.
15434
15435 2012-02-08 Richard Guenther <rguenther@suse.de>
15436
15437 PR rtl-optimization/52170
15438 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
15439 properly handle integer vector modes.
15440
15441 2012-02-08 Jakub Jelinek <jakub@redhat.com>
15442
15443 PR gcov-profile/52150
15444 * coverage.c: Include target.h.
15445 (build_var): Call targetm.strip_name_encoding on the assembler name.
15446 Change one _ into . or $ if the target allows it.
15447 * Makefile.in (coverage.o): Depend on $(TARGET_H).
15448
15449 PR rtl-optimization/52139
15450 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
15451 is a BARRIER after emit_insn_after_noloc, move BB_END
15452 to the last non-BARRIER insn before it.
15453
15454 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
15455
15456 PR middle-end/24306
15457 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
15458 (mips_gimplify_va_arg_expr): Call it instead of
15459 std_gimplify_va_arg_expr.
15460
15461 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15462
15463 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
15464 message for -mno-pointers-to-nested-function.
15465
15466 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
15467
15468 PR middle-end/51994
15469 * expr.c (get_inner_reference): If there is an offset, add a negative
15470 bit position to it (if any).
15471
15472 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15473
15474 PR rtl-optimization/52060
15475 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
15476 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
15477 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
15478 and/or i0src_copy2 when needed.
15479
15480 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15481
15482 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
15483 or LTOPLUGINSONAME if have_c.
15484
15485 * config/freebsd-spec.h: Add comment about what macros can be defined
15486 in this header.
15487 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
15488 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
15489 here instead.
15490
15491 2012-02-07 Richard Guenther <rguenther@suse.de>
15492
15493 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
15494 newline in -alias dumps.
15495
15496 2012-02-07 Kai Tietz <ktietz@redhat.com>
15497 Dave Korn <dave.korn.cygwin@gmail.com>
15498
15499 PR target/40068
15500 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
15501 Take care that typinfo gets dllexport-attribute.
15502
15503 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15504
15505 PR middle-end/52074
15506 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
15507 if modifier < EXPAND_SUM call force_operand on the result.
15508
15509 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
15510
15511 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
15512 adding __forwarder_dst__ prefix if a forwarder_section attribute is
15513 present.
15514 (epiphany_function_type): Replace types for specific interrupts with
15515 EPIPHANY_FUNCTION_INTERRUPT.
15516 (EPIPHANY_INTERRUPT_P): Update.
15517 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
15518 New static function.
15519 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
15520 <disinterrupt>: Affects type identity.
15521 (epiphany_handle_interrupt_attribute): Handle variable number of
15522 arguments.
15523 (epiphany_compute_function_type): Update for new
15524 epiphany_function_type definition.
15525 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
15526 handlers with a longcall forwarder.
15527 (epiphany_start_function): Handle multiple interrupt arguments and/or
15528 forwarder_section attribute.
15529
15530 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
15531 libgloss.
15532
15533 2012-02-07 Alan Modra <amodra@gmail.com>
15534
15535 PR target/52107
15536 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
15537 subregs of TFmode.
15538
15539 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15540
15541 PR tree-optimization/50969
15542 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
15543 use vec_perm rather than vector_stmt.
15544 (vect_model_load_cost): Likewise.
15545 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
15546 vec_perm to be the same as other vector statements.
15547 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
15548 cost of vec_perm for TARGET_VSX.
15549
15550 2012-02-06 Richard Guenther <rguenther@suse.de>
15551
15552 PR tree-optimization/52115
15553 * tree-sra.c (access_has_replacements_p): New function.
15554 (sra_modify_assign): Use it to decide whether a use is uninitialized.
15555
15556 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
15557
15558 PR middle-end/52047
15559 * trans-mem.c (expand_call_tm): Add an assertion.
15560 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
15561 functions.
15562
15563 2012-02-06 Richard Guenther <rguenther@suse.de>
15564
15565 PR tree-optimization/50955
15566 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
15567 raise cost of expressions that replace an address with an
15568 expression based on a different pointer.
15569
15570 2012-02-06 Jakub Jelinek <jakub@redhat.com>
15571
15572 PR target/52129
15573 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
15574 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
15575
15576 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
15577
15578 PR c++/48680
15579 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
15580 -Weffc++ and specify guidelines come from second edition.
15581
15582 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
15583
15584 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
15585 (sibcall_value_multiple_internal, call_split, call_internal_direct)
15586 (call_direct_split, call_value_split, call_value_internal_direct)
15587 (call_value_direct_split, call_value_multiple_split): Use jal and
15588 jal_macro attributes.
15589
15590 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
15591
15592 * reload1.c (reload_regs_reach_end_p): Replace with...
15593 (reload_reg_rtx_reaches_end_p): ...this function.
15594 (new_spill_reg_store): Update commentary.
15595 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
15596 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
15597 before setting new_spill_reg_store.
15598 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
15599 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
15600 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
15601 for non-spill reload registers.
15602
15603 2012-02-05 Ira Rosen <irar@il.ibm.com>
15604
15605 PR tree-optimization/52091
15606 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
15607 (vect_is_simple_use_1): Likewise.
15608 * tree-vect-loop.c (vectorizable_reduction): Update calls
15609 to vect_is_simple_use_1 and vect_is_simple_use.
15610 (vectorizable_live_operation): Likewise.
15611 * tree-vect-patterns.c (widened_name_p,
15612 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
15613 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
15614 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
15615 vectorizable_shift,vectorizable_operation, vectorizable_store,
15616 vectorizable_load): Likewise.
15617 (vect_is_simple_cond): Add an argument, pass it to
15618 vect_is_simple_use_1.
15619 (vectorizable_condition): Update calls to vect_is_simple_cond,
15620 vect_is_simple_use.
15621 (vect_is_simple_use): Add an argument, the statement in which
15622 OPERAND is used. Check that if OPERAND's def stmt is a double
15623 reduction phi node, the use is a phi node too.
15624 (vect_is_simple_use_1): Add an argument, pass it to
15625 vect_is_simple_use.
15626 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
15627 to vect_is_simple_use.
15628
15629 2012-02-04 Jakub Jelinek <jakub@redhat.com>
15630
15631 PR rtl-optimization/52095
15632 * modulo-sched.c (dump_insn_locator): New function.
15633 (loop_canon_p, sms_schedule): Use it.
15634
15635 PR rtl-optimization/52113
15636 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
15637 even for decomposable shift/zext insns.
15638
15639 2012-02-03 Jakub Jelinek <jakub@redhat.com>
15640 Zdenek Dvorak <ook@ucw.cz>
15641
15642 PR rtl-optimization/52092
15643 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
15644 on get_iv_value result.
15645
15646 2012-02-02 Andrew Pinski <apinski@cavium.com>
15647
15648 PR middle-end/47982
15649 PR middle-end/43967
15650 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
15651
15652 2012-02-02 Jakub Jelinek <jakub@redhat.com>
15653
15654 PR middle-end/48071
15655 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
15656
15657 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
15658
15659 PR rtl-optimization/49800
15660 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
15661 (sched_finish): Call regstat_free_n_sets_and_refs.
15662
15663 2012-02-02 Jia Liu <proljc@gmail.com>
15664
15665 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
15666 than operand 2.
15667
15668 2012-02-02 Jan Hubicka <jh@suse.cz>
15669 Tom de Vries <tom@codesourcery.com>
15670
15671 PR middle-end/51998
15672 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
15673 * varpool.c (varpool_analyze_pending_decls): Likewise.
15674
15675 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
15676 Jayant R Sonar <jayant.sonar@kpitcummins.com>
15677
15678 * config.gcc: Add cr16-* support.
15679
15680 * doc/extend.texi: Document cr16 extensions.
15681 * doc/install.texi: Document cr16 install.
15682 * doc/invoke.texi: Document cr16 options.
15683 * doc/md.texi: Document cr16 constraints.
15684
15685 * common/config/cr16/cr16-common.c: New file.
15686 * config/cr16/cr16.c: New file.
15687 * config/cr16/cr16.h: New file.
15688 * config/cr16/cr16.md: New file.
15689 * config/cr16/cr16.opt: New file.
15690 * config/cr16/cr16-protos.h: New file.
15691 * config/cr16/predicates.md: New file.
15692 * config/cr16/constraints.md: New file.
15693 * config/cr16/t-cr16: New file.
15694
15695 2012-02-02 Jakub Jelinek <jakub@redhat.com>
15696
15697 PR target/52086
15698 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
15699 that operands[2] is either immediate, or q_regs_operand.
15700
15701 PR tree-optimization/52073
15702 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
15703 a pattern stmt for pattern uses, ignore uses outside of the loop.
15704
15705 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
15706
15707 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
15708 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
15709 (OUT_AS1, OUT_AS2): Remove.
15710
15711 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
15712
15713 PR rtl-optimization/51374
15714 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
15715 to cross other volatile_refs_p insns.
15716
15717 2012-02-01 Richard Guenther <rguenther@suse.de>
15718
15719 * doc/invoke.texi (fno-inline): Clarify documentation.
15720 (finline-small-functions): Likewise.
15721 (finline-functions): Likewise.
15722 * common.opt (finline): Adjust comment and documentation.
15723 (finline-small-functions): Clarify documentation.
15724 (finline-functions): Likewise.
15725 (finline-functions-called-once): Likewise.
15726
15727 2012-02-01 Tristan Gingold <gingold@adacore.com>
15728
15729 * c-typeck.c (composite_type): Keep mode for pointers.
15730
15731 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
15732
15733 * function.h (regno_reg_rtx): Adjust comment.
15734 * reginfo.c (init_reg_modes_target): Only use the previous mode
15735 if it fits within one register. Remove MIPS comment.
15736
15737 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15738
15739 PR bootstrap/52058
15740 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
15741
15742 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15743
15744 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
15745 to srak instruction.
15746
15747 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
15748
15749 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
15750
15751 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15752
15753 PR bootstrap/52041
15754 PR bootstrap/52039
15755 PR target/51974
15756 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
15757
15758 2012-01-31 Richard Guenther <rguenther@suse.de>
15759
15760 PR tree-optimization/51528
15761 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
15762 assigns.
15763
15764 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15765
15766 PR bootstrap/52041
15767 PR bootstrap/52039
15768 PR target/51974
15769 * ree.c (add_removable_extension): Change def_map argument
15770 to unsigned *, store in def_map 1 + offset into *insn_list vector
15771 instead of pointers into the vector.
15772 (find_removable_extensions): Adjust caller.
15773
15774 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
15775
15776 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
15777 Transform all "* quoted-c-code" to { c-code }.
15778 Remove redundant test for "optimize" in combine patterns.
15779 Move (include "avr-dimode.md") to end of file.
15780
15781 2012-01-30 Bin Cheng <bin.cheng@arm.com>
15782
15783 PR target/51835
15784 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15785 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
15786
15787 2012-01-30 Richard Guenther <rguenther@suse.de>
15788
15789 PR tree-optimization/52028
15790 * tree-loop-distribution.c (ldist_gen): Properly update
15791 virtual SSA form.
15792
15793 2012-01-30 Jakub Jelinek <jakub@redhat.com>
15794
15795 PR debug/52027
15796 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
15797 set_cur_line_info_table if not emitting debug info.
15798
15799 PR tree-optimization/52046
15800 * tree-vect-patterns.c (check_bool_pattern): Give up if
15801 a comparison could throw.
15802
15803 PR debug/52048
15804 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
15805
15806 2012-01-30 Richard Guenther <rguenther@suse.de>
15807
15808 PR tree-optimization/52045
15809 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
15810 SSA form if cfgcleanup did anything.
15811
15812 2012-01-30 Richard Guenther <rguenther@suse.de>
15813
15814 PR tree-optimization/52045
15815 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
15816 before computing final todo.
15817
15818 2012-01-30 Richard Guenther <rguenther@suse.de>
15819
15820 PR tree-optimization/51528
15821 * tree-sra.c (sra_modify_assign): Re-factor in preparation
15822 for PR51528 fix.
15823
15824 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
15825
15826 * df-problems.c (df_kill_notes): Check that the use refers
15827 to the note under examination.
15828
15829 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
15830
15831 PR target/51920
15832 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
15833 parameter and use short-lived pseudos.
15834 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
15835 (sparc_expand_vector_init): Const-ify local variables and adjust
15836 calls to above functions.
15837
15838 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
15839
15840 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
15841
15842 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
15843
15844 * doc/invoke.texi: Make usage of "compile time" and
15845 "run time"/"runtime" consistent throughout the file.
15846
15847 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
15848
15849 * config/alpha/alpha.c (alpha_option_override): Default to
15850 full IEEE compliance mode for Go language.
15851
15852 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
15853
15854 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
15855 (LINK_SSP_SPEC): Define.
15856
15857 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15858
15859 PR target/51871
15860 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
15861 stubs.
15862
15863 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
15864
15865 * doc/invoke.texi: Correct hyphenation of "floating point",
15866 "double precision", and related terminology throughout the file.
15867
15868 2012-01-28 Jakub Jelinek <jakub@redhat.com>
15869
15870 PR target/52006
15871 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
15872 arm_general_register_operand predicate for operand 2 instead of
15873 register_operand.
15874
15875 2012-01-27 Ian Lance Taylor <iant@google.com>
15876
15877 PR go/47656
15878 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
15879 * builtins.c (expand_builtin_init_trampoline): Add onstack
15880 parameter. Change caller.
15881 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15882 * tree.c (build_common_builtin_nodes): Declare
15883 __builtin_init_heap_trampoline.
15884
15885 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
15886
15887 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
15888 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
15889 * config/avr/avr.c: Ditto.
15890 (avr_regnames): Remove because unused.
15891 * config/avr/avr.md (*cpse.ne): New peephole.
15892 (*cpse.eq): New peephole from former cpse peepholes.
15893
15894 2012-01-27 Michael Eager <eager@eagercon.com>
15895
15896 * config/microblaze.c (microblaze_emit_compare): Correct
15897 test after pcmp instruction.
15898
15899 2012-01-27 Richard Guenther <rguenther@suse.de>
15900
15901 PR tree-optimization/52020
15902 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
15903
15904 2012-01-27 Richard Guenther <rguenther@suse.de>
15905
15906 * ipa-pure-const.c (check_stmt): Clobbers do not make a
15907 function non-const/pure.
15908
15909 2012-01-27 Richard Guenther <rguenther@suse.de>
15910
15911 PR tree-optimization/50444
15912 * tree-sra.c (build_ref_for_offset): Properly adjust the
15913 MEM_REF type for unaligned accesses.
15914
15915 2012-01-27 Richard Guenther <rguenther@suse.de>
15916
15917 PR tree-optimization/50444
15918 * expr.c (mem_ref_refers_to_non_mem_p): New function.
15919 (expand_assignment): Use it. Properly handle misaligned
15920 bases when expanding stores to component references.
15921 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
15922 refactor that case.
15923
15924 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
15925
15926 PR middle-end/51389
15927 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
15928 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
15929 * tree-data-ref.c (find_data_references_in_loop): Make static.
15930 (compute_all_dependences): Change return type to bool. Bail out
15931 for too many datarefs in a loop. Move the hunk resetting the data
15932 dependences vector from ...
15933 (compute_data_dependences_for_loop): ... here. Account for
15934 compute_all_dependences returning false.
15935 (compute_data_dependences_for_bb): Likewise.
15936 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
15937 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
15938
15939 2012-01-27 Richard Guenther <rguenther@suse.de>
15940
15941 PR middle-end/51959
15942 * expr.c (store_field): Use the alias-set of the scratch memory
15943 for storing to it.
15944
15945 2012-01-27 Tom de Vries <tom@codesourcery.com>
15946
15947 PR tree-optimization/51990
15948 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15949 WITH_SIZE_EXPR.
15950 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
15951
15952 2012-01-27 Jakub Jelinek <jakub@redhat.com>
15953
15954 PR debug/52001
15955 * var-tracking.c (reverse_op): Don't add any reverse operation
15956 if V already has any constant locations.
15957
15958 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
15959
15960 * doc/invoke.texi: Correct usage of "command line" (noun)
15961 vs "command-line" (adjective) throughout.
15962
15963 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
15964
15965 * doc/invoke.texi (Language Independent Options): Move
15966 -Wcoverage-mismatch blurb from here....
15967 (Warning Options): ...to here.
15968
15969 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
15970
15971 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15972 Set rs6000_always_hint to false for 476.
15973
15974 2012-01-27 Matthias Klose <doko@ubuntu.com>
15975
15976 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
15977 system root.
15978 * incpath.c (add_standard_paths): Likewise.
15979
15980 2012-01-27 Richard Henderson <rth@redhat.com>
15981
15982 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15983 * config/m68k/sync.md (atomic_test_and_set): Rename from
15984 sync_test_and_setqi and adjust the operands.
15985 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
15986 and unconditionally enable.
15987
15988 2012-01-27 Richard Henderson <rth@redhat.com>
15989
15990 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15991 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
15992 (ldstub): Rename from ldstubqi.
15993 (ldstub<I24MODE>): Remove.
15994
15995 2012-01-27 Richard Henderson <rth@redhat.com>
15996
15997 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15998 * c-cppbuiltin.c (cpp_atomic_builtins): Define
15999 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
16000 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
16001 * doc/tm.texi: Rebuild.
16002
16003 2012-01-27 Richard Henderson <rth@redhat.com>
16004
16005 * optabs.c (gen_atomic_test_and_set): Remove default.
16006 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
16007
16008 2012-01-26 Jakub Jelinek <jakub@redhat.com>
16009
16010 PR rtl-optimization/51978
16011 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
16012 (combine_reaching_defs): Likewise.
16013 (struct re_info): Remove.
16014 (add_removable_extension): Remove x and data arguments,
16015 add insn, insn_list and def_map. Use the arguments directly
16016 instead of using struct re_info.
16017 (find_removable_extensions): Don't call add_removable_extension
16018 through note_stores, instead just call it with single_set
16019 result if non-NULL.
16020 (find_and_remove_re): Pass curr_cand->expr instead of
16021 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
16022
16023 2012-01-26 Michael Matz <matz@suse.de>
16024
16025 PR tree-optimization/46590
16026 * cfgexpand.c: Revert last change (r183305).
16027 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
16028 regs.
16029 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
16030 checking for emptiness.
16031
16032 2012-01-26 Jakub Jelinek <jakub@redhat.com>
16033
16034 PR middle-end/51895
16035 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
16036 non-addressable non-BLKmode base correctly.
16037
16038 2012-01-26 Michael Matz <matz@suse.de>
16039
16040 PR tree-optimization/48794
16041 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
16042 regions referenced from RESX/EH_DISPATCH.
16043
16044 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16045
16046 * config/s390/s390.h: Make BRANCH_COST an option.
16047 * config/s390/s390.opt: New option -mbranch-cost.
16048
16049 2012-01-26 Richard Henderson <rth@redhat.com>
16050
16051 Revert 2012-01-24 change:
16052 * trans-mem.c (requires_barrier): Do not instrument thread local
16053 variables and emit save/restore for them.
16054
16055 2012-01-25 Jakub Jelinek <jakub@redhat.com>
16056
16057 PR middle-end/51986
16058 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
16059 for pat == 0.
16060
16061 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
16062
16063 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
16064 ASM_OPERANDS.
16065
16066 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
16067
16068 PR target/49868
16069 Rename __pgm to __flash.
16070 Rename __pgm1 to __flash1.
16071 Rename __pgm2 to __flash2.
16072 Rename __pgm3 to __flash3.
16073 Rename __pgm4 to __flash4.
16074 Rename __pgm5 to __flash5.
16075 Rename __pgmx to __memx.
16076 * doc/extend.texi (AVR Named Address Spaces)
16077 Rename address space names as indicated above.
16078 * config/avr/avr.c (avr_addrspace): Ditto.
16079
16080 * config/avr/avr-protos.h
16081 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
16082 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
16083 * config/avr/predicates.md: Ditto.
16084 * config/avr/avr.c Ditto, and
16085 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
16086 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
16087
16088 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
16089 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
16090 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
16091 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
16092 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
16093 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
16094 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
16095 * config/avr/avr.c: Ditto.
16096 * config/avr/avr.md: Ditto.
16097
16098 2012-01-25 Jason Merrill <jason@redhat.com>
16099
16100 PR c++/51992
16101 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
16102
16103 2012-01-25 Jakub Jelinek <jakub@redhat.com>
16104
16105 PR tree-optimization/51987
16106 * tree-data-ref.c (get_references_in_stmt): Handle references in
16107 non-volatile GIMPLE_ASM.
16108
16109 2012-01-25 Richard Guenther <rguenther@suse.de>
16110
16111 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
16112 bases are dereferenced.
16113
16114 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
16115
16116 PR rtl-optimization/48374
16117 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
16118
16119 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
16120
16121 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
16122 compute_data_dependences_for_loop returns false.
16123 * tree-parloops.c (loop_parallel_p): Likewise.
16124
16125 2012-01-25 Richard Guenther <rguenther@suse.de>
16126
16127 * tree.h (get_pointer_alignment_1): Declare.
16128 * builtins.c (get_pointer_alignment_1): New function.
16129 (get_pointer_alignment): Use it.
16130
16131 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16132
16133 PR rtl-optimization/48308
16134 * combine.c (enum undo_kind): Add UNDO_LINKS.
16135 (struct undo): Add member l to other_contents and where.
16136 (do_SUBST_LINK): New.
16137 (SUBST_LINK): New.
16138 (try_combine): Handle LOG_LINKS for the dummy i1 case.
16139 (undo_all): Handle UNDO_LINKS.
16140
16141 2012-01-25 Richard Henderson <rth@redhat.com>
16142
16143 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
16144 mem inputs.
16145
16146 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
16147
16148 * optabs.c (gen_atomic_test_and_set): Use each argument.
16149
16150 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
16151
16152 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
16153 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
16154 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
16155 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
16156 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
16157 TARGET_PAIRED_SINGLE_FLOAT.
16158
16159 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
16160
16161 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
16162 (in_struct, return_val): Remove MEM documentation.
16163 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
16164 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
16165 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
16166 and MEM_SCALAR.
16167 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16168 * cfgexpand.c (add_alias_set_conflicts): Likewise.
16169 * expr.c (store_field): Likewise.
16170 * function.c (assign_stack_temp_for_type): Likewise.
16171 * ifcvt.c (noce_try_cmove_arith): Likewise.
16172 * reload1.c (reload): Likewise.
16173 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
16174 (alpha_set_memflags): Likewise.
16175 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
16176
16177 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
16178
16179 * rtl.h (true_dependence, canon_true_dependence): Remove varies
16180 parameter.
16181 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
16182 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
16183 (true_dependence_1, true_dependence, canon_true_dependence): Remove
16184 varies parameter.
16185 * cselib.c (cselib_rtx_varies_p): Delete.
16186 (cselib_invalidate_mem): Update call to canon_true_dependence.
16187 * dse.c (record_store, check_mem_read_rtx): Likewise.
16188 (scan_reads_nospill): Likewise.
16189 * cse.c (check_dependence): Likewise.
16190 (cse_rtx_varies_p): Delete.
16191 * expr.c (safe_from_p): Update call to true_dependence.
16192 * ira.c (validate_equiv_mem_from_store): Likewise.
16193 (memref_referenced_p): Likewise.
16194 * postreload-gcse.c (find_mem_conflicts): Likewise.
16195 * sched-deps.c (sched_analyze_2): Likewise.
16196 * store-motion.c (load_kills_store): Likewise.
16197 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
16198 * gcse.c (mems_conflict_for_gcse_p): Likewise.
16199 (compute_transp): Update call to canon_true_dependence.
16200
16201 2012-01-25 Richard Henderson <rth@redhat.com>
16202
16203 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
16204 (maybe_emit_atomic_test_and_set): New.
16205 (expand_sync_lock_test_and_set): Use it.
16206 (expand_atomic_test_and_set): Likewise.
16207 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
16208 the implementation; clarify implementation defined details.
16209 * doc/md.texi (atomic_test_and_set): Document.
16210
16211 2012-01-25 Richard Henderson <rth@redhat.com>
16212
16213 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
16214
16215 2012-01-25 Richard Henderson <rth@redhat.com>
16216
16217 PR target/51968
16218 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
16219 to effect no-op split.
16220
16221 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
16222
16223 PR lto/51698
16224 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
16225 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
16226 (BT_FN_VOID_PTR_INT_SIZE): New.
16227 (BT_FN_UINT_UINT_VAR): Remove.
16228 (BT_FN_UINT32_UINT32_VAR): New.
16229 (BT_FN_DOUBLE_VPTR): Remove.
16230 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
16231
16232 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
16233 (_ITM_changeTransactionMode): Same.
16234 (_ITM_memmoveRtWt): Change return type to void.
16235 (_ITM_memcpyRtWt): Same.
16236 (_ITM_memsetW): Same.
16237 (_ITM_RaRD): Change types to double.
16238 (_ITM_RD): Same.
16239 (_ITM_RaWD): Same.
16240 (_ITM_RfWD): Same.
16241
16242 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
16243
16244 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
16245 Patrick Marlier <patrick.marlier@gmail.com>
16246
16247 * trans-mem.c (requires_barrier): Do not instrument thread local
16248 variables and emit save/restore for them.
16249
16250 2012-01-24 Jason Merrill <jason@redhat.com>
16251
16252 PR c++/51812
16253 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
16254 output static aliases.
16255
16256 2012-01-24 Jakub Jelinek <jakub@redhat.com>
16257
16258 PR driver/47249
16259 * common.opt (-pie, -shared, pie, shared): Change from Common to
16260 Driver.
16261 * gcc.c (display_help): Display help for -pie and -shared.
16262
16263 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
16264
16265 PR target/49868
16266 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
16267 Remove note on size/offset limitation.
16268 (AVR Variable Attributes): Add example how to read data located
16269 with progmem. Refer to named address spaces.
16270 * doc/invoke.texi (AVR Options): Fix typo.
16271
16272 2012-01-24 Richard Guenther <rguenther@suse.de>
16273
16274 Forward-port to trunk
16275 2010-09-21 Jakub Jelinek <jakub@redhat.com>
16276
16277 PR middle-end/45678
16278 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
16279 op0 isn't sufficiently aligned and there is movmisalignM
16280 insn for mode, use it to load op0 into a temporary register.
16281
16282 2012-01-24 Jakub Jelinek <jakub@redhat.com>
16283
16284 PR target/51957
16285 * target.def (const_not_ok_for_debug_p): New hook.
16286 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
16287 documentation.
16288 * doc/tm.texi: Regenerated.
16289 * dwarf2out.c (const_ok_for_output_1): If
16290 targetm.const_not_ok_for_debug_p returns true, fail.
16291 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
16292 function.
16293 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
16294
16295 2012-01-23 Kai Tietz <ktietz@redhat.com>
16296
16297 PR target/51900
16298 * config/i386/predicates.md (symbolic_operand): Allow
16299 UNSPEC_PCREL as PIC expression for lea.
16300 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
16301 * config/i386/i386.c (ix86_delegitimize_address): Handle
16302 UNSPEC_PCREL for none-MEM, too.
16303
16304 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
16305
16306 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
16307 (ipa_tm_create_version_alias): Same.
16308
16309 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
16310
16311 PR libitm/51830
16312 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
16313 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
16314
16315 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
16316 Patrick Marlier <patrick.marlier@gmail.com>
16317 Iain Sandoe <developer@sandoe-acoustics.co.uk>
16318
16319 PR lto/51916
16320 * lto-wrapper.c (run_gcc): Pass the LTO section name to
16321 simple_object_start_read.
16322
16323 2012-01-23 Richard Guenther <rguenther@suse.de>
16324
16325
16326 PR tree-optimization/51895
16327 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
16328 parameter decomposition into BLKmode components.
16329
16330 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
16331
16332 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
16333 fake variables for restrict-qualified pointers whose pointed-to type
16334 contains a placeholder.
16335
16336 2012-01-23 Richard Guenther <rguenther@suse.de>
16337
16338 PR tree-optimization/51949
16339 * ipa-split.c (execute_split_functions): Do not split malloc functions.
16340
16341 2012-01-23 Jakub Jelinek <jakub@redhat.com>
16342
16343 PR rtl-optimization/51933
16344 * ree.c (transform_ifelse): Return true right away if dstreg is
16345 already wider or equal to cand->mode.
16346 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
16347 (make_defs_and_copies_lists): Remove defs_list and copies_list
16348 arguments, add state argument, just truncate state->work_list
16349 instead of always allocating and freeing the vector. Assert that
16350 get_defs succeeds instead of returning 2. Changed return type to bool.
16351 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
16352 have ext_src_mode, see if it has been modified already with the
16353 right kind of extension and has been extended before from the
16354 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
16355 just return true. Remember the original mode in state->modified array.
16356 (combine_reaching_defs): Add state argument. Don't allocate and
16357 free here def_list, copied_list and vec vectors, instead just
16358 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
16359 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
16360 Add state variable, clear vectors in it, initialize state.modified
16361 if needed. Free all the vectors at the end and state.modified too.
16362 Don't skip a candidate if the extension expression has been modified.
16363
16364 2012-01-22 Douglas B Rupp <rupp@gnat.com>
16365
16366 PR target/47096
16367 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
16368 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
16369 (extra_options) interix.opt -> i386/interix.opt"
16370 (extra_objs):Add winnt-stubs.o
16371 * configure.ac: Add interix to target_os .comm on PE check.
16372 * configure: Regenerate.
16373 * config/interix3.h: Delete and move bits to..
16374 * config/interix.h: Delete and move bits to..
16375 * config/i386/i386-interix3.h: Delete and move bits to..
16376 * config/i386/i386-interix.h: ..here.
16377 (TARGET_CPU_DEFAULT): Remove redefinition.
16378 (TARGET_ASM_CONSTRUCTOR): Undefine.
16379 (SUBTARGET_SWITCHES): Define for ms-bitfields.
16380 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
16381 (PTRDIFF_TYPE): Define.
16382 (LONG_DOUBLE_TYPE_SIZE): Define.
16383 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
16384 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
16385 (TARGET_SECTION_TYPE_FLAGS): Define.
16386 (ASM_DECLARE_FUNCTION_NAME): Define.
16387 (ASM_OUTPUT_EXTERNAL): Define.
16388 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
16389 (ASM_OUTPUT_ALIGNED_BSS): Define.
16390 (PCC_BITFIELD_TYPE_MATTERS): Define.
16391 (USE_CONST_SECTION): Define.
16392 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
16393 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16394 (SUPPORTS_ONE_ONLY): Remove.
16395 (I386_PE_STRIP_ENCODING): Define.
16396 * config/interix.opt: Delete and move bits to..
16397 * config/i386/interix.opt: ..here. New.
16398 (mpe-aligned-commons): Add.
16399 * config/i386/t-interix: Add copyright header.
16400 (winnt-stubs.o): Add rule.
16401
16402 2012-01-22 Jason Merrill <jason@redhat.com>
16403
16404 PR c++/51832
16405 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
16406 for extra name aliases.
16407
16408 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
16409
16410 PR rtl-optimization/51924
16411 * ree.c (combine_set_extension): Improve debugging message.
16412 (combine_reaching_defs): Likewise.
16413 (get_defs): Rename confusingly named variable.
16414 (find_and_remove_re): Skip a candidate if the extension expression has
16415 been modified.
16416
16417 2012-01-21 Robert Millan <rmh@gnu.org>
16418 Gerald Pfeifer <gerald@pfeifer.com>
16419
16420 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
16421 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
16422
16423 2012-01-20 Jakub Jelinek <jakub@redhat.com>
16424
16425 PR tree-optimization/51914
16426 * tree-vect-stmts.c (vectorizable_conversion): For
16427 cvt_type && modifier == WIDEN, put temporary with cvt_type
16428 at the beginning of vec_dsts and set vec_dest to temporary
16429 with vectype_out.
16430
16431 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
16432
16433 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
16434
16435 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
16436
16437 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
16438 * config/rs6000/rs6000.c: Likewise.
16439
16440 2012-01-20 Jakub Jelinek <jakub@redhat.com>
16441
16442 PR target/51915
16443 * config/arm/arm.c (arm_count_output_move_double_insns): Call
16444 output_move_double on a copy of operands array.
16445
16446 2012-01-20 Cary Coutant <ccoutant@google.com>
16447 Dodji Seketeli <dodji@redhat.com>
16448
16449 PR debug/45682
16450 * dwarf2out.c (copy_declaration_context): Return ref to parent
16451 of declaration DIE, if necessary.
16452 (remove_child_or_replace_with_skeleton): Add new parameter; update
16453 caller. Place skeleton DIE under parent DIE of original declaration.
16454 Move call to copy_declaration_context to here ...
16455 (break_out_comdat_types): ... from here.
16456
16457 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16458
16459 PR rtl-optimization/51856
16460 * reload.c (find_reloads_subreg_address): Set the address_reloaded
16461 flag to reloaded.
16462
16463 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16464
16465 PR target/51819
16466 * config/arm/arm.c (arm_print_operand): Correct output of alignment
16467 hints for neon loads and stores.
16468
16469 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
16470
16471 PR target/49868
16472 PR target/50887
16473 * doc/extend.texi (Named Address Spaces): Split into subsections.
16474 (AVR Named Address Spaces): New subsection.
16475 (M32C Named Address Spaces): New subsection.
16476 (RL78 Named Address Spaces): New subsection.
16477 (SPU Named Address Spaces): New subsection.
16478 (Variable Attributes): New anchor "AVR Variable Attributes".
16479 (AVR Variable Attributes): Rewrite and avoid wording
16480 "address space" in this context.
16481 * doc/invoke.texi (AVR Options): Rewrite and add documentation
16482 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
16483 (AVR Built-in Macros): New subsubsection therein.
16484 * doc/md.texi (AVR constraints): Remove "C04", "R".
16485
16486 2012-01-20 Richard Guenther <rguenther@suse.de>
16487
16488 PR tree-optimization/51903
16489 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
16490 when removing stmts.
16491
16492 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16493
16494 PR target/50313
16495 * config/arm/arm.c (arm_load_pic_register): Use
16496 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
16497 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
16498 (arm_pic_static_addr): Likewise.
16499 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
16500 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
16501 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
16502 (pic_load_addr_unified): New.
16503
16504 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
16505
16506 PR target/51106
16507 * function.c (instantiate_virtual_regs_in_insn): Use
16508 delete_insn_and_edges when removing a wrong asm insn.
16509
16510 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
16511
16512 PR rtl-optimization/40761
16513 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
16514 Add new member loop_num.
16515 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
16516 (ira_build): Remove the parameter.
16517
16518 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
16519 (ira.c): Do not build CFG loops for one region allocation. Remove
16520 argument from ira_build call.
16521
16522 * ira-build.c (init_loop_tree_node): New function.
16523 (create_loop_tree_nodes): Use it. Separate the case when CFG
16524 loops are not built.
16525 (more_one_region_p): Check current_loops.
16526 (finish_loop_tree_nodes): Separate the case when CFG loops are not
16527 built.
16528 (add_loop_to_tree): Process loop equal to NULL too.
16529 (form_loop_tree): Separate the case when CFG loops are not built.
16530 Use explicitly number for the root.
16531 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
16532 an assertion.
16533 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
16534 instead of loop->num.
16535 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
16536 (mark_all_loops_for_removal): Ditto.
16537 (remove_unnecessary_regions): Separate the case when CFG loops
16538 are not built.
16539 (ira_build): Remove the parameter. Use explicit number of regions
16540 when CFG loops are not built.
16541
16542 * ira-color.c (print_loop_title): Separate the case for the root node.
16543 Use loop_num instead of loop->num.
16544 (move_spill_restore): Use loop_num instead of loop->num.
16545
16546 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
16547 (change_loop): Ditto.
16548 (change_loop): Use loop_num instead of loop->num.
16549
16550 * ira-lives.c (process_bb_node_lives): Ditto.
16551
16552 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
16553
16554 * ira-conflicts.c (print_allocno_conflicts): Ditto.
16555
16556 2012-01-19 Jakub Jelinek <jakub@redhat.com>
16557
16558 PR libmudflap/40778
16559 * tree-mudflap.c (mf_artificial): New function.
16560 (execute_mudflap_function_ops, execute_mudflap_function_decls,
16561 mx_register_decls, mudflap_enqueue_decl): Use it.
16562
16563 PR target/51876
16564 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
16565 numbers in the insn pattern.
16566
16567 2012-01-19 Michael Matz <matz@suse.de>
16568
16569 PR tree-optimization/46590
16570 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
16571 use it in remembering which conflicts we already created.
16572 (add_scope_conflicts): Adjust call to above, (de)allocate helper
16573 bitmap.
16574
16575 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
16576
16577 PR lto/51280
16578 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
16579 (merge_and_complain): Same.
16580
16581 2012-01-19 Jakub Jelinek <jakub@redhat.com>
16582
16583 PR bootstrap/50237
16584 * config/initfini-array.h: Guard content of the header
16585 with #ifdef HAVE_INITFINI_ARRAY.
16586 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
16587 Add initfini-array.h to tm_file here.
16588 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
16589 * config.gcc: Don't add initfini-array.h to tm_file here.
16590 * configure: Regenerated.
16591
16592 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
16593
16594 PR rtl-optimization/51505
16595 * df-problems.c (df_kill_notes): New parameter live. Update comment.
16596 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
16597 (df_note_bb_compute): Update the call to df_kill_notes.
16598
16599 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
16600
16601 * trans-mem.c (requires_barrier): Remove call to is_global_var.
16602
16603 2012-01-18 Richard Guenther <rguenther@suse.de>
16604
16605 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
16606 of conversions to void *.
16607
16608 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16609 Richard Sandiford <rdsandiford@googlemail.com>
16610
16611 PR middle-end/50325
16612 PR middle-end/51192
16613 * optabs.h (simplify_expand_binop): Declare.
16614 * optabs.c (simplify_expand_binop): Make global.
16615 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
16616 endian targets if the source cannot be exactly covered by word
16617 mode chunks.
16618
16619 2012-01-17 Jakub Jelinek <jakub@redhat.com>
16620
16621 PR bootstrap/51872
16622 * hard-reg-set.h (struct hard_reg_set_container): New type.
16623 * target.h (struct hard_reg_set_container): Forward declare.
16624 * target.def (set_up_by_prologue): New target hook.
16625 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
16626 * doc/tm.texi: Regenerated.
16627 * function.c (thread_prologue_and_epilogue_insns): Change
16628 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
16629 Call targetm.set_up_by_prologue on it.
16630 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
16631 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
16632
16633 2012-01-17 Nick Clifton <nickc@redhat.com>
16634
16635 * config/rx/rx.c (rx_can_use_simple_return): New function.
16636 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
16637 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
16638
16639 2012-01-17 Richard Guenther <rguenther@suse.de>
16640
16641 PR middle-end/51782
16642 * expr.c (expand_assignment): Take address-space information
16643 from the address operand of MEM_REF and TARGET_MEM_REF.
16644 (expand_expr_real_1): Likewise.
16645
16646 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16647
16648 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
16649 reload dump is requested.
16650
16651 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
16652
16653 PR other/51165
16654 * trans-mem.c (requires_barrier): Call may_be_aliased.
16655
16656 2012-01-17 Jakub Jelinek <jakub@redhat.com>
16657
16658 PR tree-optimization/51877
16659 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
16660 call arguments and fndecls compare equal, instead return false if they
16661 don't. Return true only if lhs1 and lhs2 are either both NULL, or
16662 both SSA_NAMEs that are valueized the same, or they satisfy
16663 operand_equal_p.
16664
16665 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16666
16667 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
16668 Solaris 11+.
16669 * configure: Regenerate.
16670
16671 2012-01-16 Jan Hubicka <jh@suse.cz>
16672
16673 PR c/12245
16674 PR c++/14179
16675 * convert.c (convert_to_integer): Use fold_convert for
16676 converting an INTEGER_CST to integer type.
16677
16678 2012-01-16 Jason Merrill <jason@redhat.com>
16679
16680 PR c++/14179
16681 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
16682
16683 2012-01-16 Jakub Jelinek <jakub@redhat.com>
16684
16685 PR bootstrap/51860
16686 * config/s390/s390.c (s390_chunkify_start): Don't skip
16687 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
16688 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
16689 If insn is followed by NOTE_INSN_VAR_LOCATION or
16690 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
16691 Don't use location of note insns.
16692
16693 PR tree-optimization/51865
16694 * tree-inline.c (tree_function_versioning): Call remap_decl
16695 on DECL_RESULT whenever it has VOID_TYPE_P type.
16696
16697 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
16698
16699 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
16700 for calls to locally-binding MIPS16 functions if only the return
16701 type uses float regs.
16702
16703 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
16704 Richard Sandiford <rdsandiford@googlemail.com>
16705
16706 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
16707 (SYMBOL_32_HIGH): Likewise.
16708 (mips_output_tls_reloc_directive): Declare.
16709 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
16710 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
16711 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
16712 (mips_lo_relocs, mips_hi_relocs): Make extern.
16713 (mips16_stub_function): Move up file.
16714 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
16715 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
16716 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
16717 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
16718 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
16719 (mips_get_tp): Add MIPS16 support.
16720 (mips_legitimize_tls_address): Remove MIPS16 sorry().
16721 Generalize DTPREL and TPREL handling.
16722 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
16723 Add MIPS16 TLS support.
16724 (mips_output_tls_reloc_directive): New function.
16725 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
16726 * config/mips/predicates.md (symbolic_operand_with_high)
16727 (tls_reloc_operand): New predicates.
16728 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
16729 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
16730 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
16731 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
16732 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
16733 (*tls_get_tp_mips16_call_<mode>): Likewise.
16734
16735 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
16736
16737 PR rtl-optimization/51821
16738 * recog.c (peep2_find_free_register): Determine clobbered registers
16739 from insn pattern.
16740
16741 2012-01-14 Denis Chertykov <chertykov@gmail.com>
16742
16743 PR target/50925
16744 * config/avr/avr-protos.h: Revert change of 2012-01-09.
16745 * config/avr/avr.c: Likewise.
16746 * config/avr/avr.h: Likewise.
16747
16748 2012-01-13 Ian Lance Taylor <iant@google.com>
16749
16750 PR c++/50012
16751 * tree.h (TYPE_QUALS): Add cast to int.
16752 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
16753
16754 2012-01-13 Ian Lance Taylor <iant@google.com>
16755
16756 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
16757 comparing param_index to VEC_length result.
16758
16759 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
16760
16761 * c-decl.c: Do not include tree-mudflap.h
16762 * tree-optimize.c: Likewise.
16763 * Makefile.in: Update dependencies.
16764
16765 2012-01-13 Richard Guenther <rguenther@suse.de>
16766
16767 PR middle-end/8081
16768 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
16769 variable-sized result always use RSO.
16770
16771 2012-01-12 DJ Delorie <dj@redhat.com>
16772
16773 * cfgexpand.c (convert_debug_memory_address): Allow any valid
16774 pointer type, not just the default pointer type.
16775
16776 2012-01-09 Richard Henderson <rth@redhat.com>
16777 Denis Chertykov <chertykov@gmail.com>
16778
16779 PR target/50925
16780 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
16781 * config/avr/avr.c (avr_can_eliminate): Simplify.
16782 (avr_initial_elimination_offset): Likewise.
16783 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
16784 (expand_epilogue): Likewise.
16785 (avr_legitimize_address): Gut.
16786 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
16787 (avr_hard_regno_nregs): New.
16788 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
16789 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
16790 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
16791 add soft frame pointer.
16792 (CALL_USED_REGISTERS): Likewise.
16793 (REG_CLASS_CONTENTS): Likewise.
16794 (REGISTER_NAMES): Likewise.
16795 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
16796 (HARD_FRAME_POINTER_REGNUM): New.
16797 (FRAME_POINTER_REGNUM): Use soft frame pointer.
16798 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
16799 remove the HARD_FRAME_POINTER self-elimination.
16800
16801 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
16802
16803 PR target/51756
16804 * config/avr/avr.c (avr_encode_section_info): Test for absence of
16805 DECL_EXTERNAL when checking for initializers of progmem variables.
16806
16807 2012-01-12 Ira Rosen <irar@il.ibm.com>
16808
16809 PR tree-optimization/51799
16810 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
16811 that the last operation is a type demotion.
16812
16813 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
16814
16815 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
16816 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
16817
16818 2012-01-11 Jakub Jelinek <jakub@redhat.com>
16819
16820 PR bootstrap/51796
16821 * combine.c (distribute_notes): If i3 is a noreturn call,
16822 allow old_size to be equal to args_size and make sure the
16823 noreturn call gets REG_ARGS_SIZE note.
16824 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
16825 on noreturn calls even when the delta is 0.
16826
16827 2012-01-11 Nathan Sidwell <nathan@acm.org>
16828
16829 * gcov.c (STRING_SIZE): Remove.
16830 (generate_results): Erase annotations for source files with no
16831 coverage information.
16832 (read_line): New.
16833 (output_lines): Use it.
16834
16835 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
16836
16837 * gimple.h (gimplify_body): Remove first argument.
16838 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
16839 pointer set here, instead just pass DATA to walk_tree.
16840 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
16841 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
16842 (unvisit_body): Likewise, but with unmark_visited.
16843 (gimplify_body): Remove BODY_P argument and adjust.
16844 (gimplify_function_tree): Adjust call to gimplify_body.
16845 * omp-low.c (finalize_task_copyfn): Likewise.
16846
16847 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
16848
16849 * tree.h (build_function_decl_skip_args): Add boolean parameter.
16850 (build_function_type_skip_args): Delete.
16851 * tree.c (build_function_type_skip_args): Make static and add
16852 SKIP_RETURN parameter. Fix thinko in the handling of variants.
16853 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
16854 pass it to build_function_type_skip_args.
16855 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
16856 (tree_function_versioning): Likewise.
16857 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
16858 build_function_decl_skip_args.
16859 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
16860 and pass it to build_function_decl_skip_args/tree_function_versioning.
16861 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
16862 * ipa-inline-transform.c (save_inline_function_body): Likewise.
16863 * trans-mem.c (ipa_tm_create_version): Likewise.
16864 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
16865 * tree-inline.c (declare_return_variable): Remove always-true test.
16866 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
16867 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
16868 * ipa-split.c (split_function): Skip the return value for the split
16869 part if it doesn't return.
16870
16871 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16872
16873 PR tree-optimization/49642
16874 * ipa-split.c (forbidden_dominators): New variable.
16875 (check_forbidden_calls): New function.
16876 (dominated_by_forbidden): Likewise.
16877 (consider_split): Check for forbidden dominators.
16878 (execute_split_functions): Initialize and free forbidden
16879 dominators info; call check_forbidden_calls.
16880
16881 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16882
16883 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
16884
16885 2012-01-11 Nick Clifton <nickc@redhat.com>
16886
16887 * config/rx/rx.md (return): Define pattern.
16888
16889 2012-01-11 Richard Guenther <rguenther@suse.de>
16890
16891 * doc/extend.texi (malloc attribute): Adjust according to
16892 implementation.
16893
16894 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
16895 Patrick Marlier <patrick.marlier@gmail.com>
16896
16897 PR middle-end/51516
16898 * trans-mem.c (get_cg_data): Traverse aliases if requested.
16899 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
16900 (ipa_tm_note_irrevocable): Same.
16901 (ipa_tm_scan_irr_block): Same.
16902 (ipa_tm_decrement_clone_counts): Same.
16903 (ipa_tm_scan_irr_function): Same.
16904 (ipa_tm_create_version_alias): Same.
16905 (ipa_tm_create_version): Same.
16906 (ipa_tm_transform_calls_redirect): Same.
16907 (ipa_tm_transform_calls): Same.
16908 (ipa_tm_transform_transaction): Same.
16909 (ipa_tm_execute): Same.
16910
16911 2012-01-10 Richard Guenther <rguenther@suse.de>
16912
16913 PR middle-end/51806
16914 * opts.c (common_handle_option): Handle -Werror.
16915
16916 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
16917
16918 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
16919 operand number.
16920
16921 2012-01-10 Jason Merrill <jason@redhat.com>
16922
16923 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
16924 information.
16925
16926 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16927
16928 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
16929 supports R_386_TLS_GD_PLT reloc.
16930 (gcc_cv_as_ix86_tlsldmplt): Check if linker
16931 supports R_386_TLS_LDM_PLT reloc.
16932 * configure: Regenerate.
16933 * config.in: Regenerate.
16934
16935 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
16936
16937 PR target/49868
16938 Extend __pgmx semantics to linearize memory.
16939 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
16940 determine if code comes inline or from libgcc.
16941 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
16942 (movmem_qi, movmem_qi): Set constraint #2 to "n".
16943 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
16944 (movmemx_qi, movmemx_hi): New insns.
16945 (xload_<mode>_libgcc): Rewrite to new insn condition.
16946 (xload_<mode>): Remove insns.
16947 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
16948 cases that don't satisfy avr_xload_libgcc_p().
16949 (avr_addr_space_convert): Allow converting in any direction.
16950 (avr_addr_space_subset_p): Return always true.
16951 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
16952 (avr_emit_movmemhi): Ditto.
16953 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
16954 (avr_out_movmem): Ditto.
16955 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
16956 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
16957 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
16958 (avr_encode_section_info): Encode 'progmem' in symbol flags.
16959 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
16960
16961 2012-01-10 Richard Guenther <rguenther@suse.de>
16962
16963 PR tree-optimization/50913
16964 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
16965 Require data-refs to be representable by Graphite with respect
16966 to any loop nest.
16967
16968 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
16969
16970 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
16971 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
16972
16973 2012-01-10 Tom de Vries <tom@codesourcery.com>
16974
16975 PR rtl-optimization/51271
16976 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
16977 handling annulled branch.
16978
16979 2012-01-10 Richard Henderson <rth@redhat.com>
16980
16981 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
16982 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
16983 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
16984 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
16985 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
16986 arm_expand_vec_perm_const): New.
16987 * config/arm/arm-protos.h: Update.
16988 * config/arm/neon.md (UNSPEC_VCONCAT): New.
16989 (*neon_vswp<VDQX>): New.
16990 (neon_vcombine<VDX>): Use neon_split_vcombine.
16991 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
16992 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
16993 (vec_perm<VE>): New.
16994
16995 2012-01-10 Richard Henderson <rth@redhat.com>
16996
16997 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
16998 use it if reload_completed.
16999 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
17000 arm_output_asm_insn, arm_process_output_memory_barrier,
17001 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
17002 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
17003 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
17004 arm_process_output_sync_insn, arm_output_sync_insn,
17005 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
17006 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
17007 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
17008 (emit_unlikely_jump): New.
17009 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
17010 (arm_split_atomic_op): New.
17011 * config/arm/arm-protos.h: Update.
17012 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
17013 (struct arm_sync_generator): Remove.
17014 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
17015 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
17016 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
17017 (VUNSPEC_LL, VUNSPEC_SC): New.
17018 (sync_result, sync_memory, sync_required_value, sync_new_value,
17019 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
17020 (attr length): Don't use arm_sync_loop_insns.
17021 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
17022 (movsfcc, movdfcc): Likewise.
17023 * config/arm/constraints.md (Ua): New.
17024 * config/arm/prediates.md (mem_noofs_operand): New.
17025 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
17026 (sync_clobber, sync_t2_reqd): Remove.
17027 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
17028 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
17029 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
17030 (arm_sync_compare_and_swap<SIDI>): Remove.
17031 (arm_sync_compare_and_swap<NARROW>): Remove.
17032 (arm_sync_lock_test_and_set<SIDI>): Remove.
17033 (arm_sync_lock_test_and_set<NARROW>): Remove.
17034 (arm_sync_new_<syncop><SIDI>): Remove.
17035 (arm_sync_new_<syncop><NARROW>): Remove.
17036 (arm_sync_new_nand<SIDI>): Remove.
17037 (arm_sync_new_nand<NARROW>): Remove.
17038 (arm_sync_old_<syncop><SIDI>): Remove.
17039 (arm_sync_old_<syncop><NARROW>): Remove.
17040 (arm_sync_old_nand<SIDI>): Remove.
17041 (arm_sync_old_nand<NARROW>): Remove.
17042 (*memory_barrier): Merge arm_output_memory_barrier.
17043 (atomic_compare_and_swap<QHSD>): New.
17044 (atomic_compare_and_swap<NARROW>_1): New.
17045 (atomic_compare_and_swap<SIDI>_1): New.
17046 (atomic_exchange<QHSD>): New.
17047 (cas_cmp_operand, cas_cmp_str): New.
17048 (atomic_op_operand, atomic_op_str): New.
17049 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
17050 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
17051 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
17052 (arm_load_exclusive<NARROW>): New.
17053 (arm_load_exclusivesi, arm_load_exclusivedi): New.
17054 (arm_store_exclusive<QHSD>): New.
17055
17056 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17057
17058 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
17059 reload patterns if -mvsx-scalar-memory.
17060
17061 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
17062 generated, even -mno-vsx-scalar-double was used.
17063 (vsx_xscvdpsp_scalar): Likewise.
17064 (vsx_xscvspdp_scalar2): Likewise.
17065
17066 2012-01-09 Tom de Vries <tom@codesourcery.com>
17067 Andrew Pinski <apinski@cavium.com>
17068
17069 PR debug/51471
17070 * reorg.c (fill_slots_from_thread): Don't speculate
17071 frame-related insns.
17072
17073 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
17074
17075 * sched-int.h (bb_note): Move to...
17076 * basic-block.h: ...here.
17077 * haifa-sched.c (bb_note): Move to...
17078 * cfgrtl.c: ...here.
17079 * function.c (next_block_for_reg): New function.
17080 (move_insn_for_shrink_wrap): Likewise.
17081 (prepare_shrink_wrap): Rewrite to use the above.
17082
17083 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
17084
17085 * gimple.c (is_gimple_non_addressable): Remove.
17086 * gimple.h: Remove is_gimple_non_addressable.
17087 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
17088 is_gimple_non_addressable.
17089 * trans-mem.c (expand_assign_tm): Same.
17090
17091 2012-01-09 Richard Guenther <rguenther@suse.de>
17092
17093 PR tree-optimization/51775
17094 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
17095 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
17096
17097 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17098
17099 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
17100 tuning parameters.
17101 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
17102
17103 2012-01-09 Richard Guenther <rguenther@suse.de>
17104
17105 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
17106
17107 2012-01-08 Jan Hubicka <jh@suse.cz>
17108
17109 PR tree-optimize/51680
17110 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
17111 on when known_vals needs to be computed; cleanup.
17112
17113 2012-01-08 Jan Hubicka <jh@suse.cz>
17114
17115 PR tree-optimize/51694
17116 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
17117
17118 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
17119
17120 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
17121 for -std=c++98 and -std=c++11 too.
17122
17123 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
17124
17125 * cfgloop.c (cancel_loop): Add free() of bbs array.
17126
17127 2012-01-07 Jan Hubicka <jh@suse.cz>
17128
17129 PR tree-optimization/51600
17130 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
17131 that benefits small functions.
17132
17133 2012-01-07 Jan Hubicka <jh@suse.cz>
17134
17135 * ipa-inline.c (want_inline_small_function_p): Fix formating.
17136
17137 2012-01-07 Jan Hubicka <jh@suse.cz>
17138
17139 PR tree-optimization/51680
17140 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
17141 whose inlining reduce unit size.
17142
17143 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
17144
17145 PR bootstrap/51725
17146 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
17147 Add canonical node to containing_mem chain after the non-canonical
17148 one, even if there weren't any locs to propagate.
17149 (remove_useless_values): Keep only canonical values.
17150 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
17151 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
17152 canonicalize mem_chain elements that are not discarded.
17153
17154 2012-01-06 Jakub Jelinek <jakub@redhat.com>
17155
17156 PR target/47333
17157 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
17158 before emitting functions.
17159
17160 PR gcov-profile/50127
17161 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
17162 clear_aux_for_blocks.
17163
17164 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
17165
17166 PR debug/51746
17167 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
17168
17169 2012-01-06 Arnaud Charlet <charlet@adacore.com>
17170
17171 * c-decl.c (ext_block): Moved up.
17172 (collect_all_refs, for_each_global_decl): Take ext_block into account.
17173
17174 2012-01-06 Han Shen <shenhan@google.com>
17175
17176 Translate built-in include paths for sysroot.
17177 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
17178 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
17179
17180 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
17181 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
17182
17183 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
17184 control whether sysroot should be prepended to gxx include dir.
17185
17186 * configure: Regenerate.
17187
17188 2012-01-06 Torvald Riegel <triegel@redhat.com>
17189
17190 PR rtl-optimization/51771
17191 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
17192 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
17193
17194 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
17195
17196 PR tree-optimization/51315
17197 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
17198 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
17199
17200 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
17201
17202 PR target/51681
17203 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
17204 for shrp pattern. Correctly handle and fixup shift variable.
17205 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
17206
17207 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17208
17209 PR debug/51762
17210 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
17211 note when !ACCUMULATE_OUTGOING_ARGS.
17212
17213 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
17214
17215 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
17216 condition.
17217 (extract_range_from_unary_expr_1): Avoid useless computations.
17218
17219 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17220
17221 PR rtl-optimization/51767
17222 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
17223 of jump_block and add an extra edge for degenerated asm gotos.
17224
17225 PR middle-end/51768
17226 * stmt.c (check_unique_operand_names): Don't ICE during error
17227 reporting if i is from labels chain.
17228
17229 PR middle-end/44777
17230 * profile.c (branch_prob): Split bbs that have exit edge
17231 and need a fake entry edge too.
17232
17233 2012-01-05 Jan Hubicka <jh@suse.cz>
17234
17235 PR middle-end/49710
17236 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
17237 unlooping loops.
17238
17239 2012-01-05 Richard Guenther <rguenther@suse.de>
17240
17241 PR lto/50490
17242 * tree-streamer-out.c (write_ts_optimization): New function.
17243 (streamer_write_tree_body): Call it.
17244 * tree-streamer-in.c (lto_input_ts_optimization): New function.
17245 (streamer_read_tree_body): Call it.
17246 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
17247
17248 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17249
17250 PR middle-end/51761
17251 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
17252 * gimplify.c (gimplify_cleanup_point_expr): Save and set
17253 in_cleanup_point_expr before gimplify_stmt call and restore it
17254 afterwards.
17255 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
17256 in_cleanup_point_expr is false.
17257
17258 2012-01-05 Richard Guenther <rguenther@suse.de>
17259
17260 PR middle-end/51764
17261 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
17262 to c.opt.
17263 * toplev.c (process_options): Reject combining mudflap and LTO.
17264 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
17265
17266 2012-01-05 Richard Guenther <rguenther@suse.de>
17267
17268 PR tree-optimization/51760
17269 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
17270 not VARYING.
17271 (bit_value_unop): Handle UNDEFINED operands.
17272 (bit_value_binop): Likewise.
17273
17274 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
17275
17276 * config/avr/avr.c (avr_replace_prefix): Remove.
17277 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
17278 (avr_asm_function_rodata_section): Ditto.
17279 (avr_asm_select_section): Ditto.
17280
17281 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17282
17283 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
17284 insertion.
17285
17286 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17287
17288 PR bootstrap/51648
17289 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
17290 calls that have any non-fake successor edges.
17291
17292 PR debug/51746
17293 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
17294
17295 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
17296
17297 PR tree-optimization/51624
17298 * tree-sra.c (build_ref_for_model): When replicating a chain of
17299 COMPONENT_REFs, stop as soon as the offset would become negative.
17300
17301 2012-01-04 Jakub Jelinek <jakub@redhat.com>
17302
17303 PR debug/51695
17304 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
17305 in .debug_loc on the floor.
17306
17307 2012-01-04 Andrew Pinski <apinski@cavium.com>
17308
17309 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
17310
17311 2012-01-04 Andrew Pinski <apinski@cavium.com>
17312 Adam Nemet <anemet@caviumnetworks.com>
17313
17314 * config/mips/mips.md (size): Add SI and DI.
17315 (SIZE): New mode attribute.
17316 (U): New code attribute.
17317 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
17318 (mips_lbux_<mode>): Delete.
17319 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
17320 (mips_lhx): Use gen_mips_lhx_extsi.
17321 (mips_lhx_<mode>): Delete.
17322 (mips_lwx): Delete.
17323 (mips_l<size>x): New expand.
17324 (mips_lwx_<mode>): Delete.
17325 (mips_l<GPR:size>x_<P:mode>): New pattern.
17326 (*mips_lw<u>x_<P:mode>_ext): Likewise.
17327 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
17328 * config/mips/mips.c (mips_lx_address_p): New function.
17329 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
17330 (dsp64): New availability predicate.
17331 (mips_builtins): Add an entry for __builtin_mips_ldx.
17332 * config/mips/mips.h (ISA_HAS_LBX): New define.
17333 (ISA_HAS_LBUX): Likewise.
17334 (ISA_HAS_LHX): Likewise.
17335 (ISA_HAS_LHUX): Likewise.
17336 (ISA_HAS_LWX): Likewise.
17337 (ISA_HAS_LWUX): Likewise.
17338 (ISA_HAS_LDX): Likewise.
17339 * doc/extend.texi (__builtin_mips_ldx): Document.
17340
17341 2012-01-04 Tristan Gingold <gingold@adacore.com>
17342
17343 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
17344 when long pointers are used.
17345 * config.build (*-*-*vms*): Handle all OpenVMS targets.
17346 (alpha64-dec-*vms*, alpha*-dec-*vms*)
17347 (ia64-hp-*vms*): Remove.
17348 * config/vms/xm-vms64.h: Delete.
17349
17350 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17351
17352 PR middle-end/51472
17353 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
17354
17355 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17356
17357 * opts.c (finish_options): Remove duplicate sorry.
17358
17359 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17360
17361 PR middle-end/51696
17362 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
17363 correctly.
17364
17365 2012-01-04 Richard Guenther <rguenther@suse.de>
17366
17367 PR middle-end/51750
17368 * tree.c (size_low_cst): New function.
17369 * tree.h (size_low_cst): Declare.
17370 * fold-const.c (fold_comparison): Use it to extract the low
17371 part of the POINTER_PLUS_EXPR offset.
17372
17373 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
17374
17375 Fix clearing ZERO_REG
17376 * config/avr/avr.md (cc): Add alternative "ldi".
17377 (movqi_insn): Use it in cc attribute.
17378 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
17379 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
17380 (output_reload_insisf): Use ZERO_REG to pre-clear register.
17381
17382 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17383
17384 * configure: Regenerate.
17385
17386 2012-01-04 Richard Guenther <rguenther@suse.de>
17387
17388 PR tree-optimization/49651
17389 * tree-ssa-structalias.c (type_can_have_subvars): New function.
17390 (var_can_have_subvars): Use it.
17391 (get_constraint_for_1): Only consider subfields if there can be any.
17392
17393 2012-01-03 Jakub Jelinek <jakub@redhat.com>
17394
17395 PR bootstrap/51725
17396 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
17397 to its new canonical_cselib_val and the cselib_val was in
17398 first_containing_mem chain, but the canonical_cselib_val was not,
17399 add the latter into the chain.
17400 (cselib_invalidate_mem): Compare canonical_cselib_val of
17401 addr_list chain elt with v.
17402
17403 PR pch/51722
17404 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
17405 dwarf2out_undef): Allocate e.info using ggc_strdup instead
17406 of xstrdup.
17407 (output_macinfo_op): Don't ggc_strdup fd->filename.
17408 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
17409 then ggc_strdup it. Don't free inc->info or cur->info.
17410 (output_macinfo): Don't free ref->info or file->info.
17411
17412 2012-01-03 Ira Rosen <irar@il.ibm.com>
17413
17414 PR tree-optimization/51269
17415 * tree-vect-loop-manip.c (set_prologue_iterations): Make
17416 first_niters a pointer.
17417 (slpeel_tree_peel_loop_to_edge): Likewise.
17418 (vect_do_peeling_for_loop_bound): Update call to
17419 slpeel_tree_peel_loop_to_edge.
17420 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
17421 here. Remove it from the parameters list.
17422 (vect_do_peeling_for_alignment): Update calls and compute
17423 wide_prolog_niters.
17424
17425 2012-01-03 Richard Guenther <rguenther@suse.de>
17426
17427 PR tree-optimization/51070
17428 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
17429 Properly handle calls.
17430
17431 2012-01-03 Richard Guenther <rguenther@suse.de>
17432
17433 PR tree-optimization/51692
17434 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
17435 the LHS of allocation stmts.
17436
17437 2012-01-03 Olivier Hainque <hainque@adacore.com>
17438
17439 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
17440
17441 2012-01-03 Olivier Hainque <hainque@adacore.com>
17442
17443 * collect2.c (main): In AIX specific computations for vector
17444 insertions, use CONST_CAST2 to cast from char ** to const char **.
17445
17446 2012-01-03 Richard Guenther <rguenther@suse.de>
17447
17448 PR debug/51650
17449 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
17450 the context of a limbo DIE when it does not already exist.
17451
17452 2012-01-03 Jakub Jelinek <jakub@redhat.com>
17453
17454 PR tree-optimization/51719
17455 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
17456 but direct call is, clear direct call's lhs and don't add fallthrough
17457 edge from dcall_bb to join_bb and PHIs.
17458
17459 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17460
17461 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
17462 the instructions emitted by the pattern.
17463 ("*TDC_insn_<mode>"): Add comment.
17464
17465 2012-01-03 Richard Guenther <rguenther@suse.de>
17466
17467 PR middle-end/51730
17468 * fold-const.c (fold_comparison): Properly canonicalize
17469 tree offset and HOST_WIDE_INT bit position.
17470
17471 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
17472
17473 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
17474 operands for extzv pattern.
17475
17476 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17477
17478 PR bootstrap/51725
17479 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
17480 on mem_elt first.
17481
17482 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
17483
17484 * doc/invoke.texi (-flto and related options): Copy-edit.
17485
17486 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17487
17488 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
17489
17490 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17491
17492 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
17493 New patterns.
17494
17495 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17496
17497 * expr.h (move_by_pieces_ninsns): Declare.
17498 * expr.c (move_by_pieces_ninsns): Make external.
17499 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
17500 (mips_store_by_pieces_p): Likewise.
17501 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
17502 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
17503 * config/mips/mips.c (mips_move_by_pieces_p): New function.
17504 (mips_store_by_pieces_p): Likewise.
17505
17506 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17507
17508 * passes.c (register_one_dump_file): Free full_name.
17509
17510 * reload1.c (reload): Don't allocate reg_max_ref_width here.
17511 (calculate_elim_costs_all_insns): Free offsets_at and
17512 offsets_known_at at the end and clear the pointers.
17513
17514 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17515
17516 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
17517 this option introduced in r180739.
17518
17519 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17520
17521 PR target/51345
17522 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
17523 (tmake_file target=avr): Add avr/t-multilib.
17524
17525 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
17526 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
17527 * config/avr/genmultilib.awk: New file.
17528 * config/avr/t-multilib: New auto-generated file.
17529 * config/avr/multilib.h: New auto-generated file.
17530 * config/avr/t-avr (AVR_MCUS): New variable.
17531 (genopt.sh): Use it.
17532 (s-mlib): Depend on t-multilib.
17533 (t-multilib, multilib.h): New dependencies.
17534 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
17535 (MULTILIB_OPTIONS): Remove.
17536 (MULTILIB_MATCHES): Remove.
17537 (MULTILIB_DIRNAMES): Remove.
17538 (MULTILIB_EXCEPTIONS): Remove:
17539 * config/avr/genopt.sh: Don't use hard coded file name;
17540 pass AVR_MCUS from t-avr instead.
17541
17542 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17543
17544 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
17545
17546 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17547
17548 Implement light-weight DImode support.
17549 * config/avr/avr-dimode.md: New file.
17550 * config/avr/avr.md: Include it.
17551 (adjust_len): Add plus64, compare64.
17552 (HIDI): Remove code iterator.
17553 (code_stdname): New code attribute.
17554 (rotx, rotsmode): Remove DI.
17555 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
17556 as code iterator.
17557 * config/avr/avr-protos.h (avr_have_dimode): New.
17558 (avr_out_plus64, avr_out_compare64): New.
17559 * config/avr/avr.c (avr_out_compare): Handle DImode.
17560 (avr_have_dimode): New variable definition and initialization.
17561 (avr_out_compare64, avr_out_plus64): New functions.
17562 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
17563 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
17564 (avr_compare_pattern): Skip DImode comparisons.
17565
17566 2012-01-02 Revital Eres <revital.eres@linaro.org>
17567
17568 * ddg.c (def_has_ccmode_p): New function.
17569 (add_cross_iteration_register_deps,
17570 create_ddg_dep_from_intra_loop_link): Call it.
17571
17572 2012-01-02 Richard Guenther <rguenther@suse.de>
17573
17574 PR other/51679
17575 * invoke.texi (fassociative-math): Remove spurious paranthesis.
17576
17577 2012-01-01 Jakub Jelinek <jakub@redhat.com>
17578
17579 * gcc.c (process_command): Update copyright notice dates.
17580 * gcov.c (print_version): Likewise.
17581 * gcov-dump.c (print_version): Likewise.
17582 * mips-tfile.c (main): Likewise.
17583 * mips-tdump.c (main): Likewise.
17584
17585 2012-01-01 Ira Rosen <irar@il.ibm.com>
17586
17587 PR tree-optimization/51704
17588 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
17589 a use is inside the basic block or loop before accessing its vect info.
17590
17591 2012-01-01 Jan Hubicka <jhjh@suse.cz>
17592
17593 PR rtl-optimization/51069
17594 * cfgloopmanip.c (remove_path): Removing path making irreducible
17595 region unconditional makes BB part of the region.
17596
17597 2012-01-01 Jakub Jelinek <jakub@redhat.com>
17598
17599 PR tree-optimization/51683
17600 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
17601 calls with side-effects.
17602 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17603 \f
17604 Copyright (C) 2012 Free Software Foundation, Inc.
17605
17606 Copying and distribution of this file, with or without modification,
17607 are permitted in any medium without royalty provided the copyright
17608 notice and this notice are preserved.