NetLogic Microsystems Inc.
[gcc.git] / gcc / ChangeLog
1 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
2 Maxim Kuvyrkov <maxim@codesourcery.com>
3 NetLogic Microsystems Inc.
4
5 * config/mips/mips.c (mips_issue_rate): Handle XLP.
6 * config/mips/mips.md: Include xlp.md.
7 * config/mips/xlp.md: New file.
8
9 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
10
11 PR gcov-profile/32543
12 * profile.c (branch_prob): Update total_num_edges_instrumented and
13 report the number of edges to instrument.
14
15 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
16
17 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
18
19 2012-07-21 Andrew Pinski <apinski@cavium.com>
20
21 * config/mips/mips.md (*popcountdi2_trunc): New pattern
22 to handle popcount of a truncation.
23
24 2012-07-21 Andrew Pinski <apinski@cavium.com>
25
26 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
27 Add a bool argument.
28 * config/mips/mips.c (mips_block_move_straight): Update call to
29 mips_expand_ext_as_unaligned_load.
30 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
31 Accept DImode dest when the width is that of SImode.
32 * config/mips/mips.md (extv): Update call to
33 mips_expand_ext_as_unaligned_load.
34 (extzv): Likewise.
35
36 2012-07-21 Andrew Pinski <apinski@cavium.com>
37
38 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
39 adjust_address.
40
41 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
42
43 * config/mips/mips.md (define_attr sync_*): Move before "type".
44 (define_attr "type"): New values "atomic" and "syncloop".
45 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
46 Set "type" attribute.
47 * config/mips/generic.md (generic_atomic, generic_syncloop):
48 New reservations.
49 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
50 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
51 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
52 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
53 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
54 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
55 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
56 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
57 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
58
59 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
60
61 * config/sh/sh.md: Group and sort shift related patterns.
62 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
63
64 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
65
66 * config/cris/cris.c (cris_asm_output_ident): Remove unused
67 local variables section_asm_op, size, buf.
68
69 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
70 Steven Bosscher <steven@gcc.gnu.org>
71 * config/rs6000/power4.md (power4-store-update): Fix reservation.
72 (power4-three): Likewise.
73
74 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
75 Greta Yorsh <Greta.Yorsh@arm.com>
76
77 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
78 * config/arm/arm-cores.def (cortex-a15): Use it.
79
80 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
81 Greta Yorsh <Greta.Yorsh@arm.com>
82
83 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
84 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
85 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
86 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
87 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
88 (arm_fa726te_tune): Likewise.
89
90 2012-07-20 Richard Guenther <rguenther@suse.de>
91
92 * tree-dfa.c (collect_dfa_stats): Simplify.
93 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
94 referenced vars.
95 * cfgexpand.c (estimated_stack_frame_size): Walk over local
96 decls instead of referenced vars.
97 * tree-ssa.c (delete_tree_ssa): Simplify.
98 * tree-tailcall.c (find_tail_calls): Walk over local decls
99 instead of referenced vars.
100 (add_virtual_phis): Remove.
101 (tree_optimize_tail_calls_1): Instead mark the virtual operand
102 for renaming.
103
104 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
105
106 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
107 (brief_dump_cfg): Update prototype to take flags argument.
108 (check_bb_profile): Remove prototype.
109 * tracer.c (tracer): Update brief_dump_cfg calls.
110 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
111 Call dump_bb_info before and after the cfghook dump_bb. Terminate
112 the dump with a newline.
113 (dump_flow_info): Do not call check_bb_profile.
114 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
115 (check_bb_profile): Make static. Take indent and flags arguments.
116 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
117 check_bb_profile. Print one edge per line.
118 (brief_dump_cfg): Take a flags argument, and filter out
119 TDF_COMMENT and TDF_DETAILS.
120 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
121 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use dump_bb_info
122 here, it is already called from dump_bb. Idem for check_bb_profile.
123 (dump_gimple_bb_footer): Likewise.
124 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
125 avoid broken dumps for statement histograms.
126 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
127 not call pp_flush here, the buffer should be empty.
128 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
129 * sched-vis.c (debug_bb_slim): Likewise.
130 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
131 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
132 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
133 (dump_function_to_file): Do not call check_bb_profile on
134 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
135 Use dump_bb instead of gimple_dump_bb.
136 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
137 * passes.c (execute_function_dump): Always call print_rtl_with_bb
138 for RTL dumps.
139 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
140 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and bottom
141 of each basic block.
142
143 2012-07-20 Richard Guenther <rguenther@suse.de>
144
145 PR tree-optimization/54031
146 * tree-ssa-ccp.c (get_value_from_alignment): Use
147 get_pointer_alignment_1.
148
149 2012-07-20 Richard Guenther <rguenther@suse.de>
150
151 * tree-inline.c (add_local_variables): Remove check_var_ann
152 parameter and dead code.
153 (expand_call_inline): Adjust.
154 (tree_function_versioning): Likewise.
155
156 2012-07-20 Jakub Jelinek <jakub@redhat.com>
157
158 PR c++/28656
159 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
160 of just the first one.
161
162 2012-07-20 Richard Guenther <rguenther@suse.de>
163
164 * builtins.c (get_object_alignment_2): Correct offset handling
165 when using type alignment of a MEM_REF kind base.
166
167 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
168
169 PR target/53877
170 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
171 (_lzcnt_u64): Ditto.
172
173 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
174
175 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
176
177 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
178
179 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
180 defining statement is a SSA name that occurs in abnormal PHIs.
181
182 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
183
184 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
185 conversions.
186
187 2012-07-19 Jakub Jelinek <jakub@redhat.com>
188
189 PR rtl-optimization/53942
190 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
191 directly from likely spilled non-fixed hard registers, move them
192 to pseudo first.
193
194 2012-07-19 Steve Ellcey <sellcey@mips.com>
195
196 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
197 MIPS16 mode.
198
199 2012-07-19 Jason Merrill <jason@redhat.com>
200
201 PR debug/53235
202 * dwarf2out.c (get_die_parent): New.
203 (generate_type_signature): Use it.
204
205 2012-07-19 Richard Henderson <rth@redhat.com>
206
207 * config/ia64/vect.md (smulv4hi3_highpart): New.
208 (umulv4hi3_highpart): New.
209 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
210 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
211 (udot_prodv8qi, sdot_prodv8qi): Remove.
212 (sdot_prodv4hi, udot_prodv4hi): Remove.
213 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
214 * config/ia64/ia64-protos.h: Update.
215
216 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
217 vectors larger than UNITS_PER_WORD.
218
219 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
220 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
221 dummy != CODE_FOR_nothing value.
222
223 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
224
225 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
226 * doc/tm.texi: Regenerate.
227 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
228 * config/sh/sh.h (MODE_AFTER): Update.
229 * config/epiphany/epiphany.h (MODE_AFTER): Update.
230
231 2012-07-19 Jakub Jelinek <jakub@redhat.com>
232
233 PR middle-end/54017
234 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
235 (cleanup_tree_cfg_bb): Don't call it.
236 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
237 handling.
238
239 2012-07-19 Christian Bruel <christian.bruel@st.com>
240
241 PR target/54029
242 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
243
244 2012-07-19 Richard Guenther <rguenther@suse.de>
245 Eric Botcazou <ebotcazou@adacore.com>
246
247 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
248 about transition from invariant to known bits.
249 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
250
251 2012-07-19 Richard Guenther <rguenther@suse.de>
252
253 PR tree-optimization/53970
254 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
255
256 2012-07-19 Tristan Gingold <gingold@adacore.com>
257 Richard Henderson <rth@redhat.com>
258
259 * opts.c (finish_options): Handle UI_SEH.
260 * expr.c (build_personality_function): Handle UI_SEH.
261 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
262 * coretypes.h (unwind_info_type): Add UI_SEH.
263 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
264 New function.
265 (i386_pe_seh_init_sections): Likewise.
266 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
267 (TARGET_ASM_INIT_SECTIONS): Define.
268 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
269 (i386_except_unwind_info): New function.
270
271 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
272 Chao-ying Fu <fu@mips.com>
273
274 * config/mips/mips.opt (mmcu): New option.
275 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
276 _mips_mcu when TARGET_MCU.
277 (ASM_SPEC): Pass mcu options to the assembler.
278 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
279
280 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
281
282 * config.gcc (v850-*-rtems*): New target.
283 * config/v850/rtems.h: New.
284 * config/v850/t-rtems: New.
285
286 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
287
288 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
289 of flags controlling optimization; add -ftree-slsr to list of flags
290 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
291 enabled by default at -O2; add -fvect-cost-model to list of flags
292 enabled by default at -O3; document -fhoist-adjacent-loads and
293 -ftree-slsr.
294 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
295 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
296 flag_tree_slsr.
297 * common.opt: Add -ftree-slsr with flag_tree_slsr.
298
299 2012-07-18 Jie Zhang <jzhang918@gmail.com>
300 Julian Brown <julian@codesourcery.com>
301
302 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
303 (arm_size_rtx_costs): Likewise.
304 (neon_valid_immediate): Add a case for double 0.0.
305
306 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
307 Mark Shinwell <shinwell@codesourcery.com>
308 Julian Brown <julian@codesourcery.com>
309
310 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
311 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
312 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
313 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
314 neon_type.
315 * config/arm/arm.md (neon_type): Update comment.
316
317 2012-07-18 Richard Guenther <rguenther@suse.de>
318
319 PR tree-optimization/53970
320 * tree.h (contains_packed_reference): Remove.
321 * expr.c (contains_packed_reference): Likewise.
322 * tree-vect-data-refs.c (not_size_aligned): New function.
323 (vector_alignment_reachable_p): Use it.
324 (vect_supportable_dr_alignment): Likewise.
325
326 2012-07-18 Richard Guenther <rguenther@suse.de>
327
328 * tree.h (get_object_or_type_alignment): Remove.
329 * builtins.c (get_object_alignment_2): New function copied from
330 get_object_alignment_1. Take extra argument to indicate whether
331 we take the address of EXP. Rework to use type alignment information
332 if not, and return whether the result is an approximation or not.
333 (get_object_alignment_1): Wrap around get_object_alignment_2.
334 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
335 we take the address.
336 (get_object_or_type_alignment): Remove.
337 * expr.c (expand_assignment): Call get_object_alignment.
338 (expand_expr_real_1): Likewise.
339
340 2012-07-18 Nick Clifton <nickc@redhat.com>
341
342 * doc/invoke.texi (ARM Options): Document -munaligned-access.
343
344 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
345
346 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
347 expander. Use arith_reg_dest predicate.
348 (rotldi3, rotrdi3): Remove constraints in expander.
349 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
350 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
351 insn_and_split.
352
353 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
354
355 PR target/33135
356 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
357 description.
358 * config/sh/sh.c (sh_option_override): Do not change
359 flag_finite_math_only. Set TARGET_IEEE to complement of
360 flag_finite_math_only.
361 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
362 of mieee and mno-ieee behavior.
363
364 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
365
366 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
367
368 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
369
370 * dumpfile.h (TDF_COMMENT): New define.
371 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
372 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
373 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
374 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
375 Move to new file cfg-flags.h.
376 (enum cfg_edge_flags): New enum, using cfg-flags.h.
377 (EDGE_ALL_FLAGS): Compute value automatically.
378 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
379 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
380 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
381 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
382 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
383 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
384 (BB_ALL_FLAGS): New, compute value automatically.
385 (dump_bb_info): Update prototype.
386 (dump_edge_info): Update prototype.
387 * cfg-flags.h: New file.
388 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
389 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
390 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
391 (debug_bb): Update dump_bb call.
392 (dump_cfg_bb_info): Remove.
393 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
394 Adjust verbosity using TDF_* flags. Check that the basic block flags
395 are within the range of BB_ALL_FLAGS.
396 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
397 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
398 first for consistency with other dump functions.
399 (dump_bb): Update prototype accordingly.
400 * cfghooks.c: Include dumpfile.h.
401 (verify_flow_info): Update dump_edge_info calls.
402 (dump_bb): Take a flags argument and pass it around.
403 Use dump_bb_info to dump common information about a basic block.
404 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
405 (debug_flow_info): Moved here from cfgrtl.c.
406 * profile.c (is_edge_inconsistent): Update dump_bb calls.
407 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
408 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
409 print_rtl_slim_with_bb): Remove prototypes.
410 (dump_insn_slim): Adjust prototype to take a const_rtx.
411 (print_rtl_with_bb): Adjust prototype.
412 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
413 * sched-vis.c (dump_insn_slim): Take a const_rtx.
414 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
415 (print_rtl_slim_with_bb): Remove.
416 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
417 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
418 for that. Prototype here near DEBUG_FUNCTION marker.
419 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
420 Use dump_bb.
421 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
422 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
423 (remove_bb): Update dump_bb call.
424 (gimple_debug_bb): Use dump_bb.
425 (dump_function_to_file): Update gimple_dump_bb call.
426 (print_loops_bb): Likewise.
427 * tree-flow.h (gimple_dump_bb): Update prototype.
428 * gimple-pretty-print.c (dump_bb_header): Rename to
429 dump_gimple_bb_header. Write to a stream instead of a pretty
430 printer. Use dump_bb_info to dump basic block info.
431 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
432 stream instead of a pretty printer. Use dump_bb_info.
433 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
434 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
435 dump_gimple_bb_footer.
436 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
437 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
438 (print_rtl_with_bb): Take a flags argument and pass it around.
439 Use dump_insn_slim if TDF_SLIM.
440 (dump_bb_info): Removed and re-incarnated in cfg.c.
441 (dump_flow_info): Moved to cfghooks.c.
442 (debug_flow_info): Moved to cfghooks.c.
443 * passes.c (execute_function_dump): Unconditionally use
444 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
445 * final.c (dump_basic_block_info): Update dump_edge_info calls.
446 * tree-vrp.c (dump_asserts_for): Likewise.
447 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
448 * tree-if-conv.c (if_convertible_bb_p): Don't look at
449 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
450 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
451 for the same reason.
452 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
453
454 2012-07-17 Richard Guenther <rguenther@suse.de>
455
456 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
457 vars here, use create_tmp_reg where appropriate.
458 (vect_create_addr_base_for_vector_ref): Do not add referenced
459 vars here, use create_tmp_reg where appropriate.
460 (vect_create_data_ref_ptr): Likewise.
461 (vect_create_destination_var): Likewise.
462 (vect_permute_store_chain): Likewise.
463 (vect_permute_load_chain): Likewise.
464 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
465 Likewise.
466 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
467 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
468 (vect_handle_widen_op_by_const): Likewise.
469 * tree-vect-stmts.c (vect_init_vector): Likewise.
470 (vectorizable_load): Likewise.
471
472 2012-07-17 Tom de Vries <tom@codesourcery.com>
473
474 * hwint.c: Fix loop range.
475
476 2012-07-17 Tom de Vries <tom@codesourcery.com>
477
478 * double-int.h (double_int_popcount): New inline function.
479 * hwint.c (popcount_hwi): New function.
480 * hwint.h (popcount_hwi): Declare function. New inline function.
481
482 2012-07-17 Richard Henderson <rth@redhat.com>
483
484 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
485 parameters.
486 (vectorizable_conversion): Update supportable_widening_operation call.
487 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
488 (vect_recog_widen_shift_pattern): Likewise.
489 * tree-vectorizer.h: Update decl.
490
491 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
492 Ulrich Weigand <ulrich.weigand@linaro.org>
493
494 * common/config/arm/arm-common.c (arm_option_optimization_table):
495 Enable -fsched-pressure by default while optimizing.
496 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
497 pressure algorithm by default.
498
499 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
500
501 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
502 (CONST_OK_FOR_I10): Move macro to ...
503 * config/sh/sh.c: ... here.
504 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
505 CONST_OK_FOR_I06.
506
507 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
508
509 * config/sh/sh.md: Delete mov related define_peephole patterns.
510
511 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
512
513 PR c++/53919
514 * doc/install.texi (Installing GCC): Refer to instructions for
515 released versions. Fix hyphenation.
516
517 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
518
519 * config/spu/spu.c (targetm): Move to bottom of file.
520 (spu_attribute_table): Likewise.
521 (spu_option_override, spu_init_builtins, spu_builtin_decl,
522 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
523 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
524 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
525 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
526 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
527 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
528 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
529 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
530 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
531 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
532 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
533 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
534 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
535 spu_encode_section_info, spu_legitimize_address,
536 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
537 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
538 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
539 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
540 spu_section_type_flags, spu_select_section, spu_unique_section,
541 spu_trampoline_init, spu_conditional_register_usage,
542 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
543 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
544 spu_setup_incoming_varargs): Remove prototypes.
545 (spu_legitimize_address): Add "static" to definition.
546
547 2012-07-16 Jakub Jelinek <jakub@redhat.com>
548
549 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
550
551 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
552
553 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
554 before calling gsi_stmt.
555
556 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
557
558 Revert
559 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
560
561 * config/i386/i386.md (stack_protect_set): Disable the pattern
562 for Android since Android libc (bionic) does not provide random
563 value for stack protection guard at gs:0x14. Guard value
564 will be provided from external symbol (default implementation).
565 (stack_protect_set_<mode>): Likewise.
566 (stack_protect_test): Likewise.
567 (stack_protect_test_<mode>): Likewise.
568
569 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
570
571 PR middle-end/53959
572 PR bootstrap/53963
573 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
574 comparison.
575
576 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
577
578 * opts.c (default_option): Add -fvect-cost-model to default options
579 at -O3 and above.
580
581 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
582
583 * graphite-clast-to-gimple.c, graphite-dependences.c,
584 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
585 for pass TODO flags.
586 * Makefile.in: Fix dependencies.
587
588 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
589
590 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
591 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
592
593 * function.c (stack_protect_epilogue): Use expand_call to expand
594 targetm.stack_protect_fail.
595 * stmt.c (expand_expr_stmt): Remove now-unused function.
596 * tree.h (expand_expr_stmt): Remove prototype.
597 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
598 hook must return a CALL_EXPR.
599 * doc/tm.texi: Regenerate.
600
601 * emit-rtl.c (emit_label_before): Do not allow the same label
602 to be emitted twice.
603 (emit_label_after): Likewise.
604 (emit_label): Likewise.
605
606 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
607 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
608 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
609 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
610
611 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
612
613 * system.h (dump_file): Do not define.
614 * tree-pass.h: Include dumpfile.h, which is a new file containing...
615 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
616 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
617 dump_flag_name, dump_file, dump_flags, dump_file_name,
618 get_dump_file_info, struct dump_file_info): all of this, moved to...
619 * dumpfile.h: Here, new file.
620 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
621 (dump_stmt): Remove prototype for C++ specific function.
622 (dump_enumerated_decls): Move prototype from here...
623 * tree-flow.h (dump_enumerated_decls): ... to here.
624 (get_ref_base_and_extent) Move prototype from here ...
625 * tree.h (get_ref_base_and_extent) ... to here.
626 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
627 gimple-pretty-print.h is enough. Do not include tree-dump.h,
628 include timevar.h and dumpfile.h instead.
629 (struct numbered_tree_d, compare_decls_by_uid,
630 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
631 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
632 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
633 Do not include timevar.h.
634 * tree.c: Do not include timevar.h.
635 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
636 timevar.h.
637 (dump_cfg_stats): Use current_function_name.
638 (gimple_cfg2vcg): Likewise.
639 (dump_function_to_file): Likewise.
640 * df-scan.c: Do not include tree-pass.h and timevar.h.
641 Include dumpfile.h.
642 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
643 use print_current_pass.
644 * df-problems.c: Include dumpfile.h.
645 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
646 leads to errors in the code not selected.
647 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
648 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
649 * lcm.c: Include dumpfile.h.
650 Remove obsolete include of insn-attr.h.
651 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
652 missing probability notes.
653 * stmt.c: Include dumpfile.h.
654 (emit_case_decision_tree): Re-enable printing expand details only
655 if TDF_DETAILS.
656 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
657 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
658 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
659 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
660 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
661 function.c, fwprop.c, gcse.c, gimple-fold.c,
662 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
663 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
664 graphite-dependences.c, graphite-interchange.c,
665 graphite-optimize-isl.c, graphite-poly.c,
666 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
667 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
668 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
669 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
670 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
671 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
672 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
673 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
674 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
675 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
676 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
677 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
678 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
679 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
680 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
681 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
682 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
683 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
684 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
685 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
686 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
687 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
688 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
689 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
690 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
691 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
692 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
693 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
694 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
695 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
696 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
697 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
698 tree-ssa-uncprop.c, tree-ssa-uninit.c,
699 tree-switch-conversion.c, tree-tailcall.c,
700 tree-vect-data-refs.c, tree-vect-loop.c,
701 tree-vect-loop-manip.c, tree-vectorizer.c,
702 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
703 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
704 only if needed. If tree-pass.h is included, do not include timevar.h
705 and dumpfile.h. If tree-pass.h is not included but dump_file, or
706 dump_flags, or the TDF_* flags are used, include dumpfile.h.
707 If gimple-pretty-print.h is included, don't include
708 tree-pretty-print.h. Remove assorted unnecessary includes.
709
710 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
711 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
712 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
713 Include dumpfile.h.
714 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
715 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
716 spu/t-spu-elf: Fix dependencies.
717
718 2012-07-16 Dehao Chen <dehao@google.com>
719
720 Revert
721 2012-07-10 Dehao Chen <dehao@google.com>
722
723 * tree.h (phi_arg_d): New field.
724 * tree-flow-inline.h (gimple_phi_arg_block): New function.
725 (gimple_phi_arg_block_from_edge): New function.
726 (gimple_phi_arg_set_block): New function.
727 (gimple_phi_arg_has_block): New function.
728 (redirect_edge_var_map_block): New function.
729 * tree-flow.h (_edge_var_map): New field.
730 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
731 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
732 redirect_edge_var_map_add.
733 * tree-outof-ssa.c (_elim_graph): New field.
734 (insert_partition_copy_on_edge): New parameter.
735 (insert_value_copy_on_edge): New parameter.
736 (insert_rtx_to_part_on_edge): New parameter.
737 (insert_part_to_rtx_on_edge): New parameter.
738 (elim_graph_add_edge): New parameter.
739 (elim_graph_remove_succ_edge): New parameter.
740 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
741 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
742 (new_elim_graph): Add block debug info.
743 (clear_elim_graph): Likewise.
744 (delete_elim_graph): Likewise.
745 (elim_graph_add_node): Likewise.
746 (elim_graph_add_edge): Likewise.
747 (elim_graph_remove_succ_edge): Likewise.
748 (eliminate_build): Likewise.
749 (elim_forward): Likewise.
750 (elim_unvisited_predecessor): Likewise.
751 (elim_backward): Likewise.
752 (elim_create): Likewise.
753 (eliminate_phi): Likewise.
754 (insert_backedge_copies): Likewise.
755 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
756 add_phi_arg.
757 (rewrite_add_phi_arguments): Likewise.
758 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
759 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
760 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
761 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
762 * tree-ssa-loop-manip.c (create_iv): Likewise.
763 (add_exit_phis_edge): Likewise.
764 (split_loop_exit_edge): Likewise.
765 (copy_phi_node_args): Likewise.
766 (tree_transform_and_unroll_loop): Likewise.
767 * value-prof.c (gimple_ic): Likewise.
768 (gimple_stringop_fixed_value): Likewise.
769 * tree-tailcall.c (add_successor_phi_arg): Likewise.
770 (eliminate_tail_call): Likewise.
771 (create_tailcall_accumulator): Likewise.
772 (tree_optimize_tail_calls_1): Likewise.
773 * tree-phinodes.c (add_phi_arg): Likewise.
774 (make_phi_node): Likewise.
775 (resize_phi_node): Likewise.
776 (remove_phi_arg_num): Likewise.
777 * omp-low.c (expand_parallel_call): Likewise.
778 (expand_omp_for_static_chunk): Likewise.
779 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
780 Likewise.
781 (slpeel_update_phi_nodes_for_guard1): Likewise.
782 (slpeel_update_phi_nodes_for_guard2): Likewise.
783 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
784 (set_prologue_iterations): Likewise.
785 (slpeel_tree_peel_loop_to_edge): Likewise.
786 (vect_loop_versioning): Likewise.
787 * tree-parloops.c (create_phi_for_local_result): Likewise.
788 (transform_to_exit_first_loop): Likewise.
789 (create_parallel_loop): Likewise.
790 * ipa-split.c (split_function): Likewise.
791 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
792 (vect_create_epilog_for_reduction): Likewise.
793 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
794 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
795 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
796 (cond_if_else_store_replacement_1): Likewise.
797 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
798 (remove_forwarder_block_with_phi): Likewise.
799 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
800 * tree-predcom.c (initialize_root_vars): Likewise.
801 (initialize_root_vars_lm): Likewise.
802 * sese.c (sese_add_exit_phis_edge): Likewise.
803 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
804 * tree-ssa.c (flush_pending_stmts): Likewise.
805 (redirect_edge_var_map_add): Likewise.
806 (ssa_redirect_edge): Likewise.
807 * gimple-streamer-in.c (input_phi): Likewise.
808 * tree-vect-stmts.c (vectorizable_load): Likewise.
809 * tree-inline.c (copy_phis_for_bb): Likewise.
810 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
811 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
812 * tree-cfg.c (reinstall_phi_args): Likewise.
813 (gimple_make_forwarder_block): Likewise.
814 (add_phi_args_after_copy_edge): Likewise.
815 (gimple_duplicate_sese_tail): Likewise.
816
817 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
818
819 * config/i386/i386.md (stack_protect_set): Disable the pattern
820 for Android since Android libc (bionic) does not provide random
821 value for stack protection guard at gs:0x14. Guard value
822 will be provided from external symbol (default implementation).
823 (stack_protect_set_<mode>): Likewise.
824 (stack_protect_test): Likewise.
825 (stack_protect_test_<mode>): Likewise.
826
827 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
828
829 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
830 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
831 CONSTANT_P and cris_legitimate_address_p.
832 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
833 (cris_preferred_reload_class): Don't return GENERAL_REGS as
834 preferred to MOF_SRP_REGS.
835
836 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
837 of library functions for basic atomic compare-and-swap.
838 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
839 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
840 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
841 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
842 ("atomic_compare_and_swap<mode>")
843 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
844 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
845 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
846 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
847 (atomic_op_op_pred): Ditto.
848 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
849 reflect the change to include %2 in expansion. All callers changed.
850 (qm3): New mode_attr.
851 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
852 as predicate for operand 2.
853 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
854 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
855 constraint for operand 2.
856 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
857 nonmemory_operand for operand 3.
858 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
859 exclude memory. Improve emitted sync code for v10 and v32. Use
860 <qm3> instead of <m> for size designator for cmp.
861 ("atomic_compare_and_swap<mode>"): Change predicate to
862 nonmemory_operand for operand 3. Add FIXME.
863 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
864 constraints for operand 3 to exclude memory.
865 ("atomic_fetch_<atomic_op_name><mode>")
866 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
867 calls on result of call to need_atomic_barrier_p.
868
869 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
870
871 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
872 with mflo and mtlo.
873 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
874 and mtlo. Adjust move_type->type mapping.
875 (may_clobber_hilo): Split mthilo into mthi and mtlo.
876 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
877 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
878 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
879 instead of mthilo and mfhilo.
880 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
881 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
882 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
883 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
884 Use mflo instead of mfhilo.
885 * config/mips/10000.md (r10k_arith): Split mthilo.
886 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
887 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
888 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
889 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
890 mthilo and mfhilo.
891 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
892 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
893 Likewise.
894 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
895 * config/mips/5400.md (ir_vr54_hilo): Likewise.
896 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
897 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
898 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
899 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
900 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
901 * config/mips/generic.md (generic_hilo): Likewise.
902 * config/mips/loongson2ef.md (ls2_alu): Likewise.
903 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
904 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
905 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
906 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
907 * config/mips/xlr.md (xlr_hilo): Likewise.
908
909 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
910 Sandra Loosemore <sandra@codesourcery.com>
911
912 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
913
914 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
915
916 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
917 for TARGET_SSE.
918
919 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
920
921 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
922
923 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
924
925 PR bootstrap/53955
926 * config/spu/spu.c (spu_init_cost): Mark static.
927 (spu_add_stmt_cost): Likewise.
928 (spu_finish_cost): Likewise.
929 (spu_destroy_cost_data): Likewise.
930 * config/i386/i386.c (ix86_init_cost): Mark static.
931 (ix86_add_stmt_cost): Likewise.
932 (ix86_finish_cost): Likewise.
933 (ix86_destroy_cost_data): Likewise.
934 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
935 (rs6000_add_stmt_cost): Likewise.
936 (rs6000_finish_cost): Likewise.
937 (rs6000_destroy_cost_data): Likewise.
938
939 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
940
941 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
942 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
943 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
944 ATTRIBUTE_MALLOC.
945 * alloc-pool.h (pool_alloc): Likewise.
946
947 * final.c (final): Do not loop to find max_uid.
948
949 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
950
951 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
952 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
953
954 2012-07-13 Richard Guenther <rguenther@suse.de>
955
956 PR tree-optimization/53907
957 * tree-ssa-forwprop.c (associate_pointerplus): New function.
958 (ssa_forward_propagate_and_combine): Call it.
959
960 2012-07-13 Richard Guenther <rguenther@suse.de>
961
962 PR tree-optimization/53922
963 * tree-vrp.c (value_inside_range): Change prototype to take
964 min/max instead of value-range.
965 (range_includes_zero_p): Likewise. Return the result from
966 value_inside_range.
967 (extract_range_from_binary_expr_1): Adjust to handle dont-know
968 return value from range_includes_zero_p.
969 (extract_range_from_unary_expr_1): Likewise.
970 (compare_range_with_value): Likewise.
971 (vrp_meet_1): Likewise.
972
973 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
974
975 * doc/tm.texi: Regenerate.
976 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
977 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
978 (TARGET_VECTORIZE_FINISH_COST): Likewise.
979 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
980 * targhooks.c (default_init_cost): New function.
981 (default_add_stmt_cost): Likewise.
982 (default_finish_cost): Likewise.
983 (default_destroy_cost_data): Likewise.
984 * targhooks.h (default_init_cost): New decl.
985 (default_add_stmt_cost): Likewise.
986 (default_finish_cost): Likewise.
987 (default_destroy_cost_data): Likewise.
988 * target.def (init_cost): New DEFHOOK.
989 (add_stmt_cost): Likewise.
990 (finish_cost): Likewise.
991 (destroy_cost_data): Likewise.
992 * target.h (struct _stmt_vec_info): New extern decl.
993 (stmt_vectype): Likewise.
994 (stmt_in_inner_loop_p): Likewise.
995 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
996 (stmt_vector_for_cost): New VEC/typedef.
997 (add_stmt_info_to_vec): New function.
998 (struct _slp_tree): Remove cost.inside_of_loop field.
999 (struct _slp_instance): Remove cost.inside_of_loop field; add
1000 stmt_cost_vec field.
1001 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
1002 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
1003 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
1004 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
1005 (struct _loop_vec_info): Add target_cost_data field.
1006 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
1007 (struct _bb_vec_info): Add target_cost_data field.
1008 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
1009 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
1010 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
1011 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
1012 (init_cost): New function.
1013 (add_stmt_cost): Likewise.
1014 (finish_cost): Likewise.
1015 (destroy_cost_data): Likewise.
1016 (vect_model_simple_cost): Change parameter list.
1017 (vect_model_store_cost): Likewise.
1018 (vect_model_load_cost): Likewise.
1019 (record_stmt_cost): New extern decl.
1020 (vect_get_load_cost): Change parameter list.
1021 (vect_get_store_cost): Likewise.
1022 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
1023 (destroy_loop_vec_info): Call destroy_cost_data.
1024 (vect_estimate_min_profitable_iters): Remove old calculation of
1025 inside costs; call finish_cost instead.
1026 (vect_model_reduction_cost): Call add_stmt_cost instead of old
1027 inside-costs calculation.
1028 (vect_model_induction_cost): Likewise.
1029 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
1030 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
1031 and vect_get_store_cost to obtain the value to return.
1032 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
1033 vect_get_data_access_cost and store it in the minimum peeling
1034 structure.
1035 (vect_peeling_hash_choose_best_peeling): Change the parameter list
1036 to add a (stmt_vector_for_cost *) output parameter, and set its value.
1037 (vect_enhance_data_refs_alignment): Ignore the new return value from
1038 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
1039 vect_peeling_hash_choose_best_peeling and pass its contents to the
1040 target cost model.
1041 * tree-vect-stmts.c (stmt_vectype): New function.
1042 (stmt_in_inner_loop_p): Likewise.
1043 (record_stmt_cost): Likewise.
1044 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
1045 record_stmt_cost instead of old calculation; don't call
1046 stmt_vinfo_set_inside_of_loop_cost.
1047 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
1048 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
1049 (vect_model_store_cost): Add stmt_cost_vec parameter; call
1050 record_stmt_cost instead of old calculation; add stmt_cost_vec
1051 parameter to vect_get_store_cost call; don't call
1052 stmt_vinfo_set_inside_of_loop_cost.
1053 (vect_get_store_cost): Add stmt_cost_vec parameter; call
1054 record_stmt_cost instead of old calculation.
1055 (vect_model_load_cost): Add stmt_cost_vec parameter; call
1056 record_stmt_cost instead of old calculation; add stmt_cost_vec
1057 parameter to vect_get_load_cost call; don't call
1058 stmt_vinfo_set_inside_of_loop_cost.
1059 (vect_get_load_cost): Add stmt_cost_vec parameter; call
1060 record_stmt_cost instead of old calculation.
1061 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
1062 (vectorizable_conversion): Likewise.
1063 (vectorizable_assignment): Likewise.
1064 (vectorizable_shift): Likewise.
1065 (vectorizable_operation): Likewise.
1066 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
1067 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
1068 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
1069 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
1070 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1071 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1072 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1073 (spu_init_cost): New function.
1074 (spu_add_stmt_cost): Likewise.
1075 (spu_finish_cost): Likewise.
1076 (spu_destroy_cost_data): Likewise.
1077 * config/i386/i386.c (ix86_init_cost): New function.
1078 (ix86_add_stmt_cost): Likewise.
1079 (ix86_finish_cost): Likewise.
1080 (ix86_destroy_cost_data): Likewise.
1081 (TARGET_VECTORIZE_INIT_COST): New macro def.
1082 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1083 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1084 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1085 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
1086 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
1087 (TARGET_VECTORIZE_FINISH_COST): Likewise.
1088 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
1089 (rs6000_init_cost): New function.
1090 (rs6000_add_stmt_cost): Likewise.
1091 (rs6000_finish_cost): Likewise.
1092 (rs6000_destroy_cost_data): Likewise.
1093 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
1094 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
1095 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
1096 stmt_cost_vec parameter to vect_model_store_cost and
1097 vect_model_simple_cost calls.
1098 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
1099 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
1100 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
1101 calculating cost more than once for loads; remove inside_cost
1102 parameter from recursive vect_build_slp_tree calls; call
1103 record_stmt_cost instead of old calculation.
1104 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
1105 the instance; free it on premature exit; remove inside_cost parameter
1106 from vect_build_slp_tree call; add stmt_cost_vec parameter to
1107 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
1108 (new_bb_vec_info): Call init_cost.
1109 (destroy_bb_vec_info): Call destroy_cost_data.
1110 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
1111 statement recorded with an SLP instance; call finish_cost instead of
1112 the old calculation.
1113 (vect_update_slp_costs_according_to_vf): Record statement costs from
1114 SLP instances, multiplying by the appropriate number of copies; don't
1115 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
1116
1117 2012-07-13 Richard Guenther <rguenther@suse.de>
1118
1119 PR middle-end/53937
1120 * builtins.c (get_pointer_alignment_1): Handle constant
1121 pointers.
1122
1123 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
1124 Steven Bosscher <steven@gcc.gnu.org>
1125 Bernd Schmidt <bernds@codesourcery.com>
1126
1127 PR rtl-optimization/53908
1128 * df-problems.c (can_move_insns_across): When doing
1129 memory-reference book-keeping, handle call insns.
1130
1131 2012-07-13 Richard Guenther <rguenther@suse.de>
1132
1133 * gimple.c (gimple_types_compatible_p_1): Remove redundant
1134 type attribute comparisons.
1135 (gimple_canonical_types_compatible_p): Likewise.
1136
1137 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
1138
1139 PR rtl-optimization/53176
1140 * rtlanal.c (rtx_cost): Adjust default cost for X with a
1141 UNITS_PER_WORD factor for all X according to the size of
1142 its mode, not just for SUBREGs with untieable modes.
1143 Handle SET. Use factor * factor for MULT, DIV, UDIV,
1144 MOD, UMOD.
1145
1146 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
1147
1148 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
1149 QImode and HImode splitters. Use ix86_comparison_operator.
1150 Explicitly match FLAGS_REG.
1151 (DFmode cmove splitter): Explicitly match FLAGS_REG.
1152
1153 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1154
1155 * expr.h (can_move_by_pieces): Move prototype from here ...
1156 * tree.h (can_move_by_pieces): ... to here.
1157 * optabs.h (set_widening_optab_handler): Use XCNEW.
1158 * gimplify.c: Do not include expr.h.
1159
1160 * toplev.c: Do not include dwarf2out.h.
1161 * config/ia64/ia64.c: Likewise.
1162 * config/sparc/sparc.c: Likewise.
1163 * config/sparc/t-sparc (sparc.o): Fix dependencies.
1164
1165 * Makefile.in (toplev.o): Fix dependencies
1166 (c-family/c-gimplify.o): Likewise.
1167 (c-family/c-common.o): Likewise.
1168
1169 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1170
1171 * basic-block.h (struct edge_def): Use basic_block instead of
1172 basic_block_def *.
1173 * cfgloop.h (struct loop_exit, struct loop): Likewise.
1174 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
1175 instead of union tree_node *.
1176 * rtl.h (union rtunion_def, emit_insn_before_noloc,
1177 emit_insn_after_noloc, add_insn_before, add_insn_after,
1178 debug_bb_slim): Likewise.
1179 * tree-inline.h (struct copy_body_data): Likewise.
1180 * sched-rgn.c (dump_region_dot): Likewise.
1181 * gimple.h (struct gimple_statement_base, gimple_set_bb,
1182 gsi_move_to_bb_end): Likewise.
1183 * sched-vis.c (debug_bb_slim): Likewise.
1184 (debug_bb_n_slim): Likewise.
1185 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
1186 (mn10300_block_contains_call):
1187
1188 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
1189
1190 PR target/53859
1191 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
1192 epilogue patterns.
1193
1194 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
1195
1196 * doc/extend.texi (Namespace Association): Alter cautionary text.
1197
1198 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
1199
1200 PR target/53911
1201 * config/sh/sh.md: Remove displacement addresssing related splits.
1202
1203 2012-07-10 Xinliang David Li <davidxl@google.com>
1204
1205 * doc/invoke.texi: New option documented.
1206 * flag-types.h: New enum type.
1207 * gimplify.c (gimplify_bind_expr): Control
1208 clobber generation with new option.
1209 (gimplify_target_expr): Ditto.
1210 * common.opt: New option.
1211
1212 2012-07-10 Julian Brown <julian@codesourcery.com>
1213
1214 * config/arm/arm.md (movsi): Don't split symbol refs here.
1215 (define_split): New.
1216
1217 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
1218
1219 PR bootstrap/53913
1220 * config/m68k/m68k.c (m68k_epilogue_uses): New.
1221 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
1222 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
1223
1224 2012-07-10 Richard Henderson <rth@redhat.com>
1225
1226 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
1227 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
1228 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
1229 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
1230 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
1231 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
1232 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
1233 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
1234 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
1235 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
1236 (bdesc_args): Remove entries to match.
1237 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
1238 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1239 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1240 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
1241 (rs6000_builtin_mul_widen_odd): Remove.
1242 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1243 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1244 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
1245 (spu_builtin_mul_widen_odd): Remove.
1246 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
1247 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
1248 * doc/tm.texi.in: Don't document the removed hooks.
1249
1250 * tree-vect-stmts.c (supportable_widening_operation): Expand
1251 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
1252
1253 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
1254 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
1255 * optabs.c (can_mult_highpart_p): New.
1256 (expand_mult_highpart): New.
1257 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
1258 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
1259 by pieces if can_mult_highpart_p.
1260 (expand_vector_divmod): Use can_mult_highpart_p and always
1261 generate MULT_HIGHPART_EXPR.
1262 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
1263 * tree-vect-stmts.c (vectorizable_operation): Likewise.
1264
1265 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
1266 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
1267 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
1268 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
1269 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
1270 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
1271 * config/spu/spu-builtins.def: Update pattern names to match.
1272
1273 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
1274 from altivec_vmuleub.
1275 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
1276 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
1277 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
1278 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
1279 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
1280 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
1281 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
1282 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
1283
1284 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
1285 avx2_umulv4siv4di3.
1286 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
1287 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
1288 (mulv4si3): Remove XOP test shadowed by SSE4 test.
1289 * config/i386/i386.c (bdesc_args): Update pattern names.
1290 (ix86_expand_sse2_mulvxdi3): Likewise.
1291 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
1292 shadowed by SSE4 test.
1293
1294 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
1295 * cfgexpand.c (expand_debug_expr): Handle them.
1296 * expr.c (expand_expr_real_2): Likewise.
1297 * fold-const.c (fold_binary_loc): Likewise.
1298 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
1299 * optabs.c (optab_for_tree_code): Likewise.
1300 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1301 * tree-inline.c (estimate_operator_cost): Likewise.
1302 * tree-pretty-print.c (dump_generic_node): Likewise.
1303 * tree.c (commutative_tree_code): Likewise.
1304 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1305 Handle type change before looking up optab.
1306 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
1307 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
1308 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
1309 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
1310 * genopinit.c (optabs): Initialize them.
1311 * doc/md.texi: Document them.
1312
1313 2012-07-10 Dehao Chen <dehao@google.com>
1314
1315 * tree.h (phi_arg_d): New field.
1316 * tree-flow-inline.h (gimple_phi_arg_block): New function.
1317 (gimple_phi_arg_block_from_edge): New function.
1318 (gimple_phi_arg_set_block): New function.
1319 (gimple_phi_arg_has_block): New function.
1320 (redirect_edge_var_map_block): New function.
1321 * tree-flow.h (_edge_var_map): New field.
1322 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
1323 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
1324 redirect_edge_var_map_add.
1325 * tree-outof-ssa.c (_elim_graph): New field.
1326 (insert_partition_copy_on_edge): New parameter.
1327 (insert_value_copy_on_edge): New parameter.
1328 (insert_rtx_to_part_on_edge): New parameter.
1329 (insert_part_to_rtx_on_edge): New parameter.
1330 (elim_graph_add_edge): New parameter.
1331 (elim_graph_remove_succ_edge): New parameter.
1332 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
1333 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
1334 (new_elim_graph): Add block debug info.
1335 (clear_elim_graph): Likewise.
1336 (delete_elim_graph): Likewise.
1337 (elim_graph_add_node): Likewise.
1338 (elim_graph_add_edge): Likewise.
1339 (elim_graph_remove_succ_edge): Likewise.
1340 (eliminate_build): Likewise.
1341 (elim_forward): Likewise.
1342 (elim_unvisited_predecessor): Likewise.
1343 (elim_backward): Likewise.
1344 (elim_create): Likewise.
1345 (eliminate_phi): Likewise.
1346 (insert_backedge_copies): Likewise.
1347 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
1348 add_phi_arg.
1349 (rewrite_add_phi_arguments): Likewise.
1350 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
1351 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
1352 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
1353 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
1354 * tree-ssa-loop-manip.c (create_iv): Likewise.
1355 (add_exit_phis_edge): Likewise.
1356 (split_loop_exit_edge): Likewise.
1357 (copy_phi_node_args): Likewise.
1358 (tree_transform_and_unroll_loop): Likewise.
1359 * value-prof.c (gimple_ic): Likewise.
1360 (gimple_stringop_fixed_value): Likewise.
1361 * tree-tailcall.c (add_successor_phi_arg): Likewise.
1362 (eliminate_tail_call): Likewise.
1363 (create_tailcall_accumulator): Likewise.
1364 (tree_optimize_tail_calls_1): Likewise.
1365 * tree-phinodes.c (add_phi_arg): Likewise.
1366 (make_phi_node): Likewise.
1367 (resize_phi_node): Likewise.
1368 (remove_phi_arg_num): Likewise.
1369 * omp-low.c (expand_parallel_call): Likewise.
1370 (expand_omp_for_static_chunk): Likewise.
1371 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
1372 Likewise.
1373 (slpeel_update_phi_nodes_for_guard1): Likewise.
1374 (slpeel_update_phi_nodes_for_guard2): Likewise.
1375 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1376 (set_prologue_iterations): Likewise.
1377 (slpeel_tree_peel_loop_to_edge): Likewise.
1378 (vect_loop_versioning): Likewise.
1379 * tree-parloops.c (create_phi_for_local_result): Likewise.
1380 (transform_to_exit_first_loop): Likewise.
1381 (create_parallel_loop): Likewise.
1382 * ipa-split.c (split_function): Likewise.
1383 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1384 (vect_create_epilog_for_reduction): Likewise.
1385 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1386 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
1387 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1388 (cond_if_else_store_replacement_1): Likewise.
1389 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1390 (remove_forwarder_block_with_phi): Likewise.
1391 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
1392 * tree-predcom.c (initialize_root_vars): Likewise.
1393 (initialize_root_vars_lm): Likewise.
1394 * sese.c (sese_add_exit_phis_edge): Likewise.
1395 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
1396 * tree-ssa.c (flush_pending_stmts): Likewise.
1397 (redirect_edge_var_map_add): Likewise.
1398 (ssa_redirect_edge): Likewise.
1399 * gimple-streamer-in.c (input_phi): Likewise.
1400 * tree-vect-stmts.c (vectorizable_load): Likewise.
1401 * tree-inline.c (copy_phis_for_bb): Likewise.
1402 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1403 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
1404 * tree-cfg.c (reinstall_phi_args): Likewise.
1405 (gimple_make_forwarder_block): Likewise.
1406 (add_phi_args_after_copy_edge): Likewise.
1407 (gimple_duplicate_sese_tail): Likewise.
1408
1409 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
1410
1411 PR target/53886
1412 * config/sh/sh.c (sequence_insn_p): New function.
1413 (find_barrier, sh_insn_length_adjustment): Use it.
1414
1415 2012-07-09 Iain Sandoe <iain@codesourcery.com>
1416
1417 PR target/53283
1418 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
1419 if defined.
1420 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
1421 SUBTARGET_FOLD_BUILTIN.
1422 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
1423 SUBTARGET_FOLD_BUILTIN.
1424
1425 2012-07-09 Iain Sandoe <iain@codesourcery.com>
1426
1427 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
1428 runtime exceptions model setting from here ...
1429 * config/darwin.c (darwin_override_options): ... to here.
1430
1431 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
1432
1433 PR tree-optimization/53887
1434 * tree-cfg.c (group_case_labels_stmt): Make non-static.
1435 * tree-flow.h (group_case_labels_stmt): Add prototype.
1436 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
1437 to pre-process every switch.
1438
1439 2012-07-09 Jason Merrill <jason@redhat.com>
1440
1441 PR c++/53882
1442 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
1443 (type_hash_eq): Likewise.
1444
1445 2012-07-09 Tom de Vries <tom@codesourcery.com>
1446 Richard Guenther <rguenther@suse.de>
1447
1448 * tree-ssa-ccp.c (optimize_unreachable): New function.
1449 (execute_fold_all_builtins): Use optimize_unreachable to optimize
1450 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
1451
1452 2012-07-09 Richard Guenther <rguenther@suse.de>
1453
1454 PR bootstrap/53898
1455 * graphite-optimize-isl.c: Make sure CU is not empty.
1456
1457 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
1458
1459 * gensupport.c (init_rtx_reader_args_cb): Start counting code
1460 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
1461 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
1462 the LAST_INSN_CODE marker at the end.
1463 * genoutput.c (nothing): New static struct data.
1464 (idata): Initialize to &nothing.
1465 (idata_end): Initialize to &nothing.next.
1466 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
1467 (main): Use it.
1468 * genpeep.c (insn_code_number): Remove global variable.
1469 (gen_peephole): Take it as an argument instead.
1470 (main): Take insn_code_number from read_md_rtx.
1471 * optabs.h: Revert r161809:
1472 (optab_handlers): Change type of insn_code back to insn_code.
1473 (optab_handler, widening_optab_handler, set_optab_handler,
1474 set_widening_optab_handler, convert_optab_handler,
1475 set_convert_optab_handler, direct_optab_handler,
1476 set_direct_optab_handler): Remove int casts.
1477 Revert to treating the insn_code field as "insn_code".
1478
1479 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
1480
1481 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
1482 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
1483 * config/sh/sh-protos.h: Declare it.
1484
1485 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1486
1487 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
1488 (dump_fixup_graph): Use current_function_name.
1489 (adjust_cfg_counts): Likewise.
1490 * ira-conflicts.c: Do not include tree.h.
1491 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
1492
1493 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
1494
1495 PR target/51244
1496 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
1497
1498 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1499
1500 * basic-block.h: Re-group most prototypes per file.
1501 (struct edge_list): Remove num_blocks field.
1502 (dump_bb_info): Adjust prototypes.
1503 (dump_reg_info): Move prototype to regs.h.
1504 * function.h: Do not include tree.h.
1505 Include vec.h, vecir.h, input.h and machmode.h to compensate.
1506 (function_name): New prototype.
1507 * gimple.h: Include tree.h to compensate for basic-block.h change.
1508 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
1509 * regs.h (dump_reg_info): Prototype here.
1510 * regset.h: Adjust file reference in comment.
1511 (debug_regset): Remove prototype.
1512 * rtl.h: Include flags.h for flag_var_tracking_assignments.
1513 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
1514 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
1515 (dump_reg_info, dump_flow_info): Remove prototypes.
1516 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
1517 to here, the only user. Make static.
1518 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
1519 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
1520 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
1521 tree-pass.h, cfgloop.h, and tree-flow.h.
1522 Include basic-block.h, the first header I'd expect to be included.
1523 (reg_obstack): Move to df-core.c.
1524 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
1525 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
1526 (redirect_edge_succ_nodup): Move to cfghooks.c.
1527 (dump_regset, debug_regset): Move to df-core.c.
1528 (dump_bb_info): Move to cfgrtl.c.
1529 (dump_reg_info): Move to regstat.c.
1530 (dump_flow_info): Move to cfgrtl.c.
1531 (debug_flow_info): Likewise.
1532 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
1533 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
1534 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
1535 (flow_active_insn_p, forwarder_block_p, can_fallthru,
1536 could_fall_through): Move to cfgrtl.c.
1537 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
1538 (create_edge_list): Do not set edge_list's removed num_blocks.
1539 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
1540 (flow_nodes_print): Remove.
1541 (flow_edge_list_print): Remove.
1542 (inverted_post_order_compute): Use FOR_ALL_BB.
1543 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
1544 Do not call dump_reg_info.
1545 (debug_flow_info): Moved from cfg.c
1546 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
1547 to avoid looking at TDF_* flags from tree-pass.h.
1548 (flow_active_insn_p, forwarder_block_p, can_fallthru,
1549 could_fall_through): Moved from cfganal.c.
1550 (print_rtl_with_bb): Adjust dump_bb_info calls.
1551 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
1552 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
1553 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
1554 * cselib.c: Include tree.h with a FIXME.
1555 * df-core.c (reg_obstack): Moved from cfg.c.
1556 (dump_regset): Likewise.
1557 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
1558 * final.c (compute_alignments): Call dump_reg_info before
1559 dump_flow_info.
1560 * function.c (function_name): New function.
1561 (current_function_name): Use it.
1562 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
1563 dump_flow_info.
1564 * ira-conflicts.c: Include tree.h with a note.
1565 * regstat.c (dump_reg_info): Moved here from cfg.c.
1566 * loop-init.c: Include regs.h instead of hard-reg-set.h.
1567 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
1568 (rtl_loop_done): Likewise.
1569 * mcf.c: Include tree.h before langhooks.h.
1570 * predict.c (maybe_hot_count_p): Assert we have cfun.
1571 (probably_never_executed_bb_p): Likewise.
1572 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
1573 instead of dump_flow_info.
1574 * sched-deps.c: Include tree.h with a FIXME.
1575 (call_may_noreturn_p): Add FIXME note why this function has to
1576 look at function decls instead of function decl flags.
1577 * sched-vis.c: Include tree.h with a FIXME.
1578 (print_rtl_slim): Adjust dump_bb_info uses.
1579 * statistics.c (statistics_fini_pass_2): Use current_function_name
1580 to avoid including tree.h.
1581 (statistics_counter_event): Use function_name for the same reason.
1582 (statistics_histogram_event): Likewise.
1583 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
1584 instead of dump_flow_info.
1585 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
1586 before dump_flow_info.
1587 * doc/cfg.texi: Update CFG documentation.
1588 * Makefile.in (RTL_H): Depend on FLAGS_H.
1589 (GIMPLE_H): Depend on TREE_H.
1590 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
1591 but no longer on TREE_H.
1592 (C_COMMON_H): Depend on TREE_H.
1593 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
1594 sched-deps.o, sched-vis.o): Fixup dependencies.
1595
1596 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1597
1598 * alias.h: Do not include coretypes.h in header files.
1599 * cppbuiltin.h: Likewise.
1600 * double-int.h: Likewise.
1601 * gimple-fold.h: Likewise.
1602 * flags.h: Likewise.
1603 * tree-ssa-alias.h: Likewise.
1604 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
1605 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
1606 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
1607 (TREE_H): Likewise.
1608 (ALIAS_H): Do not depend on coretypes.h.
1609 (FLAGS_H): Likewise.
1610 (realmpfr.o): Depend on coretypes.h.
1611
1612 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1613
1614 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
1615 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
1616
1617 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
1618
1619 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
1620 (TARGET_FPA): Delete definition.
1621 (TARGET_MAVERICK): Likewise.
1622 (TARGET_FPA_EMU2): Likewise.
1623 (arm_fp_model): Remove FPA and Maverick models.
1624 (arm_arch_cirrus): Delete declaration.
1625 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
1626 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
1627 (CALL_USED_REGISTERS): Likewise.
1628 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
1629 (FIRST_VFP_REGNUM): Renumbered.
1630 (D7_VFP_REGNUM): Chain definition.
1631 (LAST_LO_VFP_REGNUM): Likewise.
1632 (FIRST_HI_VFP_REGNUM): Likewise.
1633 (LAST_HI_VFP_REGNUM): Likewise.
1634 (FIRST_IWMMXT_GR_REGNUM): Likewise.
1635 (LAST_IWMMXT_GR_REGNUM): Likewise.
1636 (FIRST_IWMMXT_REGNUM): Likewise.
1637 (LAST_IWMMXT_REGNUM): Likewise.
1638 (FRAME_POINTER_REGNUM): Renumbered.
1639 (ARG_POINTER_REGNUM): Renumbered.
1640 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
1641 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
1642 (HARD_REGNO_REGNUM): Remove FPA support.
1643 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
1644 (reg_class): Likewise.
1645 (REG_CLASS_NAMES): Likewise.
1646 (REG_CLASS_CONTENTS): Likewise.
1647 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
1648 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
1649 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
1650 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
1651 Reorganize. Use AAPCS preferred names.
1652 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
1653 comments.
1654 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
1655 * arm.c (FL_CIRRUS): Delete definition.
1656 (arm_arch_cirrus): Delete variable.
1657 (arm_float_words_big_endian): Delete function.
1658 (cirrus_memory_offset): Delete function.
1659 (output_mov_long_double_fpa_from_arm): Delete function.
1660 (output_mov_long_double_arm_from_fpa): Delete function.
1661 (output_mov_double_fpa_from_arm): Delete function.
1662 (output_mov_double_arm_from_fpa): Delete function.
1663 (emit_sfm): Delete function.
1664 (maybe_get_arm_condition_code): Update comment.
1665 (arm_file_start): Always use softvfp for softfloat systems.
1666 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
1667 (arm_option_override): Remove FPA and Maverick support. Always
1668 default to vfp as the fallback FPU format.
1669 (use_return_insn): Remove FPA support.
1670 (arm_get_frame_offsets): Likewise.
1671 (arm_save_coproc_regs): Likewise.
1672 (arm_canonicalize_comparison): Remove Maverick support.
1673 (arm_select_cc_mode): Likewise.
1674 (arm_gen_compare_reg): Likewise.
1675 (arm_print_operand): Likewise.
1676 (arm_libcall_value_1): Remove FPA and Maverick support.
1677 (arm_function_value_regno_p): Likewise.
1678 (arm_apply_result_size): Likewise.
1679 (arm_legitimate_index_p): Likewise.
1680 (thumb2_legitimate_index_p): Likewise.
1681 (legitimize_reload_address): Likewise.
1682 (arm_register_move_cost): Likewise.
1683 (arm_hard_regno_mode_ok): Likewise.
1684 (arm_regno_class): Likewise.
1685 (arm_dbx_register_number): Likewise.
1686 (arm_emit_unwind_sequence): Likewise.
1687 (arm_conditional_register_usage): Likewise.
1688 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
1689 (cirrus_memory_offset): Likewise.
1690 (output_move_long_double_fpa_from_arm): Likewise.
1691 (output_move_long_double_arm_from_fpa): Likewise.
1692 (output_move_double_fpa_from_arm): Likewise.
1693 (output_move_double_arm_from_fpa): Likewise.
1694 (arm_float_words_big_endian): Likewise.
1695 * arm.md (CC_REGNUM): Renumbered.
1696 (VFPCC_REGNUM): Moved here. Renumbered.
1697 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
1698 (attr fpu): Remove FPA and Maverick support.
1699 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
1700 * arm-cores.def (ep9312): Remove Maverick support.
1701 * arm-arches.def (ep9312): Delete architecture.
1702 * arm-tables.opt: Regenerated.
1703
1704 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
1705
1706 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
1707
1708 PR tree-optimization/53881
1709 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
1710 comparing labels to establish uniqueness of a switch case target,
1711 use the CFG instead.
1712
1713 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1714
1715 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
1716 due to negative shift amount.
1717
1718 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
1719
1720 Fix configure test for "stack protector support in target C library".
1721 * configure.ac (test_prefix, test_exec_prefix): Move setting from
1722 inside sysroot handling to before and outside it.
1723 * configure: Regenerate.
1724
1725 2012-07-06 Kai Tietz <ktietz@redhat.com>
1726
1727 PR bootstrap/52947
1728 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
1729 as "/mingw/include".
1730
1731 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
1732
1733 PR debug/53820
1734 * var-tracking.c (vt_add_function_parameter): Convert
1735 internal_arg_pointer into arg_pointer-based address even
1736 without DRAP.
1737
1738 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
1739
1740 PR rtl-optimization/53827
1741 PR debug/53671
1742 PR debug/49888
1743 * alias.c (memrefs_conflict_p): Adjust offset and size by the
1744 same amount for alignment ANDs.
1745
1746 2012-07-06 Tom de Vries <tom@codesourcery.com>
1747
1748 PR tree-optimization/51879
1749 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
1750 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
1751 (visit_use): Also call visit_reference_op_call for calls with a vdef.
1752
1753 2012-07-06 Tom de Vries <tom@codesourcery.com>
1754
1755 PR tree-optimization/52009
1756 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
1757 value numbers of gimple_vdef.
1758 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
1759 prototype.
1760 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
1761 (vn_reference_insert): Add and handle vdef parameter.
1762 (visit_reference_op_load): Add argument to vn_reference_insert call.
1763 (visit_reference_op_store): Find value number of vdef of store. Insert
1764 value number of vdef of store.
1765
1766 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1767
1768 * config/i386/i386.md (simple lea to add peephole): Also transform
1769 RTXes where second PLUS operand matches output.
1770
1771 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1772
1773 * config/i386/i386.c (construct_plt_address): Make static.
1774 * config/i386/i386-protos.h (construct_plt_address): Remove.
1775
1776 2012-07-06 Nick Clifton <nickc@redhat.com>
1777
1778 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
1779 default_encode_section_info.
1780
1781 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
1782
1783 PR target/53853
1784 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
1785 emit PIC sequence for fnaddr symbol reference in advance.
1786
1787 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
1788
1789 Revert
1790 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
1791
1792 * dwarf2out.c (function_possibly_abstracted_p): New static function.
1793 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
1794 cgraph_function_possibly_inlined_p.
1795 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
1796 (process_scope_var): Do not emit concrete instances of abstracted
1797 nested functions from here.
1798 (gen_decl_die): Emit the abstract instance if the function is possibly
1799 abstracted and not only possibly inlined.
1800 (dwarf2out_finish): Find the first non-abstract parent instance and
1801 attach concrete instances on the limbo list to it.
1802
1803 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1804 Julian Brown <julian@codesourcery.com>
1805
1806 PR target/48941
1807 PR target/51980
1808 * config/arm/neon-gen.ml (return_by_ptr): Delete.
1809 (print_function): Handle empty strings.
1810 (return): Delete use of return_by_ptr.
1811 (mask_shape_for_shuffle): New function.
1812 (mask_elems): Likewise.
1813 (shuffle_fn): Likewise.
1814 (params): Simplify and remove use of return_by_ptr.
1815 (get_shuffle): New function.
1816 (print_variant): Update.
1817 * config/arm/neon.ml (rev_elems): New function.
1818 (permute_range): Likewise.
1819 (zip_range): Likewise.
1820 (uzip_range): Likewise.
1821 (trn_range): Likewise.
1822 (zip_elems): Likewise.
1823 (uzip_elems): Likewise.
1824 (trn_elems): Likewise.
1825 (features): New enumeration Use_shuffle. Delete ReturnPtr.
1826 (pf_su_8_16): New.
1827 (suf_32): New.
1828 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
1829 * config/arm/arm_neon.h: Regenerate.
1830
1831 2012-07-05 Richard Guenther <rguenther@suse.de>
1832
1833 * tree-pretty-print.c (dump_generic_node): Properly test
1834 the result of exact_log2.
1835
1836 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1837
1838 * config/s390/s390-protos.h (s390_expand_movmem)
1839 (s390_expand_cmpmem): Add return value.
1840 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
1841 Return FALSE to use the library function in some cases.
1842 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
1843 helper functions.
1844
1845 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1846
1847 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
1848
1849 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
1850
1851 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
1852 * stmt.c (dump_case_nodes): New.
1853 (expand_case): Split out code generation parts into new functions.
1854 (expand_switch_as_decision_tree_p): Split out from expand_case.
1855 (emit_case_decision_tree): Likewise.
1856 (emit_case_dispatch_table): Likewise.
1857
1858 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1859
1860 * config/arm/iterators.md (SDF): New mode iterator.
1861 (V_if_elem): Add support for SF and DF modes.
1862 (V_reg): Likewise.
1863 (F_constraint): New mode iterator attribute.
1864 (F_fma_type): Likewise.
1865 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
1866 (*fmsub<SDF:mode>4): Likewise.
1867 (*fmnsub<SDF:mode>4): Likewise.
1868 (*fmnadd<SDF:mode>4): Likewise.
1869
1870 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
1871
1872 * expmed.c (expand_mult): Initialize coeff and is_neg.
1873
1874 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
1875
1876 * config/sh/predicates.md (zero_extend_operand): New predicate.
1877 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
1878 zero_extend_operand predicate.
1879 (zero_extendqisi2): Likewise.
1880
1881 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
1882
1883 PR middle-end/53321
1884 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
1885 to not call cgraph_propagate_frequency if something was changed.
1886
1887 2012-07-04 Richard Guenther <rguenther@suse.de>
1888
1889 PR middle-end/53433
1890 * gimple-fold.c (get_base_constructor): Do not return an
1891 error_mark_node DECL_INITIAL.
1892
1893 2012-07-04 Richard Guenther <rguenther@suse.de>
1894
1895 PR tree-optimization/53844
1896 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
1897 the loop virtual PHI.
1898
1899 2012-07-04 Richard Guenther <rguenther@suse.de>
1900
1901 PR tree-optimization/53849
1902 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
1903 for duplicated locals. Use add_referenced_var_1 to avoid
1904 pushing/popping cfun.
1905
1906 2012-07-04 Kai Tietz <ktietz@redhat.com>
1907
1908 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
1909 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
1910 prototype.
1911 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
1912 as i386_pe_reloc_rw_mask.
1913
1914 2012-07-04 Richard Guenther <rguenther@suse.de>
1915
1916 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
1917 as in free_lang_data_in_type.
1918
1919 2012-07-04 Tobias Grosser <tobias@grosser.es>
1920 Michael Matz <matz@suse.de>
1921
1922 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
1923 (graphite-optimize-isl.o): Add dependencies.
1924 * common.opt (floop-nest-optimize): New flag.
1925 * doc/invoke.texi (floop-nest-optimize): Document.
1926 * graphite-dependences.c (compute_deps): Export.
1927 * graphite-poly.h (compute_deps): Declare.
1928 * graphite-optimize-isl.c: New file.
1929 * graphite-poly.c (apply_poly_transforms): Run the loop
1930 nest optimizer.
1931 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
1932 if -floop-nest-optimize is enabled.
1933
1934 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
1935
1936 * config/sh/predicates.md (logical_and_operand): New predicate.
1937 * config/sh/constraints.md (Jmb, Jmw): New constraints.
1938 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
1939 of 0xFFFF constant. Use logical_and_operand predicate and
1940 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
1941 (*andsi3_compact): Make it an insn_and_split. Use
1942 logical_and_operand predicate. Add Jmb,Jmw alternatives.
1943
1944 2012-07-03 Jason Merrill <jason@redhat.com>
1945
1946 PR c++/53826
1947 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
1948
1949 2012-07-03 Nick Clifton <nickc@redhat.com>
1950
1951 * config/mep/mep.c (mep_reorg_regmove): Use
1952 next_nonnote_non_debug_insn to advance to the next insn. Do not
1953 expect delete_insn to return an rtx.
1954
1955 2012-07-03 Richard Guenther <rguenther@suse.de>
1956
1957 * doc/install.texi (CLooG): Clarify how CLooG needs to be
1958 configured and that it needs to be built against ISL 0.10.
1959
1960 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1961
1962 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
1963 code model string in the error message.
1964
1965 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1966
1967 PR target/53811
1968 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
1969 sibcall_insn_operand. Move it to a temporary register if not.
1970
1971 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
1972
1973 PR target/28896
1974 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
1975 if !TARGET_68020.
1976
1977 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
1978
1979 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
1980
1981 2012-07-03 Roland McGrath <mcgrathr@google.com>
1982
1983 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
1984 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
1985 * configure: Regenerated.
1986 * config/i386/i386.md (simple_return_internal_long): Use %;
1987 (ctz<mode>2): Likewise.
1988 (*pause): Likewise.
1989
1990 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
1991
1992 PR target/51244
1993 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
1994 predicates.
1995 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
1996 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
1997 gen_branch_true and gen_branch_false.
1998 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
1999 gen_branch_false.
2000 (branch_true, branch_false): Use t_reg_operand predicate.
2001 (*branch_true, *branch_false): Delete.
2002 (movt): Use t_reg_operand predicate.
2003 (*negnegt): Use negt_reg_operand predicate and fold little and big
2004 endian variants.
2005 (*movtt): Use t_reg_operand and fold little and big endian variants.
2006 (*movt_qi): Delete.
2007
2008 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
2009
2010 * stmt.c (emit_case_bit_tests): Remove.
2011 (expand_case): Remove expand_switch_using_bit_tests_p code.
2012 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
2013 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
2014 (lshift_cheap_p): Likewise.
2015 (expand_switch_using_bit_tests_p): Likewise.
2016 (struct case_bit_test): Likewise.
2017 (case_bit_test_cmp): Likewise.
2018 (emit_case_bit_tests): New implementation for GIMPLE.
2019 (gen_inbound_check): Do not release post-dominator info here.
2020 (process_switch): Reorder code. Expand as bit tests if it
2021 looks like a win.
2022 (do_switchconv): Release post-dominator info here if something changed.
2023 (struct gimple_opt_pass): Verify more.
2024 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
2025
2026 2012-07-02 Martin Jambor <mjambor@suse.cz>
2027
2028 PR middle-end/38474
2029 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
2030 dynamic type change check.
2031
2032 2012-07-02 Richard Guenther <rguenther@suse.de>
2033 Michael Matz <matz@suse.de>
2034 Tobias Grosser <tobias@grosser.es>
2035 Sebastian Pop <sebpop@gmail.com>
2036
2037 * Makefile.in: Remove PPL flags in favor of ISL ones.
2038 (BACKENDLIBS): Remove PPL libs.
2039 (INCLUDES): Remove PPL includes in favor of ISL ones.
2040 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
2041 graphite-cloog-compat.h dependencies.
2042 (graphite-dependences.o): Likewise.
2043 (graphite-poly.o): Likewise.
2044 * configure.ac: Declare ISL vars instead of PPL ones.
2045 * configure: Regenerated.
2046 * doc/install.texi: Replace PPL requirement documentation with ISL one.
2047 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
2048 * graphite-clast-to-gimple.c: Likewise.
2049 * graphite-dependences.c: Likewise.
2050 * graphite-interchange.c: Likewise.
2051 * graphite-poly.h: Likewise.
2052 * graphite-poly.c: Likewise.
2053 * graphite-sese-to-poly.c: Likewise.
2054 * graphite.c: Likewise.
2055 * graphite-scop-detection.c: Re-arrange includes.
2056 * graphite-cloog-util.c: Remove.
2057 * graphite-cloog-util.h: Likewise.
2058 * graphite-ppl.h: Likewise.
2059 * graphite-ppl.c: Likewise.
2060 * graphite-dependences.h: Likewise.
2061
2062 2012-07-02 Richard Guenther <rguenther@suse.de>
2063
2064 Merge from graphite branch
2065 2011-07-21 Tobias Grosser <tobias@grosser.es>
2066
2067 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
2068 Remove graphite-cloog-util.h.
2069 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
2070 build_iv_mapping, translate_clast_user, translate_clast,
2071 free_scattering, initialize_cloog_names, build_cloog_prog,
2072 create_params_index): Do not use old compatibility functions.
2073 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
2074 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
2075 compatibility functions.
2076 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
2077 cloog.
2078 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
2079 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
2080 cloog_finalize().
2081 * graphite-cloog-compat.h: Remove.
2082
2083 2011-08-09 Tobias Grosser <tobias@grosser.es>
2084
2085 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
2086 of the string, no just a reference.
2087 (clast_name_index): Add a new field, that specifies if we need to free
2088 the name.
2089 (free_clast_name_index): If necessary, free the name string.
2090 (clast_name_index_elt_info): Calculate the hash based on the string
2091 content, not the memory location it is stored in.
2092 (clast_name_to_level): Specify that we do not need to free the name.
2093 (clast_name_to_index): Dito.
2094 (clast_name_to_lb_ub): Dito.
2095 (eq_clast_name_indexes): Compare the strings, not their base pointers.
2096 (free_scattering): Removed.
2097 (initialize_cloog_names): Renamed to add_names_to_union_domain().
2098 (add_names_to_union_domain): Changed to work on a union_domain,
2099 instead of a CloogNames structure.
2100 (build_cloog_prog): Removed.
2101 (build_cloog_union_domain): New.
2102 (generate_cloog_input): New.
2103 (scop_to_clast): Use CloogInput instead of CloogProgram.
2104 (print_generated_program): Adapt to new scop_to_clast() and do not
2105 print the CloogProgram any more.
2106 (create_params_index): Removed, functionality integrated in
2107 add_names_to_union_domain().
2108 (gloog): Adapt to new scop_to_clast().
2109 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
2110
2111 2012-01-11 Tobias Grosser <tobias@grosser.es>
2112
2113 * graphite-clast-to-gimple.c (clast_name_to_index,
2114 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
2115 (clast_to_gcc_expression): Add clast_expr_name as a new
2116 case. Do not assume a clast_expr_term points always to a
2117 clast_expr_name.
2118 (type_for_clast_term): Do not assume a clast_expr_term points always to
2119 a clast_expr_name.
2120 (type_for_clast_name): New.
2121 (type_for_clast_expr): Add clast_expr_name as a new case.
2122
2123 2011-08-03 Sebastian Pop <sebpop@gmail.com>
2124
2125 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
2126 new_Cloog_Scattering_from_ppl_Polyhedron,
2127 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
2128
2129 2012-07-02 Jakub Jelinek <jakub@redhat.com>
2130
2131 PR tree-optimization/53645
2132 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
2133 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
2134
2135 2012-07-01 Wei Guozhi <carrot@google.com>
2136
2137 PR target/53447
2138 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
2139 * config/arm/arm.c (const_ok_for_dimode_op): New function.
2140 * config/arm/constraints.md (Dd): New constraint.
2141 * config/arm/predicates.md (arm_adddi_operand): New predicate.
2142 * config/arm/arm.md (adddi3): Extend it to handle constants.
2143 (arm_adddi3): Likewise.
2144 (addsi3_carryin_<optab>): Extend it to handle sbc case.
2145 (addsi3_carryin_alt2_<optab>): Likewise.
2146 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
2147
2148 2012-06-30 Nathan Sidwell <nathan@acm.org>
2149
2150 * coverage.c (bbg_file_stamp): New.
2151 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
2152 (build_info): Write bbg_file_stamp.
2153 (coverage_init): Initialize bbg_file_stamp. Read counts file
2154 before writing graph header.
2155 (coverage_finish): Don't unlink the data file if we can generate a
2156 unique file stamp.
2157 * tree.h (crc32_unsigned): Declare.
2158 * tree.c (crc32_unsigned_bits): New, broken out of ...
2159 (crc32_byte): ... here. Use it.
2160 (crc32_unsigned): New.
2161
2162 2012-06-29 Cary Coutant <ccoutant@google.com>
2163
2164 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
2165 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
2166 (gen_variable_die): Likewise.
2167 (gen_namespace_die): Likewise.
2168
2169 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
2170
2171 * tree-eh.c (lower_try_finally_switch): Really put the location of the
2172 last statement of the finally block onto the switch.
2173
2174 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
2175
2176 PR target/53539
2177 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
2178 TARGET_LP64.
2179
2180 2012-06-29 Sterling Augustine <saugustine@google.com>
2181
2182 * dwarf2out.c (add_pubname): Add comment.
2183 (add_pubtype): Fix indentation.
2184 (gen_enumeration_type_die): Likewise.
2185
2186 2012-06-29 Jakub Jelinek <jakub@redhat.com>
2187
2188 * tree-vect-generic.c (expand_vector_divmod): For even/odd
2189 widening multiply, put even always as first argument to VEC_PERM_EXPR.
2190
2191 2012-06-29 Richard Henderson <rth@redhat.com>
2192
2193 * tree-vect-generic.c: Include target.h.
2194 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
2195 * Makefile.in (tree-vect-generic.o): Update.
2196
2197 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2198
2199 * configure.ac: Remove special gtfiles case for C.
2200 * configure: Regenerate.
2201 * Makefile.in: Remove C front-end hooks and build hooks that
2202 will be picked up from c/Make-lang.in now.
2203 Add tree-mudflap to C_COMMON_OBJS.
2204 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
2205 * config/vms/vms.c: Look for c-tree.h in c/.
2206 * doc/gty.texi: Remove reference to c-config-lang.in.
2207 * doc/sourcebuild.texi: Document the c/ subdirectory.
2208
2209 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2210
2211 * system.h (CASE_USE_BIT_TESTS): Poison.
2212 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
2213 (expand_switch_using_bit_tests_p): ...here.
2214 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
2215 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
2216
2217 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2218
2219 * system.h (IFCVT_EXTRA_FIELDS): Poison.
2220 (IFCVT_INIT_EXTRA_FIELDS): Poison.
2221 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
2222 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
2223 IFCVT_INIT_EXTRA_FIELDS.
2224 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
2225 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
2226 IFCVT_MACHDEP_INIT.
2227 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
2228 frv_ifcvt_machdep_init.
2229 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
2230 Remove documentation.
2231 (IFCVT_MACHDEP_INIT): Document.
2232 * doc/tm.texi: Regenerate.
2233
2234 2012-06-29 Nick Clifton <nickc@redhat.com>
2235
2236 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
2237
2238 2012-06-29 Jakub Jelinek <jakub@redhat.com>
2239
2240 * tree-vect-stmts.c (vectorizable_operation): Check both
2241 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
2242 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
2243
2244 2012-06-28 Richard Henderson <rth@redhat.com>
2245
2246 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
2247
2248 2012-06-28 Jakub Jelinek <jakub@redhat.com>
2249
2250 PR tree-optimization/51581
2251 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
2252 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
2253 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
2254 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
2255 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
2256 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
2257
2258 PR tree-optimization/53645
2259 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
2260 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
2261 if possible.
2262
2263 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
2264
2265 PR 53595
2266 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
2267 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
2268 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
2269 avr_hard_regno_call_part_clobbered.
2270
2271 2012-06-28 Richard Guenther <rguenther@suse.de>
2272
2273 PR middle-end/53790
2274 * expr.c (expand_expr_real_1): Verify if the type is complete
2275 before inspecting its size.
2276
2277 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2278
2279 * doc/include/gpl.texi: Remove.
2280 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
2281
2282 2012-06-28 Jakub Jelinek <jakub@redhat.com>
2283
2284 PR tree-optimization/53645
2285 * tree-vect-generic.c (add_rshift): New function.
2286 (expand_vector_divmod): New function.
2287 (expand_vector_operation): Use it for vector integer
2288 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
2289 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
2290 unused lguup variable with dummy_int.
2291
2292 2012-06-28 OLivier Hainque <hainque@adacore.com>
2293
2294 * expr.c (convert_move): Latch mem integer inputs into a
2295 register before expanding a multi-instructions sequence.
2296
2297 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
2298 Uros Bizjak <ubizjak@gmail.com>
2299 Jakub Jelinek <jakub@redhat.com>
2300
2301 PR debug/53706
2302 PR debug/47624
2303 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
2304 (vt_finalize): ... here instead, if needed.
2305
2306 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
2307
2308 PR debug/53740
2309 PR debug/52983
2310 PR debug/48866
2311 * dce.c (word_dce_process_block): Check whether inserting debug
2312 temps are needed even for needed insns.
2313 (dce_process_block): Likewise.
2314 * df-problems.c (dead_debug_add): Add comment about multi-regs.
2315 (dead_debug_insert_temp): Likewise. Don't subreg when we're
2316 setting fewer regs than a multi-reg requires.
2317
2318 2012-06-27 Richard Henderson <rth@redhat.com>
2319
2320 * config/alpha/alpha.c (alpha_dimode_u): New.
2321 (alpha_init_builtins): Initialize it, and use it.
2322 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
2323 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
2324 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
2325 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
2326 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
2327 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
2328 (alpha_fold_builtin_ctpop): Likewise.
2329 (alpha_fold_builtin_umulh): Remove.
2330 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
2331 typo in MAX_ARGS check.
2332
2333 2012-06-27 Richard Henderson <rth@redhat.com>
2334
2335 * tree.def (MULT_HIGHPART_EXPR): New.
2336 * cfgexpand.c (expand_debug_expr): Ignore it.
2337 * expr.c (expand_expr_real_2): Handle it.
2338 * fold-const.c (int_const_binop_1): Likewise.
2339 * optabs.c (optab_for_tree_code): Likewise.
2340 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
2341 * tree-inline.c (estimate_operator_cost): Likewise.
2342 * tree-pretty-print.c (dump_generic_node): Likewise.
2343 (op_code_prio, op_symbol_code): Likewise.
2344 * tree.c (commutative_tree_code): Likewise. Also handle
2345 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
2346
2347 2012-06-27 Richard Henderson <rth@redhat.com>
2348
2349 PR target/53749
2350 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
2351 in 2012-06-23 change. Adjust two other DImode tests as well.
2352
2353 2012-06-27 Nick Clifton <nickc@redhat.com>
2354
2355 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
2356 input operand.
2357
2358 2012-06-27 Richard Guenther <rguenther@suse.de>
2359
2360 PR middle-end/53676
2361 * tree-chrec.c (chrec_convert_1): Represent truncation to
2362 a type with undefined overflow as truncation to an unsigned
2363 type converted to the type with undefined overflow.
2364 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
2365 the scalar evolution of a truncated widened operation avoid
2366 looking at the non-existing evolution of the widened operation
2367 result.
2368
2369 2012-06-27 Richard Guenther <rguenther@suse.de>
2370
2371 PR tree-optimization/53774
2372 * tree-ssa-reassoc.c (get_rank): All default defs have
2373 precomputed rank.
2374 (init_reassoc): Precompute rank for all SSA default defs.
2375
2376 2012-06-27 Nick Clifton <nickc@redhat.com>
2377
2378 * config/rx/rx.md (simple_return): Use the simple_return rtx.
2379
2380 2012-06-26 Richard Henderson <rth@redhat.com>
2381
2382 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
2383 and don't fall thru from standard_80387_constant_p to the memory
2384 fallback.
2385
2386 2012-06-26 Richard Henderson <rth@redhat.com>
2387
2388 * config/i386/i386.c (bdesc_args): Update. Change
2389 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
2390 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
2391 (ix86_builtin_mul_widen_even): Use it.
2392 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
2393 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
2394 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
2395 for all SSE2.
2396 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
2397 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
2398 (vec_widen_smult_even_v4si): New.
2399
2400 2012-06-26 Richard Henderson <rth@redhat.com>
2401
2402 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
2403 to expander; move guts to ...
2404 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
2405 highparts before shifting up.
2406 * config/i386/i386-protos.h: Update.
2407
2408 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2409
2410 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
2411 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
2412 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
2413
2414 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
2415
2416 * var-tracking.c (vt_add_function_parameter): Use a preserved
2417 VALUE for the MEM address of an incoming parameter.
2418
2419 2012-06-26 Sterling Augustine <saugustine@google.com>
2420
2421 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
2422 (prune_unused_types): Likewise.
2423
2424 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2425
2426 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2427 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
2428 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
2429 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
2430 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
2431 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
2432 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
2433 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
2434 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
2435 documentation.
2436 * doc/tm.texi: Regenerate.
2437 * doc/cpp.texi: Make example for #error generic.
2438 * config/frv/frv.h: Fix example text to match tm.texi.
2439
2440 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
2441
2442 * tree-pass.h (pass_strength_reduction): New decl.
2443 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
2444 (finalize_costs): Likewise.
2445 * timevar.def (TV_TREE_SLSR): New timevar.
2446 * gimple-ssa-strength-reduction.c: New.
2447 * tree-flow.h (initialize_costs): New decl.
2448 (finalize_costs): Likewise.
2449 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
2450 * passes.c (init_optimization_passes): Add pass_strength_reduction.
2451
2452 2012-06-26 Matt Turner <mattst88@gmail.com>
2453
2454 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
2455 (__builtin_arm_tinsrh): Likewise.
2456 (__builtin_arm_tinsrw): Likewise.
2457 (__builtin_arm_wsadb): Add missing v2si parameter.
2458 (__builtin_arm_wsadh): Likewise.
2459 (__builtin_arm_getwcx): Delete.
2460 (__builtin_arm_setwcx): Delete.
2461 (__builtin_arm_getwcgr0): Add.
2462 (__builtin_arm_getwcgr1): Add.
2463 (__builtin_arm_getwcgr2): Add.
2464 (__builtin_arm_getwcgr3): Add.
2465 (__builtin_arm_setwcgr0): Add.
2466 (__builtin_arm_setwcgr1): Add.
2467 (__builtin_arm_setwcgr2): Add.
2468 (__builtin_arm_setwcgr3): Add.
2469
2470 2012-06-26 Richard Guenther <rguenther@suse.de>
2471
2472 Revert
2473 2012-06-21 Richard Guenther <rguenther@suse.de>
2474
2475 * tree-inline.c (estimate_num_insns): Estimate call cost for
2476 tailcalls properly.
2477
2478 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2479
2480 PR other/33190
2481 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
2482 * doc/tm.texi: Regenerate.
2483
2484 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
2485
2486 PR other/33190
2487 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
2488 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
2489 * doc/tm.texi.in: Remove documentation for unused target macros
2490 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2491 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2492 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2493 TARGET_NARROW_VOLATILE_BITFIELDS.
2494 Document that MD_HANDLE_UNWABI is a macro in libgcc.
2495 * doc/tm.texi: Regenerate.
2496 * system.h: Poison target macros
2497 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
2498 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
2499 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
2500 TARGET_NARROW_VOLATILE_BITFIELDS
2501
2502 2012-06-26 Jan Hubicka <jh@suse.cz>
2503
2504 PR lto/53572
2505 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
2506 used symbols.
2507
2508 2012-06-26 Dehao Chen <dehao@google.com>
2509
2510 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
2511 source location is consistant with the call stmt.
2512
2513 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
2514
2515 PR tree-optimization/53729
2516 PR tree-optimization/53636
2517 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
2518 vect_verify_datarefs_alignment until after statements have
2519 been marked as relevant/irrelevant.
2520 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
2521 Skip irrelevant statements.
2522 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
2523 instead of STMT_VINFO_RELEVANT.
2524 (vect_get_data_access_cost): Do not check for supportable
2525 alignment before calling vect_get_load_cost/vect_get_store_cost.
2526 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
2527 handling unsupported alignment.
2528 (vect_get_load_cost): Likewise.
2529
2530 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
2531
2532 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
2533 Do not define JMP_BUF_SIZE.
2534
2535 2012-06-26 Jakub Jelinek <jakub@redhat.com>
2536
2537 PR tree-optimization/53748
2538 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
2539 if arg0/arg1 have integral or pointer types.
2540
2541 2012-06-25 Richard Henderson <rth@redhat.com>
2542
2543 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
2544 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
2545 (sdot_prodv4si): New; handle only XOP.
2546
2547 2012-06-25 Richard Henderson <rth@redhat.com>
2548
2549 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
2550 (V2UDI_FUNC_V4USI_V4USI): New.
2551 (V4UDI_FUNC_V8USI_V8USI): New.
2552 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
2553 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
2554 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
2555 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
2556 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
2557 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
2558 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
2559 (bdesc_args): Add them.
2560 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
2561 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
2562 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
2563 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
2564 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
2565
2566 2012-06-25 Richard Henderson <rth@redhat.com>
2567
2568 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
2569
2570 2012-06-25 Richard Henderson <rth@redhat.com>
2571
2572 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
2573 to V16QImode.
2574 (ix86_expand_vec_interleave): New.
2575 (ix86_expand_mul_widen_evenodd): New.
2576 (ix86_expand_mul_widen_hilo): New.
2577 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
2578 * config/i386/i386.md (u_bool) New code attr.
2579 * config/i386/predicates.md
2580 (nonimmediate_or_const_vector_operand): Remove.
2581 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
2582 both AVX and SSE4_1.
2583 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
2584 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
2585 (vec_widen<s>mult_hi_v8si): Remove.
2586 (vec_widen<s>mult_lo_v8si): Remove.
2587 (vec_widen_smult_hi_v4si): Remove.
2588 (vec_widen_smult_lo_v4si): Remove.
2589 (vec_widen_umult_hi_v4si): Remove.
2590 (vec_widen_umult_lo_v4si): Remove.
2591 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
2592 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
2593 * config/i386/i386-protos.h: Update.
2594
2595 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
2596
2597 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
2598 (neon_vld1_dup): Restrict to VQ operands.
2599 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
2600
2601 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2602 James Greenhalgh <james.greenhalgh@arm.com>
2603
2604 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
2605 (TARGET_FMA): New macro.
2606 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
2607 (TARGET_ARM_ARCH): Likewise.
2608 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
2609 (TARGET_V6M, TARGET_V7M): Likewise.
2610 (TARGET_ARM_ARCH_PROFILE): Likewise.
2611 (TARGET_ARM_FEATURE_LDREX): Likewise.
2612 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
2613 (ARM_MIN_ENUM_SIZE): Likewise.
2614 * config/arm/arm.c (arm_file_start): Refactor appropriately.
2615 (base_architecture): New enumeration.
2616 (arm_base_arch): New global variable.
2617 (processors): Add field base_arch.
2618 (ARM_ARCH, ARM_CORE): Adjust accordingly.
2619 (arm_option_override): Add initialization of arm_base_arch.
2620 * doc/cpp.texi (system-specific predefined macros.): Change.
2621
2622 2012-06-25 Jakub Jelinek <jakub@redhat.com>
2623
2624 PR target/53759
2625 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
2626 of x x x in the vmovlps load alternative.
2627
2628 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
2629
2630 PR debug/53740
2631 * df.h (dead_debug_add): Remove third argument.
2632 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
2633 REG that we want to replace instead.
2634 (dead_debug_insert_temp): Use the REGNO of the reg that we want
2635 to replace instead of DF_REF_REGNO. Require there to always be
2636 at least one such use. Check for cases where the same location
2637 has more than df_ref associated with it.
2638 (df_note_bb_compute): Remove third dead_debug_add argument.
2639 * dce.c (word_dce_process_block): Likewise.
2640
2641 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
2642
2643 * config/v850/v850.c: Remove redundant extern declarations for
2644 last_assemble_variable_decl and size_directive_output.
2645
2646 * doc/tm.texi.in: Document JMP_BUF_SIZE.
2647 * doc/tm.texi: Regenerate.
2648 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
2649 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
2650 * config/stormy16/stormy16.h: Likewise.
2651
2652 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
2653
2654 * doc/sourcebuild.texi: Add missing subdirectories.
2655
2656 2012-06-25 Tristan Gingold <gingold@adacore.com>
2657
2658 * config/i386/i386.h: Fix typo.
2659
2660 2012-06-25 Tristan Gingold <gingold@adacore.com>
2661
2662 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
2663 (seh_cfa_adjust_cfa): ... that function.
2664 (seh_emit_stackalloc): Do not emit out of range values.
2665 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
2666 UNSPEC_DEF_CFA constants.
2667 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
2668 * config/i386/i386.c (ix86_frame_pointer_required): Required
2669 for very large frames on SEH target.
2670 (ix86_compute_frame_layout): Save area is before frame pointer
2671 on SEH target. Handle very large frames.
2672 (ix86_expand_prologue): Likewise.
2673
2674 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
2675
2676 * output.h: (current_function_is_leaf,
2677 current_function_sp_is_unchanging,
2678 current_function_uses_only_leaf_regs): Remove.
2679 * function.c (current_function_is_leaf,
2680 current_function_sp_is_unchanging,
2681 current_function_uses_only_leaf_regs): Remove.
2682 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
2683 instead of current_function_uses_only_leaf_regs.
2684 * function.h (struct rtl_data): New fields sp_is_unchanging,
2685 is_leaf, uses_only_leaf_regs.
2686 * resource.c (init_resource_info): Replace current_function_is_leaf,
2687 current_function_sp_is_unchanging, and
2688 current_function_uses_only_leaf_regs with new crtl fields.
2689 * sdbout.c (sdbout_symbol): Likewise.
2690 * df-core.c (rest_of_handle_df_initialize): Likewise.
2691 * ira.c (ira): Likewise.
2692 * final.c (final_start_function): Likewise.
2693 * reorg.c (fill_simple_delay_slots): Likewise.
2694 * regrename.c (check_new_reg_p): Likewise.
2695 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
2696 (notice_stack_pointer_modification): Likewise.
2697 * dbxout.c (dbxout_symbol): Likewise.
2698 (dbxout_parms): Likewise.
2699 * sel-sched.c (init_regs_for_mode): Likewise.
2700 * dwarf2out.c (dbx_reg_number): Likewise.
2701 (multiple_reg_loc_descriptor): Likewise.
2702 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
2703 (gen_pop): Likewise.
2704 (ix86_select_alt_pic_regnum): Likewise.
2705 (ix86_compute_frame_layout): Likewise.
2706 (ix86_finalize_stack_realign_flags): Likewise.
2707 (ix86_expand_epilogue): Likewise.
2708 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
2709 * config/h8300/h8300.c (byte_reg): Likewise.
2710 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
2711 (c6x_save_reg): Likewise.
2712 (c6x_compute_frame_layout): Likewise.
2713 * config/pa/pa.c (pa_compute_frame_size): Likewise.
2714 (pa_output_function_prologue): Likewise.
2715 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
2716 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
2717 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
2718 (sparc_expand_prologue): Likewise.
2719 (sparc_flat_expand_prologue): Likewise.
2720 (sparc_asm_function_prologue): Likewise.
2721 (sparc_output_mi_thunk): Likewise.
2722 (sparc_frame_pointer_required): Likewise.
2723 * config/epiphany/epiphany.c (epiphany_compute_function_type):
2724 Likewise.
2725 (epiphany_compute_frame_size): Likewise.
2726 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2727 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
2728 (cris_frame_pointer_required): Likewise.
2729 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
2730 (tilepro_current_function_is_leaf): Likewise.
2731 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
2732 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
2733 * config/ia64/ia64.c (find_gr_spill): Likewise.
2734 (ia64_compute_frame_size): Likewise.
2735 (ia64_can_eliminate): Likewise.
2736 (ia64_initial_elimination_offset): Likewise.
2737 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2738 (m68k_expand_epilogue): Likewise.
2739 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2740 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
2741 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
2742 Likewise.
2743 (picochip_output_frame_debug): Likewise.
2744 * config/sh/sh.c (sh_media_register_for_return): Likewise.
2745 (sh_allocate_initial_value): Likewise.
2746 (sh_output_mi_thunk): Likewise.
2747 * config/microblaze/microblaze.c (microblaze_must_save_register):
2748 Likewise.
2749 (compute_frame_size): Likewise.
2750 (microblaze_initial_elimination_offset): Likewise.
2751 (microblaze_expand_prologue): Likewise.
2752 (microblaze_expand_epilogue): Likewise.
2753 * config/frv/frv.c (frv_expand_epilogue): Likewise.
2754 (frv_frame_pointer_required): Likewise.
2755 * config/spu/spu.c (get_pic_reg): Likewise.
2756 (direct_return): Likewise.
2757 (spu_expand_prologue): Likewise.
2758 (spu_expand_epilogue): Likewise.
2759 (spu_initial_elimination_offset): Likewise.
2760 * config/mips/mips.c (mips_global_pointer): Likewise.
2761 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2762 (mips_compute_frame_info): Likewise.
2763 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
2764 (mep_reload_pointer): Likewise.
2765 * config/rl78/rl78.c (need_to_save): Likewise.
2766 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2767 * config/score/score.c (score_compute_frame_size): Likewise.
2768 (score_function_prologue): Likewise.
2769 * config/bfin/bfin.c (must_save_p): Likewise.
2770 (expand_prologue_reg_save): Likewise.
2771 (expand_epilogue_reg_restore): Likewise.
2772 (bfin_frame_pointer_required): Likewise.
2773 (n_regs_saved_by_prologue): Likewise.
2774 (add_to_reg): Likewise.
2775 (expand_interrupt_handler_prologue): Likewise.
2776 (expand_interrupt_handler_epilogue): Likewise.
2777 (bfin_expand_prologue): Likewise.
2778 * config/avr/avr.c (avr_regs_to_save): Likewise.
2779 (avr_prologue_setup_frame): Likewise.
2780 (expand_epilogue): Likewise.
2781 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2782 (s390_register_info): Likewise.
2783 (s390_frame_info): Likewise.
2784 (s390_init_frame_layout): Likewise.
2785 (s390_emit_prologue): Likewise.
2786
2787
2788 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
2789
2790 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
2791 * vmsdbgout: Do not undefine it if defined.
2792 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
2793 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
2794 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
2795
2796 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
2797
2798 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
2799
2800 2012-06-23 Richard Henderson <rth@redhat.com>
2801
2802 PR target/53749
2803 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
2804 V*QImode shifts and multiply.
2805 (ix86_expand_vecop_qihi): Support shifts.
2806 * config/i386/i386.md (any_shift): New code iterator.
2807 * config/i386/sse.md (ashlv16qi3): Merge ...
2808 (<any_shiftrt>v16qi3): ... into ...
2809 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
2810 to support SSE and AVX.
2811
2812 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
2813 parameter into src and dest.
2814 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
2815 (vec_unpacks_hi_<V124_AVX2>): Likewise.
2816 (vec_unpacku_lo_<V124_AVX2>): Likewise.
2817 (vec_unpacks_lo_<V124_AVX2>): Likewise.
2818 * config/i386/i386-protos.h: Update.
2819
2820 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
2821 pure expander; move expansion code ...
2822 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
2823 * config/i386/i386-protos.h: Update.
2824
2825 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
2826
2827 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
2828 (popcntb<mode>2): Add attribute type popcnt.
2829 (popcntd<mode>2): Ditto.
2830 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
2831 * config/rs6000/power5.md (define_insn_reservation): Ditto.
2832 * config/rs6000/power7.md (define_insn_reservation): Ditto.
2833 * config/rs6000/476.md (define_insn_reservation): Ditto.
2834 * config/rs6000/power6.md (define_insn_reservation): New
2835 reservation for popcnt instructions.
2836
2837 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
2838
2839 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
2840
2841 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
2842
2843 PR target/53383
2844 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
2845
2846 * config/i386/i386.c (ix86_option_override_internal): Allow
2847 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
2848
2849 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
2850 if SSE is disabled.
2851
2852 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
2853
2854 * double-int.c (double_int_multiple_of): New function.
2855 * double-int.h (double_int_multiple_of): New decl.
2856 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
2857 (mbc_entry_hash): New forward decl.
2858 (mbc_entry_eq): Likewise.
2859 (zero_cost): Change to no_cost.
2860 (mult_costs): New static var.
2861 (cost_tables_exist): Likewise.
2862 (initialize_costs): New function.
2863 (finalize_costs): Likewise.
2864 (tree_ssa_iv_optimize_init): Call initialize_costs.
2865 (add_cost): Change to add_regs_cost; distinguish costs by speed.
2866 (multiply_regs_cost): New function.
2867 (add_const_cost): Likewise.
2868 (extend_or_trunc_reg_cost): Likewise.
2869 (negate_reg_cost): Likewise.
2870 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
2871 costs by speed.
2872 (get_address_cost): Change add_cost to add_regs_cost; change
2873 multiply_by_cost to multiply_by_const_cost.
2874 (force_expr_to_var_cost): Change zero_cost to no_cost; change
2875 add_cost to add_regs_cost; change multiply_by_cost to
2876 multiply_by_const_cost.
2877 (split_cost): Change zero_cost to no_cost.
2878 (ptr_difference_cost): Likewise.
2879 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
2880 to multiply_by_const_cost.
2881 (get_computation_cost_at): Change add_cost to add_regs_cost; change
2882 multiply_by_cost to multiply_by_const_cost.
2883 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
2884 (determine_iv_cost): Change add_cost to add_regs_cost.
2885 (iv_ca_new): Change zero_cost to no_cost.
2886 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
2887 * tree-ssa-address.c (most_expensive_mult_to_index): Change
2888 multiply_by_cost to multiply_by_const_cost.
2889 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
2890 (add_regs_cost): New decl.
2891 (multiply_regs_cost): Likewise.
2892 (add_const_cost): Likewise.
2893 (extend_or_trunc_reg_cost): Likewise.
2894 (negate_reg_cost): Likewise.
2895
2896 2012-06-22 Richard Guenther <rguenther@suse.de>
2897
2898 Merge from graphite branch
2899 2011-08-10 Sebastian Pop <sebpop@gmail.com>
2900
2901 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
2902
2903 2012-01-13 Tobias Grosser <tobias@grosser.es>
2904
2905 * tree-flow.h (parallelized_function_p): Declare.
2906 * tree-parloops.c (parallelized_function_p): Export.
2907 * graphite.c (graphite_transform_loops): Do not run graphite on
2908 already parallel functions.
2909
2910 2012-06-22 Alan Modra <amodra@gmail.com>
2911
2912 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
2913 return mem. Convert to indirect addressing if not indirect or
2914 indexed. Adjust all callers.
2915
2916 2012-06-22 Richard Guenther <rguenther@suse.de>
2917
2918 * gcov-iov.c: Include bconfig.h and system.h.
2919
2920 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
2921
2922 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
2923
2924 2012-06-22 Richard Guenther <rguenther@suse.de>
2925
2926 PR gcov-profile/53744
2927 * gcov-iov.c (main): Treat "" and "prerelease" the same.
2928
2929 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
2930
2931 PR debug/53704
2932 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
2933 for GNU Fortran if in strict DWARF2 mode.
2934
2935 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
2936
2937 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
2938 DECL_IGNORED_P non-reg vars even if they are used.
2939
2940 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2941
2942 PR debug/53671
2943 PR debug/49888
2944 * var-tracking.c (vt_get_canonicalize_base): New.
2945 (vt_canonicalize_addr, vt_stack_offset_p): New.
2946 (vt_canon_true_dep): New.
2947 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
2948 (clobber_overlaping_mems): Use vt_canonicalize_addr.
2949
2950 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2951
2952 PR debug/53671
2953 PR debug/49888
2954 * var-tracking.c (vt_initialize): Record initial offset between
2955 arg pointer and stack pointer.
2956
2957 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2958
2959 PR debug/53671
2960 PR debug/49888
2961 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
2962 CFA base.
2963
2964 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2965
2966 PR debug/53671
2967 PR debug/49888
2968 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
2969
2970 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2971
2972 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
2973
2974 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
2975
2976 PR debug/53682
2977 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
2978
2979 2012-06-21 Meador Inge <meadori@codesourcery.com>
2980
2981 PR c/53702
2982 * c-decl.c (c_push_function_context): Restore the behavior to reuse
2983 the language function allocated for -Wunused-local-typedefs.
2984 (c_pop_function_context): If necessary, clear the language function
2985 created in c_push_function_context. Always clear out the
2986 x_cur_stmt_list field of the restored language function.
2987
2988 2012-06-21 Sterling Augustine <saugustine@google.com>
2989 Cary Coutant <ccoutant@google.com>
2990
2991 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
2992 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
2993 (comdat_type_struct): New field 'skeleton_die'.
2994 (breakout_comdat_types): Update it.
2995 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
2996 is_namespace_die. Fix minor style violation. Call want_pubnames.
2997 (add_pubname_string): Call want_pubnames.
2998 (add_pubtype): Rework logic for calculating type name. Call
2999 is_namespace_die. Call want_pubnames.
3000 (output_pubnames): Move conditional logic deciding when to produce the
3001 section from dwarf2out_finish. Use new skeleton_die field.
3002 (base_type_die): Call add_pubtype.
3003 (gen_enumeration_type_die): Unconditionally call add_pubtype.
3004 (gen_subprogram_die): Adjust calls to add_pubname.
3005 (gen_namespace_die): Call add_pubname_string.
3006 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
3007 produce pubnames and pubtypes sections to output_pubnames.
3008 * common.opt (-gpubnames): New option.
3009 * doc/invoke.texi: Document it.
3010
3011 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3012
3013 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
3014
3015 2012-06-21 Michael Matz <matz@suse.de>
3016
3017 PR middle-end/53688
3018 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
3019 with correct size.
3020
3021 2012-06-21 Richard Guenther <rguenther@suse.de>
3022
3023 * tree-inline.c (estimate_num_insns): Estimate call cost for
3024 tailcalls properly.
3025
3026 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
3027
3028 * tree.h (DECL_SOURCE_COLUMN): New accessor.
3029
3030 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3031
3032 * config/i386/i386.md (SINCOS): New int iterator.
3033 (sincos): New int attribute.
3034 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
3035 SINCOS int iterator.
3036 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
3037 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
3038
3039 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3040
3041 * config/i386/i386.md (RDFSGSBASE): New int iterator.
3042 (WRFSGSBASE): Ditto.
3043 (fsgs): New int attribute.
3044 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
3045 RDFSGSBASE int iterator.
3046 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
3047 WRFSGSBASE int iterator.
3048
3049 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3050
3051 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
3052 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
3053 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
3054 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
3055 int iterator.
3056
3057 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3058
3059 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
3060
3061 2012-06-20 Richard Guenther <rguenther@suse.de>
3062
3063 PR tree-optimization/30318
3064 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
3065 constants here.
3066 (range_int_cst_singleton_p): But explicitely here.
3067 (zero_nonzero_bits_from_vr): And here.
3068 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
3069 to cover all cases we can perform arbitrary precision
3070 arithmetic with double-ints.
3071 (intersect_ranges): Handle adjacent anti-ranges.
3072
3073 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3074
3075 * config/i386/i386.md (rounding_insn): New int attribute.
3076 (<rounding_insn>xf2): Macroize insn from
3077 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
3078 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
3079
3080 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
3081
3082 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
3083 (ieee_maxmin): New int attribute.
3084 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
3085 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
3086
3087 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3088
3089 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
3090 * config/arm/arm.c: Do not include c-pragma.h.
3091 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
3092 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
3093 to arm_emit_eabi_attribute.
3094 * arm-c.c: Do not include output.h.
3095 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
3096 call to arm_emit_eabi_attribute.
3097 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
3098
3099 2012-06-20 Richard Guenther <rguenther@suse.de>
3100
3101 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
3102 Allow adjusting alignment of user-aligned decls again.
3103
3104 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3105
3106 * config/rl78/rl78-c.c: Remove unnecessary includes.
3107
3108 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
3109
3110 * config/cris/cris.c: Include cgraph.h.
3111 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
3112
3113 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3114
3115 * emit-rtl.c (need_atomic_barrier_p): New function.
3116 * emit-rtl.h (need_atomic_barrier_p): Declare it.
3117 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
3118 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
3119 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
3120 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
3121 (mips_process_sync_loop): Use generic version instead.
3122
3123 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
3124
3125 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
3126 it is used.
3127
3128 2012-06-19 Tom de Vries <vries@codesourcery.com>
3129 Maxim Kuvyrkov <maxim@codesourcery.com>
3130
3131 * config/mips/constraints.md (ZR): New constraint.
3132 * config/mips/predicates.md (mem_noofs_operand): New predicate.
3133 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
3134 * config/mips/mips.h (TARGET_XLP): Define.
3135 (TARGET_SYNC_AFTER_SC): Update.
3136 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
3137 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
3138 XLP-specific swap and ldadd patterns.
3139 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
3140
3141 2012-06-19 Tom de Vries <vries@codesourcery.com>
3142 Maxim Kuvyrkov <maxim@codesourcery.com>
3143
3144 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
3145 (mips_emit_post_atomic_barrier_p): New static functions.
3146 (mips_process_sync_loop): Use them. Emit sync memory barriers in
3147 accordance with memory model semantics. Add return of CMP result for
3148 compare_and_swap.
3149 * config/mips/mips.md: Update comment.
3150 (sync_cmp): New attribute.
3151 (sync_memmodel): New attribute replacing sync_release_barrier.
3152 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
3153 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
3154 (sync_lock_test_and_set, test_and_set_12): Update.
3155 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
3156 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
3157
3158 2012-06-19 Joseph Myers <joseph@codesourcery.com>
3159
3160 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
3161 mov_si<mode>_e500_subreg0.
3162 (*mov_si<mode>_e500_subreg0_elf_low)
3163 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
3164
3165 2012-06-19 Richard Henderson <rth@redhat.com>
3166
3167 * config/alpha/alpha.c: Include params.h.
3168 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
3169 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
3170
3171 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3172
3173 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
3174 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
3175 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
3176 Remove.
3177 * doc/tm.texi: Regenerate.
3178 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
3179 .objc_class_name_*.
3180 * config/darwin-c.c: Include target.h.
3181 (darwin_objc_declare_unresolved_class_reference): New function.
3182 (darwin_objc_declare_class_definition): New function.
3183 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
3184 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
3185
3186 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3187
3188 * target.def (output_ident): New hook.
3189 * targhooks.h (default_asm_output_ident_directive): Add prototype.
3190 * varasm.c (assemble_asm): Only prefix a tab if the string does not
3191 already start with one.
3192 (default_asm_output_ident_directive): New function to emit
3193 .ident as a top-level asm node while parsing, or directly to
3194 asm_out_file after parsing.
3195 * toplev.c (compile_file): Print a GCC .ident with
3196 targetm.asm_out.output_ident.
3197 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
3198 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
3199 * doc/tm.texi: Update.
3200
3201 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
3202 (TARGET_ASM_OUTPUT_IDENT): Define.
3203 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
3204 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
3205 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
3206 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
3207 (TARGET_ASM_OUTPUT_IDENT): Define.
3208 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
3209 (TARGET_ASM_OUTPUT_IDENT): Define.
3210
3211 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
3212 * config/cris/cris.c (cris_asm_output_ident): New function.
3213 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
3214
3215 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
3216 Add prototype.
3217 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
3218 (microblaze_asm_output_ident): Rewrite to work similar to
3219 default_asm_output_ident_directive for front-end .idents.
3220 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
3221 (TARGET_ASM_OUTPUT_IDENT): Define.
3222
3223 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
3224 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
3225
3226 * config/rx/rx.c: Include cgraph.h for add_asm_node.
3227 (rx_asm_output_ident): New function, similar to
3228 default_asm_output_ident_directive, but handle AS100 syntax also, so
3229 that #ident also works for rx in AS100 syntax.
3230 (TARGET_ASM_OUTPUT_IDENT): Define.
3231 * config/rx/rx.h (IDENT_ASM_OP): Remove.
3232
3233 * Makefile.in: Fix dependencies for c-family/c-lex.o.
3234
3235 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
3236
3237 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
3238 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
3239 (ROUNDING): Ditto.
3240 (*fist<mode>2_<rounding>_1): Macroize insn from
3241 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
3242 (fistdi2_<rounding>): Macroize insn from
3243 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
3244 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
3245 corresponding splitters from fistdi2_{floor,ceil} and corresponding
3246 splitters using FIST_ROUNDING int iterator.
3247 (fist<mode>2_<rounding>): Macroize insn from
3248 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
3249 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
3250 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
3251 splitters using FIST_ROUNDING int iterator.
3252 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
3253 using FIST_ROUNDING int iterator.
3254
3255 2012-06-19 Richard Henderson <rth@redhat.com>
3256
3257 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
3258 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
3259 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
3260 * config/i386/sse.md (sse2_mulv4si3): Delete.
3261 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
3262 nonimmediate_or_const_vector_operand.
3263
3264 2012-06-19 Richard Henderson <rth@redhat.com>
3265
3266 * expmed.c (struct init_expmed_rtl): Split ...
3267 (init_expmed_one_mode): ... out of ...
3268 (init_expmed): ... here. Initialize integer vector modes also.
3269 (synth_mult): Handle integer vector modes.
3270 (choose_mult_variant): Likewise.
3271 (expand_mult_const): Likewise.
3272 (expand_mult): Likewise.
3273 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
3274
3275 2012-06-19 Richard Henderson <rth@redhat.com>
3276
3277 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
3278 integral vector modes.
3279
3280 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
3281
3282 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
3283 (rounding): New int attribute.
3284 (ROUNDING): Ditto.
3285 (frndintxf2_<rounding>): Macroize insn from
3286 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
3287 (frndintxf2_<rounding>_i387): Macroize insn from
3288 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
3289
3290 2012-06-19 Richard Guenther <rguenther@suse.de>
3291
3292 * tree-vrp.c (union_ranges): New function.
3293 (vrp_meet_1): Use union_ranges.
3294 (vrp_meet): Dump what we union and call vrp_meet_1.
3295
3296 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
3297
3298 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
3299 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
3300 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
3301 (attr write_conflict, attr core_cycles): Update.
3302 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
3303
3304 2012-06-19 Richard Guenther <rguenther@suse.de>
3305
3306 * tree-vrp.c (intersect_ranges): Handle more cases.
3307 (vrp_intersect_ranges): Dump what we intersect and call ...
3308 (vrp_intersect_ranges_1): ... this.
3309
3310 2012-06-19 Richard Guenther <rguenther@suse.de>
3311
3312 PR tree-optimization/53708
3313 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
3314 user-supplied alignment and alignment of decls with the used
3315 attribute.
3316
3317 2012-06-18 Lawrence Crowl <crowl@google.com>
3318
3319 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
3320 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
3321 (TV_PHASE_STREAM_IN): New.
3322 (TV_PHASE_STREAM_OUT): New.
3323 * timevar.c (validate_phases): New.
3324 (timevar_print): Call validate_phases.
3325 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
3326 to TV_PHASE_OPT_GEN.
3327 * langhooks.c (write_global_declarations): Rename use of
3328 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
3329 TV_PHASE_CHECK_DBGINFO.
3330 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
3331 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
3332 lang_hooks.decls.final_write_globals.
3333
3334 2012-06-18 David Edelshn <dje.gcc@gmail.com>
3335
3336 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
3337
3338 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
3339
3340 PR target/53712
3341 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
3342 (*sse4_2_pcmpistr_unaligned): New.
3343
3344 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3345 Sameera Deshpande <sameera.deshpande@arm.com>
3346 Greta Yorsh <greta.yorsh@arm.com>
3347
3348 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
3349 * config/arm/arm.c (print_multi_reg): Remove.
3350 (vfp_output_fldmd): Likewise.
3351 (arm_output_epilogue): Likewise.
3352 * config/arm/arm.md (epilogue_insns): Update condition and code.
3353
3354 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3355 Sameera Deshpande <sameera.deshpande@arm.com>
3356 Greta Yorsh <greta.yorsh@arm.com>
3357
3358 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
3359 * config/arm/arm.c (thumb2_expand_return): New function.
3360 * config/arm/arm.md (return): Update condition and code.
3361
3362 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3363 Sameera Deshpande <sameera.deshpande@arm.com>
3364 Greta Yorsh <greta.yorsh@arm.com>
3365
3366 * config/arm/arm-protos.h (output_return_instruction): New parameter
3367 and int to bool change of parameter types.
3368 * config/arm/arm.c (output_return_instruction): Likewise.
3369 * config/arm/arm.md (arm_simple_return): New pattern.
3370 (arm_return, cond_return, cond_return_inverted): Add new arguments.
3371 * config/arm/thumb2.md (thumb2_return): Update condition and code.
3372
3373 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3374 Sameera Deshpande <sameera.deshpande@arm.com>
3375 Greta Yorsh <greta.yorsh@arm.com>
3376
3377 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
3378 * config/arm/arm.c (arm_expand_epilogue): New function.
3379 * config/arm/arm.md (epilogue): Update condition and code.
3380 (sibcall_epilogue): Likewise.
3381
3382 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3383 Sameera Deshpande <sameera.deshpande@arm.com>
3384 Greta Yorsh <greta.yorsh@arm.com>
3385
3386 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
3387 * config/arm/arm.md (arm_addsi3) Add an alternative.
3388
3389 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3390 Sameera Deshpande <sameera.deshpande@arm.com>
3391 Greta Yorsh <greta.yorsh@arm.com>
3392
3393 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
3394 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
3395 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
3396
3397 2012-06-18 Ian Bolton <ian.bolton@arm.com>
3398 Sameera Deshpande <sameera.deshpande@arm.com>
3399 Greta Yorsh <greta.yorsh@arm.com>
3400
3401 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
3402 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
3403 (pop_multiple_with_return, ldr_with_return) Likewise.
3404 * config/arm/predicates.md (pop_multiple_return) New special predicate.
3405 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
3406 * config/arm/arm.c (arm_output_multireg_pop) New function.
3407 (arm_emit_multi_reg_pop): New function.
3408
3409 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3410
3411 * config/arm/arm.c (ldm_stm_operation_p): Require SP
3412 as base register for loads if SP is in the register list.
3413
3414 2012-06-18 Richard Guenther <rguenther@suse.de>
3415
3416 PR tree-optimization/53693
3417 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
3418 Reject operands with more than one use.
3419
3420 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
3421
3422 PR tree-optimization/53703
3423 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
3424 correctly set bb_for_def[12].
3425
3426 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
3427
3428 * config/vax/vax.h (VMS_TARGET): Remove.
3429
3430 2012-06-18 Richard Guenther <rguenther@suse.de>
3431
3432 * tree-vrp.c (extract_range_from_assert): Split out range
3433 intersecting code.
3434 (intersect_ranges): New function.
3435 (vrp_intersect_ranges): Likewise.
3436
3437 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3438
3439 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
3440 r187965.
3441
3442 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
3443
3444 * doc/md.texi: Document int iterators.
3445 * read-rtl.c (ints): New iterator group.
3446 (find_int): Int iterator group callback.
3447 (apply_int_iterator): Likewise.
3448 (apply_iterators): Traverse int iterator table and add all the used
3449 iterators to list.
3450 (initialize_iterators): Initialize data structures and callbacks for
3451 int iterators.
3452 (read_rtx): Parse and read mappings for int iterators.
3453 (read_rtx_code): Record int iterator usage.
3454
3455 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
3456
3457 PR middle-end/53698
3458 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
3459 performing an addition.
3460
3461 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3462
3463 * output.h (split_double): Move prototype to rtl.h.
3464 (constructor_static_from_elts_p): Move prototype to tree.c.
3465 * rtl.h (split_double): Moved here from output.h.
3466 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
3467 * final.c (split_double): Move from here ...
3468 * rtlanal.c (split_double): ... to here.
3469 * expr.c: Do not include output.h.
3470
3471 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3472
3473 * cfglayout.h: Remove.
3474 * cfglayout.c: Remove.
3475 * function.h (struct function): Remove x_last_location field.
3476 * function.c: Do not include cfglayout.h.
3477 (expand_function_start): Do not call no-op force_next_line_note.
3478 (expand_function_end): Likewise.
3479 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
3480 (unlink_insn_chain): Moved here from cfglayout.c.
3481 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
3482 into_cfg_layout_mode, outof_cfg_layout_mode,
3483 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
3484 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
3485 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
3486 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
3487 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
3488 cfg_layout_finalize): Likewise.
3489 (rtl_can_remove_branch_p): Likewise.
3490 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
3491 (duplicate_insn_chain): Likewise.
3492 (force_next_line_note): Remove prototype.
3493 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
3494 (last_location): Remove #define to emit.x_last_location.
3495 (force_next_line_note): Remove no-op function.
3496 (init_emit): Don't set x_last_location.
3497 (block_locators_locs, block_locators_blocks, locations_locators_locs,
3498 locations_locators_vals, prologue_locator, epilogue_locator,
3499 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3500 Move POD to here from cfglayout.c.
3501 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
3502 set_curr_insn_source_location, get_curr_insn_source_location,
3503 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
3504 locator_scope, insn_scope, locator_location, locator_line, insn_line,
3505 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
3506 * cfghooks.h: Remove double-include protection.
3507 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
3508 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
3509 * final.c: Do not include cfglayout.h.
3510 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
3511 (reemit_insn_block_notes): Likewise. Make static.
3512 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
3513 operation_could_trap_p, tree_could_throw_p): Move from here...
3514 * tree.h: ... to here.
3515 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
3516 * profile.c: Do not include cfghooks.h.
3517 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
3518 * modulo-sched.c: Likewise.
3519 * loop-unswitch.c: Do not include cfglayout.h.
3520 * sched-ebb.c: Likewise.
3521 * tracer.c: Likewise.
3522 * ddg.c: Likewise.
3523 * tree-vect-loop-manip.c: Likewise.
3524 * loop-init.c: Likewise.
3525 * dwarf2out.c: Likewise.
3526 * hw-doloop.c: Likewise.
3527 * loop-unroll.c: Likewise.
3528 * cfgcleanup.c: Likewise.
3529 * bb-reorder.c: Likewise.
3530 * sched-rgn.c: Likewise.
3531 * tree-cfg.c: Likewise.
3532 * config/alpha/alpha.c: Likewise.
3533 * config/spu/spu.c: Likewise.
3534 * config/sparc/sparc.c: Likewise.
3535 * config/sh/sh.c: Likewise.
3536 * config/c6x/c6x.c: Likewise.
3537 * config/ia64/ia64.c: Likewise.
3538 * config/rs6000/rs6000.c: Likewise.
3539 * config/score/score.c: Likewise.
3540 * config/mips/mips.c: Likewise.
3541 * config/bfin/bfin.c: Likewise.
3542 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
3543 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
3544 * config/spu/t-spu-elf (spu.o: $): Likewise.
3545 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
3546
3547 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3548
3549 * cfgloop.h: Do not include rtl.h.
3550 (enum iv_extend_code): New.
3551 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
3552 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
3553 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
3554 an IV_EXTEND_CODE to an RTX_CODE.
3555 (dump_iv_info): Update for rtx_iv field type change.
3556 (iv_constant): Likewise.
3557 (iv_subreg): Likewise.
3558 (iv_extend): Likewise.
3559 (iv_neg): Likewise.
3560 (iv_add): Likewise.
3561 (iv_mult): Likewise.
3562 (iv_shift): Likewise.
3563 (get_biv_step_1): Likewise.
3564 (get_biv_step): Likewise.
3565 (iv_analyze_biv): Likewise.
3566 (get_iv_value): Likewise.
3567 (shorten_into_mode): Likewise.
3568 (canonicalize_iv_subregs): Likewise.
3569 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
3570 of MAY_HAVE_DEBUG_INSNS.
3571 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
3572 * tree-ssa-loop-prefetch.c: Likewise.
3573
3574 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3575
3576 * expmed.c (ceil_log2): Move from here...
3577 * hwint.c: ... to here for older GCCs...
3578 * hwint.h: ... and here for newer GCCs.
3579 * rtl.h (ceil_log2): Remove prototype.
3580
3581 * tree-phinodes.c: Do not include rtl.h.
3582 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
3583
3584 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
3585
3586 * config/cris/cris.h (TARGET_ELF): Remove.
3587 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
3588 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
3589 (LOCAL_LABEL_PREFIX): Likewise.
3590 * config/cris/cris.c (cris_target_asm_named_section): Remove.
3591 (cris_option_override): Simpify using TARGET_ELF==1.
3592 (cris_file_start): Likewise.
3593 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
3594
3595 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
3596
3597 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
3598
3599 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
3600
3601 PR middle-end/53590
3602 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
3603
3604 2012-06-15 Easwaran Raman <eraman@google.com>
3605
3606 * passes.c (init_optimization_passes): Remove pass_call_cdce
3607 from its current position and insert after pass_dce.
3608
3609 2012-06-15 Walter Lee <walt@tilera.com>
3610
3611 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
3612
3613 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
3614
3615 * arm.c (note_invalid_constants): Don't return a result.
3616 (arm_memory_load_p): Delete function.
3617 (arm_const_double_rtx): Delete iterator variable i;
3618 (fp_immediate_constant): Likewise.
3619 (fp_const_from_val): Likewise.
3620
3621 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
3622
3623 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3624
3625 PR c++/51033
3626 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
3627 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
3628
3629 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
3630
3631 * config/avr/avr.c (avr_default_expand_builtin): New function.
3632 (avr_expand_builtin): Use it.
3633 (avr_expand_unop_builtin): Remove.
3634 (avr_expand_binop_builtin): Remove.
3635 (avr_expand_triop_builtin): Remove.
3636
3637 2012-06-15 Michael Matz <matz@suse.de>
3638
3639 PR middle-end/38474
3640 * cfgexpand.c (add_alias_set_conflicts): Remove.
3641 (expand_used_vars): Don't call it.
3642 (aggregate_contains_union_type): Remove.
3643 * function.c (n_temp_slots_in_use): New static data.
3644 (make_slot_available, assign_stack_temp_for_type): Update it.
3645 (init_temp_slots): Zero it.
3646 (remove_unused_temp_slot_addresses): Use it for quicker removal.
3647 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
3648
3649 2012-06-15 Michael Matz <matz@suse.de>
3650
3651 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
3652 argument, don't emit assign statement if value is directly usable.
3653 (gimplify_expr): Adjust.
3654
3655 2012-06-15 Michael Matz <matz@suse.de>
3656
3657 * gimplify.c (gimplify_modify_expr): Fold generated statements.
3658 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
3659
3660 2012-06-15 Richard Guenther <rguenther@suse.de>
3661
3662 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
3663 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
3664 we assert for in set_value_range to VR_VARYING.
3665
3666 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
3667
3668 * arm.md (addsf3, adddf3): Use s_register_operand.
3669 (subsf3, subdf3): Likewise.
3670 (mulsf3, muldf3): Likewise.
3671 (difsf3, divdf3): Likewise.
3672 (movsfcc, movdfcc): Likewise.
3673 * predicates.md (f_register_operand): Delete.
3674 (arm_float_rhs_operand): Delete.
3675 (arm_float_add_operand): Delete.
3676 (arm_float_compare_operand): Use s_register_operand when
3677 there's no VFP.
3678 (cirrus_register_operand): Delete.
3679 (cirrus_fp_register): Delete.
3680 (cirrus_shift_const): Delete.
3681 (cmpdi_operand): Remove Maverick support.
3682 * constraints.md (f, v, H): Delete constraints.
3683 (G): Update documentation.
3684 * arm.c (fp_consts_inited): Convert to bool.
3685 (strings_fp): Delete.
3686 (values_fp): Delete.
3687 (value_fp0): New variable.
3688 (init_fp_table): Simplify logic.
3689 (arm_const_double_rtx): Likewise.
3690 (fp_immediate_constant): Likewise.
3691 (fp_const_from_val): Likewise.
3692 (neg_const_double_rtx_ok_for_fpa): Delete.
3693 * doc/md.texi (ARM constraints): Update documentation.
3694
3695 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
3696
3697 PR tree-optimization/53636
3698 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
3699 stride when doing basic-block vectorization.
3700
3701 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3702
3703 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
3704 into VEC_PERM_EXPR.
3705
3706 2012-06-15 Jakub Jelinek <jakub@redhat.com>
3707
3708 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
3709 allocate and free bbs array for the SLP case.
3710
3711 PR tree-optimization/51581
3712 * expr.h (choose_multiplier): New prototype.
3713 * expmed.c (choose_multiplier): No longer static.
3714 Change multiplier_ptr from rtx * to UHWI *.
3715 (expand_divmod): Adjust callers.
3716 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
3717 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
3718 argument to new_stmt_vec_info. Attempt to optimize also divisions
3719 by non-pow2 constants if integer vector division isn't supported.
3720 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
3721 don't look at pattern stmts and sequences.
3722
3723 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
3724
3725 PR middle-end/53590
3726 * common.opt (-fdelete-dead-exceptions): New switch.
3727 * doc/invoke.texi (Code Gen Options): Document it.
3728 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
3729 insn_could_throw_p predicate. Do not skip an insn that could throw
3730 if dead exceptions can be deleted.
3731 (insn_live_p): Likewise, do not return true in that case.
3732 * dce.c (can_alter_cfg): New flag.
3733 (deletable_insn_p): Do not return false for an insn that can throw if
3734 the CFG can be altered and dead exceptions can be deleted.
3735 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
3736 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
3737 predicate. Do not preserve an insn that could throw if dead exceptions
3738 can be deleted.
3739 * function.h (struct function): Add can_delete_dead_exceptions flag.
3740 * function.c (allocate_struct_function): Set it.
3741 * lto-streamer-in.c (input_struct_function_base): Stream it.
3742 * lto-streamer-out.c (input_struct_function_base): Likewise.
3743 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
3744 statement that could throw as necessary if dead exceptions can be
3745 deleted.
3746
3747 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
3748
3749 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
3750
3751 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
3752
3753 PR target/53568
3754 * config/sh/sh.md: Add peephole for swapbsi2.
3755 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
3756
3757 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
3758
3759 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
3760 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
3761
3762 2012-06-14 Jakub Jelinek <jakub@redhat.com>
3763
3764 PR target/53639
3765 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
3766
3767 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3768
3769 * arm.c (arm_cirrus_insn_p): Delete.
3770 (cirrus_reorg): Delete.
3771 (arm_reorg): Don't call cirrus_reorg.
3772 (arm_final_prescan_insn_p): Don't check for cirrus insns.
3773 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
3774 (adddi3, subdi3): Remove Maverick support.
3775 (arm_adddi3): Likewise.
3776 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
3777 (addsf3, adddf3): Likewise.
3778 (subsf3, subdf3): Likewise.
3779 (mulsf3, muldf3): Likewise.
3780 (ashldi3, ashrdi3, lshrdi3): Likewise.
3781 (floatsisf2, floatsidf2): Likewise.
3782 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3783 (arm_movdi, thumb1_movdi_insn): Likewise.
3784 (arm_cmpdi_insn): Likewise.
3785 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
3786 (cirrus.md): Don't include.
3787 * cirrus.md: Delete file.
3788 * t-arm (MD_INCLUDES): Remove cirrus.md.
3789
3790 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
3791
3792 * dwarf2out.c (function_possibly_abstracted_p): New static function.
3793 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
3794 cgraph_function_possibly_inlined_p.
3795 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
3796 (process_scope_var): Do not emit concrete instances of abstracted
3797 nested functions from here.
3798 (gen_decl_die): Emit the abstract instance if the function is possibly
3799 abstracted and not only possibly inlined.
3800 (dwarf2out_finish): Find the first non-abstract parent instance and
3801 attach concrete instances on the limbo list to it.
3802
3803 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3804
3805 * arm.md (divsf3, divdf3): Remove FPA support.
3806 (negsf2, negdf2): Likewise.
3807 (sqrtsf2, sqrtdf2): Likewise.
3808 (movdfcc): Likewise.
3809 (modsf3, moddf3, movxf): Delete.
3810 (push_fp_multi): Delete.
3811 (fpa.md): Don't include it.
3812 * fpa.md: Delete file.
3813 * t-arm (MD_INCLUDES): Remove fpa.md.
3814
3815 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
3816
3817 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
3818 (cost_for_stmt): Remove decl.
3819 (vect_get_single_scalar_iteration_cost): Correct typo in name.
3820 * tree-vect-loop.c (vect_get_cost): Remove.
3821 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
3822 vect_get_stmt_cost rather than vect_get_cost.
3823 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
3824 vect_get_cost.
3825 (vect_estimate_min_profitable_iters): Correct typo in call to
3826 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
3827 than vect_get_cost.
3828 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
3829 vect_get_cost.
3830 (vect_model_induction_cost): Likewise.
3831 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
3832 typo in call to vect_get_single_scalar_iteration_cost.
3833 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
3834 (cost_for_stmt): Remove unnecessary function.
3835 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
3836
3837 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
3838
3839 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
3840 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
3841 * arm-tables.opt: Regenerated.
3842 * doc/invoke.texi: Remove references to deleted options.
3843
3844 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3845
3846 * config/h8300/genmova.sh: Modified to add offset bits of
3847 mova/Sz assembly instruction for memory access.
3848 * config/h8300/h8300.c: Likewise.
3849 * config/h8300/mova.md: Likewise.
3850
3851 2012-06-12 Christian Bruel <christian.bruel@st.com>
3852
3853 PR target/53621
3854 * config/sh/sh.c (sh_option_override): Don't force
3855 flag_omit_frame_pointer and maccumulate_outgoing_args.
3856 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
3857
3858 2012-06-14 Richard Guenther <rguenther@suse.de>
3859
3860 * tree-vrp.c (VR_INITIALIZER): New define.
3861 (ranges_from_anti_range): New function.
3862 (extract_range_from_binary_expr_1): Decompose operations on
3863 VR_ANTI_RANGEs to operations on VR_RANGE.
3864 (extract_range_from_unary_expr_1): Likewise.
3865 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
3866 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
3867 extract_range_from_cond_expr, adjust_range_with_scev,
3868 vrp_visit_assignment_or_call, vrp_visit_phi_node,
3869 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
3870
3871 2012-06-13 Richard Henderson <rth@redhat.com>
3872
3873 * hwint.h (HOST_WIDEST_INT_C): New.
3874 (HOST_WIDE_INT_C): New.
3875 (HOST_WIDE_INT_1): Use it.
3876 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
3877
3878 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3879
3880 PR debug/49888
3881 * var-tracking.c: Include alias.h.
3882 (overlapping_mems): New struct.
3883 (drop_overlapping_mem_locs): New.
3884 (clobber_overlapping_mems): New.
3885 (var_mem_delete_and_set, var_mem_delete): Call it.
3886 (val_bind): Likewise, but only if modified.
3887 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
3888 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
3889
3890 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3891
3892 PR debug/47624
3893 * var-tracking.c (loc_exp_dep_pool): New.
3894 (vt_emit_notes): Create and release the pool.
3895 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
3896 (emit_notes_in_bb): Likewise.
3897 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
3898 (notify_dependents_of_changed_value): Likewise.
3899 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
3900 variables don't have a VAR_LOC_DEP_LST.
3901 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
3902 VALUEs or MEMs of VALUEs.
3903
3904 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3905
3906 PR debug/52983
3907 PR debug/48866
3908 * dce.c (word_dce_process_block): Insert debug temps only if the
3909 insn is not marked.
3910 (dce_process_block): Likewise, and if debug.used is not empty,
3911 and only after iterating over all DEFs that might mark the insn.
3912
3913 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
3914
3915 * common.opt (ftree-coalesce-inlined-vars): New.
3916 (ftree-coalesce-vars): New.
3917 * doc/invoke.texi: Document them.
3918 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3919 Implement them.
3920
3921 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
3922
3923 * read-rtl.c (mapping): Remove index field. Add current_value field.
3924 Define heap vectors.
3925 (iterator_group): Fix long line. Remove num_builtins field and
3926 uses_iterator fields. Make apply_iterator take a void * parameter.
3927 (iterator_use, atttribute_use): New structures.
3928 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
3929 (current_iterators, iterator_uses, attribute_uses): New variables.
3930 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
3931 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
3932 (map_attr_string, apply_iterator_to_string): Remove iterator
3933 and value parameters. Look through all current iterator values
3934 for a matching attribute.
3935 (mode_attr_index, apply_mode_maps): Delete.
3936 (apply_iterator_to_rtx): Replace with...
3937 (copy_rtx_for_iterators): ...this new function.
3938 (uses_iterator_p, apply_iterator_traverse): Delete.
3939 (apply_attribute_uses, add_current_iterators, apply_iterators): New
3940 functions.
3941 (add_mapping): Remove index field. Set current_value field.
3942 (initialize_iterators): Don't set num_builtins and uses_iterator_p
3943 fields.
3944 (find_iterator): Delete.
3945 (record_iterator_use, record_attribute_use): New functions.
3946 (record_potential_iterator_use): New function.
3947 (check_code_iterator): Remove handling of bellwether codes.
3948 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
3949 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
3950 parameter. Use the first code iterator value instead of the
3951 bellwether_codes array. Use record_potential_iterator_use for modes.
3952
3953 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
3954
3955 PR target/53568
3956 * config/sh/sh.md (bswapsi2): New expander.
3957 (swapbsi2): New insn.
3958
3959 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
3960
3961 PR target/53647
3962 * config/i386/i386.c (ix86_tune_cost): New variable.
3963 (ix86_option_override_internal): Set ix86_tune_cost. Use
3964 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
3965 l1_cache_size and l2_cache_size.
3966
3967 2012-06-13 Richard Guenther <rguenther@suse.de>
3968
3969 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
3970 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
3971 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
3972 VR_ANTI_RANGE with VR_ANTI_RANGE.
3973
3974 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
3975
3976 * config.gcc (unsupported): Move obsoleted FPA-based configurations
3977 here from ...
3978 (obsolete): ... here.
3979 (arm*-*-freebsd*): Remove.
3980 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
3981 (arm*-*-uclinux*): Likewise.
3982 (arm*-*-ecos-elf): Remove.
3983 (arm*-*-rtems*): Remove.
3984 (arm*-*-elf): Remove.
3985 (arm*-wince-pe*): Remove.
3986 (arm, --with-fpu): Remove support for fpa and Maverick variants.
3987 * arm/ecos-elf.h: Delete.
3988 * arm/t-strongarm-elf: Delete.
3989 * arm/rtems-elf.h: Delete.
3990 * arm/wince-pe.h: Delete.
3991 * arm/pe.c: Delete.
3992 * arm/pe.h: Delete.
3993 * arm/t-wince-pe: Delete.
3994
3995 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
3996
3997 PR tree-optimization/53647
3998 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
3999 targets with no defined cache line size.
4000
4001 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
4002
4003 * targhooks.c (default_builtin_vectorized_conversion): Handle
4004 vec_construct, using vectype to base cost on subparts.
4005 * target.h (enum vect_cost_for_stmt): Add vec_construct.
4006 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
4007 instead of scalar_to-vec.
4008 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
4009 vec_construct in same way as default for now.
4010 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4011 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4012 Handle vec_construct, including special case for 32-bit loads.
4013
4014 2012-06-13 Xinyu Qi <xyqi@marvell.com>
4015
4016 * config/arm/arm.c (FL_IWMMXT2): New define.
4017 (arm_arch_iwmmxt2): New variable.
4018 (arm_option_override): Enable use of iWMMXt with VFP.
4019 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
4020 Thumb mode. Set arm_arch_iwmmxt2.
4021 (arm_expand_binop_builtin): Accept VOIDmode op.
4022 (enum arm_builtins): Revise built-in fcode.
4023 (IWMMXT2_BUILTIN): New define.
4024 (IWMMXT2_BUILTIN2): Likewise.
4025 (iwmmx2_mbuiltin): Likewise.
4026 (builtin_description bdesc_2arg): Revise built in declaration.
4027 (builtin_description bdesc_1arg): Likewise.
4028 (arm_init_iwmmxt_builtins): Revise built in initialization.
4029 (arm_expand_builtin): Revise built in expansion.
4030 (arm_output_iwmmxt_shift_immediate): New function.
4031 (arm_output_iwmmxt_tinsr): Likewise.
4032 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
4033 (arm_output_iwmmxt_tinsr): Likewise.
4034 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
4035 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
4036 (rorv4hi3, rorv2si3, rordi3): Likewise.
4037 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
4038 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
4039 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
4040 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
4041 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
4042 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
4043 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
4044 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
4045 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
4046 (ror<mode>3, ror<mode>3_di): Likewise.
4047 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
4048 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
4049 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
4050 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
4051 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
4052 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
4053 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
4054 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
4055 (All instruction patterns): Add wtype attribute.
4056 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
4057 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
4058 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
4059 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
4060 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
4061 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
4062 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
4063 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
4064 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
4065 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
4066 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
4067 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
4068 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
4069 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
4070 (iwmmxt2.md): Include.
4071 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
4072 (TARGET_IWMMXT2): New define.
4073 (TARGET_REALLY_IWMMXT2): Likewise.
4074 (arm_arch_iwmmxt2): Declare.
4075 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
4076 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
4077 Use C name-mangling for intrinsics.
4078 (__v8qi): Redefine.
4079 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
4080 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
4081 (_m_from_int): Likewise.
4082 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
4083 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
4084 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
4085 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
4086 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
4087 (_mm_tbcst_pi32): Likewise.
4088 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
4089 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
4090 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
4091 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
4092 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
4093 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
4094 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
4095 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
4096 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
4097 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
4098 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
4099 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
4100 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
4101 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
4102 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
4103 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
4104 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
4105 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
4106 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
4107 (_m_to_int): New define.
4108 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
4109 * config/arm/arm-arches.def (iwmmxt2): Likewise.
4110 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
4111 iwmmxt2.md.
4112 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
4113 (arch): Add "iwmmxt2".
4114 (arch_enabled): Handle "iwmmxt2".
4115 (wtype): New attribute.
4116 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
4117 (UNSPEC_WALIGNI): New unspec.
4118 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
4119 * config/arm/iterators.md (VMMX2): New mode_iterator.
4120 * config/arm/marvell-f-iwmmxt.md: New file.
4121 * config/arm/iwmmxt2.md: New file.
4122
4123 2012-06-12 Jakub Jelinek <jakub@redhat.com>
4124
4125 PR c/53532
4126 PR c/51034
4127 PR c/53196
4128 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
4129 if type isn't complete.
4130
4131 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
4132
4133 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
4134
4135 2012-06-12 Richard Henderson <rth@redhat.com>
4136
4137 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
4138 iterator instead of INT.
4139
4140 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
4141
4142 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
4143 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
4144 declaration.
4145 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
4146 (tree_ssa_phiopt): Call gate_hoist_loads.
4147 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
4148 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
4149 hoist_adjacent_loads.
4150 (local_mem_dependence): New function.
4151 (hoist_adjacent_loads): Likewise.
4152 (gate_hoist_loads): Likewise.
4153 * common.opt (fhoist-adjacent-loads): New switch.
4154 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
4155
4156 2012-06-12 Michael Matz <matz@suse.de>
4157
4158 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
4159 (nonoverlapping_memrefs_p): Don't call it here ...
4160 (true_dependence_1): ... but here.
4161
4162 2012-06-12 Richard Guenther <rguenther@suse.de>
4163
4164 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
4165 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
4166 and MEM_SIZE only refines it. Reflect that and be less conservative
4167 if either of the latter is not known.
4168
4169 2012-06-12 Jakub Jelinek <jakub@redhat.com>
4170
4171 PR rtl-optimization/53589
4172 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
4173 discovery even when e->dest != target. If any LABEL_REF points
4174 to e->dest label, redirect it to target's label.
4175
4176 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
4177
4178 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
4179 condition for generating REG_FRAME_RELATED_EXPR note.
4180 (pop): Add code for generating REG_CFA_RESTORE,
4181 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
4182 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
4183 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
4184
4185 2012-06-11 Richard Henderson <rth@redhat.com>
4186
4187 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
4188 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
4189
4190 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
4191
4192 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
4193
4194 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
4195 Mention that this hook needs to be defined for native TLS.
4196 * doc/tm.texi: Regenerate.
4197
4198 2012-06-11 Mike Stump <mikestump@comcast.net>
4199
4200 * emit-rtl.c (init_emit_once): Iterate through the
4201 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
4202 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
4203 all the MIN_MODE_PARTIAL_INT modes anymore.
4204
4205 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
4206
4207 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
4208
4209 2012-06-11 Roland McGrath <mcgrathr@google.com>
4210
4211 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
4212 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
4213 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
4214 operand.
4215
4216 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
4217
4218 PR target/53511
4219 * config/sh/sh.md (fmasf4): New expander.
4220 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
4221 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
4222 * config/sh/sh.opt (mfused-madd): Remove.
4223 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
4224 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
4225 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
4226 as extra options.
4227 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
4228 descriptions.
4229
4230 2012-06-11 Richard Henderson <rth@redhat.com>
4231
4232 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
4233
4234 2012-06-11 Richard Guenther <rguenther@suse.de>
4235
4236 PR middle-end/53470
4237 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
4238 replace it with the first non-BLOCK context.
4239
4240 2012-06-11 Richard Guenther <rguenther@suse.de>
4241
4242 * alias.c (aliases_everything_p): Remove.
4243 (DIFFERENT_ALIAS_SETS_P): Likewise.
4244 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
4245 Do not use aliases_everything_p or special-case ANDs. Do not
4246 special-case BLKmode moves.
4247 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
4248 - for SCATCH only.
4249
4250 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
4251
4252 Fix CRIS build errors with --enable-build-with-cxx.
4253 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
4254 variable "and" to "andop".
4255 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
4256 temporary variable for memory model, passing C++-type-correct
4257 parameter type to expand_mem_thread_fence.
4258 ("atomic_compare_and_swap<mode>"): Ditto.
4259
4260 2012-06-09 Richard Henderson <rth@redhat.com>
4261
4262 PR c++/53602
4263 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
4264 (pass_jump): Rename from pass_jump2.
4265 (execute_jump2, pass_jump2): New.
4266 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
4267 perform cfg cleanup here. Move the test of PUSH_ROUNDING
4268 and ACCUMULATE_OUTGOING_ARGS test...
4269 (gate_handle_stack_adjustments): ... here.
4270 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
4271 Place new pass_jump2 after pass_stack_adjustments.
4272 * tree-pass.h (pass_jump): Declare.
4273
4274 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
4275
4276 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
4277 count trucation.
4278
4279 2012-06-08 Richard Henderson <rth@redhat.com>
4280
4281 PR c++/53602
4282 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
4283 note to a clobber insn when no other insn is available.
4284
4285 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
4286
4287 * config/avr/avr.c (avr_case_values_threshold): Return 7.
4288
4289 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
4290
4291 * genhooks.c (main): Set progname.
4292 (emit_documentation): Remove variable found_start, always bail out
4293 when a place is missing.
4294 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
4295
4296 2012-06-07 Jakub Jelinek <jakub@redhat.com>
4297
4298 PR middle-end/53580
4299 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
4300 call walk_gimple_seq_mod instead of walk_gimple_seq.
4301 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
4302 scan_omp_for, scan_omp_sections, scan_omp_single,
4303 execute_lower_omp): Adjust callers.
4304 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
4305 returns false, replace stmt with GIMPLE_NOP.
4306 (check_omp_nesting_restrictions): Instead of issuing warnings,
4307 issue errors and return false if any errors were reported.
4308
4309 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4310
4311 * doc/invoke.texi (fconserve-space): Remove documentation.
4312
4313 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
4314
4315 * config/rs6000/rs6000-tables.opt: Regenerated.
4316
4317 2012-06-06 Richard Guenther <rguenther@suse.de>
4318
4319 PR tree-optimization/53081
4320 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
4321 (adjacent_dr_p): ... this and make it work for reads, too.
4322 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
4323 (struct partition_s): Change main_stmt to main_dr, add
4324 secondary_dr member.
4325 (build_size_arg_loc): Change to date data-reference and not
4326 gimplify here.
4327 (build_addr_arg_loc): New function split out from ...
4328 (generate_memset_builtin): ... here. Use it and simplify.
4329 (generate_memcpy_builtin): New function.
4330 (generate_code_for_partition): Adjust.
4331 (classify_partition): Streamline pattern detection. Detect memcpy.
4332 (ldist_gen): Adjust.
4333 (tree_loop_distribution): Adjust seed statements for memcpy
4334 recognition.
4335
4336 2012-06-06 Matt Turner <mattst88@gmail.com>
4337
4338 * config/arm/mmintrin.h (_mm_empty): New.
4339 (_m_empty): New.
4340
4341 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
4342
4343 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
4344 * common.opt (fsched-pressure-algorithm=): Remove.
4345 * flag-types.h (sched_pressure_algorithm): Move to...
4346 * sched-int.h (sched_pressure_algorithm): ...here.
4347 * params.def (sched-pressure-algorithm): New param.
4348 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
4349 * common/config/s390/s390-common.c (s390_option_optimization_table):
4350 Remove OPT_fsched_pressure_algorithm_ entry.
4351 * config/s390/s390.c (s390_option_override): Set a default value for
4352 PARAM_SCHED_PRESSURE_ALGORITHM.
4353
4354 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4355
4356 PR target/53487
4357 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
4358 doing an unsigned compare, make sure the second argument is not a
4359 negative constant.
4360 (rs6000_emit_cmove): Don't allow floating point comparisons when
4361 generating ISEL moves.
4362
4363 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
4364
4365 * config/rs6000/e5500.md: New file.
4366 * config/rs6000/e6500.md: New file.
4367 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4368 e5500 and e6500.
4369 (rs6000_option_override_internal): Altivec and Spe options not
4370 allowed with e5500. Spe options not allowed with e6500. Increase
4371 move inline limit for e5500 and e6500. Disable string instructions
4372 for e5500 and e6500. Enable branch targets alignment for e5500 and
4373 e6500. Initialize rs6000_cost for e5500 and e6500.
4374 (rs6000_adjust_cost): Add extra scheduling cycles between compare
4375 and brnach for e5500 and e6500.
4376 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
4377 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
4378 e6500.
4379 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
4380 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
4381 ppce6500.
4382 Include e5500.md and e6500.md.
4383 * config/rs6000/rs6000-opt.h (processor_type): Add
4384 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
4385 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
4386 (powerpc*-*-*): Add new cores e5500, e6500.
4387 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
4388
4389 2012-06-05 Richard Guenther <rguenther@suse.de>
4390
4391 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
4392
4393 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
4394
4395 PR target/53575
4396 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
4397 is used for x86_64-*-*.
4398
4399 2012-06-05 Richard Guenther <rguenther@suse.de>
4400
4401 PR tree-optimization/30442
4402 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
4403 vectorization stop analysis at the first stmt we cannot compute
4404 a data-reference for instead of giving up completely.
4405
4406 2012-06-05 Richard Guenther <rguenther@suse.de>
4407
4408 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
4409 (partition_alloc): Initialize it.
4410 (partition_has_writes): New function.
4411 (rdg_flag_uses): Adjust.
4412 (rdg_flag_vertex): Likewise.
4413 (rdg_flag_vertex_and_dependent): Likewise.
4414 (rdg_flag_loop_exits): Likewise.
4415 (build_rdg_partition_for_component): Likewise.
4416 (rdg_build_partitions): Likewise.
4417
4418 2012-06-05 Richard Guenther <rguenther@suse.de>
4419
4420 PR tree-optimization/53081
4421 * tree-loop-distribution.c (generate_memset_builtin): Handle all
4422 kinds of byte-sized stores.
4423 (classify_partition): Likewise.
4424 (tree_loop_distribution): Adjust seed statements used for
4425 !flag_tree_loop_distribution.
4426
4427 2012-06-05 Alan Modra <amodra@gmail.com>
4428
4429 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
4430 (rs6000_emit_prologue): Ensure register used for inline saves
4431 of vector regs is not the static chain register. Revise comment.
4432
4433 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4434
4435 * doc/md.texi (Standard Pattern Names For Generation): Document
4436 sincos pattern.
4437
4438 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
4439
4440 PR bootstrap/53555
4441 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
4442
4443 2012-06-04 Jason Merrill <jason@redhat.com>
4444
4445 * dwarf2out.c (is_unit_die): New.
4446 (copy_declaration_context, copy_ancestor_tree): Use it.
4447 (copy_decls_walk): Likewise.
4448
4449 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
4450
4451 PR c++/53524
4452 * doc/invoke.texi (Wenum-compare): Update documentation.
4453
4454 2012-06-04 Dodji Seketeli <dodji@redhat.com>
4455
4456 PR preprocessor/53463
4457 * parser.c (cp_parser_assignment_expression): Use the location
4458 for the '=' as the default location for the expression.
4459
4460 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
4461
4462 PR target/53559
4463 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
4464 operands.
4465 (altivec_stvlxl): Ditto.
4466 (altivec_stvrx): Ditto.
4467 (altivec_stvrxl): Ditto.
4468
4469 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
4470
4471 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
4472 (ira_uniform_class_p): New macro.
4473
4474 * ira.c (setup_uniform_class_p): New function.
4475 (setup_allocno_and_important_classes): Call the function.
4476 (print_unform_and_important_classes): New function.
4477 (print_classes): Rename to print_translated_classes.
4478 (ira_debug_allocno_classes): Add call of
4479 print_unform_and_important_classes.
4480
4481 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
4482 classes instead of pressure classes.
4483
4484 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
4485
4486 PR middle-end/47530
4487 * trans-mem.c (expand_block_edges): Do not skip the first
4488 statement when resetting the BB.
4489
4490 2012-06-04 Richard Guenther <rguenther@suse.de>
4491
4492 * tree-data-ref.c (stores_from_loop): Remove.
4493 (stmt_with_adjacent_zero_store_dr_p): Likewise.
4494 (stores_zero_from_loop): Likewise.
4495 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
4496 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
4497 (adjacent_store_dr_p): New function.
4498 * tree-loop-distribution.c (generate_memset_builtin): Pass
4499 the RDG, use the already available data-reference.
4500 (generate_code_for_partition): Pass down RDG.
4501 (classify_partition): Inline parts of the former
4502 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
4503 (ldist_gen): Remember if there was any detected builtin and
4504 do less work if not and flag_tree_loop_distribution is not set.
4505 (tree_loop_distribution): Inline and fuse stores_from_loop
4506 and stores_zero_from_loop here.
4507
4508 2012-06-04 Richard Guenther <rguenther@suse.de>
4509
4510 PR middle-end/53471
4511 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
4512 create new assembler names.
4513
4514 2012-06-04 Richard Guenther <rguenther@suse.de>
4515
4516 * tree-data-ref.c (struct rdg_vertex_info): Remove.
4517 (rdg_vertex_for_stmt): Simplify using gimple_uid.
4518 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
4519 hashtable. Record stmt data-references.
4520 (hash_stmt_vertex_info): Remove.
4521 (eq_stmt_vertex_info): Likewise.
4522 (hash_stmt_vertex_del): Likewise.
4523 (build_empty_rdg): Simplify.
4524 (build_rdg): Adjust.
4525 (free_rdg): Likewise.
4526 (ref_base_address): Remove.
4527 (have_similar_memory_accesses): Likewise.
4528 * tree-data-ref.h (create_rdg_vertices): Remove.
4529 (struct rdg_vertex): Add datarefs member.
4530 (RDGV_DATAREFS): New define.
4531 (RDG_DATAREFS): Likewise.
4532 (have_similar_memory_accesses): Remove.
4533 (rdg_has_similar_memory_accesses): Likewise.
4534 * tree-loop-distribution.c (ref_base_address): Re-implement here.
4535 (similar_memory_accesses): Re-implement using existing data-references.
4536 (tree_loop_distribution): Initialize stmt uids for the stmt to
4537 RDG index mapping.
4538 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
4539 access stmt vinfo for stmts in loop.
4540
4541 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
4542
4543 PR target/53461
4544 * config/m68k/m68k.md ("tablejump"): Fix check for
4545 CASE_VECTOR_PC_RELATIVE.
4546
4547 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4548
4549 * output.h (merge_weak, assemble_alias,
4550 initializer_constant_valid_p,
4551 initializer_constant_valid_for_bitfield_p): Move protos from here...
4552 * tree.h: ... to here.
4553 * cgraphclones.c: Do not include output.h.
4554 * gimplify.c: Likewise.
4555 * reload.c: Likewise.
4556 * recog.c: Likewise.
4557 * tree-ssa-loop-ivopts.c: Likewise.
4558 * tree-switch-conversion.c: Likewise.
4559 * c-parser.c: Likewise.
4560 * c-typeck.c: Likewise.
4561 * Makefile.in: Fix dependencies.
4562
4563 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
4564
4565 PR target/46261
4566 * config/avr/avr-stdint.h: New file.
4567 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
4568 newlib-stdint.h
4569
4570 2012-06-04 Jakub Jelinek <jakub@redhat.com>
4571
4572 PR tree-optimization/53550
4573 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
4574 is POINTER_TYPE_P, use sizetype as step type instead of type.
4575
4576 2012-06-04 Richard Guenther <rguenther@suse.de>
4577
4578 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
4579 (ref_base_address_1): Likewise.
4580 (remove_similar_memory_refs): Likewise.
4581 * tree-data-ref.h (remove_similar_memory_refs): Remove.
4582 * tree-loop-distribution.c (classify_partition): Do not classify
4583 as builtin if -ftree-loop-distribute-patterns is not enabled.
4584 (fuse_partitions_with_similar_memory_accesses): Inline ...
4585 (ldist_gen): ... here. Fuse all non-builtin partitions if
4586 -ftree-loop-distribution is not enabled. Properly return
4587 the number of created partitions. Do not update SSA form here but ...
4588 (tree_loop_distribution): ... once here for the whole function.
4589 Only walk innermost loops, constrain loops we consider here
4590 further. Do not call remove_similar_memory_refs.
4591 (distribute_loop): Do not check number of loop nodes here.
4592
4593 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4594
4595 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
4596
4597 2012-06-03 Martin Jambor <mjambor@suse.cz>
4598
4599 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
4600 (ipa_get_jf_known_type_base_type): Likewise.
4601 (ipa_get_jf_known_type_component_type): Likewise.
4602 (ipa_get_jf_constant): Likewise.
4603 (ipa_get_jf_pass_through_formal_id): Likewise.
4604 (ipa_get_jf_pass_through_operation): Likewise.
4605 (ipa_get_jf_ancestor_offset): Likewise.
4606 (ipa_get_jf_ancestor_type): Likewise.
4607 (ipa_get_jf_ancestor_formal_id): Likewise.
4608 (ipa_get_jf_member_ptr_pfn): Likewise.
4609 * ipa-prop.c (ipa_set_jf_known_type): New function.
4610 (ipa_set_jf_constant): Likewise.
4611 (ipa_set_jf_simple_pass_through): Likewise.
4612 (ipa_set_jf_arith_pass_through): Likewise.
4613 (ipa_set_ancestor_jf): Likewise.
4614 (fill_member_ptr_cst_jump_function): Moved up and renamed to
4615 ipa_set_jf_member_ptr_cst.
4616 (detect_type_change_1): Use the new jump function creation functions.
4617 (compute_complex_assign_jump_func): Likewise.
4618 (compute_complex_ancestor_jump_func): Likewise.
4619 (compute_known_type_jump_func): Likewise.
4620 (compute_scalar_jump_functions): Likewise.
4621 (compute_pass_through_member_ptrs): Likewise.
4622 (determine_cst_member_ptr): Likewise.
4623 (combine_known_type_and_ancestor_jfs): Likewise.
4624 (try_make_edge_direct_simple_call): Likewise.
4625 (try_make_edge_direct_virtual_call): Likewise.
4626 (update_indirect_edges_after_inlining): Likewise.
4627 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
4628 access functions. Incorporat NOP_EXPR and BINFO handling from its
4629 callers.
4630 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
4631 which was in its callers.
4632 (ipa_value_from_jfunc): Use jump function access functions. Some
4633 functionality moved to functions above.
4634 (propagate_vals_accross_ancestor): Likewise.
4635 (propagate_vals_accross_pass_through): Use jump function access
4636 functions.
4637 (propagate_accross_jump_function): Likewise.
4638 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
4639 access functions.
4640 (inline_merge_summary): Likewise.
4641
4642 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4643
4644 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
4645 * config/pa/pa.c (pa_attr_length_millicode_call): Use
4646 MAX_PCREL17F_OFFSET instead of fixed offset.
4647 (pa_attr_length_call): Likewise.
4648 (pa_attr_length_indirect_call): Likewise.
4649
4650 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
4651
4652 PR target/53512
4653 * config/sh/sh.opt (mfsca, mfsrra): New options.
4654 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
4655 condition.
4656 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
4657 (sinssf2, cossf2): Fold expanders to ...
4658 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
4659 TARGET_FSCA condition.
4660 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
4661 TARGET_FSCA.
4662 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
4663 -mno-fsca, -mfsrra, -mno-fsrra.
4664
4665 2012-06-03 Matt Turner <mattst88@gmail.com>
4666
4667 * config/mips/4600.md (r4700_imul_si): New.
4668 (r4700_imul_di): New.
4669 (r4700_fmul_single): New.
4670 (r4700_fmul_double): New.
4671 * config/mips/mips-cpus.def: Add r4700.
4672 * config/mips/mips.c: Likewise.
4673 * config/mips/mips.md: Likewise.
4674 * config/mips/mips-tables.opt: Regenerate.
4675
4676 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
4677
4678 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
4679 new function sparc_initial_elimination_offset.
4680 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
4681 function.
4682 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
4683 Prototype it.
4684
4685 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
4686
4687 * expmed.c (expand_mult, choose_multiplier): Change
4688 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
4689 * expr.c (convert_modes): Likewise.
4690 * explow.c (plus_constant): Likewise.
4691 * fixed-value.c (fixed_saturate1, fixed_saturate2)
4692 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
4693 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
4694 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
4695 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
4696 (do_fixed_shift, fixed_convert, fixed_convert)
4697 (fixed_convert_from_int, fixed_convert_from_int)
4698 (fixed_convert_from_real): Likewise.
4699 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
4700 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
4701 * varasm.c (output_constructor_bitfield): Likewise.
4702 * tree-vrp.c (register_edge_assert_for_2): Likewise.
4703 * double-int.c (rshift_double, lshift_double): Likewise.
4704 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
4705 Likewise.
4706 * simplify-rtx.c (mode_signbit_p)
4707 (simplify_const_unary_operation, simplify_binary_operation_1)
4708 (simplify_immed_subreg): Likewise.
4709 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
4710 * tree-vect-generic.c (build_replicated_const): Likewise.
4711 * dbxout.c (stabstr_O): Likewise.
4712 * emit-rtl.c (immed_double_int_const, immed_double_const)
4713 (gen_lowpart_common, init_emit_once): Likewise.
4714 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
4715 (widest_int_cst_value, upper_bound_in_type): Likewise.
4716 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
4717 (fixup_unsigned_type): Likewise.
4718 * real.c (real_to_integer2, real_from_integer): Likewise.
4719 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
4720 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
4721
4722 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
4723
4724 PR middle-end/53501
4725 * fold-const.c (fold_binary_loc): Refine previous change.
4726
4727 2012-06-01 Olivier Hainque <hainque@adacore.com>
4728
4729 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
4730 the "do {" part of the do-while(0) loop.
4731
4732 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4733
4734 * config/i386/i386.c (x86_sched_reorder): New function.
4735 Added new function x86_sched_reorder.
4736
4737 2012-06-01 Richard Guenther <rguenther@suse.de>
4738
4739 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4740 Handle PHIs.
4741 (classify_partition): Likewise.
4742
4743 2012-06-01 Richard Guenther <rguenther@suse.de>
4744
4745 * tree-loop-distribution.c (enum partition_kind): New enum.
4746 (struct partition_s): Add kind and main_stmt members.
4747 (partition_alloc): Initialize kind to PKIND_NORMAL.
4748 (partition_builtin_p): New function.
4749 (copy_loop_before): Remove failure path and assert instead.
4750 (generate_loops_for_partition): Likewise.
4751 (generate_memset_zero): Fold into ...
4752 (generate_memset_builtin): ... this.
4753 (classify_partition): New function with code from
4754 can_generate_builtin and generate_builtin.
4755 (generate_builtin): Remove.
4756 (can_generate_builtin): Likewise.
4757 (fuse_partitions_with_similar_memory_accesses): Call
4758 partition_builtin_p instead of can_generate_builtin.
4759 (rdg_build_partitions): Do not call
4760 fuse_partitions_with_similar_memory_accesses here...
4761 (ldist_gen): ... but here after classifying all partitions.
4762 Remove failure path of generate_code_for_partition.
4763 (generate_code_for_partition): Generate code according
4764 to partition classification.
4765
4766 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
4767 Jonathan Wakely <jwakely.gcc@gmail.com>
4768
4769 PR c++/50134
4770 * doc/invoke.texi (Warning Options): Explain purpose and differences
4771 between -Wmissing-prototypes and -Wmissing-declarations.
4772
4773 2012-06-01 Christian Bruel <christian.bruel@st.com>
4774
4775 * gcc.c (save_switch): Add user_p parameter.
4776 (read_specs): Likewise.
4777 (set_specs): Likewise.
4778 (validate_switches): Likewise.
4779 (validate_switches_from_spec): Likewise.
4780 (validate_all_switches): Pass on user_p parameter.
4781 (struct spec_list): Add user_p field.
4782 (struct switchstr): Add known field.
4783 (save_switch): Add known parameter.
4784 (INIT_STATIC_SPEC): Initialize user_p;
4785 (driver_unknown_option_callbac): call save_switch if
4786 OPT_SPECIAL_unknown.
4787 (driver_handle_option): Propagate OPT_specs.
4788 (do_spec_1): Set validated only if known.
4789 (check_live_switch): Likewise.
4790 (validate_switches): Set validated if known or user_spec.
4791
4792 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
4793
4794 Add CRIS atomic patterns for 1, 2, and 4 bytes.
4795 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
4796 * config/cris/cris-protos.h: Declare it.
4797 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
4798 (TARGET_DEFAULT): Add alignment by 32.
4799 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
4800 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
4801 TARGET_CPU_DEFAULT == 32.
4802 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
4803 * config/cris/cris.md: Include sync.md. Avoid allocating specific
4804 numbers by replacing the define_constants for all UNSPECs with the
4805 equivalent define_c_enum construct.
4806 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
4807 * config/cris/sync.md: New file.
4808
4809 2012-05-31 Matt Turner <mattst88@gmail.com>
4810
4811 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
4812 (r4600_imul_di): New.
4813 (r4600_idiv_si): Rename from r4600_idiv.
4814 (r4600_idiv_di): New.
4815
4816 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4817
4818 * output.h (__gcc_host_wide_int__): Move to hwint.h.
4819 (decl_default_tls_model): Move to tree.h
4820 (dump_file): Move to system.h.
4821 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
4822 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
4823 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
4824 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
4825 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
4826 dbxout_stab_value_internal_label,
4827 dbxout_stab_value_internal_label_diff): Move from here ...
4828 * dbxout.h: ... to here.
4829 * system.h (dump_file): Moved here from output.h.
4830 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
4831 * tree.h (decl_default_tls_model): Moved here from output.h.
4832 * varasm.c (default_stabs_asm_out_destructor,
4833 default_stabs_asm_out_constructor): Move from here ...
4834 * dbxout.c: ... to here.
4835
4836 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
4837
4838 * collect2.h (dump_file): Rename to dump_ld_file.
4839 * collect2.c: Likewise.
4840 * tlink.c: Likewise.
4841
4842 * alias.c: Do not include output.h.
4843 * auto-inc-dec.c: Likewise.
4844 * bt-load.c: Likewise.
4845 * caller-save.c: Likewise.
4846 * cfg.c: Likewise.
4847 * cfgbuild.c: Likewise.
4848 * cfgcleanup.c: Likewise.
4849 * cfglayout.c: Likewise.
4850 * cfgloop.c: Likewise.
4851 * cfgloopanal.c: Likewise.
4852 * cfgloopmanip.c: Likewise.
4853 * cfgrtl.c: Likewise.
4854 * cgraph.c: Likewise.
4855 * cgraphclones.c: Likewise.
4856 * combine-stack-adj.c: Likewise.
4857 * combine.c: Likewise.
4858 * cprop.c: Likewise.
4859 * cse.c: Likewise.
4860 * cselib.c: Likewise.
4861 * dbgcnt.c: Likewise.
4862 * df-problems.c: Likewise.
4863 * df-scan.c: Likewise.
4864 * dojump.c: Likewise.
4865 * fwprop.c: Likewise.
4866 * gcse.c: Likewise.
4867 * graph.c: Likewise.
4868 * haifa-sched.c: Likewise.
4869 * hw-doloop.c: Likewise.
4870 * ipa-inline-transform.c: Likewise.
4871 * ipa-pure-const.c: Likewise.
4872 * ipa-reference.c: Likewise.
4873 * ipa-utils.c: Likewise.
4874 * ira-build.c: Likewise.
4875 * ira-emit.c: Likewise.
4876 * lcm.c: Likewise.
4877 * loop-doloop.c: Likewise.
4878 * loop-invariant.c: Likewise.
4879 * loop-iv.c: Likewise.
4880 * loop-unroll.c: Likewise.
4881 * loop-unswitch.c: Likewise.
4882 * lto-cgraph.c: Likewise.
4883 * lto-section-in.c: Likewise.
4884 * lto-streamer-in.c: Likewise.
4885 * mcf.c: Likewise.
4886 * mode-switching.c: Likewise.
4887 * postreload-gcse.c: Likewise.
4888 * postreload.c: Likewise.
4889 * predict.c: Likewise.
4890 * profile.c: Likewise.
4891 * ree.c: Likewise.
4892 * reg-stack.c: Likewise.
4893 * regcprop.c: Likewise.
4894 * regmove.c: Likewise.
4895 * regstat.c: Likewise.
4896 * reload1.c: Likewise.
4897 * sched-ebb.c: Likewise.
4898 * sel-sched-dump.c: Likewise.
4899 * simplify-rtx.c: Likewise.
4900 * stor-layout.c: Likewise.
4901 * store-motion.c: Likewise.
4902 * tracer.c: Likewise.
4903 * tree-affine.c: Likewise.
4904 * tree-cfg.c: Likewise.
4905 * tree-cfgcleanup.c: Likewise.
4906 * tree-dfa.c: Likewise.
4907 * tree-into-ssa.c: Likewise.
4908 * tree-nomudflap.c: Likewise.
4909 * tree-optimize.c: Likewise.
4910 * tree-pretty-print.c: Likewise.
4911 * tree-profile.c: Likewise.
4912 * tree-ssa-address.c: Likewise.
4913 * tree-ssa-ccp.c: Likewise.
4914 * tree-ssa-copy.c: Likewise.
4915 * tree-ssa-dom.c: Likewise.
4916 * tree-ssa-loop-ch.c: Likewise.
4917 * tree-ssa-loop-im.c: Likewise.
4918 * tree-ssa-loop-manip.c: Likewise.
4919 * tree-ssa-loop-niter.c: Likewise.
4920 * tree-ssa-loop-prefetch.c: Likewise.
4921 * tree-ssa-loop-unswitch.c: Likewise.
4922 * tree-ssa-loop.c: Likewise.
4923 * tree-ssa-propagate.c: Likewise.
4924 * tree-ssa-structalias.c: Likewise.
4925 * tree-ssa-tail-merge.c: Likewise.
4926 * tree-ssa-threadedge.c: Likewise.
4927 * tree-ssa-threadupdate.c: Likewise.
4928 * tree-ssa-uncprop.c: Likewise.
4929 * tree-ssa-uninit.c: Likewise.
4930 * tree-ssa.c: Likewise.
4931 * value-prof.c: Likewise.
4932 * var-tracking.c: Likewise.
4933 * web.c: Likewise.
4934
4935 * config/m32r/m32r.c: Include dbxout.h.
4936 * config/pa/pa.c: Likewise.
4937 * config/rs6000/rs6000.c: Likewise.
4938
4939 * Makefile.in: Fix dependencies.
4940 * config/rs6000/t-rs5000: Likewise.
4941
4942 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
4943
4944 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
4945 * gimple.h (block_in_transaction): Check for flag_tm.
4946
4947 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
4948
4949 PR tree-optimization/52558
4950 * cfg.c (alloc_aux_for_edge): Fix comment.
4951 (alloc_aux_for_edge): Remove static.
4952 * basic-block.h (alloc_aux_for_edge): Protoize.
4953 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
4954 (execute_sm_if_changed_flag): New.
4955 (execute_sm_if_changed_flag_set): New.
4956 (execute_sm): Do not generate data races unless requested.
4957 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
4958 (tree_ssa_lim_finalize): Call free_aux_for_edges.
4959 * gimple.h (block_in_transaction): New.
4960 (gimple_in_transaction): Use block_in_transaction.
4961
4962 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
4963
4964 PR target/51345
4965 * config/avr/avr.opt (-msp8): Document it.
4966 * doc/invoke.texi (AVR Options): Ditto. And document related
4967 built-in macros.
4968
4969 2012-05-31 Diego Novillo <dnovillo@google.com>
4970
4971 * configure.ac (CXX_FOR_BUILD): Define and substitute.
4972 (BUILD_CXXFLAGS): Define and substitute.
4973 * Makefile.in (BUILD_CXXFLAGS): Define.
4974 (CXX_FOR_BUILD): Define.
4975 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
4976 (LINKER_FOR_BUILD): Likewise.
4977 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
4978 (BUILD_LINKERFLAGS): Likewise.
4979 * configure: Regenerate.
4980
4981 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4982
4983 * Makefile.in: Fix many dependencies.
4984 * tree-profile.c: Don't include regs.h.
4985 * tree-vectorizer.c: Don't include cfglayout.h.
4986 * tree-vect-stmts.c: Likewise.
4987 * tree-vect-slp.c: Likewise.
4988 * tree-vect-loop.c: Likewise.
4989 * reg-stack.c: Likewise.
4990 * tree-ssa-loop-manip.c: Likewise.
4991 * toplev.c: Likewise.
4992 * varasm.c: Don't include cfglayout.h, basic-block.h,
4993 and tree-iterator.h.
4994 * tree-cfgcleanup.c: Don't include cfglayout.h.
4995 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
4996 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
4997 * cgraphclones.c: Don't include plugin.h.
4998
4999 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5000
5001 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
5002 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
5003 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
5004
5005 2012-05-31 Richard Guenther <rguenther@suse.de>
5006
5007 * tree-loop-distribution.c (struct partition_s): New struct,
5008 typedef and vector type.
5009 (partition_alloc, partition_free): New functions.
5010 (generate_loops_for_partition, generate_builtin,
5011 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
5012 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
5013 build_rdg_partition_for_component, can_generate_builtin,
5014 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
5015 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
5016 number_of_rw_in_partition, partition_contains_all_rw,
5017 ldist_gen): Use partition_t instead of bitmap.
5018
5019 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5020
5021 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
5022 * doc/avr-mmcu.texi: Regenerate.
5023
5024 2012-05-31 Richard Guenther <rguenther@suse.de>
5025
5026 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
5027 Use FOR_EACH_SSA_DEF_OPERAND.
5028 (generate_builtin): Adjust.
5029 (stmt_generated_in_another_partition): Remove.
5030 (add_scalar_computations_to_partition): Likewise.
5031 (rdg_build_partitions): Do not call
5032 add_scalar_computations_to_partition.
5033
5034 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
5035
5036 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
5037 double ints throughout.
5038 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
5039 Check that the position of the field is representable as an integer.
5040
5041 2012-05-31 Richard Guenther <rguenther@suse.de>
5042
5043 * tree-data-ref.c (dr_analyze_innermost): Properly convert
5044 the MEM_REF offset to sizetype.
5045
5046 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
5047
5048 * doc/invoke.texi (AVR Options): Fix typos.
5049
5050 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
5051
5052 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
5053 and -mcpu= options.
5054 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
5055 non-v32 into --march=v0_v10.
5056
5057 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5058
5059 * ira-int.h (target_ira_int): Rename x_move_cost to
5060 x_ira_register_move_cost, x_may_move_in_cost to
5061 x_ira_may_move_in_cost and x_may_move_out_cost to
5062 x_ira_may_move_out_cost. Delete the old fields with
5063 those names and also x_ira_max_register_move_cost,
5064 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
5065 (move_cost, may_move_in_cost, may_move_out_cost)
5066 (ira_max_register_move_cost, ira_max_may_move_in_cost)
5067 (ira_max_may_move_out_cost): Delete.
5068 * ira.c (init_move_cost): Rename to...
5069 (ira_init_register_move_cost): ...this, deleting the old
5070 function with that name. Apply above variable renamings.
5071 Retain asserts for null fields.
5072 (ira_init_once): Don't initialize register move costs here.
5073 (free_register_move_costs): Apply above variable renamings.
5074 Remove code for deleted fields.
5075
5076 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5077
5078 * ira.c (init_move_cost): Adjust choice of subclasses to match
5079 the current ira_init_register_move_cost choice. Use
5080 ira_class_subset_p instead of reg_class_subset_p.
5081 (ira_init_register_move_cost): Assert that move_cost,
5082 may_move_in_cost and may_move_out_cost already hold the desired
5083 values for their ira_* equivalents. For the latter two,
5084 ignore classes that can't store a register of the given mode.
5085
5086 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5087
5088 * ira.c (setup_allocno_and_important_classes): Use
5089 ira_class_hard_regs_num to check whether a class has any
5090 allocatable registers.
5091 (ira_init_register_move_cost): Likewise.
5092
5093 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5094
5095 * ira.c (init_move_cost): Adjust local variable names to match
5096 file conventions. Use ira_assert instead of gcc_assert.
5097
5098 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5099
5100 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
5101 Move these definitions and associated target_globals fields to...
5102 * ira-int.h: ...here.
5103 * rtl.h (init_move_cost): Delete.
5104 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
5105 * ira.c: ...here, making the latter static.
5106
5107 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5108
5109 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
5110 and ira_register_move_cost instead of init_move_cost and move_cost.
5111
5112 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
5113
5114 * ira.h (target_ira): Delete x_ira_available_class_regs.
5115 (ira_available_class_regs): Delete.
5116 * ira.c (setup_available_class_regs): Delete.
5117 (setup_alloc_classes): Don't call it.
5118 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
5119 ira_available_class_regs.
5120 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
5121 (model_spill_cost): Likewise.
5122 * ira-build.c (low_pressure_loop_node_p): Likewise.
5123 * ira-color.c (color_pass): Likewise.
5124 * ira-emit.c (change_loop): Likewise.
5125 * ira-lives.c (inc_register_pressure, dec_register_pressure)
5126 (single_reg_class, ira_implicitly_set_insn_hard_regs)
5127 (process_bb_node_lives): Likewise.
5128 * loop-invariant.c (gain_for_invariant): Likewise.
5129
5130 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5131
5132 PR target/52999
5133 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
5134 (pa_section_type_flags): New.
5135 (pa_legitimate_constant_p): Revert previous change.
5136
5137 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
5138
5139 * ira.c (allocate_initial_values): Make static.
5140
5141 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
5142
5143 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
5144 Generate tls_initial_exec_64_sun only when !TARGET_X32.
5145
5146 2012-05-30 Richard Guenther <rguenther@suse.de>
5147
5148 PR middle-end/53501
5149 * fold-const.c (fold_binary_loc): Make sure to call
5150 fold_plusminus_mult_expr with the original sign of operands.
5151
5152 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
5153
5154 * Makefile.in: Fix many dependencies.
5155 (DWARF2_H): Depend on dwarf2.def.
5156 (RTL_ERROR_H): Depend on rtl-error.h.
5157 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
5158 all gimple-pretty-print.h and tree-pretty-print.h references.
5159
5160 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
5161
5162 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
5163 concatenations.
5164
5165 2012-05-30 Richard Guenther <rguenther@suse.de>
5166
5167 PR middle-end/53522
5168 * tree-emutls.c (gen_emutls_addr): Do not add globals to
5169 referenced-vars.
5170
5171 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
5172
5173 * explow.c (probe_stack_range): Restore simple control flow and stop
5174 again when the probe cannot be generated if HAVE_check_stack.
5175
5176 2012-05-30 Jakub Jelinek <jakub@redhat.com>
5177
5178 PR rtl-optimization/53519
5179 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
5180 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
5181
5182 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5183
5184 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
5185
5186 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
5187
5188 PR debug/53453
5189 * doc/tm.texi: Update.
5190 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
5191 * target.def (force_at_comp_dir): New hook.
5192 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
5193 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
5194
5195 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
5196
5197 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
5198 Darwin >= 10.
5199 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
5200 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
5201
5202 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
5203
5204 PR target/51340
5205 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
5206 flag_unsafe_math_optimizations is set.
5207 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
5208 Update description of -mfused-madd.
5209
5210 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
5211
5212 PR target/52941
5213 * config/sh/predicates.md (atomic_arith_operand,
5214 atomic_logical_operand): New predicates.
5215 * config/sh/sh.c (sh_option_override): Check atomic options.
5216 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
5217 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
5218 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
5219 UNSUPPORTED_HARD_ATOMIC_CPU.
5220 * config/sh/sync.md: Update description comments.
5221 (I12): New mode iterator.
5222 (fetchop_predicate, fetchop_constraint): New code attributes.
5223 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
5224 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
5225 atomic_fetch_<fetchop_name>si_hard,
5226 atomic_fetch_<fetchop_name><mode>_hard,
5227 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
5228 atomic_<fetchop_name>_fetchsi_hard,
5229 atomic_<fetchop_name>_fetch<mode>_hard,
5230 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
5231 atomic_test_and_set_hard): New insns.
5232 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
5233 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
5234 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
5235 atomic_test_and_set_soft): Use same formatting for the first line of
5236 the asm block as in new insns above.
5237 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
5238 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
5239 atomic_test_and_set): Integrate new *_hard insns into expanders.
5240 * config/sh/sh.opt (mhard-atomic): New option.
5241 * doc/invoke.texi (SH Options): Document it.
5242
5243 2012-05-29 Meador Inge <meadori@codesourcery.com>
5244
5245 * c-decl.c (c_push_function_context): Always create a new language
5246 function.
5247 (c_pop_function_context): Clear the language function created in
5248 c_push_function_context.
5249
5250 2012-05-29 Matt Turner <mattst88@gmail.com>
5251
5252 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
5253 (define_bypass "ev6_fcmov"): New.
5254
5255 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
5256
5257 * integrate.c: Remove.
5258 * integrate.h: Remove.
5259 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
5260 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
5261 * config/rs6000/t-rs6000: Likewise
5262 * config/spu/t-spu-elf: Likewise.
5263 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
5264 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
5265 from integrate.h to here.
5266 (initial_value_entry): New prototype.
5267 * reload.h (allocate_initial_values): Remove prototype.
5268 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
5269 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
5270 integrate.c.
5271 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
5272 set_decl_abstract_flags, set_block_abstract_flags): Move from
5273 integrate.c to here, the only user.
5274 * expmed.c (extract_fixed_bit_field): Remove outdated comment
5275 about integrate.c.
5276 * function.c: Don't include integrate.h.
5277 (struct initial_value_pair, struct initial_value_struct,
5278 get_hard_reg_initial_val, has_hard_reg_initial_val,
5279 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
5280 integrate.c to here.
5281 (initial_value_entry): New function.
5282 * genemit.c (main): Don't print integrate.h include line.
5283 * ira.c: Don't include integrate.h.
5284 (allocate_initial_values): Move from integrate.c to here.
5285 (ira): Update allocate_initial_values call.
5286 * tree-inline.c: Don't include integrate.h.
5287 (function_attribute_inlinable_p): Moved from integrate.c to here.
5288 * cfgexpand.c: Don't include integrate.h.
5289 * except.c: Likewise.
5290 * langhooks.c: Likewise.
5291 * passes.c: Likewise.
5292 * toplev.c: Likewise.
5293 * config/frv/frv.c: Likewise.
5294 * config/pa/pa.c: Likewise.
5295 * config/spu/spu.c: Likewise.
5296 * config/epiphany/epiphany.c: Likewise.
5297 * config/mep/mep.c: Likewise.
5298 * config/score/score.c: Likewise.
5299 * config/picochip/picochip.c: Likewise.
5300 * config/sh/sh.c: Likewise.
5301 * config/alpha/alpha.c: Likewise.
5302 * config/microblaze/microblaze.c: Likewise.
5303 * config/mips/mips.c: Likewise.
5304 * config/v850/v850.c: Likewise.
5305 * config/mmix/mmix.c: Likewise.
5306 * config/bfin/bfin.c: Likewise.
5307 * config/arm/arm.c: Likewise.
5308 * config/s390/s390.c: Likewise.
5309 * config/m32r/m32r.c: Likewise.
5310 * config/rs6000/rs6000.c: Likewise.
5311 * config/c6x/c6x.c: Include function.h instead of integrate.h.
5312 * config/tilegx/tilegx.c: Likewise.
5313 * config/tilepro/tilepro.c: Likewise.
5314
5315 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
5316
5317 * config/avr/t-avr (s-avr-mmcu-texi): Call
5318 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
5319
5320 2012-05-29 Michael Matz <matz@suse.de>
5321
5322 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
5323 assign_temp): Remove 'keep' argument.
5324 (mark_temp_addr_taken): Remove prototype.
5325 * tree.h (expand_decl): Remove prototype.
5326 * function.c (struct temp_slot): Remove addr_taken and keep member.
5327 (assign_stack_temp_for_type) Don't initialize above, remove
5328 keep argument.
5329 (assign_stack_temp, assign_temp): Remove keep argument.
5330 (mark_temp_addr_taken): Remove.
5331 (preserve_temp_slots): Remove handling of addr_taken and keep members.
5332 (free_temp_slots): Ditto.
5333 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
5334 dead code.
5335 * stmt.c (expand_asm_operands): Remove dead code.
5336 (expand_decl): Remove.
5337 * c-decl.c (finish_struct): Don't call expand_decl.
5338 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
5339 and assign_stack_temp.
5340 * calls.c (save_fixed_argument_area, initialize_argument_information,
5341 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
5342 * expmed.c (extract_bit_field_1): Ditto.
5343 * expr.c (emit_group_load_1, emit_group_store,
5344 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
5345 store_field, expand_constructor, expand_cond_expr_using_cmove,
5346 expand_expr_real_2, expand_expr_real_1): Ditto.
5347 * stmt.c (expand_asm_operands, expand_return): Ditto.
5348
5349 * function.c (pop_temp_slots): Call free_temp_slots.
5350 * calls.c (store_one_arg): Don't call preserve_temp_slots or
5351 free_temp_slots.
5352 * expr.c (expand_assignment): Don't call free_temp_slots.
5353
5354 * config/arm/arm.c (neon_expand_vector_init): Ditto.
5355 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
5356 (ix86_expand_vector_extract): Ditto.
5357 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
5358 ia64_expand_movxf_movrf): Ditto.
5359 * config/mips/mips.c (mips_expand_vi_general): Ditto.
5360 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
5361 extendsfdf2): Ditto.
5362 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
5363 rs6000_expand_vector_set, rs6000_expand_vector_extract,
5364 rs6000_allocate_stack_temp): Ditto.
5365 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
5366 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5367 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
5368 sparc_expand_vector_init): Ditto.
5369
5370 2012-05-29 Michael Matz <matz@suse.de>
5371
5372 * c-tree.h (c_expand_decl): Remove prototype.
5373
5374 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
5375 a kept temp.
5376 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
5377 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
5378 COMPOUND_LITERAL_EXPR.
5379 * function.c (expand_function_start): Don't call expand_decl,
5380 instead assert that we have RTL assigned.
5381 * tree-ssa-live.c (remove_unused_locals): Clear
5382 nonlocal_goto_save_area if its backing variable is removed.
5383 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
5384 as mem inputs.
5385 (expand_decl): Assert that this does nothing.
5386 * calls.c (expand_call): Don't call mark_temp_addr_taken.
5387
5388 2012-05-29 Richard Guenther <rguenther@suse.de>
5389
5390 PR tree-optimization/53516
5391 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
5392 bitfield accesses.
5393 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5394
5395 2012-05-29 Joseph Myers <joseph@codesourcery.com>
5396
5397 * LANGUAGES: Fix typos.
5398 * Makefile.in: Fix typos.
5399 * alias.c: Fix typos.
5400 * auto-inc-dec.c: Fix typos.
5401 * bb-reorder.c: Fix typos.
5402 * cfgcleanup.c: Fix typos.
5403 * cgraph.c: Fix typos.
5404 * cgraph.h: Fix typos.
5405 * cgraphunit.c: Fix typos.
5406 * collect2-aix.h: Fix typos.
5407 * collect2.c: Fix typos.
5408 * compare-elim.c: Fix typos.
5409 * config/alpha/vms.h: Fix typos.
5410 * config/arm/README-interworking: Fix typos.
5411 * config/arm/arm.c: Fix typos.
5412 * config/arm/iterators.md: Fix typos.
5413 * config/arm/vxworks.h: Fix typos.
5414 * config/avr/avr.c: Fix typos.
5415 * config/avr/avr.h: Fix typos.
5416 * config/avr/avr.md: Fix typos.
5417 * config/avr/builtins.def: Fix typos.
5418 * config/c6x/c6x.c: Fix typos.
5419 * config/cr16/cr16.c: Fix typos.
5420 * config/cr16/cr16.md: Fix typos.
5421 * config/cris/cris.md: Fix typos.
5422 * config/darwin.c: Fix typos.
5423 * config/darwin.opt: Fix typos.
5424 * config/i386/i386-c.c: Fix typos.
5425 * config/i386/i386.c: Fix typos.
5426 * config/ia64/ia64.c: Fix typos.
5427 * config/m68k/cf.md: Fix typos.
5428 * config/mep/mep.c: Fix typos.
5429 * config/microblaze/microblaze.c: Fix typos.
5430 * config/microblaze/microblaze.h: Fix typos.
5431 * config/mn10300/mn10300.c: Fix typos.
5432 * config/mn10300/mn10300.md: Fix typos.
5433 * config/pa/pa.c: Fix typos.
5434 * config/picochip/picochip.h: Fix typos.
5435 * config/rs6000/a2.md: Fix typos.
5436 * config/rs6000/rs6000.c: Fix typos.
5437 * config/rs6000/vector.md: Fix typos.
5438 * config/rx/rx.md: Fix typos.
5439 * config/rx/rx.opt: Fix typos.
5440 * config/s390/2097.md: Fix typos.
5441 * config/s390/s390.c: Fix typos.
5442 * config/s390/s390.h: Fix typos.
5443 * config/sh/sh.c: Fix typos.
5444 * config/sh/sh.md: Fix typos.
5445 * config/sparc/sync.md: Fix typos.
5446 * config/spu/spu.c: Fix typos.
5447 * config/spu/spu.md: Fix typos.
5448 * config/vms/vms.c: Fix typos.
5449 * config/vxworks-dummy.h: Fix typos.
5450 * config/vxworks.h: Fix typos.
5451 * cselib.c: Fix typos.
5452 * df-scan.c: Fix typos.
5453 * df.h: Fix typos.
5454 * doc/extend.texi: Fix typos.
5455 * doc/install.texi: Fix typos.
5456 * doc/invoke.texi: Fix typos.
5457 * doc/md.texi: Fix typos.
5458 * doc/plugins.texi: Fix typos.
5459 * doc/rtl.texi: Fix typos.
5460 * dse.c: Fix typos.
5461 * dwarf2asm.c: Fix typos.
5462 * dwarf2out.c: Fix typos.
5463 * except.h: Fix typos.
5464 * expr.c: Fix typos.
5465 * fold-const.c: Fix typos.
5466 * gcc.c: Fix typos.
5467 * gcse.c: Fix typos.
5468 * genautomata.c: Fix typos.
5469 * gengtype-state.c: Fix typos.
5470 * gengtype.c: Fix typos.
5471 * genhooks.c: Fix typos.
5472 * gimple-fold.c: Fix typos.
5473 * gimple-pretty-print.c: Fix typos.
5474 * gimple.c: Fix typos.
5475 * gimple.h: Fix typos.
5476 * gimplify.c: Fix typos.
5477 * graphite-interchange.c: Fix typos.
5478 * graphite-sese-to-poly.c: Fix typos.
5479 * ifcvt.c: Fix typos.
5480 * input.c: Fix typos.
5481 * ipa-cp.c: Fix typos.
5482 * ipa-inline-analysis.c: Fix typos.
5483 * ipa-inline-transform.c: Fix typos.
5484 * ipa-inline.c: Fix typos.
5485 * ipa-pure-const.c: Fix typos.
5486 * ipa-ref.h: Fix typos.
5487 * ipa-reference.c: Fix typos.
5488 * ipa-utils.c: Fix typos.
5489 * ipa.c: Fix typos.
5490 * ira-emit.c: Fix typos.
5491 * ira-lives.c: Fix typos.
5492 * lto-streamer.c: Fix typos.
5493 * lto-streamer.h: Fix typos.
5494 * lto-wrapper.c: Fix typos.
5495 * mcf.c: Fix typos.
5496 * mode-switching.c: Fix typos.
5497 * modulo-sched.c: Fix typos.
5498 * plugin.c: Fix typos.
5499 * postreload.c: Fix typos.
5500 * sched-deps.c: Fix typos.
5501 * sel-sched-ir.c: Fix typos.
5502 * sel-sched-ir.h: Fix typos.
5503 * sel-sched.c: Fix typos.
5504 * sese.c: Fix typos.
5505 * stor-layout.c: Fix typos.
5506 * target-hooks-macros.h: Fix typos.
5507 * target.def: Fix typos.
5508 * trans-mem.c: Fix typos.
5509 * tree-eh.c: Fix typos.
5510 * tree-predcom.c: Fix typos.
5511 * tree-sra.c: Fix typos.
5512 * tree-ssa-address.c: Fix typos.
5513 * tree-ssa-loop-ivopts.c: Fix typos.
5514 * tree-ssa-loop-niter.c: Fix typos.
5515 * tree-ssa-math-opts.c: Fix typos.
5516 * tree-ssa-pre.c: Fix typos.
5517 * tree-ssa-propagate.c: Fix typos.
5518 * tree-ssa-reassoc.c: Fix typos.
5519 * tree-ssa-sccvn.c: Fix typos.
5520 * tree-ssa-ter.c: Fix typos.
5521 * tree-ssa-uninit.c: Fix typos.
5522 * tree-ssanames.c: Fix typos.
5523 * tree-vect-generic.c: Fix typos.
5524 * tree-vect-slp.c: Fix typos.
5525 * tree.c: Fix typos.
5526 * tree.h: Fix typos.
5527 * varasm.c: Fix typos.
5528 * varpool.c: Fix typos.
5529
5530 2012-05-29 Joseph Myers <joseph@codesourcery.com>
5531
5532 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
5533
5534 2012-05-29 Richard Guenther <rguenther@suse.de>
5535
5536 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
5537 for globals.
5538 (add_referenced_var_1): Re-organize. Assert we are not
5539 called for globals.
5540 (remove_referenced_var): Likewise.
5541 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
5542 * tree-mudflap.c (execute_mudflap_function_ops): Do not
5543 call add_referenced_var on globals.
5544 * matrix-reorg.c (transform_access_sites): Likewise.
5545
5546 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
5547
5548 * alias.c (reg_known_value): Make this a VEC.
5549 (reg_known_equiv_p): Make this an sbitmap.
5550 (reg_known_value_size): Remove.
5551 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
5552 set_reg_known_equiv_p): Update for reg_known_value and
5553 reg_known_value_size data structure change.
5554 (init_alias_analysis, end_alias_analysis): Likewise.
5555
5556 2012-05-29 Jakub Jelinek <jakub@redhat.com>
5557
5558 PR middle-end/53510
5559 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
5560 to avoid leaking memory. No need to handle memory allocation
5561 failure. Double string_len on each reallocation instead of adding 2.
5562 * gcov.c (read_line): Likewise.
5563
5564 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
5565
5566 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
5567 New macros.
5568 * config/cris/cris.md ("trap"): Define, enabled for
5569 TARGET_TRAP_USING_BREAK8.
5570 * config/cris/cris.opt (mtrap-using-break8): New option.
5571
5572 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
5573
5574 PR c++/25137
5575 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
5576 for C++.
5577
5578 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
5579
5580 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
5581 (Standard Names): Fix typos in documentation of atomic patterns.
5582
5583 2012-05-27 Nathan Sidwell <nathan@acm.org>
5584
5585 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
5586
5587 2012-05-26 Jason Merrill <jason@redhat.com>
5588
5589 PR c++/53220
5590 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
5591 about array compound literals.
5592
5593 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
5594
5595 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
5596 if CLEANUP_NO_INSN_DEL.
5597 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
5598 from cfg_layout_merge_blocks.
5599 (emit_nop_for_unique_locus_between): New function.
5600 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
5601 (cfg_layout_merge_blocks): Likewise.
5602
5603 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
5604 Paolo Bonzini <bonzini@gnu.org>
5605
5606 * df-scan.c (df_def_record_1): Assert a parallel must contain an
5607 EXPR_LIST at this point. Receive the LOC and move its extraction...
5608 (df_defs_record): ... here. Change if-else to a switch statement.
5609 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
5610 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
5611 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
5612 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
5613 regs_invalidated_by_call.
5614 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
5615 df_get_call_refs().
5616
5617 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
5618
5619 PR lto/52178
5620 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
5621 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
5622
5623 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
5624
5625 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
5626 software floating point emulation. No longer build the multilibs
5627 with -mstrict-align.
5628
5629 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
5630
5631 PR middle-end/53008
5632 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
5633 accessed indirectly.
5634 (ipa_tm_create_version): Same.
5635
5636 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
5637
5638 PR target/53474
5639 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
5640 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
5641
5642 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
5643
5644 PR target/53435
5645 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
5646 (ix86_expand_vec_perm): Use int mode instead of float.
5647 (expand_vec_perm_pshufb): Remove handling of useseless type
5648 conversion.
5649
5650 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
5651
5652 PR ada/52362
5653 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
5654 gnu_ld variables to yes.
5655 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
5656 (HAVE_GNU_AS): Likewise.
5657 * config.in: Regenerate.
5658 * configure: Likewise.
5659
5660 2012-05-25 Tristan Gingold <gingold@adacore.com>
5661
5662 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
5663 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
5664 and preferred_alignment.
5665
5666 2012-05-25 Tristan Gingold <gingold@adacore.com>
5667
5668 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
5669
5670 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
5671
5672 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
5673 volatile bitfields case.
5674
5675 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
5676
5677 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
5678 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
5679 (adjacent_mem_locations): Move some code to and call...
5680 (get_memref_parts): ...new function.
5681 (mem_locations_overlap): New function.
5682 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
5683 (is_mem_ref): Rename to...
5684 (find_mem_ref): ...this. Return MEM rtx.
5685 (get_store_dest): Remove function.
5686 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
5687 new parameter and adjust calls.
5688 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
5689 mem refs overlap for true_store_to_load_dep_costly.
5690 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
5691 passed to adjacent_mem_locations.
5692 (is_costly_group): Walk resolved dependency list.
5693 (force_new_group): Emit group ending nop for Power6/Power7.
5694 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
5695 (group_ending_nop): New define_insn.
5696
5697 2012-05-24 Dodji Seketeli <dodji@redhat.com>
5698
5699 Make unwound macro expansion trace less redundant
5700 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
5701 context of macro definition in the trace, when it's redundant.
5702 Update comments.
5703
5704 2012-05-24 Richard Guenther <rguenther@suse.de>
5705
5706 PR middle-end/53460
5707 * tree-profile.c (tree_profiling): Cleanup the CFG if
5708 execute_fixup_cfg requests it.
5709
5710 2012-05-24 Richard Guenther <rguenther@suse.de>
5711
5712 * tree-flow.h (create_var_ann): Remove.
5713 * tree-dfa.c (create_var_ann): Remove and inline into its
5714 single caller ...
5715 (add_referenced_var_1): ... here.
5716 * varpool.c (add_new_static_var): Do not call add_referenced_var
5717 for global vars.
5718 * gimple-fold.c (canonicalize_constructor_val): Likewise.
5719 * tree-switch-conversion.c (build_one_array): Likewise.
5720 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
5721 * tree-flow-inline.h (gimple_referenced_vars): Guard against
5722 NULL fn argument.
5723 * tree-inline.c (remap_gimple_op_r): Likewise. Check
5724 gimple_referenced_vars instead of gimple_in_ssa_p.
5725 (copy_tree_body_r): Likewise.
5726 (setup_one_parameter): Likewise.
5727 (declare_return_variable): Likewise.
5728 (tree_function_versioning): Likewise.
5729
5730 2012-05-24 Jakub Jelinek <jakub@redhat.com>
5731
5732 PR tree-optimization/53465
5733 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
5734 vr0 into *vr, then vrp_meet that.
5735 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
5736 have any equivalences.
5737 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
5738 first time.
5739
5740 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
5741
5742 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
5743 hard registers.
5744 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
5745 check end_regno - 1 is a hard register.
5746
5747 2012-05-24 Richard Guenther <rguenther@suse.de>
5748
5749 * varpool.c (add_new_static_var): Remove call to create_var_ann.
5750 * tree-ssa-operands.c (create_vop_var): Likewise.
5751
5752 2012-05-24 Richard Guenther <rguenther@suse.de>
5753
5754 PR bootstrap/53466
5755 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
5756 handle globals.
5757 (remove_unused_locals): Pass global_unused_vars to
5758 remove_unused_scope_block_p. Restore code walking all
5759 referenced vars and pruning them.
5760
5761 2012-05-23 Jan Hubicka <jh@suse.cz>
5762
5763 * tree.h (alias_diag_flags): Remove.
5764 (alias_pair): Remove emitted_diags.
5765 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
5766 symbol_alias_set_t, symbol_alias_set_destroy,
5767 symbol_alias_set_contains, propagate_aliases_backward): Remove.
5768 * toplev.c (compile_file): Do not call finish_aliases_2
5769 * cgraphunit.c (cgraph_process_new_functions): Do not call
5770 finish_aliases_1.
5771 (handle_alias_pairs): Output diagnostics about aliases to externals.
5772 (assemble_thunks_and_aliases): Use do_assemble_alias.
5773 (output_weakrefs): Likewise.
5774 (finalize_compilation_unit): Do not call finish_aliases_1.
5775 * ipa.c (symtab_remove_unreachable_nodes): De not call
5776 remove_unreachable_alias_pairs.
5777 * varasm.c (do_assemble_alias): Export.
5778 (symbol_alias_set_create, symbol_alias_set_destroy,
5779 symbol_alias_set_contains, symbol_alias_set_insert,
5780 propagate_aliases_forward, propagate_aliases_backward,
5781 propagate_aliases_backward, trivially_visible_alias,
5782 trivially_defined_alias, remove_unreachable_alias_pairs,
5783 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
5784 * output.h (do_assemble_alias): Declare.
5785 * varpool.c (varpool_remove_unreferenced_decls): Do not call
5786 finish_aliases_1.
5787
5788 2012-05-23 Martin Jambor <mjambor@suse.cz>
5789
5790 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
5791
5792 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
5793
5794 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
5795 size handling.
5796 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
5797 (iterative_hash_gimple_type): Adjust comment.
5798 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
5799 domain for an array type instead of the domain type itself.
5800
5801 2012-05-23 Richard Guenther <rguenther@suse.de>
5802
5803 PR tree-optimization/53438
5804 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
5805
5806 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
5807
5808 PR target/53448
5809 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
5810 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
5811 ASM_OUTPUT_ALIGN.
5812
5813 2012-05-23 Richard Guenther <rguenther@suse.de>
5814
5815 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
5816 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
5817 via the global_unused_vars bitmap.
5818 (remove_unused_locals): Handle global vars in local-decls via
5819 a global_unused_vars bitmap instead of the used flag in the
5820 var annotation. Simplify global variable handling and removal.
5821
5822 2012-05-22 Jan Hubicka <jh@suse.cz>
5823
5824 PR middle-end/53426
5825 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
5826 from other partitions.
5827
5828 2012-05-22 Jan Hubicka <jh@suse.cz>
5829
5830 PR middle-end/53161
5831 * symtab.c (symtab_register_node): Fix ordering issue.
5832
5833 2012-05-22 Steven Drake <sbd@NetBSD.org>
5834
5835 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
5836
5837 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
5838
5839 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5840 Use strip_name_encoding target hook.
5841
5842 2012-05-22 Richard Guenther <rguenther@suse.de>
5843
5844 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
5845 (init_function_for_compilation): Remove.
5846 * tree-dfa.c (find_vars_r): Take struct function argument.
5847 (find_referenced_vars_in): Adjust.
5848 * tree-ssa-operands.c (clobber_stats): Remove.
5849 (create_vop_var): Take struct function argument. Mark
5850 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
5851 (init_ssa_operands): Take struct function argument.
5852 (fini_ssa_operands): Do not dump dead stats.
5853 * tree-ssa-operands.h (init_ssa_operands): Take struct function
5854 argument.
5855 * cgraphunit.c (init_lowered_empty_function): Adjust.
5856 * lto-streamer-in.c (input_cfg): Likewise.
5857 * tree-inline.c (initialize_cfun): Likewise.
5858 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
5859 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
5860 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
5861 virtual operands are not registers.
5862
5863 2012-05-22 Richard Guenther <rguenther@suse.de>
5864
5865 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
5866
5867 2012-05-22 Richard Guenther <rguenther@suse.de>
5868
5869 PR middle-end/53437
5870 * tree-inline.c (setup_one_parameter): Create a dummy init
5871 statement for unused parameters when not optimizing.
5872
5873 2012-05-22 Richard Guenther <rguenther@suse.de>
5874
5875 * tree-flow.h (add_referenced_var_1): Declare.
5876 (add_referenced_var): Define.
5877 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
5878 (add_referenced_var): Rename to ...
5879 (add_referenced_var_1): ... this. Take struct function argument.
5880
5881 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5882
5883 PR target/53334
5884 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
5885 * config/arm/arm.c (arm_validize_comparison): Define.
5886 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
5887 arm_validize_comparison.
5888 ("cbranchdi4"): Likewise.
5889 ("cstoredi4"): Likewise.
5890 ("movsicc"): Likewise.
5891 ("movsfcc"): Likewise.
5892 ("movdfcc"): Likewise.
5893
5894 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
5895
5896 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
5897 the mw_reg_pool size.
5898
5899 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
5900
5901 PR tree-optimization/53336
5902 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
5903 non-integer integral types to offset type and vice versa.
5904
5905 2012-05-22 Alan Modra <amodra@gmail.com>
5906
5907 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5908 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
5909 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
5910 V_SAVE_INLINE): Delete.
5911 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
5912 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
5913 For ELF targets, use out-of-line restores for -Os and any number
5914 of regs if the restore exits, and out-of-line gp save for two or
5915 more regs. Use save_reg_p to test for holes in reg restore set.
5916 Replace "#if" with "if".
5917
5918 2012-05-22 Alan Modra <amodra@gmail.com>
5919
5920 * config/rs6000/rs6000.c (save_reg_p): New function.
5921 (first_reg_to_save, first_fp_reg_to_save): Use it here.
5922 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
5923 (emit_frame_save): Use gen_frame_store.
5924 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
5925 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
5926 vrsave and toc.
5927 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
5928 vrsave, toc, gp and fp restores.
5929
5930 2012-05-22 Alan Modra <amodra@gmail.com>
5931
5932 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
5933 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
5934 Move function pointer variables after forward declarations.
5935 (rs6000_builtin_support_vector_misalignment): Make static.
5936 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
5937 (rs6000_function_value, rs6000_can_eliminate): Likewise.
5938
5939 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
5940
5941 PR rtl-optimization/53373
5942 * caller-save.c (save_call_clobbered_regs): Look into a possible
5943 PARALLEL manually rather than using single_set on a call insn.
5944
5945 2012-05-21 Jakub Jelinek <jakub@redhat.com>
5946
5947 PR tree-optimization/53436
5948 * omp-low.c (omp_build_component_ref): New function.
5949 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
5950
5951 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
5952
5953 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
5954 arguments to bool.
5955 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
5956 Do not print '.' here. Output operand lossage error for unhandled
5957 sizes. Move.
5958 <case '*'>: Move.
5959 <case '&'>: Ditto.
5960 <case 'Y'>: Ditto.
5961 <case 'z'>: Hardcode "code" argument into error strings.
5962 <case 'Z'>: Ditto.
5963 <case 'D'>: Merge AVX and non-AVX codes.
5964 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
5965 Update call to put_condition_code.
5966
5967 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
5968
5969 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
5970 CC_STATUS_INIT.
5971 (clzsi2): New expander.
5972 (*clzsi2_68k): New insn.
5973 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
5974
5975 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
5976
5977 * gimple.h (gimple_set_in_transaction): Remove.
5978 (gimple_in_transaction): Look in BB instead.
5979 (gimple_statement_base): Remove in_transaction field.
5980 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
5981 * trans-mem.c (compute_transaction_bits): Place transaction bit
5982 information into basic blocks.
5983
5984 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
5985
5986 * expr.c (get_def_for_expr_class): Define only if
5987 HAVE_conditional_move.
5988 (convert_tree_comp_to_rtx): Likewise.
5989
5990 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
5991
5992 PR target/53399
5993 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
5994 for TARGET_BMI.
5995 (ffssi2_no_cmove): Ditto.
5996 (*ffs<mode>_1): Remove insn pattern.
5997 (*tzcnt<mode>_1): New insn pattern.
5998 (*bsf<mode>1): Ditto.
5999
6000 2012-05-21 Richard Guenther <rguenther@suse.de>
6001
6002 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
6003 more referenced vars.
6004 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
6005 flag on variables that have a var-annotation.
6006
6007 2012-05-21 Joseph Myers <joseph@codesourcery.com>
6008
6009 PR c/53418
6010 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
6011 from folded operands before wrapping another around the
6012 conditional expression.
6013
6014 2012-05-21 Jakub Jelinek <jakub@redhat.com>
6015
6016 PR tree-optimization/53366
6017 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
6018 tests if complex_numbers == 2, but there are non-complex number loads
6019 too.
6020
6021 PR tree-optimization/53409
6022 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
6023 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
6024
6025 PR tree-optimization/53410
6026 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
6027 instead of build_int_cst (type, 0) where vector types might be
6028 involved. Instead of build_int_cst (type, 1) convert the original
6029 integer_onep argument to the desired type.
6030
6031 2012-05-21 Michael Matz <matz@suse.de>
6032
6033 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
6034 (simplify_test_exp): Handle one more case of distributive law,
6035 decrease cost threshold.
6036 (tests_attr_p, get_attr_order): New functions.
6037 (optimize_attrs): Use topological order, inline only cheap values.
6038 (write_attr_set): Reset our_known_true after some time.
6039
6040 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
6041
6042 PR target/53425
6043 * config/i386/i386.c (type_natural_mode): Warn passing SSE
6044 vector argument without SSE enabled changes the ABI.
6045
6046 2012-05-21 Richard Guenther <rguenther@suse.de>
6047
6048 PR tree-optimization/53408
6049 * tree-vect-loop.c (vectorizable_induction): Properly check
6050 the restriction that we cannot handle induction results from
6051 the inner loop outside of the outer loop.
6052
6053 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
6054
6055 PR target/53416
6056 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
6057 (UNSPECV_RDRAND): This.
6058 (rdrand<mode>_1): Updated.
6059
6060 2012-05-21 Richard Guenther <rguenther@suse.de>
6061
6062 * tree-loop-distribution.c (can_generate_builtin): Reject
6063 volatile stmts.
6064
6065 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
6066
6067 * Makefile.in (options.c): Add options.h to included header
6068 files, before tm.h.
6069
6070 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
6071
6072 * tree-parloops.c : Add myself to contributors, update
6073 TODO list, add link to wiki.
6074
6075 2012-05-21 Alan Modra <amodra@gmail.com>
6076
6077 * config/rs6000/predicates.md (input_operand): Don't match
6078 constant pool addresses. Remove label_ref, high and plus from
6079 match_code list. Remove redundant CONSTANT_P test.
6080 (splat_input_operand): Similarly update match_code list.
6081 (small_toc_ref): New predicate.
6082 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
6083 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
6084 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
6085 register checks to..
6086 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
6087 generated by create_TOC_reference.
6088 (rs6000_legitimize_address): Update cerate_TOC_reference call.
6089 (rs6000_delegitimize_address): Handle new rtl for toc refs.
6090 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
6091 (use_toc_relative_ref): New function, split out from..
6092 (rs6000_emit_move): ..here. Remove redundant tests. Update
6093 create_TOC_reference calls.
6094 (rs6000_legitimize_reload_address): Formatting. Handle splitting
6095 of medium/large model toc addresses. Use use_toc_relative_ref.
6096 (print_operand): Formatting, style. Adjust for toc changes.
6097 (print_operand_address): Likewise.
6098 (rs6000_output_addr_const_extra): Likewise.
6099 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
6100 than a PLUS. Use this formulation for both high and low part
6101 of -mcmodel=medium/large toc reference too. Before reload,
6102 always use the small model formulation.
6103 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
6104 a PLUS in high part of addresses here.
6105 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
6106 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
6107 (largetoc_high, largetoc_low): Move earlier. Cope when no
6108 base reg available.
6109 (largetoc_high_plus): New insn.
6110 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
6111 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
6112 (tocref): ..instead do so here, new insn and split.
6113
6114 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
6115
6116 * config/i386/driver-i386.c (host_detect_local_cpu): Support
6117 RDRND, F16C and FSGSBASE.
6118
6119 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6120
6121 PR rtl-optimzation/53373
6122 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
6123 call pattern. Update split patterns.
6124 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
6125 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
6126
6127 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
6128
6129 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
6130 for outer loops.
6131
6132 2012-05-18 Jan Hubicka <jh@suse.cz>
6133
6134 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
6135 (cgraph_process_new_functions): Process also aliases.
6136 * lto-streamer-out.c (struct sets): Remove.
6137 (trivally_defined_alias): Remove.
6138 (output_alias_pair_p): Remove.
6139 (output_unreferenced_globals): Remove.
6140 (produce_symtab); Do not handle alias pairs.
6141 (produce_asm_for_decls): Likewise.
6142 * lto-streamer-in.c (input_alias_pairs): Remove.
6143 (lto_read_body): Do not input alias pairs.
6144 (lto_input_constructors_and_inits): Remove.
6145
6146 2012-05-18 Jan Hubicka <jh@suse.cz>
6147
6148 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
6149 aliases.
6150
6151 2012-05-18 Jan Hubicka <jh@suse.cz>
6152
6153 * cgraphbuild.c (record_reference): Update.
6154 * lto-cgraph.c (lto_output_varpool_node): External vars
6155 are not in other partition even if they are not output
6156 in current partition.
6157 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
6158 argument; fix.
6159 (canonicalize_constructor_val): Take FROM_DECL argument.
6160 (fold_ctor_reference, fold_string_cst_ctor_reference,
6161 fold_array_ctor_reference, fold_nonarray_ctor_reference,
6162 fold_ctor_reference): Likewise.
6163 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
6164 * gimple.h (gimple_fold_builtin): Likewise.
6165
6166 2012-05-18 Olivier Hainque <hainque@adacore.com>
6167
6168 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
6169 $(libsubdir) as libexecsubdir.
6170
6171 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6172
6173 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
6174 relied on signed overflow behavior.
6175
6176 2012-05-18 Richard Guenther <rguenther@suse.de>
6177
6178 PR tree-optimization/53346
6179 * tree-loop-distribution.c (ldist_gen): Make sure to apply
6180 builtin transform even when only a single partition with
6181 all reads/writes exists.
6182
6183 2012-05-18 Richard Guenther <rguenther@suse.de>
6184
6185 PR tree-optimization/53390
6186 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
6187 strided loads.
6188
6189 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6190
6191 * tree-ssa-reassoc.c (bip_map): Remove decl.
6192 (completely_remove_stmt): Remove function.
6193 (remove_def_if_absorbed_call): Remove function.
6194 (remove_visited_stmt_chain): Remove __builtin_powi handling.
6195 (possibly_move_powi): Remove function.
6196 (rewrite_expr_tree): Remove calls to possibly_move_powi.
6197 (rewrite_expr_tree_parallel): Likewise.
6198 (attempt_builtin_powi): Build multiplies explicitly rather than
6199 relying on the ops vector and rank system.
6200 (transform_stmt_to_copy): New function.
6201 (transform_stmt_to_multiply): Likewise.
6202 (reassociate_bb): Handle leftover operations after __builtin_powi
6203 optimization; build a final multiply if necessary.
6204
6205 2012-05-18 Jan Hubicka <jh@suse.cz>
6206
6207 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
6208 (mark_functions_to_output): Fix sanity check.
6209 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
6210
6211 2012-05-18 Richard Guenther <rguenther@suse.de>
6212
6213 * tree-flow.h (mark_symbols_for_renaming): Remove.
6214 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
6215 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
6216 (copy_debug_stmt): Likewise.
6217 (expand_call_inline): Likewise.
6218 (declare_return_variable): Mark the return variable for renaming
6219 if necessary.
6220
6221 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
6222
6223 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
6224 prototype.
6225 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
6226 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
6227 (ashrdi3,lshrdi3): Likewise.
6228 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
6229
6230 2012-05-18 Meador Inge <meadori@codesourcery.com>
6231
6232 PR rtl-optimization/53352
6233 * cse.c (equiv_constant): Ignore paradoxical subregs.
6234
6235 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
6236
6237 PR rtl-optimization/53125
6238 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
6239 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
6240 die in the basic block. Correctly top off REG_FREQ and
6241 REG_FREQ_CALLS_CROSSED.
6242 Remove do_not_gen.
6243 (regstat_compute_ri): Allocate and free local_live_last_luid.
6244 Remove do_not_gen.
6245 (regstat_bb_compute_calls_crossed): Correctly top off
6246 REG_FREQ_CALLS_CROSSED.
6247
6248 2012-05-17 Jan Hubicka <jh@suse.cz>
6249
6250 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
6251 constructor over decl without.
6252 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
6253 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
6254 * cgraphunit.c (process_function_and_variable_attributes): Finalize
6255 extrnal decls.
6256 (mark_functions_to_output): Also accept bodies for functions with
6257 clones.
6258 (output_in_order): Skip external vars.
6259 * lto-cgraph.c (lto_output_node): External functions are never in other
6260 partition.
6261 (lto_output_varpool_node): Likewise.
6262 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
6263 forgotten initializers.
6264 * ipa.c (process_references): Handle external vars.
6265 (symtab_remove_unreachable_nodes): Update to handle external vars.
6266 (varpool_externally_visible_p): External vars are externally visible.
6267 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
6268 * varpool.c (varpool_remove_node): Remove constructor.
6269 (decide_is_variable_needed): Handle externals.
6270 (varpool_remove_unreferenced_decls): Likewise.
6271
6272 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6273
6274 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
6275 (enable_warning_as_error): Do not special case Wuninitialized.
6276 * optc-gen.awk: Add sanity checks.
6277
6278 2012-05-17 Jan Hubicka <jh@suse.cz>
6279
6280 * ipa-reference.c (is_proper_for_analysis): Do not check flags
6281 that might change as result of global optimization.
6282 (analyze_function): Do not check analyzed and externally_visible
6283 flags; be happy about address dereferences.
6284 (propagate): Prune all_module_statics so it really contains just
6285 statics; prune all the local summaries.
6286 (ipa_reference_write_optimization_summary): Simplify.
6287
6288 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6289
6290 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
6291 * config/m68k/m68k-tables.opt: Regenerated.
6292 * doc/invoke.texi (M680x0 Options): Document.
6293
6294 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
6295 Patrick Marlier <patrick.marlier@gmail.com>
6296
6297 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
6298 indirect calls.
6299
6300 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
6301
6302 * configure: Regenerated.
6303
6304 2012-05-16 Andrew Pinski <apinski@cavium.com>
6305
6306 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
6307 GIMPLE_ASSIGN.
6308
6309 2012-05-16 David S. Miller <davem@davemloft.net>
6310
6311 * jump.c (delete_related_insns): If we remove a CALL, make sure
6312 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
6313
6314 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6315
6316 PR tree-optimization/53217
6317 * tree-ssa-reassoc.c (bip_map): New static variable.
6318 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
6319 (attempt_builtin_powi): Save feeding multiplies on a stack.
6320 (reassociate_bb): Create and destroy bip_map.
6321
6322 2012-05-16 Olivier Hainque <hainque@adacore.com>
6323
6324 * Makefile.in (install-no-fixedincludes): New target, former toplevel
6325 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
6326 Add comments and improve stamp preservation across the whole sequence.
6327 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
6328
6329 2012-05-16 Richard Guenther <rguenther@suse.de>
6330
6331 * tree-inline.c (insert_init_stmt): Do not call
6332 mark_symbols_for_renaming.
6333 (setup_one_parameter): Avoid initializing unused parameters.
6334 (declare_return_variable): Properly handle DECL_BY_REFERENCE
6335 return vars in SSA form.
6336
6337 2012-05-16 Richard Guenther <rguenther@suse.de>
6338
6339 * tree-flow.h (get_virtual_var): Remove.
6340 * tree-dfa.c (get_virtual_var): Likewise.
6341
6342 2012-05-16 Richard Guenther <rguenther@suse.de>
6343
6344 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
6345 Remove set-only bitmap of new names.
6346 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
6347 CFG hooks.
6348 * tree-flow.h (ssa_names_to_replace): Remove.
6349 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
6350
6351 2012-05-16 Richard Guenther <rguenther@suse.de>
6352
6353 PR tree-optimization/53364
6354 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
6355 detect a view-conversion of the decl.
6356
6357 2012-05-16 Dodji Seketeli <dodji@redhat.com>
6358
6359 PR preprocessor/7263
6360 * c-tree.h (enum c_declspec_word): Declare new enum.
6361 (struct c_declspecs::locations): New member.
6362 (declspecs_add_qual, declspecs_add_scspec)
6363 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
6364 location parameter.
6365 * c-decl.c (build_null_declspecs): Initialize the new struct
6366 c_declspecs::locations member.
6367 (declspecs_add_addrspace): Take a location parameter for the
6368 address space. Store it onto declaration specifiers.
6369 (declspecs_add_qual): Likewise, take a location parameter for the
6370 qualifier.
6371 (declspecs_add_type): Likewise, take a location parameter for the
6372 type specifier.
6373 (declspecs_add_scspec): Likewise, take a location parameter for
6374 the storage class specifier.
6375 (declspecs_add_attrs): Likewise, take a location parameter for the
6376 first attribute.
6377 (declspecs_add_alignas): Likewise, take a location parameter for
6378 the alignas token.
6379 (finish_declspecs): For diagnostics, use the location of the
6380 relevant declspec, instead of the global input_location.
6381 * c-parser.c (c_parser_parameter_declaration): Pass the precise
6382 virtual location of the declspec to the declspecs-setters.
6383 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
6384 repeatedly.
6385
6386 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
6387
6388 * configure.ac: Stack protector enabling for Android targets.
6389 * configure: Regenerate.
6390
6391 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
6392
6393 * ira.c (pseudo_move_insn): Delete.
6394 (find_moveable_pseudos): Don't set it.
6395 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
6396 the definitions of the original pseudo. Delete all of them.
6397
6398 2012-05-16 Olivier Hainque <hainque@adacore.com>
6399
6400 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6401 PROCESSOR_PPC8548.
6402 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
6403 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
6404 * config/rs6000/8540.md: indicate that the units/patterns apply to
6405 ppc8548 as well.
6406
6407 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
6408 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
6409 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
6410 related flags, check that what is queried is supported by the selected
6411 configuration. Rework the single/double_float and MASK_STRING resets to
6412 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
6413 costs for PROCESSOR_PPC8548 as well.
6414 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
6415 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
6416 statement instead of a sequence of ifs.
6417
6418 * config/rs6000/rs6000.h (TARGET_E500): Remove.
6419 (TARGET_NO_LWSYNC): Adjust accordingly.
6420 * config/rs6000/e500.h (TARGET_E500): Remove.
6421 (CHECK_E500_OPTIONS): Adjust accordingly.
6422 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
6423 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
6424 * config/rs6000/linuxspe.h: Likewise.
6425 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
6426 superfluous comments.
6427 * config/rs6000/e500-double.h: Remove.
6428
6429 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
6430 default to with_cpu=8548 if --enable-e500-double, and to 8540
6431 otherwise.
6432 (set misc flags section): For powerpc*|rs6000*, remove inclusion
6433 of e500-double.h for --enable-e500-double.
6434
6435 2012-05-16 Olivier Hainque <hainque@adacore.com>
6436
6437 * Makefile.in (s-header-vars): Resort to -n instead of trailing
6438 -e d in sed invocation.
6439
6440 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
6441
6442 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
6443 source-code.
6444 * doc/tm.texi: Regenerate.
6445
6446 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
6447
6448 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
6449
6450 2012-05-15 Jakub Jelinek <jakub@redhat.com>
6451
6452 PR target/53358
6453 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
6454 that operands[2] is either immediate, or q_regs_operand.
6455
6456 2012-05-15 Richard Guenther <rguenther@suse.de>
6457
6458 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
6459 (assemble_thunk): Likewise. Manually rename and register
6460 function arguments.
6461
6462 2012-05-15 Richard Guenther <rguenther@suse.de>
6463
6464 PR tree-optimization/53355
6465 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
6466 by constants.
6467
6468 2012-05-15 Tristan Gingold <gingold@adacore.com>
6469
6470 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
6471
6472 2012-05-15 Richard Guenther <rguenther@suse.de>
6473
6474 * gimple.c (gimple_set_modified): Move ...
6475 * gimple.h (gimple_set_modified): ... here.
6476
6477 2012-05-15 Tristan Gingold <gingold@adacore.com>
6478
6479 * ira-color.c (move_spill_restore): Add a guard.
6480
6481 2012-05-15 Tristan Gingold <gingold@adacore.com>
6482
6483 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
6484 plus_constant.
6485
6486 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
6487
6488 * gimplify.c (gimplify_init_constructor): Do a block move for very
6489 small objects as well.
6490
6491 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
6492
6493 * ira.c (find_moveable_pseudos): Skip registers whose
6494 DF_REG_EQ_USE_COUNT is nonzero.
6495
6496 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
6497
6498 * doc/md.texi (fma): Define to only be applicable for single rounding.
6499
6500 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
6501
6502 PR target/46098
6503 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
6504 generate target register for "load" class builtins.
6505
6506 Revert:
6507 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
6508
6509 PR target/46098
6510 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6511 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6512 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6513 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6514 (<sse>_movu<ssemodesuffix>): New expander.
6515 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6516 (avx_movdqu<avxmodesuffix>): New expander.
6517 (*sse2_movdqu): Rename from sse2_movdqu.
6518 (sse2_movdqu): New expander.
6519
6520 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
6521
6522 PR target/52607
6523 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
6524 (canonicalize_perm): ... new function.
6525 (expand_vec_perm_2vperm2f128_vshuf): New function.
6526 (ix86_expand_vec_perm_const_1): Call it.
6527
6528 2012-05-14 Andrew Pinski <apinski@cavium.com>
6529 H.J. Lu <hongjiu.lu@intel.com>
6530 Jakub Jelinek <jakub@redhat.com>
6531
6532 PR target/53315
6533 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
6534 (xbegin): Updated.
6535
6536 2012-05-14 Jakub Jelinek <jakub@redhat.com>
6537
6538 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
6539 lineno 1 the same as lineno 0 before first start file directive.
6540 (optimize_macinfo_range): Likewise.
6541
6542 * dwarf2out.c (have_macinfo): Define.
6543 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
6544 attribute, don't force empty compilation unit and don't emit any
6545 .debug_macinfo/.debug_macro section if macinfo_table is empty.
6546
6547 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
6548
6549 PR target/53344
6550 * config/avr/avr.c (avr_const_address_lo16): Remove.
6551 (avr_assemble_integer): Print ".byte lo8(x)",
6552 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
6553 .warning if 3-byte address is assembled.
6554 * doc/extend.texi (AVR Named Address Spaces): Document that
6555 binutils 2.23 is needed to assemble 3-byte addresses.
6556
6557 2012-05-14 Richard Guenther <rguenther@suse.de>
6558
6559 * tree-vect-data-refs.c (vect_setup_realignment): Remove
6560 call to mark_symbols_for_renaming.
6561 (vect_permute_load_chain): Likewise.
6562 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
6563 instead of calling mark_symbols_for_renaming.
6564 * tree-vect-stmts.c (read_vector_array): Remove call to
6565 mark_symbols_for_renaming.
6566 (write_vector_array): Likewise.
6567 (vectorizable_call): Likewise.
6568 (vectorizable_store): Likewise.
6569 (vectorizable_load): Likewise.
6570 * matrix-reorg.c (transform_allocation_sites): Likewise.
6571 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
6572 (create_expression_by_pieces): Likewise.
6573
6574 2012-05-14 Richard Guenther <rguenther@suse.de>
6575
6576 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
6577 of statements for renaming.
6578 (force_gimple_operand_1): Likewise, consistently for both
6579 calls to force_gimple_operand and force_gimple_operand_gsi.
6580
6581 2012-05-14 Richard Guenther <rguenther@suse.de>
6582
6583 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
6584 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
6585 to update_ssa.
6586 (expand_omp_for): Likewise.
6587 (expand_omp_for_generic): Adjust conditional add to referenced vars.
6588 Use make_rename_temp for temporaries that should be rewritten into
6589 SSA form.
6590 (expand_omp_for_static_nochunk): Likewise.
6591 (expand_omp_atomic_pipeline): Likewise.
6592
6593 2012-05-14 Richard Guenther <rguenther@suse.de>
6594
6595 PR tree-optimization/53331
6596 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
6597 strided loads.
6598 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
6599
6600 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6601
6602 PR 53063
6603 * doc/options.texi: (LangEnabledBy): Document it.
6604 * optc-gen.awk: Handle LangEnabledBy.
6605 * opth-gen.awk: Generate declaration for lang-specific functions.
6606 * opt-read.awk: Record lang numbers.
6607 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
6608 (lang_sanitized_name): New.
6609
6610 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
6611
6612 * attribs.c (decl_attributes): Avoid emitting a warning if
6613 ATTR_FLAG_BUILT_IN.
6614 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
6615 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
6616 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
6617 define a string "1".
6618 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
6619 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
6620 BUILT_IN_STRCPY): Use it for these functions.
6621 * postreload.c (reload_combine): Deal with SETs inside
6622 CALL_INSN_FUNCTION_USAGE.
6623 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
6624 Look for REG_RETURNED notes and use a cheap restore if possible.
6625 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
6626 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
6627 * ira-build.c (ira_create_allocno, create_cap_allocno,
6628 propagate_allocno_info, propagate_some_info_from_allocno,
6629 copy_info_to_removed_store_destination, ira_flattening): Handle it.
6630 * ira-lives.c (pseudo_regno_single_word_and_live_p,
6631 find_call_crossed_cheap_reg): New static functions.
6632 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
6633 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
6634 a REG_RETURNED note in that case.
6635 * ira.c (setup_reg_renumber): Change assert to allow cases where
6636 allocnos only cross calls for which they are cheap to restore.
6637 * ira-costs.c (ira_tune_allocno_costs): Compare
6638 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
6639 than 0.
6640 * reg-notes.def (REG_RETURNED): New note.
6641 * cse.c (cse_insn): Likewise.
6642 * sched-deps.c (sched_analyze_insn): Likewise.
6643 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
6644 * calls.c (decl_return_flags): New static function.
6645 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
6646 functions that return one of their arguments.
6647 * regcprop.c (struct kill_set_value_data): New.
6648 (kill_set_value): Interpret data as a pointer to such a struct.
6649 Do nothing if the caller wants the register to be ignored.
6650 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
6651
6652 2012-05-14 Richard Guenther <rguenther@suse.de>
6653
6654 PR tree-optimization/53340
6655 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
6656
6657 2012-05-14 Richard Guenther <rguenther@suse.de>
6658
6659 * gimplify.c (gimplify_expr): Remove odd code.
6660
6661 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
6662
6663 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
6664 into a PLUS_EXPR byte offset.
6665
6666 * tree-ssa-pre.c (can_value_number_call): Delete.
6667 (compute_avail): Skip all statements with side effects.
6668 <GIMPLE_CALL>: Skip calls to internal functions.
6669
6670 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
6671
6672 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
6673
6674 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6675
6676 * common.opt (Wtype-limits): Use EnabledBy.
6677
6678 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
6679
6680 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
6681 (pushtf splitter): Ditto.
6682 (movtf): Ditto.
6683 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
6684 (<code>tf2): Enable for TARGET_SSE.
6685 (*absnegtf2_sse): Ditto.
6686 (copysign<mode>3): Enable TFmode for TARGET_SSE.
6687 (copysign<mode>3_const): Ditto.
6688 (copysign<mode>3_var): Ditto.
6689 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
6690 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
6691 (*<code>tf3): Ditto.
6692 * config/i386/i386.c (struct builtin_description bdesc_args)
6693 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
6694 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
6695 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
6696 Emit a normal call if SSE isn't available.
6697
6698 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
6699
6700 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
6701 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6702 (<code><mode>3): Ditto.
6703 (*andnot<mode>3): Ditto.
6704 (*andnottf3): Ditto.
6705 (*<code><mode>3): Ditto.
6706 (<code>tf3): Ditto.
6707
6708 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6709
6710 * optc-gen.awk: Error instead of warning for conflicting help.
6711
6712 2012-05-12 Jason Merrill <jason@redhat.com>
6713
6714 PR debug/53235
6715 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
6716 comdat types.
6717
6718 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
6719
6720 * function.c (requires_stack_frame_p): If the function can throw
6721 non-call exceptions, return true if the insn can throw internally.
6722
6723 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
6724
6725 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
6726
6727 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
6728
6729 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6730 ORDERED and UNORDERED conditions.
6731
6732 2012-05-11 Richard Guenther <rguenther@suse.de>
6733
6734 * tree-flow.h (referenced_var_check_and_insert): Remove.
6735 (find_new_referenced_vars): Likewise.
6736 * tree-dfa.c (referenced_var_check_and_insert): Make static.
6737 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
6738 * tree-inline.c (copy_bb): Use find_referenced_vars_in
6739 instead of find_new_referenced_vars.
6740 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
6741
6742 2012-05-11 Richard Guenther <rguenther@suse.de>
6743
6744 * tree-pass.h (pass_rest_of_compilation,
6745 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
6746 Remove.
6747 * passes.c (pass_all_optimizations, pass_postreload,
6748 pass_all_early_optimizations): Make static.
6749 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
6750 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
6751 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
6752 (delete_tree_ssa): Do not call fini_phinodes.
6753 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
6754
6755 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6756
6757 PR 53063
6758 * doc/options.texi (EnabledBy): Document
6759 * opts.c: Include opts.h and options.h before tm.h.
6760 (finish_options): Do not handle some sub-options here...
6761 (common_handle_option): ... instead call common_handle_option_auto
6762 here.
6763 * optc-gen.awk: Handle EnabledBy.
6764 * opth-gen.awk: Declare common_handle_option_auto.
6765 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
6766 (Wmaybe-uninitialized): Likewise.
6767 (Wunused-but-set-variable): Likewise.
6768 (Wunused-function): Likewise.
6769 (Wunused-label): Likewise.
6770 (Wunused-value): Likewise.
6771 (Wunused-variable): Likewise.
6772 * opt-read.awk: Create opt_numbers array.
6773
6774 2012-05-11 Richard Guenther <rguenther@suse.de>
6775
6776 PR tree-optimization/53295
6777 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
6778 strides.
6779 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
6780 strides when analyzing data-references in a loop context.
6781 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
6782 non-constant strides for now.
6783 (vect_enhance_data_refs_alignment): Ignore data references
6784 that are strided loads.
6785 (vect_analyze_data_ref_access): Handle non-constant strides.
6786 (vect_check_strided_load): Verify the data-reference is a load.
6787 (vect_analyze_data_refs): Restructure to make strided load
6788 support not dependent on gather support.
6789 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
6790 when doing strided or gather loads.
6791 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
6792 integer_zerop to compare stride with zero.
6793
6794 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6795
6796 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
6797
6798 2012-05-11 Jan Hubicka <jh@suse.cz>
6799
6800 PR bootstrap/53300
6801 * varpool.c (varpool_assemble_decl): Also output constat pool entries
6802 that output_constant_pool missed.
6803
6804 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
6805
6806 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
6807 MULTILIB_EXTRA_OPTS.
6808
6809 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
6810
6811 PR target/53291
6812 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
6813
6814 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
6815
6816 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
6817 optimization for TARGET_AVX.
6818 (*movti_internal_sse): Ditto.
6819 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6820 (*movdi_internal): Ditto.
6821 (*movsi_internal): Ditto.
6822 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
6823 (*movdf_internal_rex64): Ditto.
6824 (*movfd_internal): Ditto.
6825 (*movsf_internal): Ditto.
6826 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
6827
6828 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
6829
6830 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
6831 reference as size attribute.
6832
6833 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
6834 Tristan Gingold <gingold@adacore.com>
6835
6836 * doc/md.texi (Standard Names): Document probe_stack_address.
6837 * explow.c (emit_stack_probe): Handle probe_stack_address.
6838 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
6839 (UNSPECV_PROBE_STACK_RANGE): Likewise.
6840 (probe_stack_address): New insn.
6841 (probe_stack_range): Likewise.
6842 * config/ia64/ia64.c: Include common/common-target.h.
6843 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
6844 checking is enabled.
6845 (ia64_emit_probe_stack_range): New function.
6846 (output_probe_stack_range): Likewise.
6847 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
6848 builtin stack checking is enabled.
6849 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
6850 and UNSPECV_PROBE_STACK_ADDRESS.
6851 (unknown_for_bundling_p): New predicate.
6852 (group_barrier_needed): Use important_for_bundling_p.
6853 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
6854 (issue_nops_and_insn): Likewise.
6855 (bundling): Likewise.
6856 (final_emit_insn_group_barriers): Likewise.
6857 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
6858 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
6859 (STACK_CHECK_PROTECT): Likewise.
6860 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6861
6862 2012-05-10 Jan Hubicka <jh@suse.cz>
6863
6864 * ipa-inline.c (update_all_callee_keys): Remove.
6865 (inline_small_functions): Simplify priority updating.
6866
6867 2012-05-10 Jan Hubicka <jh@suse.cz>
6868
6869 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
6870
6871 2012-05-10 Jan Hubicka <jh@suse.cz>
6872
6873 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
6874 (symtab_remove_unreachable_nodes): ... this one.
6875 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
6876 * cgraphunit.c (ipa_passes): Update.
6877 * cgraphclones.c (cgraph_materialize_all_clones): Update.
6878 * cgraph.c (cgraph_release_function_body): Only turn initial
6879 into error mark when initial was previously set.
6880 * ipa-inline.c (ipa_inline): Update.
6881 * ipa.c: Include ipa-inline.h
6882 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
6883 (enqueue_node): New function.
6884 (process_references): Update.
6885 (symtab_remove_unreachable_nodes): Cleanup.
6886 * passes.c (execute_todo, execute_one_pass): Update.
6887
6888 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
6889
6890 PR rtl-optimization/53125
6891 * ira.c (ira): Call find_moveable_pseudos and
6892 move_unallocated_pseudos if only ira_conflicts_p is true.
6893
6894 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
6895
6896 * config/i386/i386.md (*movoi_internal_avx): Handle
6897 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
6898 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
6899 (*movti_internal_sse): Ditto.
6900 (*movtf_internal): Ditto.
6901 * config/i386/sse.md (ssePSmode): New mode attribute.
6902 (*move<mode>_internal): Use ssePSmode.
6903 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
6904 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6905 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
6906 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
6907
6908 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
6909
6910 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
6911 DECL_ORIGINAL_TYPE if it is present.
6912
6913 2012-05-10 Nick Clifton <nickc@redhat.com>
6914
6915 PR target/53120
6916 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
6917 a "0" constraint to being a (match_dup 0).
6918
6919 2012-05-10 Richard Guenther <rguenther@suse.de>
6920
6921 * stor-layout.c (byte_from_pos): Amend comment.
6922
6923 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6924
6925 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
6926 Document requirement to call in constructors.
6927
6928 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
6929
6930 2012-05-10 Richard Guenther <rguenther@suse.de>
6931
6932 * tree.h (TYPE_IS_SIZETYPE): Remove.
6933 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
6934 (extract_muldiv_1): Likewise.
6935 * gimple.c (gtc_visit): Likewise.
6936 (gimple_types_compatible_p): Likewise.
6937 (iterative_hash_canonical_type): Likewise.
6938 (gimple_canonical_types_compatible_p): Likewise.
6939 * gimplify.c (gimplify_one_sizepos): Likewise.
6940 * print-tree.c (print_node): Likewise.
6941 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
6942
6943 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
6944
6945 PR target/52908
6946 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
6947 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
6948 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
6949 instead of xop_mulv2div2di3_low.
6950 (xop_p<macs>dql): Fix vec_select selector.
6951 (xop_p<macs>dqh): Ditto.
6952 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
6953 (xop_mulv2div2di3_high): Ditto.
6954
6955 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6956
6957 PR c++/53289
6958 * diagnostic.h (diagnostic_context): Add last_location.
6959 * diagnostic.c (diagnostic_initialize): Initialize it.
6960 (diagnostic_show_locus): Use it.
6961
6962 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6963
6964 * doc/extend.texi (Function Attributes): Point xref to section
6965 about Pragmas.
6966
6967 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
6968
6969 * config/i386/i386.c (*movdf_internal_rex64): Remove
6970 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6971 Calculate "mode" attribute according to
6972 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6973 (*movdf_internal): Ditto.
6974
6975 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
6976
6977 PR target/44141
6978 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
6979 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
6980 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6981 or when optimizing for size.
6982 * config/i386/sse.md (*mov<mode>_internal): Remove
6983 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
6984 Calculate "mode" attribute according to optimize_function_for_size_p
6985 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
6986 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
6987 depending on the mode of the instruction. Calculate "mode" attribute
6988 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
6989 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
6990 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
6991
6992 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
6993
6994 PR target/53256
6995 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
6996 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
6997 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
6998 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
6999 (expand_prologue): Move initialization of cfun->machine->is_naked,
7000 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
7001 (avr_set_current_function): ...this new static function.
7002 (TARGET_SET_CURRENT_FUNCTION): New define.
7003 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
7004 checking attributes of current_function_decl.
7005 (avr_regs_to_save): Ditto.
7006 (signal_function_p): Rename to avr_signal_function_p.
7007 (interrupt_function_p): Rename to avr_interrupt_function_p.
7008
7009 * doc/extend.texi (Function Attributes): Better explanation of
7010 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
7011 alphabetical order.
7012
7013 2012-05-09 Michael Matz <matz@suse.de>
7014
7015 PR tree-optimization/53185
7016 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
7017 peeling when we see strided loads.
7018
7019 2012-05-09 Matthias Klose <doko@ubuntu.com>
7020
7021 * gcc-ar.c (main): Don't check for execute bits for the plugin.
7022
7023 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7024
7025 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
7026 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
7027 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
7028 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
7029 (USE_LOAD_POST_INCREMENT): Define.
7030 (USE_LOAD_PRE_INCREMENT): Define.
7031 (USE_LOAD_POST_DECREMENT): Define.
7032 (USE_LOAD_PRE_DECREMENT): Define.
7033 (USE_STORE_PRE_DECREMENT): Define.
7034 (USE_STORE_PRE_INCREMENT): Define.
7035 (USE_STORE_POST_DECREMENT): Define.
7036 (USE_STORE_POST_INCREMENT): Define.
7037 (arm_auto_incmodes): Add enumeration.
7038 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
7039 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
7040
7041 2012-05-09 Jakub Jelinek <jakub@redhat.com>
7042
7043 PR tree-optimization/53226
7044 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
7045 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
7046 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
7047 doesn't need to be revisited, look for earliest stmt with
7048 !gimple_plf (stmt, GF_PLF_1) if something changed.
7049
7050 2012-05-09 Terry Guo <terry.guo@arm.com>
7051
7052 * genmultilib: Update copyright dates.
7053 * doc/fragments.texi: Ditto.
7054
7055 2012-05-09 Terry Guo <terry.guo@arm.com>
7056
7057 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
7058 * genmultilib (MULTILIB_REQUIRED): New.
7059 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
7060
7061 2012-05-09 Richard Guenther <rguenther@suse.de>
7062
7063 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
7064 (vect_do_peeling_for_loop_bound): Likewise.
7065 (vect_do_peeling_for_alignment): Likewise.
7066 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
7067 (vect_do_peeling_for_loop_bound): Get check_profitability and
7068 threshold as parameters.
7069 (vect_do_peeling_for_alignment): Likewise.
7070 (vect_loop_versioning): Likewise.
7071 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
7072 and threshold here. Control where to put the check here.
7073
7074 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
7075
7076 PR middle-end/53249
7077 * dwarf2out.h (get_address_mode): Move declaration to...
7078 * rtl.h: ...here.
7079 * dwarf2out.c (get_address_mode): Move definition to...
7080 * rtlanal.c: ...here.
7081 * var-tracking.c (get_address_mode): Delete.
7082 * combine.c (find_split_point): Use get_address_mode instead of
7083 targetm.addr_space.address_mode.
7084 * cselib.c (cselib_record_sets): Likewise.
7085 * dse.c (canon_address, record_store): Likewise.
7086 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
7087 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
7088 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
7089 (expand_expr_real_1): Likewise.
7090 * ifcvt.c (noce_try_cmove_arith): Likewise.
7091 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
7092 * reload.c (find_reloads): Likewise.
7093 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7094 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
7095
7096 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
7097
7098 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
7099 information from the instruction produced.
7100
7101 2012-05-09 Richard Guenther <rguenther@suse.de>
7102
7103 * stor-layout.c (bit_from_pos): Document.
7104 (byte_from_pos): Likewise. Optimize.
7105 (pos_from_bit): Likewise.
7106 (normalize_offset): Use pos_from_bit instead of replicating it.
7107
7108 2012-05-09 Alan Modra <amodra@gmail.com>
7109
7110 PR target/53271
7111 * config/rs6000/rs6000.c (gen_frame_set): New function.
7112 (gen_frame_load, gen_frame_store): New functions.
7113 (rs6000_savres_rtx): Use the above.
7114 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
7115 Correct mode used for CR2 in save/restore_world patterns.
7116 Don't emit instructions for eh_return frame unwind reg info.
7117
7118 2012-05-08 Jan Hubicka <jh@suse.cz>
7119
7120 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
7121 with VALUE_EXPR.
7122 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
7123 are removable.
7124 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
7125 need to wrapup.
7126 (compile_file): Do not output variables.
7127 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
7128 output it.
7129 * langhooks.c: Include timevar.h
7130 (write_global_declarations): Finalize compilation unit after wrapup;
7131 set timevars correctly.
7132 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
7133 not to be added to varpool.
7134 * varpool.c (varpool_assemble_decl): Sanity check that we are called
7135 only on cases where it makes sense; skip constant pool and value expr
7136 vars.
7137
7138 2012-05-08 David S. Miller <davem@davemloft.net>
7139
7140 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
7141 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
7142 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
7143
7144 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
7145
7146 PR rtl-optimization/53278
7147 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
7148 speed_p code from earlier patch.
7149
7150 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
7151
7152 PR target/51244
7153 * config/sh/sh.md (*branch_true, *branch_false): New insns.
7154
7155 2012-05-08 Teresa Johnson <tejohnson@google.com>
7156
7157 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
7158 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
7159
7160 2012-05-08 Jan Hubicka <jh@suse.cz>
7161
7162 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
7163 (cgraph_create_node_1): Rename to ...
7164 (cgraph_create_empty_node): ... this one; export.
7165 (cgraph_create_node): Update.
7166 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
7167 (cgraph_create_edge_including_clones): Likewise.
7168 (cgraph_find_replacement_node): Likewise.
7169 (cgraph_clone_edge): Likewise.
7170 (cgraph_clone_node): Likewise.
7171 (clone_function_name): Likewise.
7172 (cgraph_create_virtual_clone): Likewise.
7173 (cgraph_remove_node_and_inline_clones): Likewise.
7174 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
7175 * cgraph.h: Reorder declarations so they match file of origin.
7176 (cgraph_create_empty_node): Declare.
7177 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
7178 (cgraph_copy_node_for_versioning): Likewise.
7179 (cgraph_function_versioning): Likewise.
7180 (cgraph_materialize_clone): Likewise.
7181 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7182 (cgraph_materialize_all_clones): Likewise.
7183 * cgraphclones.c: New file.
7184 * Makefile.in: Update for cgraphclones.
7185
7186 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
7187
7188 PR target/53176
7189 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
7190 (ix86_rtx_costs): Handle SET.
7191
7192 2012-05-08 Michael Matz <matz@suse.de>
7193
7194 * basic-block.h (struct rtl_bb_info): Remove visited member and
7195 move head_ member to ...
7196 (struct basic_block_def.basic_block_il_dependent): ... the new
7197 member x, replacing but containing old member rtl.
7198 (enum bb_flags): New BB_VISITED flag.
7199 (BB_HEADER, BB_FOOTER): New macros.
7200
7201 * jump.c (mark_all_labels): Adjust.
7202 * cfgcleanup.c (try_optimize_cfg): Adjust.
7203 * cfglayout.c (record_effective_endpoints): Adjust.
7204 (relink_block_chain): Ditto (and don't fiddle with visited).
7205 (fixup_reorder_chain): Adjust.
7206 (fixup_fallthru_exit_predecessor): Ditto.
7207 (cfg_layout_duplicate_bb): Ditto.
7208 * combine.c (update_cfg_for_uncondjump): Adjust.
7209 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
7210 (bb_visited_trace): New accessor.
7211 (mark_bb_visited): Move in front.
7212 (rotate_loop): Use bb_visited_trace.
7213 (find_traces_1_round): Ditto.
7214 (emit_barrier_after): Ditto.
7215 (copy_bb): Ditto, and initialize visited on resize.
7216 (reorder_basic_blocks): Initize visited member.
7217 (duplicate_computed_gotos): Clear bb flags at start, use
7218 BB_VISITED flags.
7219
7220 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
7221 (rtl_verify_flow_info_1): Ditto.
7222 (cfg_layout_split_block): Ditto.
7223 (cfg_layout_delete_block): Ditto.
7224 (cfg_layout_merge_blocks): Ditto.
7225 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
7226
7227 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
7228
7229 PR target/53272
7230 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
7231 when a constant source operand matches an "I" constraint, the "no
7232 CC0 change" applies to a register-destination only, not a
7233 strict_low_part-destination.
7234
7235 2012-05-08 Richard Guenther <rguenther@suse.de>
7236
7237 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
7238 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
7239
7240 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
7241
7242 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
7243
7244 * doc/avr-mmcu.texi: New auto-generated file.
7245 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
7246 to document all valid -mmcu= arguments.
7247
7248 * config/avr/avr.h (arch_info_s): New struct definition.
7249 * config/avr/avr-devices.c (avr_texinfo): New variable.
7250 * config/avr/gen-avr-mmcu-texi.c: New file.
7251 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
7252
7253 2012-05-08 Dehao Chen <dehao@google.com>
7254
7255 * predict.c (find_qualified_ssa_name): New.
7256 (find_ssa_name_in_expr): New.
7257 (find_ssa_name_in_assign_stmt): New.
7258 (is_comparison_with_loop_invariant_p): New.
7259 (is_bound_expr_similar): New.
7260 (predict_iv_comparison): New.
7261 (predict_loops): Add heuristic for loop-nested branches that compare an
7262 induction variable to a loop bound variable.
7263 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
7264
7265 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
7266
7267 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
7268 TARGET_BDVER2 defines where appropriate.
7269
7270 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
7271
7272 * configure.ac (PLUGIN_LD): Rename into...
7273 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
7274 * config.in: Regenerate.
7275 * configure: Likewise.
7276 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
7277
7278 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
7279
7280 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
7281 computation using the precision of the index type.
7282 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
7283 (fold_array_ctor_reference): Do index computations in the index type.
7284
7285 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
7286
7287 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
7288 down to plus_constant.
7289 (expand_epilogue): Ditto.
7290
7291 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7292
7293 * postreload.c (reload_cse_regs): Make static.
7294 * reload.h (reload_cse_regs): Remove prototype.
7295
7296 2012-05-07 Richard Henderson <rth@redhat.com>
7297
7298 * config/alpha/alpha.md (clear_cache): New pattern.
7299
7300 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7301
7302 PR middle-end/53245
7303 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
7304 is folded to a type boundary value, verify that the resulting case
7305 label is still a care range.
7306
7307 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
7308
7309 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
7310 only for TARGET_GENERIC, when not optimizing for size.
7311 (*ffs<mode>_1): Ditto.
7312
7313 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7314
7315 * tree-cfg.c (verify_gimple_switch): Tighten checks.
7316
7317 2012-05-07 Jakub Jelinek <jakub@redhat.com>
7318
7319 PR tree-optimization/53239
7320 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
7321 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
7322
7323 2012-05-07 Richard Guenther <rguenther@suse.de>
7324
7325 PR tree-optimization/53195
7326 * tree-inline.c (setup_one_parameter): Properly add referenced
7327 vars from the parameters new known value.
7328
7329 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
7330
7331 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
7332 (sched_branch_type): Remove.
7333 (m68k_sched_md_init_global): Don't allocate it.
7334 (m68k_sched_md_finish_global): Don't free it.
7335 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
7336 * config/m68k/m68k.md: Set the type of insns using
7337 m68k_sched_branch_type to bcc directly.
7338
7339 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7340
7341 * config/sol2.c (solaris_override_options): New function.
7342 * config/sol2-protos.h (solaris_override_options): Declare.
7343 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
7344
7345 2012-05-07 Richard Guenther <rguenther@suse.de>
7346
7347 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
7348 whether we failed to compute data dependences.
7349 (loop_prefetch_arrays): Fail if we failed.
7350
7351 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
7352 Paolo Bonzini <bonzini@gnu.org>
7353
7354 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
7355 Emit bsf when optimizing for size.
7356 (*ffs<mode>_1): Ditto.
7357
7358 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
7359
7360 PR target/53250
7361 * config/sh/sh.c (sh_rtx_costs): Handle SET.
7362
7363 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
7364
7365 PR target/53227
7366 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
7367 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
7368 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
7369 (bswapsi2): Ditto.
7370 (*bswapdi2_doubleword): New insn pattern.
7371 (*bswap<mode>2): Rename from *bswap<mode>2_1.
7372
7373 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7374
7375 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
7376 (mips_set_reg_reg_cost): Likewise.
7377 (mips_rtx_costs): Handle SET.
7378
7379 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
7380
7381 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
7382 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
7383 to compute the cost of moves. Set the mode of the target register.
7384
7385 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
7386
7387 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
7388 plus_constant function.
7389 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
7390 that the mode is sensible.
7391 (use_anchored_address, round_push, allocate_dynamic_stack_space)
7392 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
7393 plus_constant.
7394
7395 * alias.c (canon_rtx): Likewise.
7396 (init_alias_analysis): Likewise.
7397 * builtins.c (expand_builtin_return_addr)
7398 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
7399 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
7400 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
7401 (expand_builtin_stpcpy): Likewise.
7402 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
7403 (compute_argument_addresses, internal_arg_pointer_based_exp)
7404 (expand_call, emit_library_call_value_1): Likewise.
7405 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
7406 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
7407 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
7408 * cse.c (insert_const_anchor, find_reg_offset_for_const)
7409 (use_related_value, fold_rtx): Likewise.
7410 * cselib.c (cselib_subst_to_values): Likewise.
7411 * dse.c (record_store, check_mem_read_rtx): Likewise.
7412 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
7413 * emit-rtl.c (adjust_address_1): Likewise.
7414 * except.c (sjlj_emit_function_enter)
7415 (expand_builtin_extract_return_addr)
7416 (expand_builtin_frob_return_addr): Likewise.
7417 * expmed.c (expand_divmod): Likewise.
7418 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
7419 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
7420 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
7421 * function.c (assign_stack_local_1)
7422 (instantiate_virtual_regs_in_rtx): Likewise.
7423 * optabs.c (prepare_cmp_insn): Likewise.
7424 * recog.c (offsettable_address_addr_space_p): Likewise.
7425 * reload.c (find_reloads_address, form_sum)
7426 (find_reloads_subreg_address): Likewise.
7427 * reload1.c (init_reload, eliminate_regs_1)
7428 (eliminate_regs_in_insn): Likewise.
7429 * simplify-rtx.c (simplify_unary_operation_1)
7430 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
7431 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
7432 (vt_add_function_parameter): Likewise.
7433
7434 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
7435 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
7436 * config/alpha/alpha.c (alpha_legitimize_address_1)
7437 (get_unaligned_address, alpha_expand_unaligned_load)
7438 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
7439 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
7440 (alpha_expand_builtin_establish_vms_condition_handler)
7441 (alpha_setup_incoming_varargs, emit_frame_store_1)
7442 (alpha_expand_prologue, alpha_expand_epilogue)
7443 (alpha_use_linkage): Likewise.
7444 * config/alpha/alpha.md: Likewise.
7445
7446 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
7447 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
7448 (thumb_legitimize_address, arm_gen_load_multiple_1)
7449 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
7450 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
7451 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
7452 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
7453 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
7454 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
7455 (thumb_expand_movmemqi, arm_set_return_address)
7456 (thumb_set_return_address): Likewise.
7457 * config/arm/arm.md: Likewise.
7458
7459 * config/avr/avr.c (avr_incoming_return_addr_rtx)
7460 (avr_prologue_setup_frame, expand_epilogue)
7461 (avr_const_address_lo16): Likewise.
7462
7463 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
7464 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
7465 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
7466 (bfin_output_mi_thunk): Likewise.
7467
7468 * config/c6x/c6x.c (c6x_initialize_trampoline)
7469 (c6x_output_mi_thunk): Likewise.
7470
7471 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
7472 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
7473
7474 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
7475 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
7476 (cris_emit_movem_store, cris_trampoline_init): Likewise.
7477 * config/cris/cris.md: Likewise.
7478
7479 * config/darwin.c (machopic_indirect_data_reference)
7480 (machopic_legitimize_pic_address): Likewise.
7481
7482 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
7483 (epiphany_expand_prologue, epiphany_expand_epilogue)
7484 (epiphany_trampoline_init): Likewise.
7485 * config/epiphany/epiphany.md: Likewise.
7486
7487 * config/fr30/fr30.c (fr30_move_double): Likewise.
7488
7489 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
7490 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
7491 (frv_index_memory, unspec_got_name, frv_find_base_term)
7492 (frv_output_dwarf_dtprel): Likewise.
7493
7494 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
7495 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
7496
7497 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
7498 * config/i386/i386.c (setup_incoming_varargs_64)
7499 (setup_incoming_varargs_ms_64, choose_baseaddr)
7500 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
7501 (ix86_emit_probe_stack_range, ix86_expand_prologue)
7502 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
7503 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
7504 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
7505 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
7506 (x86_output_mi_thunk): Likewise.
7507 * config/i386/i386.md: Likewise.
7508
7509 * config/ia64/ia64.c (ia64_expand_load_address)
7510 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
7511 (do_spill, ia64_trampoline_init): Likewise.
7512
7513 * config/iq2000/iq2000.c (iq2000_va_start)
7514 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
7515 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
7516 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
7517
7518 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7519
7520 * config/m32c/m32c.c (m32c_return_addr_rtx)
7521 (m32c_expand_insv): Likewise.
7522
7523 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
7524 (m32r_legitimize_pic_address, m32r_print_operand)
7525 (m32r_print_operand_address): Likewise.
7526
7527 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7528 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
7529 (EH_RETURN_HANDLER_RTX): Likewise.
7530 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
7531 (m68k_expand_epilogue, legitimize_pic_address)
7532 (m68k_output_mi_thunk): Likewise.
7533 * config/m68k/m68k.md: Likewise.
7534
7535 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7536 (mcore_expand_epilog): Likewise.
7537 * config/mcore/mcore.md: Likewise.
7538
7539 * config/mep/mep.c (mep_allocate_initial_value)
7540 (mep_expand_prologue, mep_expand_epilogue): Likewise.
7541
7542 * config/microblaze/microblaze.c (double_memory_operand)
7543 (microblaze_block_move_loop): Likewise.
7544
7545 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
7546 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
7547 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
7548 (mips_expand_prologue, mips_epilogue_set_cfa)
7549 (mips_expand_epilogue): Likewise.
7550 * config/mips/mips.md: Likewise.
7551
7552 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
7553 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
7554
7555 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
7556 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
7557
7558 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
7559 (EH_RETURN_HANDLER_RTX): Likewise.
7560 * config/moxie/moxie.c (moxie_static_chain): Likewise.
7561
7562 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
7563 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
7564 (pa_return_addr_rtx, hppa_builtin_saveregs)
7565 (pa_trampoline_init): Likewise.
7566 * config/pa/pa.md: Likewise.
7567
7568 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
7569
7570 * config/picochip/picochip.c (picochip_static_chain): Likewise.
7571
7572 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
7573 * config/rs6000/rs6000.c (rs6000_legitimize_address)
7574 (setup_incoming_varargs, print_operand, rs6000_return_addr)
7575 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
7576 (rs6000_emit_epilogue)
7577 (rs6000_machopic_legitimize_pic_address): Likewise.
7578
7579 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7580
7581 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
7582 (DYNAMIC_CHAIN_ADDRESS): Likewise.
7583 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
7584 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
7585 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
7586 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
7587 (s390_emit_epilogue, s390_function_profiler): Likewise.
7588 * config/s390/s390.md: Likewise.
7589
7590 * config/score/score.c (score_add_offset, score_prologue): Likewise.
7591
7592 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
7593 (sh_output_mi_thunk): Likewise.
7594 * config/sh/sh.md: Likewise.
7595
7596 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
7597 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
7598 * config/sparc/sparc.c (sparc_legitimize_pic_address)
7599 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
7600 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
7601 (emit_and_preserve): Likewise.
7602 * config/sparc/sparc.md: Likewise.
7603
7604 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7605 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
7606 (spu_setup_incoming_varargs, ea_load_store_inline)
7607 (spu_expand_load): Likewise.
7608
7609 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
7610 (combine_bnp): Likewise.
7611
7612 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7613 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
7614 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
7615
7616 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
7617 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
7618 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
7619
7620 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
7621 * config/v850/v850.md: Likewise.
7622
7623 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
7624 (EH_RETURN_HANDLER_RTX): Likewise.
7625 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
7626 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
7627 (print_operand_address, vax_trampoline_init): Likewise.
7628
7629 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
7630 (xtensa_function_value_regno_p): Likewise.
7631
7632 2012-05-04 Andrew Pinski <apinski@cavium.com>
7633
7634 * expr.c (get_def_for_expr_class): New function.
7635 (convert_tree_comp_to_rtx): New function.
7636 (expand_cond_expr_using_cmove): New function.
7637 (expand_expr_real_2 <case COND_EXPR>): Call
7638 expand_cond_expr_using_cmove first and return if it succeeds.
7639 Remove the check for HAVE_conditional_move since we should have
7640 already converted it to a conditional move.
7641 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
7642 modes of DImode for 32bits and TImode.
7643
7644 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
7645
7646 PR other/29442
7647 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
7648 (print_md_ptr_loc, print_c_condition): Use them.
7649 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
7650 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
7651 attr_file, dfa_file, latency_file): New global variables.
7652 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
7653 write_upcase, write_indent, write_length_unit_log, write_test_expr,
7654 write_attr_get, write_insn_cases, write_eligible_delay,
7655 write_const_num_delay_slots): Accept FILE pointer and toss it around.
7656 Update all callers.
7657 (write_header, open_outfile, handle_arg): New funcions.
7658 (make_automaton_attrs): Write prototypes as extern to the output
7659 files.
7660 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
7661 names from the command line. Open the output files and write out
7662 internal functions for DFA functions to dfa_file_name, insn latency
7663 functions to latency_file_name, and everything else to attr_file.
7664 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
7665 (BACKEND): Build libbackend first.
7666 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
7667 (.PRECIOUS): Likewise.
7668 (insn-dfatab.o): New rule.
7669 (insn-latencytab.o): New rule.
7670 (simple_rtl_generated_c): Do not include insn-attrtab.c.
7671 (s-attrtab): New rule.
7672
7673 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
7674
7675 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
7676 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
7677 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
7678 * reorg.c (get_jump_flags): Do not set the removed flags.
7679
7680 * doc/md.texi (attr_flag): Update for abovementioned changes.
7681
7682 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
7683
7684 PR target/53228
7685 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
7686 (TARGET_CMOV): Rename from TARGET_CMOVE.
7687 (TARGET_CMOVE): New define.
7688 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
7689 Do not set TARGET_CMOVE here.
7690
7691 2012-05-04 Dodji Seketeli <dodji@redhat.com>
7692
7693 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
7694 * opts.c (finish_options): Activate -Wunused-local-typedefs if
7695 -Wunused is activated.
7696 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
7697
7698 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7699
7700 * config/s390/s390.md (*movmem_short, *clrmem_short)
7701 (*cmpmem_short): Move the mode check from the insn condition to
7702 the match_scratch.
7703
7704 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7705
7706 PR tree-optimization/52633
7707 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
7708 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
7709 (vect_recog_over_widening_pattern): Remove handling of code that was
7710 already detected as over-widening pattern. Remove special handling
7711 of "unsigned" cases. Instead, support general case of conversion
7712 of the shift result to another type.
7713
7714 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7715
7716 * tree-vect-patterns.c (vect_single_imm_use): New function.
7717 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
7718 (vect_recog_over_widening_pattern): Likewise.
7719 (vect_recog_widen_shift_pattern): Likewise.
7720
7721 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7722
7723 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
7724 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
7725 (vect_recog_widen_mult_pattern): Likewise.
7726 (vect_operation_fits_smaller_type): Likewise.
7727 (vect_recog_over_widening_pattern): Likewise.
7728 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
7729
7730 2012-05-04 Richard Guenther <rguenther@suse.de>
7731
7732 PR lto/50602
7733 * lto-wrapper.c (merge_and_complain): Complain about mismatches
7734 of -freg-struct-return and -fpcc-struct-return.
7735 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
7736 from the input file options and ignore those from the link
7737 command line.
7738
7739 2012-05-04 Richard Guenther <rguenther@suse.de>
7740
7741 PR tree-optimization/53168
7742 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
7743 memory reads when the result is a constant we can pun.
7744
7745 2012-05-04 Richard Guenther <rguenther@suse.de>
7746
7747 * common.opt (flto-report): Do not mark as Optimization.
7748
7749 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
7750
7751 PR target/48496
7752 * recog.c (constrain_operands): If extra constraints are present, also
7753 accept pseudo-registers with equivalent memory locations during reload.
7754
7755 2012-05-04 Olivier Hainque <hainque@adacore.com>
7756
7757 * collect2.c (may_unlink_output_file): New global.
7758 (maybe_unlink): Honor it.
7759 * collect2.h: Add extern for it.
7760 * tlink.c (do_tlink): Set it to true if the link succeeded.
7761
7762 2012-05-04 Olivier Hainque <hainque@adacore.com>
7763
7764 * gcc.c (eval_spec_function): Finalize/restore the current string
7765 obstack state as part of the context push/pop operations.
7766
7767 2012-05-04 Bin Cheng <bin.cheng@arm.com>
7768
7769 PR rtl-optimization/52804
7770 * reload1.c (reload_reg_reaches_end_p): Check whether successor
7771 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
7772 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
7773 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
7774 RELOAD_FOR_OUTADDR_ADDRESS.
7775
7776 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7777
7778 PR c++/24985
7779 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
7780 for macro expansion.
7781
7782 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7783
7784 * flags.h (flag_permissive): Do not declare.
7785 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
7786 option specially.
7787 * toplev.c (flag_permissive): Do not define.
7788 * c-tree.h (system_header_p): Delete unused.
7789
7790 2012-05-03 David S. Miller <davem@davemloft.net>
7791
7792 PR target/52684
7793 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
7794 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
7795 (sparc_emit_float_lib_cmp): Likewise.
7796
7797 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7798
7799 PR target/53199
7800 * config/rs6000/rs6000.md (bswapdi splitters): If
7801 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
7802 default) is used, generate an alternate sequence that does not
7803 depend on using indexed addressing.
7804
7805 2012-05-03 Jason Merrill <jason@redhat.com>
7806
7807 * gengtype.c (write_types): Fix warning message.
7808 (write_local): Likewise.
7809
7810 2012-05-02 Jason Merrill <jason@redhat.com>
7811
7812 * dwarf2out.c (struct external_ref, build_local_stub): New.
7813 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
7814 (optimize_external_refs, optimize_external_refs_1): New.
7815 (change_AT_die_ref): New.
7816 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
7817 (build_abbrev_table): Take the external refs hashtable.
7818 (output_comp_unit): Get it from optimize_external_refs and pass it in.
7819
7820 2012-05-03 Jan Hubicka <jh@suse.cz>
7821
7822 PR middle-end/53093
7823 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
7824
7825 2012-05-03 Jan Hubicka <jh@suse.cz>
7826
7827 PR middle-end/53106
7828 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
7829
7830 2012-05-03 Jason Merrill <jason@redhat.com>
7831
7832 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
7833 use_debug_types to discriminate the die_id union.
7834 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
7835 (build_abbrev_table, output_die): Likewise.
7836 (prune_unused_types_walk_attribs): Likewise.
7837 (generate_type_signature, copy_declaration_context): Set it.
7838 (remove_child_or_replace_with_skeleton): Set it.
7839 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
7840 check use_debug_types.
7841 (dwarf2out_finish): Do break_out_includes after .debug_types.
7842
7843 2012-05-03 Jason Merrill <jason@redhat.com>
7844
7845 * dwarf2out.c (modified_type_die): Use scope_die_for.
7846 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
7847 (uses_local_type_r, uses_local_type): New.
7848 (scope_die_for): Keep a type that uses a local type in local scope.
7849 Use get_context_die for namespace and type scope.
7850
7851 2012-05-03 Jason Merrill <jason@redhat.com>
7852
7853 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
7854 pc thunk.
7855 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
7856 (dwarf2out_finish): Likewise.
7857
7858 2012-05-03 Martin Jambor <mjambor@suse.cz>
7859
7860 * builtins.c (get_object_alignment_1): Return whether we can determine
7861 the alignment or conservatively assume byte alignment. Return the
7862 alignment by reference. Use get_pointer_alignment_1 for dereference
7863 alignment.
7864 (get_pointer_alignment_1): Return whether we can determine the
7865 alignment or conservatively assume byte alignment. Return the
7866 alignment by reference. Use get_ptr_info_alignment to get SSA name
7867 alignment.
7868 (get_object_alignment): Update call to get_object_alignment_1.
7869 (get_object_or_type_alignment): Likewise, fall back to type alignment
7870 only when it returned false.
7871 (get_pointer_alignment): Update call to get_pointer_alignment_1.
7872 * fold-const.c (get_pointer_modulus_and_residue): Update call to
7873 get_object_alignment_1.
7874 * ipa-prop.c (ipa_modify_call_arguments): Update call to
7875 get_pointer_alignment_1.
7876 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
7877 of MEM_REF or TARGET_MEM_REF only when it returns false.
7878 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
7879 get_object_alignment_1.
7880 (ccp_finalize): Use set_ptr_info_alignment.
7881 * tree.h (get_object_alignment_1): Update declaration.
7882 (get_pointer_alignment_1): Likewise.
7883 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
7884 (dump_gimple_stmt): Likewise.
7885 * tree-flow.h (ptr_info_def): Updated comments of fields align and
7886 misalign.
7887 (get_ptr_info_alignment): Declared.
7888 (mark_ptr_info_alignment_unknown): Likewise.
7889 (set_ptr_info_alignment): Likewise.
7890 (adjust_ptr_info_misalignment): Likewise.
7891 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
7892 and set alignment of SSA names.
7893 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
7894 mark_ptr_info_alignment_unknown.
7895 * tree-ssanames.c (get_ptr_info_alignment): New function.
7896 (mark_ptr_info_alignment_unknown): Likewise.
7897 (set_ptr_info_alignment): Likewise.
7898 (adjust_ptr_info_misalignment): Likewise.
7899 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
7900 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7901 Likewise.
7902 (bump_vector_ptr): Likewise.
7903 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
7904 (vectorizable_store): Likewise.
7905 (vectorizable_load): Likewise.
7906
7907 2012-05-03 Michael Matz <matz@suse.de>
7908
7909 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
7910 in front of basic_block_def.
7911 (struct basic_block_def): Make il.gimple the full struct, not a
7912 pointer.
7913 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
7914
7915 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
7916 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
7917 NULL il.gimple, which can't happen anymore.
7918 * gimple.h (bb_seq): il.gimple can't be NULL.
7919 (bb_seq_add): Ditto.
7920 (set_bb_seq): Adjust.
7921 (gsi_start_bb, gsi_last_bb): Tidy.
7922 * lto-streamer-in.c (make_new_block): Don't zero members that
7923 are zeroed already, don't allocate a gimple_bb_info.
7924 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
7925 (remove_bb): Clear all il.gimple members.
7926 (gimple_verify_flow_info): Adjust for flat il.gimple.
7927 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
7928
7929 * coretypes.h (const_gimple_seq): Remove typedef.
7930 * gimple.h (gimple_seq_first): Take gimple_seq.
7931 (gimple_seq_first_stmt): Ditto.
7932 (gimple_seq_last): Ditto.
7933 (gimple_seq_last_stmt): Ditto.
7934 (gimple_seq_empty_p): Ditto.
7935
7936 2012-05-03 Richard Guenther <rguenther@suse.de>
7937
7938 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
7939 operations.
7940 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
7941 (compute_avail): Do not add possibly trapping operations to
7942 EXP_GEN if they might not be executed in the block.
7943
7944 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
7945
7946 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
7947
7948 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
7949
7950 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
7951 information as early as possible. Update dominance info instead of
7952 discarding it.
7953
7954 2012-05-03 Richard Guenther <rguenther@suse.de>
7955
7956 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
7957 (union_contains_value): Remove.
7958 (vro_valid_in_sets): Likewise.
7959 (op_valid_in_sets): New function.
7960 (valid_in_sets): Use op_valid_in_sets.
7961 (insert_into_preds_of_block): Move dumping ...
7962 (do_regular_insertion): ... here.
7963 (do_partial_partial_insertion): ... and here. Dump that
7964 we've found a partial partial redundancy.
7965 (insert): Dump the current insert iteration.
7966
7967 2012-05-03 Jakub Jelinek <jakub@redhat.com>
7968
7969 PR plugins/53126
7970 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
7971 append program name to it and pass that as first argument
7972 to make_relative_prefix. Always pass standard_libexec_prefix
7973 as last argument to make_relative_prefix. If
7974 make_relative_prefix returns NULL, fall back to
7975 standard_libexec_prefix.
7976
7977 PR debug/53174
7978 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
7979 removed.
7980
7981 PR target/53187
7982 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
7983 mode, return that mode.
7984
7985 PR target/53194
7986 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
7987 define __ATOMIC_HLE_* macros here.
7988 (ix86_target_macros): But here, using cpp_define_formatted.
7989
7990 2012-05-03 Richard Guenther <rguenther@suse.de>
7991
7992 PR tree-optimization/53144
7993 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
7994 Rename to ...
7995 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
7996 with SSA name values.
7997 (vn_reference_lookup_3): Adjust callers.
7998
7999 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8000
8001 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
8002 has_fma4 for AMD processors with both fma3 and fma4 support.
8003
8004 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
8005
8006 PR target/53201
8007 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
8008 "-mno-hle".
8009
8010 2012-05-03 Michael Matz <matz@suse.de>
8011
8012 PR bootstrap/53197
8013 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
8014 (dse_enter_block): Properly iterate the whole sequence even
8015 if the last statement was removed.
8016
8017 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
8018
8019 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
8020 unset flag_jump_tables.
8021 * stmt.c (expand_case): Remove special flag_pic case conditional
8022 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
8023
8024 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8025
8026 * common/config/s390/s390-common.c (s390_option_optimization_table):
8027 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
8028 default when optimizing.
8029
8030 2012-05-02 Martin Jambor <mjambor@suse.cz>
8031
8032 PR lto/52605
8033 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
8034 of a variable when the contect is a function.
8035
8036 2012-05-02 Michael Matz <matz@suse.de>
8037
8038 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
8039 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
8040 (const_gimple_seq_node): Remove.
8041 (gimple_seq_node): Typedef as gimple.
8042 (struct gimple_statement_base): Add next and prev members,
8043 adjust all WORD markers in using structs.
8044 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
8045 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
8046 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
8047 gimple are the same.
8048 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
8049 gimple_seq, adjust.
8050 (gimple_init_singleton): New function.
8051 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
8052 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
8053 (gsi_stmt): Adjust.
8054 (gsi_stmt_ptr): Remove.
8055 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
8056
8057 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
8058 again, adjust for above changes.
8059 (update_call_edge_frequencies): Adjust for above changes.
8060 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
8061 (gsi_insert_seq_nodes_after): Ditto.
8062 (gsi_split_seq_after): Ditto.
8063 (gsi_set_stmt): Ditto.
8064 (gsi_split_seq_before): Ditto.
8065 (gsi_remove): Ditto.
8066 (gsi_insert_seq_before_without_update): Don't free sequence.
8067 (gsi_insert_seq_after_without_update): Ditto.
8068 (gsi_replace): Assert some more invariants.
8069 (gsi_insert_before_without_update, gsi_insert_after_without_update):
8070 Tidy.
8071 (gsi_for_stmt): Don't search for stmt.
8072 (gsi_insert_on_edge_immediate): Tidy.
8073
8074 * gimple.c (gimple_alloc_k): Remove "sequences".
8075 (gimple_seq_cache): Remove.
8076 (gimple_alloc_stat): Make stmt a singleton sequence.
8077 (gimple_seq_alloc, gimple_seq_free): Remove.
8078 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
8079 (gimple_copy): Ditto.
8080 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
8081 create iterator from correct sequence.
8082 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
8083
8084 2012-05-02 Michael Matz <matz@suse.de>
8085
8086 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
8087 gimple_seq.
8088 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
8089 sequence, lazily allocate it.
8090 (bb_seq_addr): New function.
8091 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
8092 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
8093 (gsi_none): New function.
8094 (gsi_start_bb): Adjust.
8095 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
8096 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
8097 (gsi_last_bb): Adjust.
8098 (gsi_seq): Adjust.
8099 * tree-flow-inline.h (phi_nodes_ptr): New function.
8100
8101 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
8102 datastructure and interface change.
8103 (gsi_insert_seq_before_without_update): Ditto.
8104 (gsi_insert_seq_nodes_after): Ditto.
8105 (gsi_insert_seq_after_without_update): Ditto.
8106 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
8107 (gsi_split_seq_before): Ditto.
8108 (gsi_start_phis): Adjust.
8109 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
8110 (vect_transform_loop): Ditto.
8111 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
8112 gimple_seq_copy): Don't use gimple_seq_alloc.
8113 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
8114 (gimplify_seq_add_seq): Ditto.
8115 * lto-streamer-in.c (make_new_block): Ditto.
8116 * tree-cfg.c (create_bb): Ditto.
8117 * tree-sra.c (initialize_parameter_reductions): Ditto.
8118
8119 2012-05-02 Michael Matz <matz@suse.de>
8120
8121 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
8122 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
8123 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
8124 set_bb_seq): Move down to after gimple_statement_d definition.
8125
8126 2012-05-02 Michael Matz <matz@suse.de>
8127
8128 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
8129 gsi_replace_with_seq, instead of inserting itself.
8130 * gimple-iterator.c (gsi_replace_with_seq): New function.
8131 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
8132 iterator instead of statement, advance it.
8133 (ssa_forward_propagate_and_combine): Adjust call to above.
8134
8135 2012-05-02 Michael Matz <matz@suse.de>
8136
8137 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
8138 gimple_seq_alloc.
8139 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
8140 * tree-nested.c (walk_gimple_omp_for): Ditto.
8141 * trans-mem.c (lower_transaction): Ditto.
8142 * tree-eh.c (do_return_redirection): Ditto.
8143 (do_goto_redirection): Ditto.
8144 (lower_try_finally_switch): Ditto.
8145 * gimplify.c (gimplify_stmt): Ditto.
8146 (gimplify_scan_omp_clauses): Ditto.
8147 (gimplify_omp_for): Ditto.
8148 (gimplify_function_tree): Ditto.
8149 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
8150 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
8151 (mf_build_check_statement_for): Ditto.
8152 (mx_register_decls): Ditto.
8153 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
8154 and don't use itertors to append.
8155 (insert_stmts): Ditto.
8156 (insert_out_of_ssa_copy): Ditto.
8157 (insert_out_of_ssa_copy_on_edge): Ditto.
8158
8159 2012-05-02 Michael Matz <matz@suse.de>
8160
8161 * gimple.h (gimple_bind_body_ptr): New function.
8162 (gimple_bind_body): Use it.
8163 (gimple_catch_handler): Use gimple_catch_handler_ptr.
8164 (gimple_eh_filter_failure_ptr): New function.
8165 (gimple_eh_filter_failure): Use it.
8166 (gimple_eh_else_n_body_ptr): New function.
8167 (gimple_eh_else_n_body): Use it.
8168 (gimple_eh_else_e_body_ptr): New function.
8169 (gimple_eh_else_e_body): Use it.
8170 (gimple_try_eval_ptr): New function.
8171 (gimple_try_eval): Use it.
8172 (gimple_try_cleanup_ptr): New function.
8173 (gimple_try_cleanup): Use it.
8174 (gimple_wce_cleanup_ptr): New function.
8175 (gimple_wce_cleanup): Use it.
8176 (gimple_omp_body_ptr): New function.
8177 (gimple_omp_body): Use it.
8178 (gimple_omp_for_pre_body_ptr): New function.
8179 (gimple_omp_for_pre_body): Use it.
8180 (gimple_transaction_body_ptr): New function.
8181 (gimple_transaction_body): Use it.
8182 (gsi_split_seq_before): Adjust to return nothing and take pointer
8183 to sequence.
8184 (gsi_set_stmt): Declare.
8185 (gsi_replace_with_seq): Declare.
8186 (walk_gimple_seq_mod): Declare.
8187 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
8188
8189 * gimple-iterator.c (gsi_set_stmt): New function.
8190 (gsi_split_seq_before): Return new sequence via pointer argument.
8191 (gsi_replace): Use gsi_set_stmt.
8192
8193 * tree-ssa-loop-im.c (move_computations_stmt): First remove
8194 then insert stmt.
8195 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
8196 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
8197 return new stmt.
8198 (reserve_phi_args_for_new_edge): Change call to above,
8199 use gsi_set_stmt.
8200
8201 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
8202 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
8203 iterators. Adjust call to lower_omp.
8204 (lower_lastprivate_clauses): Adjust call to lower_omp.
8205 (lower_reduction_clauses): Ditto.
8206 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
8207 (lower_omp_sections): Don't explicitely count sequence length,
8208 nullify lowered bodies earlier, ensure stmts are part of only
8209 one sequence, adjust call to lower_omp.
8210 (lower_omp_single): Ensure stmts are part of only one sequence,
8211 adjust call to lower_omp.
8212 (lower_omp_master): Ditto.
8213 (lower_omp_ordered): Ditto.
8214 (lower_omp_critical): Ditto.
8215 (lower_omp_for): Ditto.
8216 (lower_omp_taskreg): Ditto, tidy.
8217 (lower_omp_1): Adjust calls to lower_omp.
8218 (execute_lower_omp): Ditto.
8219 (lower_omp): Adjust to take pointer to sequence.
8220 (diagnose_sb_2): Use walk_gimple_seq_mod.
8221 (diagnose_omp_structured_block_errors): Ditto and set possibly
8222 changed function body.
8223 * gimple-low.c (lower_function_body): Set function body after
8224 it stabilizes.
8225 (lower_sequence): Adjust to take pointer to sequence.
8226 (lower_omp_directive): Ensure stmt isn't put twice into the
8227 sequence, adjust call to lower_sequence.
8228 (lower_stmt): Adjust calls to lower_sequence.
8229 (lower_gimple_bind): Ditto.
8230 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
8231 * tree-nested.c (walk_body): Take pointer to sequence, use
8232 walk_gimple_seq_mod.
8233 (walk_function): Adjust call to walk_body, set possibly changed body.
8234 (walk_gimple_omp_for): Adjust calls to walk_body.
8235 (convert_nonlocal_omp_clauses): Ditto.
8236 (convert_nonlocal_reference_stmt): Ditto.
8237 (convert_local_omp_clauses): Ditto.
8238 (convert_local_reference_stmt): Ditto.
8239 (convert_tramp_reference_stmt): Ditto.
8240 (convert_gimple_call): Ditto.
8241 (convert_nl_goto_reference): Use local iterator copy.
8242 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
8243 but taking pointer to sequence, ensure gsi_start is called with
8244 callers lvalue.
8245 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
8246 asserting that the sequence head didn't change.
8247 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
8248 walk_gimple_seq_mod.
8249 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
8250 (execute_lower_tm): Ditto, and set possibly changed body.
8251 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
8252 call gsi_start with that lvalue.
8253 (replace_goto_queue_stmt_list): Ditto.
8254 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
8255 (replace_goto_queue): Ditto.
8256 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
8257 (lower_try_finally_onedest): Ditto.
8258 (lower_try_finally_copy): Ditto.
8259 (lower_try_finally_switch): Ditto.
8260 (lower_try_finally): Ditto.
8261 (lower_eh_filter): Ditto.
8262 (lower_eh_must_not_throw): Ditto.
8263 (lower_cleanup): Ditto.
8264 (lower_eh_constructs_2): Ditto.
8265 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
8266 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
8267 set possibly changed body.
8268 (optimize_double_finally): Call gsi_start with lvalue.
8269
8270 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
8271 (gimple_split_block): Ditto.
8272 (gimple_merge_blocks): Use gsi_start_phis.
8273 (move_stmt_r): Use walk_gimple_seq_mod.
8274 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
8275 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
8276 (rebuild_cgraph_edges): Ditto.
8277 (cgraph_rebuild_references): Ditto.
8278 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
8279 * tree-inline.c (copy_phis_for_bb): Ditto.
8280 * tree-ssa-dce.c: Ditto.
8281
8282 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
8283
8284 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
8285 Andi Kleen <ak@linux.intel.com>
8286
8287 * coretypes.h (MEMMODEL_MASK): New.
8288 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
8289 and return new variable.
8290 (expand_builtin_atomic_exchange): Mask memmodel values.
8291 (expand_builtin_atomic_compare_exchange): Ditto.
8292 (expand_builtin_atomic_load): Ditto.
8293 (expand_builtin_atomic_store): Ditto.
8294 (expand_builtin_atomic_clear): Ditto.
8295 * doc/extend.texi: Mention port-dependent memory model flags.
8296 * config/i386/cpuid.h (bit_HLE): New.
8297 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8298 HLE support.
8299 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
8300 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
8301 (ix86_target_string)<-mhle>: New.
8302 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
8303 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
8304 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
8305 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
8306 enabled for generic, generic64 and core-avx2.
8307 (ix86_print_operand): Generate HLE lock prefixes.
8308 (ix86_memmodel_check): New.
8309 (TARGET_MEMMODEL_CHECK): Ditto.
8310 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
8311 (IX86_HLE_ACQUIRE): Ditto.
8312 (IX86_HLE_RELEASE): Ditto.
8313 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
8314 * config/i386/i386.opt (mhle): Ditto.
8315 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
8316 success model to instruction emitter.
8317 (atomic_fetch_add<mode>): Ditto.
8318 (atomic_exchange<mode>): Ditto.
8319 (atomic_add<mode>): Ditto.
8320 (atomic_sub<mode>): Ditto.
8321 (atomic_<code><mode>): Ditto.
8322 (*atomic_compare_and_swap_doubledi_pic): Ditto.
8323 (atomic_compare_and_swap_single<mode>): Define and use argument
8324 for success model.
8325 (atomic_compare_and_swap_double<mode>): Ditto.
8326 * configure.ac: Check if assembler support HLE prefixes.
8327 * configure: Regenerate.
8328 * config.in: Ditto.
8329
8330 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
8331
8332 PR middle-end/53153
8333 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
8334 split out from ...
8335 (gimplify_switch_expr): ... here.
8336 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
8337 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
8338 to clean up case labels with values outside the index type range.
8339 (simplify_gimple_switch): Call it if something changed.
8340 Remove strange and unnecessary assert.
8341
8342 2012-05-02 Richard Guenther <rguenther@suse.de>
8343
8344 * fold-const.c (div_if_zero_remainder): sizetypes no longer
8345 sign-extend.
8346 (int_const_binop_1): New worker for int_const_binop with
8347 overflowable parameter. Pass it through to force_fit_type_double.
8348 (int_const_binop): Wrap around int_const_binop_1 with overflowable
8349 equal to one.
8350 (size_binop_loc): Call int_const_binop_1 with overflowable equal
8351 to minus one, forcing overflow detection for even unsigned types.
8352 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
8353 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
8354 * stor-layout.c (initialize_sizetypes): sizetypes no longer
8355 sign-extend.
8356 (layout_type): For zero-sized arrays ignore overflow on the
8357 size calculations.
8358 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
8359 (bit_value_binop_1): Likewise.
8360 * tree.c (double_int_to_tree): Likewise.
8361 (double_int_fits_to_tree_p): Likewise.
8362 (force_fit_type_double): Likewise.
8363 (host_integerp): Likewise.
8364 (int_fits_type_p): Likewise.
8365 * varasm.c (output_constructor_regular_field): Sign-extend the
8366 field-offset to cater for negative offsets produced by the Ada
8367 frontend.
8368 * omp-low.c (extract_omp_for_data): Convert the loop step to
8369 signed for pointer adjustments.
8370
8371 2012-05-02 Richard Guenther <rguenther@suse.de>
8372
8373 * tree.c (valid_constant_size_p): New function.
8374 * tree.h (valid_constant_size_p): Declare.
8375 * cfgexpand.c (expand_one_var): Adjust check for too large
8376 variables by using valid_constant_size_p.
8377 * varasm.c (assemble_variable): Likewise.
8378
8379 * c-decl.c (grokdeclarator): Properly check for sizes that
8380 cover more than half of the address-space.
8381
8382 2012-05-02 Jakub Jelinek <jakub@redhat.com>
8383
8384 PR tree-optimization/53163
8385 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
8386 return value from compute_all_dependences.
8387
8388 PR rtl-optimization/53160
8389 * ree.c (combine_reaching_defs): Handle the case where cand->insn
8390 has been modified by ree pass already.
8391
8392 2012-05-01 Ian Lance Taylor <iant@google.com>
8393
8394 PR c/37303
8395 * c-decl.c (build_compound_literal): Make the decl readonly if it
8396 an array of a readonly type.
8397 * gimplify.c (gimplify_compound_literal_expr): Add fallback
8398 parameter. Change all callers. If the decl is not addressable
8399 and is not an l-value, make it readonly.
8400
8401 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
8402
8403 * ira.c (allocated_reg_info_size): New static variable.
8404 (expand_reg_info): Manage it. Call
8405 setup_preferred_alternate_classes_for_new_pseudos.
8406 (ira): Don't do it here. Remove local allocated_reg_info_size,
8407 set the global before calling find_moveable_pseudos.
8408 (find_moveable_pseudos): Call expand_reg_info rather than
8409 resize_reg_info.
8410
8411 2012-05-01 Richard Henderson <rth@redhat.com>
8412
8413 * common.opt (fsync-libcalls): New.
8414 * doc/invoke.texi: Document it.
8415 * optabs.c (init_sync_libfuncs): Honor it.
8416
8417 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
8418 Richard Sandiford <r.sandiford@uk.ibm.com>
8419
8420 PR rtl-optimization/52543
8421 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
8422 lower-subreg.h.
8423 * lower-subreg.h: New file.
8424 * target-globals.h (this_target_lower_subreg): Declare.
8425 (target_globals): Add lower_subreg;
8426 (restore_target_globals): Restore this_target_lower_subreg.
8427 * target-globals.c: Include it.
8428 (default_target_globals): Add default_target_lower_subreg.
8429 (save_target_globals): Initialize target_lower_subreg.
8430 * rtl.h (init_lower_subreg): Added declaration.
8431 * toplev.c (backend_init_target): Call initializer for lower-subreg
8432 pass.
8433 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
8434 (default_target_lower_subreg): New variable.
8435 (this_target_lower_subreg): Likewise.
8436 (twice_word_mode, choices): New macros.
8437 (shift_cost, compute_splitting_shift, compute_costs)
8438 (init_lower_subreg): New functions.
8439 (resolve_simple_move): Add speed_p argument. Check choices.
8440 (find_pseudo_copy): Don't check the mode size here.
8441 (resolve_simple_move): Assert the mode size.
8442 (find_decomposable_shift_zext): Add speed_p argument and return
8443 a bool. Check choices.
8444 (resolve_shift_zext): Add comment.
8445 (dump_shift_choices, dump_choices): New functions.
8446 (decompose_multiword_subregs): Dump list of profitable
8447 transformations. Add code to skip non profitable transformations.
8448 Update calls to simple_move and find_decomposable_shift_zext.
8449
8450 2012-05-01 Ian Bolton <ian.bolton@arm.com>
8451 Sameera Deshpande <sameera.deshpande@arm.com>
8452 Greta Yorsh <greta.yorsh@arm.com>
8453
8454 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
8455 (thumb1_unexpanded_epilogue): ...this.
8456 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
8457 (thumb1_unexpanded_epilogue): ...this.
8458 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
8459 (thumb1_unexpanded_epilogue): ...this.
8460
8461 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
8462
8463 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
8464 comparing enumeration values. Update comments.
8465
8466 2012-05-01 Alan Modra <amodra@gmail.com>
8467
8468 PR target/53038
8469 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
8470 load_cr_save, add_crlr_cfa_restore): New functions.
8471 (rs6000_restore_saved_cr): Rename to..
8472 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
8473 (rs6000_emit_epilogue): Use new functions. Adjust condition
8474 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
8475 regs when using out-of-line restore only when shrink wrapping.
8476
8477 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8478
8479 PR middle-end/53136
8480 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
8481 calls to cgraph_node_name in xstrdup.
8482 (ipa_make_edge_direct_to_target): Ditto.
8483 * cgraph.c (dump_cgraph_node): Ditto.
8484 * tree-sra.c (convert_callers_for_node): Ditto.
8485 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
8486 * ipa-cp.c (perhaps_add_new_callers): Ditto.
8487 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
8488 (cgraph_materialize_all_clones): Ditto.
8489 * ipa-inline.c (report_inline_failed_reason): Ditto.
8490 (want_early_inline_function_p): Ditto.
8491 (edge_badness): Ditto.
8492 (update_edge_key): Ditto.
8493 (flatten_function): Ditto.
8494 (ipa_inline): Ditto.
8495 (inline_always_inline_functions): Ditto.
8496 (early_inline_small_functions): Ditto.
8497
8498 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8499
8500 PR target/53141
8501 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
8502 constraints 0 and 1.
8503
8504 012-04-30 Jan Hubicka <jh@suse.cz>
8505
8506 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
8507 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
8508 (cgraph_add_to_same_comdat_group): Remove.
8509 (cgraph_add_asm_node): Move to cgraphunit.c.
8510 (cgraph_make_decl_local): Move to symtab.c
8511 (cgraph_make_node_local_1): Update.
8512 (cgraph_can_remove_if_no_direct_calls_and): Update.
8513 (used_from_object_file_p): Update.
8514 (resolution_used_from_other_file_p): Move to symtab.c
8515 (cgraph_used_from_object_file_p): move to symtab.c
8516 (verify_cgraph_node): Verify same comdat groups.
8517 * cgraph.h (cgraph_asm_node): Rename to ...
8518 (asm_node): ... this one.
8519 (cgraph_asm_nodes): Rename to ...
8520 (asm_nodes): ... this one.
8521 (symtab_add_to_same_comdat_group): New function.
8522 (symtab_dissolve_same_comdat_group_list): New function.
8523 (symtab_used_from_object_file_p): Declare.
8524 (symtab_make_decl_local): Declare.
8525 (cgraph_add_to_same_comdat_group): Remove.
8526 (cgraph_add_asm_node): Remove.
8527 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
8528 Remove.
8529 (cgraph_finalize_compilation_unit): Rename to ...
8530 (finalize_compilation_unit): ... this one.
8531 (cgraph_optimize): Rename to ....
8532 (compile): ... this one.
8533 (add_asm_node): Declare.
8534 (fixup_same_cpp_alias_visibility): Declare.
8535 (cgraph_make_decl_local): Remove.
8536 (varpool_assemble_pending_decls): Rename to ...
8537 (varpool_output_variables): ... this one.
8538 (varpool_remove_unreferenced_decls): Remove.
8539 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
8540 (preserve_function_body_p): Make static.
8541 * toplev.c (compile_file): Update comments; update.
8542 * cgraphunit.c: Update comments.
8543 (cgraph_expand_all_functions): Rename to ...
8544 (expand_all_functions): ... this one; update.
8545 (cgraph_mark_functions_to_output): Rename to ...
8546 (mark_functions_to_output): ... this one; cleanup.
8547 (cgraph_output_pending_asms): Remove prototype.
8548 (asm_nodes, asm_last_node): New static vars.
8549 (cgraph_process_new_functions): Update.
8550 (cgraph_reset_node): Cleanup; add comment.
8551 (cgraph_add_new_function): Update.
8552 (cgraph_output_pending_asms): Rename to ...
8553 (output_asm_statements): ... this one.
8554 (add_asm_node): New function.
8555 (fixup_same_cpp_alias_visibility): New function based on code
8556 in cgraph_analyze_function.
8557 (cgraph_analyze_function): Use it.
8558 (cgraph_order_sort): Update.
8559 (cgraph_output_in_order): Update.
8560 (cgraph_function_versioning): Update.
8561 (cgraph_optimize): Rename to ...
8562 (compile): ... this one; initialize streamer hooks here.
8563 (cgraph_finalize_compilation_unit): Rename to ...
8564 (finalize_compilation_unit): ... this one; do not initialize streamer
8565 hook here.
8566 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
8567 * dwarf2out.c: Update ocmment.
8568 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
8569 * method.c (use_thunk): Likewise.
8570 * semantics.c (maybe_add_lambda_conv_op): Likewise.
8571 * decl2.c (maybe_emit_vtables): Likewise.
8572 (cp_write_global_declarations): Use finalize_compilation_unit.
8573 * parser.c (cp_parser_asm_definition): Use add_asm_node.
8574 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
8575 * c-decl.c (c_write_global_declarations): Use
8576 finalize_compilation_unit.
8577 * langhooks.c (write_global_declarations): Update.
8578 * ipa.c (cgraph_externally_visible_p): Update.
8579 (dissolve_same_comdat_group_list): Remove.
8580 (function_and_variable_visibility): Update.
8581 * symtab.c: Inlcude lto-streamer.h and rtl.h
8582 (ld_plugin_symbol_resolution_names): New.
8583 (symtab_add_to_same_comdat_group): New.
8584 (symtab_dissolve_same_comdat_group_list): New.
8585 (resolution_used_from_other_file_p): Move here from cgraph.c
8586 (symtab_used_from_object_file_p): New.
8587 (symtab_make_decl_local): New.
8588 * passes.c (register_pass): Update comments.
8589 * c-parser.c (c_parser_asm_definition): Update.
8590 * varpool.c (varpool_analyze_node): Use
8591 fixup_same_cpp_alias_visibility.
8592 (varpool_remove_unreferenced_decls): Make static.
8593 (varpool_assemble_pending_decls): Rename to ...
8594 (varpool_output_variables): ... this one; call
8595 varpool_remove_unreferenced_decls.
8596 (varpool_used_from_object_file_p): Remove.
8597
8598 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
8599
8600 PR c++/51033
8601 * c-typeck.c (build_array_ref): Call
8602 convert_vector_to_pointer_for_subscript.
8603 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
8604
8605 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8606
8607 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
8608 to compile-time "mode == <MODE>mode" checks.
8609 (and splitter): Ditto.
8610
8611 2012-04-30 Richard Henderson <rth@redhat.com>
8612
8613 * config/arm/arm.md (UNSPEC_LL): New.
8614 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
8615 (arm_load_exclusivedi): Use %H0.
8616
8617 2012-04-30 Jason Merrill <jason@redhat.com>
8618
8619 * dwarf2out.c (comdat_symbol_id): Add const.
8620 (union die_symbol_or_type_node): Add const to die_symbol.
8621 (output_die_symbol, output_die, output_comp_unit): Adjust.
8622
8623 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
8624
8625 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
8626 * config/arm/neon.md (negdi2_neon): New insn.
8627 Also add splitters for core and NEON registers.
8628
8629 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
8630
8631 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
8632 (arm_print_operand): Add 'x' format.
8633 * config/arm/constraints.md (Dn): Allow const_int.
8634 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
8635 Use 'x' format to print constants.
8636 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
8637 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
8638 is enabled.
8639 (movdi_vfp_cortexa8): Likewise.
8640
8641 2012-04-30 Ian Bolton <ian.bolton@arm.com>
8642 Sameera Deshpande <sameera.deshpande@arm.com>
8643 Greta Yorsh <greta.yorsh@arm.com>
8644
8645 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
8646 * config/arm/arm.c (ldm_stm_operation_p): New function.
8647 * config/arm/predicates.md (load_multiple_operation): Update predicate.
8648 (store_multiple_operation): Likewise.
8649
8650 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
8651 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
8652 * config/arm/predicates.md (load_multiple_operation): Add arguments.
8653 (store_multiple_operation): Likewise.
8654
8655 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
8656
8657 * config/i386/i386.md (and<mode>3): Expand masking operations with
8658 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
8659 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
8660
8661 2012-04-30 Dodji Seketeli <dodji@redhat.com>
8662
8663 Add -Wvarargs option
8664 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
8665 argument for the various warning_at calls.
8666 * docs/invoke.texi: Update the documentation.
8667
8668 2012-04-30 Dodji Seketeli <dodji@redhat.com>
8669
8670 Switch -ftrack-macro-expansion=2 on by default.
8671 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
8672 by default.
8673
8674 Fix va_start related location
8675 * builtins.c (fold_builtin_next_arg): Unwinds to the first
8676 location in real source code.
8677
8678 Make conversion warnings work on NULL with -ftrack-macro-expansion
8679 * input.h (expansion_point_location_if_in_system_header): Declare
8680 new function.
8681 * input.c (expansion_point_location_if_in_system_header): Define it.
8682
8683 Fix -Wuninitialized for -ftrack-macro-expansion
8684 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
8685 declaration. Use linemap_location_before_p for source locations.
8686
8687 Strip "<built-in>" loc from displayed expansion context
8688 * input.c (expand_location_1): When expanding to spelling location
8689 in a context of a macro expansion, skip reserved system header
8690 locations. Update comments. * tree-diagnostic.c
8691 (maybe_unwind_expanded_macro_loc): Likewise.
8692
8693 Make expand_location resolve to locus in main source file
8694 * input.c (expand_location_1): New. Takes a parameter to choose
8695 whether to resolve the location to spelling or expansion point.
8696 Was factorized from ...
8697 (expand_location): ... here.
8698 (expand_location_to_spelling_point): New. Implemented in terms of
8699 expand_location_1.
8700 * diagnostic.c (diagnostic_build_prefix): Use the new
8701 expand_location_to_spelling_point instead of expand_location.
8702
8703 Fix PCH crash on GTYed pointer-to-scalar field of a struct
8704 * gengtype.c (write_types_process_field): Force second argument of
8705 the call to the PCH object hierarchy walker to be 'x'.
8706
8707 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
8708
8709 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
8710 predicate to discriminate types.
8711
8712 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8713
8714 * doc/invoke.texi (Wmissing-format-attribute): Document as an
8715 alias of Wsuggest-attribute=format.
8716 * c-typeck.c (convert_for_assignment): Replace
8717 Wmissing-format-attribute with Wsuggest-attribute=format.
8718 (digest_init): Likewise.
8719
8720 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
8721
8722 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
8723 * common.opt (Wmissing-noreturn): Alias of
8724 -Wsuggest-attribute=noreturn.
8725
8726 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
8727
8728 PR target/53156
8729 * config/cris/cris.md (andqu): New peephole2.
8730 (andu): Tweak head comment.
8731
8732 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
8733 Steven Bosscher <steven@gcc.gnu.org>
8734 Maxim Kuvyrkov <maxim@codesourcery.com>
8735
8736 PR tree-optimization/38785
8737 * common.opt (ftree-partial-pre): New option.
8738 * doc/invoke.texi: Document it.
8739 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
8740 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
8741 benefit speed path.
8742 (execute_pre): Use flag_tree_partial_pre.
8743
8744 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8745
8746 PR target/52999
8747 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
8748 in constant pool.
8749
8750 2012-04-27 Ollie Wild <aaw@google.com>
8751
8752 * doc/invoke.texi (Wliteral-suffix): Document new option.
8753
8754 2012-04-27 Tom Tromey <tromey@redhat.com>
8755
8756 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
8757 (dwarf_tag_name): Use get_DW_TAG_name.
8758 (dwarf_attr_name): Use get_DW_AT_name.
8759 (dwarf_form_name): Use get_DW_FORM_name.
8760 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
8761
8762 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
8763
8764 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
8765 arguments are -1 and 0, by negating the result of the conditional.
8766
8767 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
8768
8769 PR target/53138
8770 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
8771
8772 2012-04-27 Richard Guenther <rguenther@suse.de>
8773
8774 * tree-flow.h (is_hidden_global_store): Remove.
8775 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
8776 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
8777 (stmt_may_clobber_global_p): Likewise.
8778 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
8779 (stmt_may_clobber_global_p): Likewise.
8780 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
8781 stmt_may_clobber_global_p.
8782 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
8783
8784 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
8785
8786 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
8787 place.
8788
8789 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
8790 reorganize some fields and update comments. Rename bit_test_uniq
8791 and bit_test_count to uniq resp. count. Remove bit_test_bb.
8792 (collect_switch_conv_info): New function, collects info about a
8793 GIMPLE_SWITCH into a struct switch_conv_info.
8794 (check_range): Simplify to use pre-recorded info. Fix think-o in
8795 range-branch ratio check.
8796 (check_process_case): Remove function.
8797 (check_all_empty_except_final): New function, verifies that all
8798 non-final basic blocks are empty.
8799 (process_switch): Simplify to use pre-recorded info. Call
8800 collect_switch_conv_info to do that. Assert that degenerate switch
8801 statements have been cleaned up.
8802
8803 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
8804
8805 PR middle-end/27139
8806 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
8807
8808 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8809
8810 PR c/53130
8811 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
8812
8813 2012-04-27 Tom de Vries <tom@codesourcery.com>
8814
8815 PR tree-optimization/51879
8816 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
8817 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
8818 of ...
8819 (defs_to_varying): ... here. Don't set use_processed.
8820 (visit_reference_op_call): Handle gimple_vdef.
8821 Handle case that lhs is NULL_TREE.
8822 (visit_use): Use mark_use_processed. Handle calls with side-effect
8823 using visit_reference_op_call.
8824
8825 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
8826
8827 * sched-deps.c (fixup_sched_groups): Rename to...
8828 (chain_to_prev_insn): ...this.
8829 (chain_to_prev_insn_p): New function.
8830 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
8831
8832 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
8833
8834 * sched-int.h (_haifa_insn_data): Move priority_status.
8835 Add model_index.
8836 (INSN_MODEL_INDEX): New macro.
8837 * haifa-sched.c (insn_delay): New function.
8838 (sched_regno_pressure_class): Update commentary.
8839 (mark_regno_birth_or_death): Pass the liveness bitmap and
8840 pressure array as arguments, instead of using curr_reg_live and
8841 curr_reg_pressure. Only update the pressure if the bit in the
8842 liveness set has changed.
8843 (initiate_reg_pressure_info): Always trust the live-in set for
8844 SCHED_PRESSURE_MODEL.
8845 (initiate_bb_reg_pressure_info): Update call to
8846 mark_regno_birth_or_death.
8847 (dep_list_size): Take the list as argument.
8848 (calculate_reg_deaths): New function, extracted from...
8849 (setup_insn_reg_pressure_info): ...here.
8850 (MODEL_BAR): New macro.
8851 (model_pressure_data, model_insn_info, model_pressure_limit)
8852 (model_pressure_group): New structures.
8853 (model_schedule, model_worklist, model_insns, model_num_insns)
8854 (model_curr_point, model_before_pressure, model_next_priority):
8855 New variables.
8856 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
8857 (MODEL_INSN_INFO, MODEL_INSN): New macros.
8858 (model_index, model_update_limit_points_in_group): New functions.
8859 (model_update_limit_points, model_last_use_except): Likewise.
8860 (model_start_update_pressure, model_update_pressure): Likewise.
8861 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
8862 (model_excess_cost, model_dump_pressure_points): Likewise.
8863 (model_set_excess_costs): Likewise.
8864 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
8865 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
8866 schedule as an alternative tie-breaker. Update the call to
8867 dep_list_size.
8868 (ready_sort): Call model_set_excess_costs.
8869 (update_register_pressure): Update call to mark_regno_birth_or_death.
8870 Rely on that function to check liveness rather than doing it here.
8871 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
8872 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
8873 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
8874 (model_record_pressure, model_record_pressures): New functions.
8875 (model_record_final_pressures, model_add_successors_to_worklist)
8876 (model_promote_predecessors, model_choose_insn): Likewise.
8877 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
8878 (model_start_schedule, model_finalize_pressure_group): Likewise.
8879 (model_end_schedule): Likewise.
8880 (schedule_insn): Say when we're scheduling the next instruction
8881 in the model schedule.
8882 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
8883 (queue_to_ready): Do not add instructions that are
8884 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
8885 Always allow the next instruction in the model schedule to be added.
8886 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8887 and delay for SCHED_PRESSURE_MODEL too.
8888 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
8889 SCHED_PRIORITY_MODEL, but also take the DFA into account.
8890 (schedule_block): Call model_start_schedule and model_end_schedule.
8891 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
8892 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8893 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
8894 region_ref_regs.
8895 (sched_finish): Update accordingly.
8896 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8897 to SCHED_PRESSURE_MODEL.
8898 (add_jump_dependencies): Update call to dep_list_size.
8899 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
8900 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
8901 to SCHED_PRESSURE_MODEL.
8902 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
8903 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
8904 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
8905 handling to SCHED_PRESSURE_MODEL.
8906
8907 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
8908
8909 * common.opt (fsched-pressure-algorithm=): New option.
8910 * flag-types.h (sched_pressure_algorithm): New enum.
8911 * sched-int.h (sched_pressure_p): Replace with...
8912 (sched_pressure): ...this new variable.
8913 * haifa-sched.c (sched_pressure_p): Replace with...
8914 (sched_pressure): ...this new variable.
8915 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
8916 (update_reg_and_insn_max_reg_pressure, schedule_insn)
8917 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
8918 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
8919 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
8920 (sched_analyze_insn): Likewise.
8921 * sched-rgn.c (schedule_region): Likewise.
8922 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
8923
8924 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
8925
8926 * PR middle-end/52997
8927 * ira.c (find_moveable_pseudos): Call resize_reg_info.
8928
8929 PR middle-end/52940
8930 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
8931 * expr.c (convert_move): Honor unsignedp when extending partial int
8932 modes.
8933 * genmodes.c (complete_mode): Don't clear component field of partial
8934 int modes.
8935 (emit_mode_inner): Don't emit it however.
8936 (calc_wider_mode): Partial int modes widen to their component.
8937
8938 2012-04-26 David S. Miller <davem@davemloft.net>
8939
8940 * config/sparc/niagara4.md: New file.
8941 * config/sparc/sparc.md: Include it.
8942 * config/sparc/sparc.c (niagara4_costs): New processor costs.
8943 (sparc_option_override): Use it.
8944 (sparc_use_sched_lookahead): Return 2 for niagara4.
8945 (sparc_issue_rate): Likewise.
8946
8947 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
8948 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
8949 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
8950 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
8951 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
8952 alignaddrldi_vis): Set type to gsr.
8953 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
8954 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
8955 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
8956 v<vis3_shift_patname><mode>3, fmean16_vis,
8957 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
8958 fucmp<code>8<P:mode>_vis): Set type to fga.
8959 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
8960 * config/sparc/niagara.md: Likewise.
8961 * config/sparc/niagara2.md: Likewise.
8962 * config/sparc/ultra3.md: Likewise, and fix type matching for
8963 us3_ialuX reservation.
8964
8965 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8966
8967 * reload.c (find_reloads): Change the loop nesting when trying an
8968 alternative with swapped operands.
8969
8970 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
8971
8972 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
8973 comment. Delete unused parameter first_exp_point_map.
8974 (virt_loc_aware_diagnostic_finalizer): Update call.
8975
8976 2012-04-26 Michael Hope <michael.hope@linaro.org>
8977 Richard Earnshaw <rearnsha@arm.com>
8978
8979 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
8980 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
8981 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
8982 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
8983
8984 2012-04-25 Sriraman Tallam <tmsriram@google.com>
8985
8986 * doc/extend.texi: Document avx2 support.
8987 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
8988
8989 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
8990
8991 PR target/53120
8992 * config/cris/cris.md ("*andhi_lowpart_v32")
8993 ("*andqi_lowpart_v32"): Change first input-only operand from
8994 a (match_operand ...) to (match_dup 0). Drop alternatives with
8995 const_int-matching constraints for redundancy.
8996 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
8997 three-operand alternative.
8998
8999 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9000
9001 PR target/53110
9002 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
9003 instead expand it as zero extension.
9004
9005 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
9006
9007 PR debug/52857
9008 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
9009
9010 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9011
9012 * common.opt (flag_debug_types_section): Default to 0.
9013 (dwarf_version): Default to 4.
9014 (dwarf_record_gcc_switches): Default to 1.
9015 (dwarf_strict): Default to 0.
9016 * toplev.c (process_options): Don't handle dwarf_strict
9017 or dwarf_version here.
9018 * config/vxworks.c (vxworks_override_options): Don't
9019 test whether dwarf_strict or dwarf_version are negative,
9020 instead test !global_options_set.x_dwarf_*.
9021 * config/darwin.c (darwin_override_options): Default to
9022 dwarf_version 2.
9023 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
9024 and -fno-debug-types-section are now the default.
9025
9026 2012-04-25 Jan Hubicka <jh@suse.cz>
9027
9028 * cgraphunit.c: Update toplevel comment.
9029 (tree_rest_of_compilation): Merge into cgraph_expand_function.
9030 (cgraph_analyze_function): Make static.
9031 (cgraph_decide_is_function_needed): Make static.
9032 (cgraph_add_new_function): Use expand_function instead of
9033 rest_of_compilation.
9034 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
9035 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
9036 Move to cgraph.c
9037 (cgraph_inline_p): Remove.
9038 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
9039 (init_cgraph): Add comment.
9040 * cgraphbuild.c (record_reference, mark_address, mark_load,
9041 mark_store): Do not call analyze_expr hook.
9042 * cgraph.c: Update toplevel comment.
9043 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
9044 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
9045 Move fere from cgraphunit.c
9046 (cgraph_mark_force_output_node): Move to cgraph.h
9047 * cgraph.h: Reorder so the comments match the function placement.
9048 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
9049 (cgraph_mark_force_output_node): Move here from cgraph.c
9050 * tree.c (free_lang_data): Do not clear analyze_expr hook.
9051 * ipa-inline-transform.c (preserve_function_body_p): New function.
9052 (inline_transform): Update.
9053 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
9054 * langhooks.h (lang_hooks_for_callgraph): Remove.
9055 (lang_hooks): Remove callgraph.
9056 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
9057 * varpool.c: Remove out of date comment.
9058 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
9059 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
9060
9061 2012-04-25 Jan Hubicka <jh@suse.cz>
9062
9063 PR middle-end/53089
9064 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
9065 forward declaration.
9066 (cgraph_finalize_function): Finalize them here.
9067 * symtab.c (dump_symtab): Dump ctors and dtors.
9068
9069 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9070
9071 PR middle-end/52979
9072 * stor-layout.c (get_best_mode): Don't return mode with bitsize
9073 larger than maxbits. Don't compute maxbits modulo align.
9074 Also check that unit bytes long store at bitpos / unit * unit
9075 doesn't affect bits beyond bitregion_end.
9076 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
9077 would not fit into bitregion_start ... bitregion_end + 1 bit region.
9078 (store_split_bit_field): Decrease unit close to end of bitregion_end
9079 if access is restricted in order to avoid mutual recursion.
9080
9081 PR tree-optimization/53058
9082 * double-int.h (double_int_max_value, double_int_min_value): New
9083 prototypes.
9084 * double-int.c (double_int_max_value, double_int_min_value): New
9085 functions.
9086 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
9087 or GT_EXPR with double_int_max_value instead of double_int_mask.
9088
9089 2012-04-25 Richard Guenther <rguenther@suse.de>
9090
9091 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
9092 * tree-vect-loop.c (vect_transform_loop): Adjust.
9093 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
9094 the maximum number of iterations for the epilogue loop.
9095 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
9096
9097 2012-04-25 Jakub Jelinek <jakub@redhat.com>
9098
9099 PR c/52880
9100 * c-typeck.c (set_nonincremental_init,
9101 set_nonincremental_init_from_string): Pass true instead of false
9102 as IMPLICIT to add_pending_init.
9103
9104 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9105
9106 * c-typeck.c (pop_init_level): Improve diagnostics.
9107
9108 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
9109
9110 * compare-elim.c (try_eliminate_compare): Also handle operands with
9111 implicit extensions.
9112
9113 2012-04-25 Alan Modra <amodra@gmail.com>
9114
9115 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
9116 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
9117 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
9118 (no_global_regs_above): Delete.
9119 (no_global_regs): New function.
9120 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
9121 value for load multiple test.
9122 (savres_routine_syms): Increase size.
9123 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
9124 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
9125 rather than a number of boolean flags. Update all callers.
9126 (rs6000_savres_routine_name): Generate vector save/restore names.
9127 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
9128 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
9129 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
9130 and using_store_multiple. Expand uses. Don't always use r11 as
9131 frame reg when needed for out-of-line saves. Set up initial offset
9132 for out-of-line vector saves when buying stack frame. Handle pointer
9133 reg setup for out-of-line fp save. Emit call to out-of-line vector
9134 save function. Choose r11 or r12 for vrsave reg when available for
9135 better scheduling.
9136 (rs6000_output_function_prologue): Don't emit .extern for ELF.
9137 (rs6000_emit_epilogue): Choose a better frame reg when restoring
9138 from back-chain to suit out-of-line vector restore functions. Emit
9139 call to out-of-line vector restore function. Adjust register used
9140 for cr restore. Tweak pointer register setup for gpr restore.
9141 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
9142 FIXED_R13.
9143 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
9144 (V_SAVE_INLINE): Define.
9145 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
9146
9147 2012-04-25 Alan Modra <amodra@gmail.com>
9148
9149 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
9150 out-of-line save/restore for large frames. Don't disable
9151 out-of-line saves on ABI_AIX when using static chain reg.
9152 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
9153 clobber static chain reg, and tweak for out-of-line gpr saves
9154 that use r1.
9155
9156 2012-04-25 Alan Modra <amodra@gmail.com>
9157
9158 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
9159 (rs6000_emit_prologue): Use the above to catch register overlap.
9160
9161 2012-04-25 Alan Modra <amodra@gmail.com>
9162
9163 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
9164 decl. Move logic selecting update reg to callers. Update all callers.
9165 (rs6000_emit_allocate_stack): Add copy_off param.
9166 (emit_frame_save): Don't handle reg+reg addressing.
9167 (ptr_regno_for_savres): New function, extracted from..
9168 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
9169 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
9170 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
9171 frame offset adjustment for out-of-line save with copy from sp.
9172 Simplify condition controlling whether cr is saved early or
9173 late. Use ptr_regno_for_savres to verify correct reg is set
9174 up for out-of-line saves. Pass the actual pointer reg used to
9175 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
9176 function. Rearrange spe vars so code is similar to that
9177 elsewhere in this function. Don't update frame_off when spe
9178 save code will restore r11. Use emit_frame_save for spe and
9179 gpr saves. Consolidate darwin out-of-line gpr setup with that
9180 for other abis. Don't assume frame_offset is zero and frame
9181 reg is sp when setting up altivec reg saves, and calculate
9182 exact offset requirement.
9183 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
9184 spe restore code. Consolidate darwin out-of-line gpr setup
9185 with that for other abis.
9186
9187 2012-04-25 Alan Modra <amodra@gmail.com>
9188
9189 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
9190 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
9191 the replacement.
9192 (emit_frame_save): Delete frame_ptr param. Rename total_size to
9193 frame_reg_to_sp.
9194 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
9195 and emit_frame_save calls. Cope with possibly missing note.
9196
9197 2012-04-24 Sriraman Tallam <tmsriram@google.com>
9198
9199 * config/i386/i386.c (build_processor_model_struct): New function.
9200 (make_var_decl): New function.
9201 (fold_builtin_cpu): New function.
9202 (ix86_fold_builtin): New function.
9203 (make_cpu_type_builtin): New function.
9204 (ix86_init_platform_type_builtins): New function.
9205 (ix86_expand_builtin): Expand new builtins by folding them.
9206 (ix86_init_builtins): Make new builtins to detect CPU type.
9207 (TARGET_FOLD_BUILTIN): New macro.
9208 (IX86_BUILTIN_CPU_INIT): New enum value.
9209 (IX86_BUILTIN_CPU_IS): New enum value.
9210 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
9211 * config/i386/i386-builtin-types.def: New function type.
9212 * testsuite/gcc.target/builtin_target.c: New testcase.
9213 * doc/extend.texi: Document builtins.
9214
9215 2012-04-24 Olivier Hainque <hainque@adacore.com>
9216
9217 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
9218 * toplev.c (process_options): Default to dwarf_version 2.
9219 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
9220 and dwarf_version 2.
9221
9222 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9223
9224 * tree-pretty-print.h (default_tree_printer): Do not declare.
9225 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
9226 intl.h.
9227 (default_tree_diagnostic_starter): Make static.
9228 (default_tree_printer): Move to here. Make static.
9229 (tree_diagnostics_defaults): New.
9230 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
9231 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
9232 * toplev.c: Do not include tree-pass.h.
9233 (default_tree_printer): Move from here.
9234 (general_init): Use tree_diagnostics_defaults.
9235
9236 2012-04-24 Chao-ying Fu <fu@mips.com>
9237
9238 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
9239 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
9240 * config/mips/gnu-user.h
9241 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
9242 (GNU_USER_TARGET_LINK_SPEC): New define.
9243 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9244 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
9245 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
9246 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
9247 GNU_USER_TARGET_ENDFILE_SPEC.
9248 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
9249 (GNU_USER_TARGET_LINK_SPEC): New define.
9250 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9251 * config/mips/linux-common.h: New file.
9252
9253 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9254
9255 PR target/47197
9256 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
9257 (altivec_build_resolved_builtin): Call fully_fold_convert.
9258
9259 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
9260
9261 PR target/53065
9262 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
9263
9264 2012-04-24 Richard Guenther <rguenther@suse.de>
9265
9266 PR tree-optimization/53085
9267 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
9268 stores.
9269
9270 2012-04-24 Richard Guenther <rguenther@suse.de>
9271
9272 * tree-if-conv.c (main_tree_if_conversion): Move bb under
9273 ENABLE_CHECKING.
9274
9275 2012-04-24 Jim Meyering <meyering@redhat.com>
9276
9277 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
9278 absence of an define_enum call.
9279
9280 2012-04-24 Richard Guenther <rguenther@suse.de>
9281
9282 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
9283 the epilogue loop is not re-used as unvectorized version
9284 record the its maximum number of iterations.
9285
9286 2012-04-24 Andrew Pinski <apinski@cavium.com>
9287
9288 * tree-ssa-forwprop.c (simplify_bitwise_binary):
9289 Don't directly use def1/def2.
9290
9291 2012-04-24 Richard Guenther <rguenther@suse.de>
9292
9293 PR tree-optimization/53098
9294 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
9295 comparison sign.
9296
9297 2012-04-24 Andrew Pinski <apinski@cavium.com>
9298
9299 PR tree-opt/33512
9300 * tree-ssa-forwprop.c (defcodefor_name): New function.
9301 (simplify_bitwise_binary): Use defcodefor_name instead of manually
9302 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
9303 Simplify "(~X | Y) & X" to "X & Y" and
9304 "(~X & Y) | X" to "X | Y".
9305
9306 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9307
9308 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
9309 validate_change to add clobbers if IN_GROUP is nonzero.
9310 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
9311 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
9312 prototype.
9313 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
9314 set to false.
9315 * config/s390/s390.c (insn_invalid_p): Likewise.
9316
9317 2012-04-24 Jakub Jelinek <jakub@redhat.com>
9318
9319 PR middle-end/53084
9320 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
9321 (output_addressed_constants): Likewise.
9322
9323 PR middle-end/52999
9324 * varasm.c (get_section): Don't ICE for section conflicts with
9325 built-in section kinds.
9326
9327 2012-04-23 DJ Delorie <dj@redhat.com>
9328
9329 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
9330 (LIBSTDCXX): Change to CPP2.
9331
9332 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
9333
9334 PR bootstrap/52878
9335 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
9336 extra_masks.
9337
9338 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
9339
9340 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
9341 (*addsi_2_zext): Ditto.
9342 (*add<mode>_3): Ditto.
9343 (*addsi_3_zext): Ditto.
9344 (*add<mode>_5): Ditto.
9345
9346 2012-04-23 Andrew Pinski <apinski@cavium.com>
9347
9348 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
9349 (C & B) to (A OP0) & B.
9350
9351 2012-04-23 Martin Jambor <mjambor@suse.cz>
9352
9353 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
9354 temporaries created for a bitfield (reverting revision 122014).
9355
9356 2012-04-23 Richard Guenther <rguenther@suse.de>
9357
9358 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
9359 the condition using is_gimple_condexpr and avoid the not necessary
9360 boolification.
9361 (set_prologue_iterations): Likewise.
9362 (vect_loop_versioning): Likewise.
9363
9364 2012-04-23 Richard Guenther <rguenther@suse.de>
9365
9366 PR tree-optimization/53070
9367 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
9368 (main_tree_if_conversion): Verify we succeeded in that.
9369
9370 2012-04-23 Jan Hubicka <jh@suse.cz>
9371
9372 * lto-symtab.c (lto_cgraph_replace_node): Do not call
9373 mark_reahcable_node.
9374 * cgraph.c (cgraph_remove_node): Do not clear reachable.
9375 (cgraph_mark_reachable_node): Remove.
9376 (cgraph_mark_force_output_node): Do not set reachable.
9377 (dump_cgraph_node): Do not dump reachable.
9378 (cgraph_create_virtual_clone): Do not set reachable.
9379 * cgraph.h (cgraph_node): Remove reachable flag.
9380 (varpool_node): Remove reachable flag.
9381 (cgraph_mark_if_needed): Remove.
9382 (cgraph_mark_reachable_node): Remove.
9383 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
9384 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
9385 reachable.
9386 (cgraph_add_new_function): Likewise.
9387 (cgraph_mark_if_needed): Remove.
9388 (cgraph_analyze_function): Do not set target as reachable.
9389 (process_function_and_variable_attributes): Do not care about
9390 dllexport.
9391 (cgraph_analyze_functions): Do not set reachable flags.
9392 (cgraph_mark_functions_to_output): Do not check reachability.
9393 (cgraph_copy_node_for_versioning): Do not set reachable flag.
9394 (dbxout_expand_expr): Update.
9395 * c-decl.c (merge_decls): Do not track changed externs.
9396 * ipa.c: Include pointer-set.h
9397 (enqueue_cgraph_node): Use reachable pointer set.
9398 (process_references): Likewise.
9399 (cgraph_remove_unreachable_nodes): Likewise.
9400 (whole_program_function_and_variable_visibility): Do not recompute
9401 reachable.
9402 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
9403
9404 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
9405
9406 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
9407
9408 2012-04-23 Richard Guenther <rguenther@suse.de>
9409
9410 PR c/53060
9411 * c-typeck.c (build_binary_op): Fix typo.
9412
9413 2012-04-23 Jakub Jelinek <jakub@redhat.com>
9414
9415 PR tree-optimizations/52891
9416 * tree-vect-patterns.c (adjust_bool_pattern): Use
9417 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
9418 but with non-standard precision.
9419
9420 2012-04-22 Jan Hubicka <jh@suse.cz>
9421
9422 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
9423 tree refs.
9424
9425 2012-04-22 Jan Hubicka <jh@suse.cz>
9426
9427 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
9428 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9429 mark_load, mark_store): Do not mark varpool nodes as needed.
9430 * cgraph.c (cgraph_new_nodes): Remove.
9431 (cgraph_create_function_alias): Do not mark nodes as reachable.
9432 (cgraph_add_thunk): Likewise.
9433 (cgraph_mark_reachable_node): Do not manage the queue.
9434 * cgraph.h (cgraph_node): Remove next_needed.
9435 (varpool_nodes_queue): Remove next_needed and prev_needed.
9436 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
9437 (cgraph_new_nodes): Declare.
9438 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
9439 (varpool_analyze_pending_decls): Remove.
9440 (varpool_analyze_node): New.
9441 (varpool_mark_needed_node): Remove.
9442 (varpool_first_variable, varpool_next_variable): New inlines.
9443 (varpool_first_static_initializer, varpool_next_static_initializer):
9444 Update.
9445 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
9446 (varpool_first_defined_variable): New inline.
9447 (varpool_next_defined_variable): New inline
9448 (FOR_EACH_VARIABLE): Reimplement.
9449 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
9450 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
9451 needed flag.
9452 * cgraphunit.c (cgraph_new_nodes): Declare here.
9453 (enqueue_node): New function.
9454 (cgraph_process_new_functions): update for new
9455 node set; when constructing cgraph enqueue node for processing.
9456 (cgraph_add_new_function): Use new node set.
9457 (process_function_and_variable_attributes): Do not set varpool needed
9458 flags.
9459 (referred_to_p): New function.
9460 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
9461 when varpool is in construction.
9462 (cgraph_analyze_functions): Rewrite.
9463 (cgraph_expand_all_functions): Update.
9464 (cgraph_output_in_order): Do not analyze pending decls; do not set
9465 needed flags.
9466 (cgraph_optimize): Do not analyze pending decls.
9467 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
9468 in other partition; do not mark node as needed.
9469 * dwarf2out.c (reference_to_unused): Use analyzed flag.
9470 (premark_types_used_by_global_vars_helper): Likewise.
9471 * ipa.c (process_references): Do not call varpool_mark_needed_node.
9472 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
9473 cgrpah queues.
9474 (function_and_variable_visibility): Do not mark node as needed.
9475 (whole_program_function_and_variable_visibility): Likewise.
9476 * Makefile.in (gt-varpool.h): No longer needed.
9477 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
9478 (ipa_write_summaries): Do not use needed flag.
9479 * varpool.c: Do not include gt-varpool.h
9480 (x_varpool_nodes_queue, x_varpool_last_needed_node,
9481 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
9482 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
9483 Remove.
9484 (varpool_remove_node): Do not update the lists.
9485 (dump_varpool_node): Do not dump needed flag.
9486 (varpool_enqueue_needed_node): Remove.
9487 (varpool_mark_needed_node): Remove.
9488 (varpool_reset_queue): Remove.
9489 (varpool_finalize_decl): Move to cgraphunit.c
9490 (varpool_analyze_node): New functions based on former
9491 varpool_analyze_pending_decls.
9492 (varpool_analyze_pending_decls): Remove.
9493 (varpool_assemble_decl): Do not update the lists.
9494 (enqueue_node): New function.
9495 (varpool_remove_unreferenced_decls): Rewrite.
9496 (varpool_empty_needed_queue): Remove.
9497 (add_new_static_var): Do not mark node as needed.
9498 (varpool_create_variable_alias): Handle expansion state
9499 creation.
9500 * except.c (output_ttype): Do not mark node as needed.
9501 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
9502 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
9503 Likewise.
9504 * tree-switch-conversion.c (build_one_array): Likewise.
9505
9506 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9507
9508 PR c/44774
9509 * doc/invoke.texi (pedantic): Rename to Wpedantic.
9510 * common.opt (Wpedantic): New.
9511 (pedantic): Alias Wpedantic.
9512 * diagnostic.c (warning_at): Likewise.
9513 * c-decl.c (diagnose_mismatched_decls): Likewise.
9514 (build_array_declarator): Likewise.
9515 (mark_forward_parm_decls):
9516 (check_bitfield_type_and_width): Likewise.
9517 (grokdeclarator): Likewise.
9518 (grokfield): Likewise.
9519 (finish_struct): Likewise.
9520 (build_enumerator): Likewise.
9521 (store_parm_decls_oldstyle): Likewise.
9522 (declspecs_add_qual): Likewise.
9523 (declspecs_add_type): Likewise.
9524 (finish_declspecs): Likewise.
9525 * c-typeck.c (composite_type): Likewise.
9526 (comp_target_types): Likewise.
9527 (build_array_ref): Likewise.
9528 (pointer_diff): Likewise.
9529 (build_unary_op): Likewise.
9530 (build_conditional_expr): Likewise.
9531 (build_c_cast): Likewise.
9532 (convert_for_assignment): Likewise.
9533 (maybe_warn_string_init): Likewise.
9534 (digest_init): Likewise.
9535 (pop_init_level): Likewise.
9536 (set_init_index): Likewise.
9537 (c_finish_goto_label): Likewise.
9538 (c_finish_return): Likewise.
9539 (do_case): Likewise.
9540 (build_binary_op): Likewise.
9541 * c-parser.c (static): Likewise.
9542 (c_parser_external_declaration): Likewise.
9543 (c_parser_declaration_or_fndef): Likewise.
9544 (c_parser_static_assert_declaration_no_se): Likewise.
9545 (c_parser_enum_specifier): Likewise.
9546 (c_parser_struct_or_union_specifier): Likewise.
9547 (c_parser_struct_declaration): Likewise.
9548 (c_parser_alignas_specifier): Likewise.
9549 (c_parser_braced_init): Likewise.
9550 (c_parser_initelt): Likewise.
9551 (c_parser_compound_statement_nostart): Likewise.
9552 (c_parser_conditional_expression): Likewise.
9553 (c_parser_alignof_expression): Likewise.
9554 (c_parser_postfix_expression): Likewise.
9555 (c_parser_postfix_expression_after_paren_): Likewise.
9556 (c_parser_objc_class_instance_variables): Likewise.
9557 (c_parser_objc_method_definition): Likewise.
9558 (c_parser_objc_methodprotolist): Likewise.
9559
9560 2012-04-22 Ian Lance Taylor <iant@google.com>
9561
9562 * godump.c (go_output_typedef): Dump size of structs.
9563
9564 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
9565
9566 Correcting transform_to_exit_first_loop + fix to PR46886
9567 * tree-parloops.c (transform_to_exit_first_loop): Remove
9568 setting of number of iterations according to the loop pattern.
9569 Duplicate from entry to exit->src instead of loop->latch.
9570 (pallelize_loops): Remove the condition preventing do-while loops.
9571 * tree-cfg.c (bool bb_in_region_p): New.
9572 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
9573 Adjust redirection of the duplicated iteration.
9574
9575 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
9576
9577 PR bootstrap/53021
9578 * rtl.def (ADDRESS): Use "i" rather than "w".
9579 * rtl.h (find_base_term): Delete.
9580 (may_be_sp_based_p): Declare.
9581 * rtl.c (rtx_code_size): Remove ADDRESS special case.
9582 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
9583 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
9584 * alias.c: ...here.
9585 (find_base_term): Make static.
9586 (may_be_sp_based_p): New function.
9587 * dse.c (record_store): Use it.
9588 * store-motion.c (store_killed_in_insn): Likewise.
9589
9590 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
9591
9592 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
9593
9594 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9595
9596 PR 35441
9597 * c-typeck.c (inform_declaration): New.
9598 (build_function_call_vec): Do not pretty-print
9599 expressions when caret is enabled.
9600 (convert_arguments): Use inform_declaration.
9601
9602 2012-04-20 Jim Meyering <meyering@redhat.com>
9603
9604 * genmodes.c (make_complex_modes): Don't truncate a mode name of
9605 length 7 or more when prepending a "C". Suggested by Richard Guenther.
9606
9607 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9608
9609 PR rtl-optimization/44214
9610 * fold-const.c (exact_inverse): New function.
9611 (fold_binary_loc): Fold vector and complex division by constant into
9612 multiply by recripocal with flag_reciprocal_math; fold vector division
9613 by constant into multiply by reciprocal with exact inverse.
9614
9615 2012-04-20 Jan Hubicka <jh@suse.cz>
9616
9617 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
9618 force flags.
9619 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
9620 (cgraph_remove_node): Update.
9621 (cgraph_mark_needed_node): Remove.
9622 (cgraph_mark_force_output_node): New.
9623 (dump_cgraph_node): Do not dump needed flag.
9624 (cgraph_node_cannot_be_local_p_1): Update.
9625 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
9626 * cgraph.h (symtab_node_base): Add force_output flag.
9627 (cgraph_node): Remove needed flag.
9628 (varpool_node): Remove force_output flag.
9629 (cgraph_mark_needed_node): Remove.
9630 (cgraph_mark_force_output_node): New.
9631 (cgraph_only_called_directly_or_aliased_p,
9632 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
9633 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
9634 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
9635 (cgraph_add_new_function): Update.
9636 (cgraph_mark_if_needed): Update.
9637 (verify_cgraph_node): Update.
9638 (cgraph_analyze_function): Alias target is reachable.
9639 (process_function_and_variable_attributes): Update: externally_visible
9640 flag makes function reachable.
9641 (cgraph_analyze_functions): Update dumping.
9642 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9643 input_overwrite_node, input_varpool_node): Update streaming.
9644 * lto-streamer-out.c (produce_symtab): Use force_output.
9645 * ipa.c (process_references): Weakrefs must be processed.
9646 (cgraph_remove_unreachable_nodes): Likewise; update for new
9647 force_output flag.
9648 (varpool_externally_visible_p): Weakrefs are externally visible
9649 even if they are not.
9650 (function_and_variable_visibility): Update; when processing alias
9651 pair force the targets to be output.
9652 (whole_program_function_and_variable_visility): Use
9653 mark_reachable_node.
9654 * trans-mem.c (ipa_tm_mark_needed_node): Remove
9655 (ipa_tm_mark_force_output_node): New function.
9656 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
9657 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
9658 aliases.
9659 * varasm.c (mark_decl_referenced): Update.
9660 (find_decl_and_mark_needed): Remove.
9661 (find_decl): New function.
9662 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
9663 alias targets as needed.
9664 (dump_tm_clone_pairs): Update.
9665 * tree-inline.c (copy_bb): Update check.
9666 * symtab.c (dump_symtab_base): Dump force_output.
9667 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
9668 * passes.c (execute_todo): Fix dumping.
9669 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
9670 (varpool_analyze_pending_decls): Alias target is reachable.
9671 (varpool_create_variable_alias): Finalize weakrefs.
9672
9673 2012-04-20 Jakub Jelinek <jakub@redhat.com>
9674
9675 PR bootstrap/53021
9676 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
9677 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
9678 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
9679 macros instead of constants.
9680 * dse.c (record_store): Check for SP ADDRESS by comparing
9681 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
9682 XEXP to be stack_pointer_rtx.
9683
9684 2012-04-20 Richard Guenther <rguenther@suse.de>
9685
9686 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
9687 update_call_from_tree when propagating into a call.
9688
9689 2012-04-20 Alan Modra <amodra@gmail.com>
9690
9691 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
9692 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
9693 sp_offset to frame_off. Move world save code earlier.
9694
9695 2012-04-20 Richard Guenther <rguenther@suse.de>
9696
9697 PR tree-optimization/53050
9698 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
9699 Do only one transform on COND_EXPRs at the same time.
9700
9701 2012-04-19 Jan Hubicka <jh@suse.cz>
9702
9703 * symtab.c (dump_symtab_base): Revert accidental checkin.
9704
9705 2012-04-20 Alan Modra <amodra@gmail.com>
9706
9707 PR target/53040
9708 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
9709 static chain, set REST_INLINE_FPRS too.
9710
9711 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
9712
9713 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
9714 nodes.
9715
9716 2012-04-20 Richard Guenther <rguenther@suse.de>
9717
9718 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
9719 loops that can never run more often than the vectorization factor.
9720
9721 2012-04-19 Jan Hubicka <jh@suse.cz>
9722
9723 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
9724
9725 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
9726
9727 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
9728
9729 2012-04-19 Jim Meyering <meyering@redhat.com>
9730
9731 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
9732 We verified above that the string(including trailing NUL) fits in buf,
9733 so just use memcpy.
9734
9735 2012-04-19 Richard Guenther <rguenther@suse.de>
9736
9737 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
9738 for dumping DECL_SECTION_NAME.
9739
9740 2012-04-19 Michael Matz <matz@suse.de>
9741
9742 PR middle-end/52977
9743 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
9744 (struct tree_vector): Adjust GTY length.
9745 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
9746
9747 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
9748 members.
9749 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
9750 caller emitted the length calulation already.
9751 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
9752 before handling any of the fields for structs.
9753
9754 2012-04-19 Richard Guenther <rguenther@suse.de>
9755
9756 PR tree-optimization/53031
9757 * tree-vrp.c (adjust_range_with_scev): Revert back to
9758 using max_loop_iterations.
9759
9760 2012-04-19 Michael Matz <matz@suse.de>
9761
9762 * diagnostic.c (emit_diagnostic): Move va_end call after user
9763 of the va_list.
9764 (warning, warning_at, pedwarn, permerror): Ditto.
9765
9766 2012-04-19 Richard Guenther <rguenther@suse.de>
9767
9768 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
9769 array access.
9770
9771 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
9772
9773 PR target/53033
9774 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
9775 the case *(X+const).
9776
9777 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9778
9779 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
9780
9781 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9782
9783 PR c/52283/37985
9784 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
9785 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
9786
9787 2012-04-19 Richard Guenther <rguenther@suse.de>
9788
9789 PR rtl-optimization/44688
9790 * loop-iv.c (determine_max_iter): Only return max_iter.
9791 (iv_number_of_iterations): Also use the recorded loop bound
9792 on the maximum number of iterations.
9793 * loop-unroll.c (decide_unroll_runtime_iterations): Use
9794 max_iter to avoid unrolling loops that do not roll.
9795 (decide_unroll_stupid): Likewise.
9796
9797 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
9798
9799 * targhooks.c (default_case_values_threshold): Fix code style nit.
9800
9801 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
9802 case range and type folding from here...
9803 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
9804 type, as documented in tree.def.
9805
9806 2012-04-18 Jan Hubicka <jh@suse.cz>
9807
9808 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
9809 Declare.
9810 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
9811 cgraph hash and same comdat groups.
9812 (cgraph_optimize): Verify symbol table.
9813 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
9814 (dissolve_same_comdat_group_list): Work on symtab nodes.
9815 (function_and_variable_visibility): Dissolve variable same comdat group
9816 lists, too.
9817 * symtab.c: Include timevar.h
9818 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
9819
9820 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
9821
9822 * tree-switch-conversion.c (info): Remove global pass info.
9823 (check_range, check_process_case, check_final_bb, create_temp_arrays,
9824 free_temp_arrays, gather_default_values, build_constructors,
9825 array_value_type, build_one_array, build_arrays, gen_def_assigns,
9826 fix_phi_nodes, gen_inbound_check): Pass info around from ...
9827 (process_switch): ... here. Unify message format. Return a const
9828 char pointer to the failure reason message.
9829 (do_switchconv): Unify message format. Update process_switch usage.
9830
9831 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
9832 * tree-cfg.c (edge_to_cases): Fix documentation.
9833
9834 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
9835
9836 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
9837
9838 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9839
9840 PR tree-optimization/52976
9841 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
9842 (possibly_move_powi): New function.
9843 (rewrite_expr_tree): Call possibly_move_powi.
9844 (rewrite_expr_tree_parallel): Likewise.
9845 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
9846 call add_to_ops_vec instead.
9847
9848 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9849
9850 PR tree-optimization/52976
9851 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
9852 (decrement_power): Likewise.
9853 (propagate_op_to_single_use): Likewise.
9854 (zero_one_operation): Handle __builtin_pow* calls in linearized
9855 expression trees; factor logic into propagate_op_to_single_use.
9856 (undistribute_ops_list): Allow operands with repeat counts > 1.
9857
9858 2012-04-18 Richard Guenther <rguenther@suse.de>
9859
9860 PR tree-optimization/44688
9861 * cfgloop.h (record_niter_bound): Declare.
9862 * tree-ssa-loop-niter.c (record_niter_bound): Export.
9863 Update the estimation with the upper bound here...
9864 (estimate_numbers_of_iterations_loop): ... instead of here.
9865 Do not forcefully reset a recorded upper bound.
9866 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
9867 Record the maximum number of loop iterations of the prologue loop.
9868
9869 2012-04-18 Jan Hubicka <jh@suse.cz>
9870
9871 * lto-symtab.c (lto_cgraph_replace_node): Update.
9872 * cgraphbuild.c (record_reference, record_type_list,
9873 record_eh_tables, mark_address, mark_load, mark_store): Update.
9874 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
9875 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
9876 Update.
9877 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
9878 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
9879 * reload.c: Fix typo in comment.
9880 * rtlanal.c: Likewise.
9881 * tree-emultls.c (gen_emutls_addr): Update.
9882 * ipa-reference.c (analyze_function): Update.
9883 * cgraphunit.c (cgraph_analyze_function,
9884 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
9885 Update.
9886 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
9887 (ipa_remove_reference): Likewise.
9888 (ipa_remove_all_refering): Rename to ...
9889 (ipa_remove_all_referring): ... this one; update.
9890 (ipa_dump_references): Update.
9891 (ipa_dump_referring): Update.
9892 (ipa_clone_references): Update.
9893 (ipa_clone_refering): Rename to ...
9894 (ipa_clone_referring): ... this one; update.
9895 (ipa_ref_cannot_lead_to_return): Update.
9896 (ipa_ref_has_aliases_p): Update.
9897 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
9898 forward typedefs.
9899 (ipa_ref_type): Remove.
9900 (ipa_ref_ptr_u): Remove.
9901 (ipa_ref): Remove referencing, refered, refered_index, refering_type
9902 and refered_type; add referring, referred and referred_index.
9903 (ipa_ref_list): Rename refering to referring.
9904 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
9905 ipa_clone_references, ipa_clone_referring): Update prototypes.
9906 * lto-cgraph.c (referenced_from_other_partition_p): Update.
9907 (lto_output_ref): Update.
9908 (add_references): Update.
9909 (input_varpool_node): Update.
9910 (input_refs): Update.
9911 * ipa-ref-inline.h (ipa_ref_node): Update.
9912 (ipa_ref_varpool_node): Update.
9913 (ipa_ref_referring_node): Update.
9914 (ipa_ref_referring_varpool_node): Update.
9915 (ipa_ref_referring_ref_list): Update.
9916 (ipa_ref_referred_ref_list): Update.
9917 (ipa_ref_list_first_referring): Update.
9918 (ipa_empty_ref_list): Update.
9919 (ipa_ref_list_refering_iterate): Rename to ...
9920 (ipa_ref_list_referring_iterate): ... this one.
9921 * cse.c: Update comment.
9922 * ipa-utils.c (ipa_reverse_postorder): Update.
9923 * tree-ssa-alias.c: Update.
9924 * ipa-inline.c (reset_edge_caches): Update.
9925 (update_caller_keys): Update.
9926 * ipa-inline.h: Update comments.
9927 * jump.c: Update comment.
9928 * alias.c: Likewise.
9929 * ipa.c (process_references): Update.
9930 (cgraph_remove_unreachable_nodes): Likewise.
9931 (ipa_discover_readonly_nonaddressable_var): Likewise.
9932 (cgraph_address_taken_from_non_vtable_p): Likewise.
9933 * trans-mem.c (ipa_tm_execute): Update.
9934 * simplify-rtx.c: Fix comment.
9935 * rtl.c: Fix comment.
9936 * symtab.c (symtab_unregister_node): Update.
9937 * varpool.c (dump_varpool_node): Update.
9938 (varpool_analyze_pending_decls): Update.
9939 (assemble_aliases): Update.
9940 (varpool_for_node_and_aliases): Update.
9941
9942 2012-04-18 Richard Guenther <rguenther@suse.de>
9943
9944 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
9945 use_undefined_p parameter.
9946 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9947 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9948 Likewise.
9949 (estimate_numbers_of_iterations): Likewise.
9950 (estimated_loop_iterations): Adjust.
9951 (max_loop_iterations): Likewise.
9952 (scev_probably_wraps_p): Likewise.
9953 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9954 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
9955 not max_loop_iterations.
9956 (execute_vrp): Remove explicit number of iterations estimation.
9957
9958 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
9959
9960 * config/i386/linux-common.h: New.
9961
9962 * config.gcc: Add i386/linux-common.h before
9963 all i386/linux.h and i386/linux64.h usages.
9964
9965 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
9966 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
9967 * config/i386/gnu-user64.h: Likewise.
9968
9969 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
9970 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
9971 (GNU_USER_TARGET_MATHFILE_SPEC): New.
9972 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
9973
9974 2012-04-18 Jan Hubicka <jh@suse.cz>
9975
9976 * cgraph.c (cgraph_node_name): Remove.
9977 (dump_cgraph_node): Use dump_symtab_base; reformat.
9978 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
9979 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
9980 Declare.
9981 (cgraph_node_name, varpool_node_name): Remove.
9982 (cgraph_node_asm_name, varpool_node_asm_name,
9983 cgraph_node_name, varpool_node_name): New.
9984 * tree-pass.h (TODO_dump_cgraph): Rename to ...
9985 (TODO_dump_symtab): ... this one.
9986 * ipa-cp (pass_ipa_cp): Update.
9987 * ia-reference.c (generate_summary, read_write_all_from_decl,
9988 propagate, ipa_reference_read_optimization_summary): Update.
9989 * cgraphunit.c (cgraph_analyze_functions): Update.
9990 (cgraph_optimize): Update.
9991 * ipa-ref.c (ipa_dump_references): Update.
9992 (ipa_dump_refering): Update.
9993 * ipa-inline.c (pass_ipa_inline): Update.
9994 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
9995 * ipa.c (pass_ipa_function_visibility,
9996 pass_ipa_whole_program_visibility): Update.
9997 * tree-sra.c (pass_early_ipa_sra): Update.
9998 * symtab.c: Include langhooks.h
9999 (symtab_node_asm_name): New.
10000 (symtab_node_name): New.
10001 (symtab_type_names): New static var.
10002 (dump_symtab_base): New.
10003 (dump_symtab_node, dump_symtab): New.
10004 (debug_symtab_node, debug_symtab): New.
10005 * tree-ssa-structalias.c: Dump symbol table.
10006 * pases.c (execute_todo): Handle TODO_dump_symtab instead
10007 of TODO_dump_cgraph.
10008 * varpoo.c (varpool_node_name): Remove.
10009 (dump_varpool_node): Use dump_symtab_base; reformat.
10010
10011 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
10012
10013 * doc/invoke.texi (Language Independent Options): @item should be
10014 before @opindex.
10015
10016 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10017
10018 PR bootstrap/53021
10019 * rtl.c (rtx_code_size): Handle ADDRESS.
10020
10021 2012-04-17 Tom de Vries <tom@codesourcery.com>
10022
10023 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
10024 is not a STMT_LIST.
10025
10026 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
10027
10028 PR target/53020
10029 * config/i386/sync.md (atomic_<code><mode>): Rename to
10030 atomic_<logic><mode>.
10031
10032 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10033
10034 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
10035 * alias.c (reg_base_value): Expand and update comment.
10036 (arg_base_value): New variable.
10037 (unique_id): Move up file.
10038 (unique_base_value, unique_base_value_p, known_base_value_p): New.
10039 (find_base_value): Use arg_base_value and known_base_value_p.
10040 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
10041 (find_base_term): Use known_base_value_p.
10042 (base_alias_check): Use unique_base_value_p.
10043 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
10044 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
10045
10046 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
10047
10048 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
10049
10050 2012-04-17 Michael Matz <matz@suse.de>
10051
10052 PR tree-optimization/18437
10053 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
10054 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
10055 (vect_check_strided_load): Declare.
10056 * tree-vect-data-refs.c (vect_check_strided_load): New function.
10057 (vect_analyze_data_refs): Use it to accept strided loads.
10058 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
10059
10060 2012-04-17 Richard Guenther <rguenther@suse.de>
10061
10062 PR middle-end/53011
10063 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
10064 loops when redirecting an entry or latch edge.
10065
10066 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
10067
10068 * sel-sched.c (sel_global_init): Revert previous change.
10069
10070 2012-04-17 Richard Guenther <rguenther@suse.de>
10071
10072 * tree-flow.h (array_at_struct_end_p): Move declaration ...
10073 * tree.h (array_at_struct_end_p): ... here.
10074 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
10075 * expr.c (array_at_struct_end_p): ... here. Rewrite.
10076
10077 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
10078
10079 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
10080 COST_TABLE): Remove.
10081 (estimate_case_costs): Remove.
10082 (expand_case): Do not call estimate_case_costs
10083 to set use_cost_table.
10084 (balance_case_nodes): Do not use use_cost_table.
10085
10086 2012-04-16 Jan Hubicka <jh@suse.cz>
10087
10088 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
10089 (hash_node, eq_node): Remove.
10090 (cgraph_create_node): Do not handle hashtable.
10091 (cgraph_get_node): Remove.
10092 (cgraph_insert_node_to_hashtable): Remove.
10093 (hash_node_by_assembler_name): Remove.
10094 (eq_assembler_name): Remove.
10095 (cgraph_node_for_asm): Rewrite.
10096 (cgraph_find_replacement_node): Break out from ...
10097 (cgraph_remove_node): ... here; do not maintain hashtables.
10098 (change_decl_assembler_name): Remove.
10099 (cgraph_clone_node): Do not maintain hashtables.
10100 * cgraph.h (const_symtab_node): New typedef.
10101 (cgraph_insert_node_to_hashtable): Remove.
10102 (symtab_get_node, symtab_node_for_asm,
10103 symtab_insert_node_to_hashtable): Declare.
10104 (cgraph_find_replacement_node): Declare.
10105 (cgraph_get_node, varpool_get_node): Turn into inlines.
10106 (cgraph, varpool): Work sanely on NULL pointers.
10107 (FOR_EACH_SYMBOL): New walker.
10108 * ipa-inline-transform.c (save_inline_function_body): Use
10109 symtab_insert_node_to_hashtable.
10110 * symtab.c: Include ggc.h and diagnostics.h
10111 (symtab_hash, assembler_name_hash): New static vars;
10112 (hash_node, eq_node, hash_node_by_assembler_name,
10113 eq_assembler_name, insert_to_assembler_name_hash,
10114 unlink_from_assembler_name_hash): New.
10115 (symtab_register_node): Update hashtables.
10116 (symtab_insert_node_to_hashtable): New.
10117 (symtab_unregister_node): Update hashtables.
10118 (symtab_get_node): New.
10119 (symtab_node_for_asm): New.
10120 (change_decl_assembler_name): New.
10121 * Makefile.in (symtab.o): Needs GTY.
10122 * varpool.c (varpool_hash): Remove.
10123 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
10124 (varpool_node): Rewrite using varpool_get_node.
10125 (varpool_remove_node): DO not maintain hashtables.
10126 (varpool_node_for_asm): Rewrite.
10127
10128 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
10129
10130 * doc/invoke.texi: Copy-edit to put verbs in the present tense
10131 when describing the current behavior of GCC.
10132
10133 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
10134
10135 * genemit.c (gen_exp): Remove ADDRESS handling.
10136 * genoutput.c (scan_operands): Likewise.
10137 * genpeep.c (match_rtx): Likewise.
10138 * genrecog.c (add_to_sequence): Likewise.
10139
10140 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
10141
10142 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
10143
10144 2012-04-16 Martin Jambor <mjambor@suse.cz>
10145
10146 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
10147 bit-fields.
10148
10149 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
10150
10151 PR target/51819
10152 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
10153 hints for 'A' operand types.
10154
10155 2012-04-16 Jan Hubicka <jh@suse.cz>
10156
10157 * cgraph.h (symtab_node_base): Add next and previous pointers.
10158 (cgraph_node): Remove next and preivous pointers.
10159 (varpool_node): Likewise; remove next/previous GTY marker;
10160 it is not type safe.
10161 (symtab_node_def): Update GTY marker
10162 (x_cgraph_nodes, cgraph_nodes): Remove.
10163 (symtab_nodes): New function.
10164 (cgraph_order): Rename to ...
10165 (symtab_order): ... this one.
10166 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
10167 Declare.
10168 (x_varpool_nodes, varpool_nodes): Remove.
10169 (FOR_EACH_STATIC_VARIABLE): Update.
10170 (symtab_function_p, symtab_variable_p): New function.
10171 (FOR_EACH_VARIABLE): Update.
10172 (varpool_first_variable, varpool_next_variable): New functions.
10173 (FOR_EACH_VARIABLE): Update.
10174 (cgraph_first_defined_function): Update.
10175 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
10176 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
10177 (cgraph_first_function, cgraph_next_function): New.
10178 (FOR_EACH_FUNCTION): Update.
10179 (cgraph_first_function_with_gimple_body,
10180 cgraph_next_function_with_gimple_body): Update.
10181 * symtab.c: New file.
10182 * cgraph.c: Update copyright dates.
10183 (x_cgraph_nodes, cgraph_order): Remove.
10184 (NEXT_FREE_NODE): Update.
10185 (SET_NEXT_FREE_NODE): New.
10186 (cgraph_create_node_1): Remove common code.
10187 (cgraph_create_node): Remove common code; call symtab_register_node.
10188 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
10189 (cgraph_add_asm_node): Update.
10190 (cgraph_clone_node): Register new node.
10191 * cgraphunit.c (process_function_and_variable_attributes): Update.
10192 (cgraph_analyze_functions): Update.
10193 (cgraph_analyze_functions): Update.
10194 (cgraph_output_in_order): Update.
10195 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
10196 Update.
10197 * ipa-inline.c (recursive_inlining): Update.
10198 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
10199 * ipa.c (cgraph_remove_unreachable_nodes): Update.
10200 * Makefile.in: Add symtab.o
10201 * varpool.c (x_varpool_nodes): Remove
10202 (varpool_node): Remove common code; call symtab_register_node.
10203 (varpool_remove_node): Remove common code; call symtab_unregister_node.
10204
10205 2012-04-16 Richard Guenther <rguenther@suse.de>
10206
10207 PR middle-end/52977
10208 * tree.h (VECTOR_CST_NELTS): Adjust.
10209 (struct tree_vector): Add explicit length field.
10210 (make_vector_stat): Declare.
10211 (make_vector): Define.
10212 * tree.c (make_vector_stat): New function.
10213 (build_vector_stat): Use it.
10214 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
10215
10216 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10217
10218 PR tree-optimization/52976
10219 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
10220 (undistribute_ops_list): Ops with repeat counts aren't eligible for
10221 undistribution.
10222 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
10223
10224 2012-04-16 Jan Hubicka <jh@suse.cz>
10225
10226 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
10227 New macros.
10228 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
10229 walkers to walk cgraph and varpool.
10230 * cgraph.c (cgraph_node_for_asm): Likewise.
10231 (dump_cgraph): Likewise.
10232 * value-prof.c (init_node_map): Likewise.
10233 * tree.c (free_lang_data_in_cgraph): Likewise.
10234 * tree-emutls.c: (ipa_lower_emutls): Likewise.
10235 * ipa-reference.c (generate_summary, propagate): Likewise.
10236 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
10237 cgraph_mark_functions_to_output, cgraph_output_in_order,
10238 output_weakrefs, cgraph_materialize_all_clones,
10239 cgraph_optimize): Likewise.
10240 * lto-cgraph.c (merge_profile_summaries): Likewise.
10241 (input_cgraph): Likewise.
10242 * ipa-pure-const.c (generate_summary): Likewise.
10243 (propagate): Likwise.
10244 * ipa-utils.c (ipa_reduced_postorder): Likewise.
10245 (ipa_free_postorder_info): Likewise.
10246 (ipa_reverse_postorder): Likewise.
10247 * ipa-inline.c (ipa_inline): Likewise.
10248 * matrix-reorg.c (find_matrices_decl): Likewise.
10249 (matrix_reorg): Likewise.
10250 * tree-vectorizer.c (increase_alignment): Likewise.
10251 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
10252 (function_and_variable_visibility): Likewise.
10253 (whole_program_function_and_variable_visibility): Likewise.
10254 (ipa_cdtor_merge): Likewise.
10255 * trans-mem.c (ipa_tm_execute): Likewise.
10256 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
10257 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
10258 (ipa_print_all_params): Likewise.
10259 (ipa_update_after_lto_read): Likewise.
10260 * tree-profie.c (tree_profiling): Likewise.
10261 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10262 * passes.c (dump_passes): Likewise.
10263 (do_per_function): Likewise.
10264 (ipa_write_summaries): Likewise.
10265 * varpool.c (dump_varpool): Likewise.
10266 (varpool_node_for_asm): Likewise.
10267 (varpool_assemble_pending_decls): Likewise.
10268
10269 2012-04-16 Richard Guenther <rguenther@suse.de>
10270
10271 PR tree-optimization/52975
10272 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
10273 condition but always mark it with TRUTH_NOT_EXPR.
10274
10275 2012-04-16 Richard Guenther <rguenther@suse.de>
10276
10277 PR tree-optimization/52975
10278 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
10279 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
10280 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
10281 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
10282
10283 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
10284
10285 * config/i386/sse.md (ssse3_plusminus): New code iterator.
10286 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
10287 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
10288 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
10289 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
10290 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
10291 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
10292
10293 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
10294 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
10295 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
10296 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
10297 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
10298 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
10299
10300 (xop_plus): New code iterator.
10301 (macs): New code attribute.
10302 (macds): Ditto.
10303 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
10304 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
10305 iterator.
10306 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
10307 xop_plus code iterator.
10308 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
10309 xop_plus code iterator.
10310 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
10311 xop_plus code iterator.
10312 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
10313 xop_plus code iterator.
10314
10315 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
10316 any_extend code iterator.
10317 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
10318 any_extend code iterator.
10319 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
10320 any_extend code iterator.
10321 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
10322 any_extend code iterator.
10323 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
10324 any_extend code iterator.
10325 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
10326 any_extend code iterator.
10327
10328 2012-04-14 Tom de Vries <tom@codesourcery.com>
10329
10330 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
10331 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
10332 DELETED_LABEL note, and move it to ...
10333 * cfgrtl.c (delete_insn): ... here. Change return type to void.
10334 (delete_insn_and_edges): Likewise.
10335 (delete_insn_chain): Handle new return type of delete_insn. Delete
10336 chain backwards rather than forwards.
10337 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
10338 void.
10339 * cfglayout.c (fixup_reorder_chain): Delete unused label.
10340
10341 2012-04-14 Jan Hubicka <jh@suse.cz>
10342
10343 * cgraph.h: Update copyrights;
10344 (symtab_node): Turn to union typedef.
10345 (symtab_node_base): New structure.
10346 (symtab_type): Add SYMTAB_SYMBOL tag.
10347 (cgraph_node): Annotate some pinters with nested_ptr.
10348 (varpool_node): Likewise.
10349 (cgraph_local_info): Remove lto_file_data
10350 and externally_visible.
10351 (cgraph_node): Remove decl; same_comdat_group list;
10352 aux; ref_list; order; address_taken; reachable_from_other_parittion,
10353 in_other_partition; resolution.
10354 (varpool_node): Remove decl; same_comdat_group;
10355 ref_list; lto_file_data; aux; order; resolution; externally_visible;
10356 used_from_other_partition; in_other_partition.
10357 (symtab_node_def): New union.
10358 (cgraph, varpool): Update.
10359 (varpool_first_static_initializer, varpool_next_static_initializer,
10360 cgraph_only_called_directly_or_aliased_p,
10361 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
10362 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
10363 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
10364 field references.
10365 * cgraph.c: Likewise.
10366 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
10367 * cgraphbuild.c: Likewise.
10368 * lto-symtab.c: Likewise.
10369 * c-gimplify.c: Likewise.
10370 * value-prof.c: Likewise.
10371 * tree.c: Likewise.
10372 * ipa-cp.c: Likewise.
10373 * tree-emutls.c: Likewise.
10374 * ipa-inline-transform.c: Likwise.
10375 * ipa-reference.c: Likewise.
10376 * cgraphunit.c: Likewise.
10377 * ipa-ref.c: Likewise.
10378 * lto-cgraph.c: Likewise.
10379 * ipa-ref-inline.h: Likewise.
10380 * ipa-pure-const.c: Likewise.
10381 * lto-streamer-out.c: Likewise.
10382 * ipa-utils.c: Likewise.
10383 * ipa-inline.c: Likewise.
10384 * matrix-reorg.c: Likewise.
10385 * tree-eh.c: Likewise.
10386 * tree-vectorizer.c: Likewise.
10387 * ipa-split.c: Likewise.
10388 * ipa.c: Likewise.
10389 * trans-mem.c: Likewise.
10390 * ipa-inline-analysis.c: Likewise.
10391 * gimplify.c: Likewise.
10392 * cfgexpand.c: Likewise.
10393 * tree-sra.c: Likewise.
10394 * ipa-prop.c: Likewise.
10395 * varasm.c: Likewise.
10396 * tree-nested.c: Likewise.
10397 * tree-inline.c: Likewise.
10398 * tree-profile.c: Likewise.
10399 * tree-ssa-structalias.c: Likewise.
10400 * passes.c: Likewise.
10401 * varpool.c: Likewise.
10402
10403 2012-04-14 Tom de Vries <tom@codesourcery.com>
10404
10405 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
10406 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
10407 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
10408 of find_edge.
10409 (gsi_advance_fw_nondebug_nonlocal): New function.
10410 (local_def): Removed function.
10411 (same_succ_hash): Use stmt_local_def.
10412 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
10413 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
10414
10415 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
10416
10417 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
10418 and __ILP32__ for x32.
10419
10420 2012-04-13 Martin Jambor <mjambor@suse.cz>
10421
10422 PR middle-end/52939
10423 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
10424 fold_ctor_reference returns a zero constant.
10425
10426 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
10427
10428 * config.gcc: Add i386/gnu-user-common.h before all
10429 i386/gnu-user.h and i386/gnu-user64.h usages.
10430
10431 * config/i386/gnu-user-common.h: New.
10432
10433 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
10434 (CC1_SPEC): Likewise.
10435 (ENDFILE_SPEC): Likewise.
10436 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
10437 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
10438 (TARGET_OS_CPP_BUILTINS): Likewise.
10439 (LIBGCC2_HAS_TF_MODE): Likewise.
10440 (LIBGCC2_TF_CEXT): Likewise.
10441 (TF_SIZE): Likewise.
10442 (TARGET_ASM_FILE_END): Likewise.
10443 (STACK_CHECK_MOVING_SP): Likewise.
10444 (STACK_CHECK_STATIC_BUILTIN): Likewise.
10445 * config/i386/gnu-user64.h: Likewise.
10446
10447 2012-04-13 Martin Jambor <mjambor@suse.cz>
10448
10449 * expr.c (expand_expr_real_1): Pass type, not the expression, to
10450 set_mem_attributes for a memory temporary. Do not call the function
10451 for the memory temporary created for a bitfield.
10452
10453 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10454
10455 PR debug/48866
10456 * df.h (enum debug_temp_where): New.
10457 (dead_debug_init, dead_debug_finish) Declare.
10458 (dead_debug_add, dead_debug_insert_temp): Declare.
10459 (struct dead_debug_use, struct dead_debug): Moved from...
10460 * df-problems.c: ... here.
10461 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
10462 to a debug temp.
10463 (df_create_unused_note): Likewise.
10464 (df_set_dead_notes_for_mw): Move comment where it belongs.
10465 (dead_debug_init): Export.
10466 (dead_debug_reset_uses): New, factored out of...
10467 (dead_debug_finish): ...this. Export.
10468 (dead_debug_reset): Remove.
10469 (dead_debug_add): Export.
10470 (dead_debug_insert_before): Rename to...
10471 (dead_debug_insert_temp): ... this. Add where argument. Export.
10472 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
10473 Return insertion count.
10474 (df_note_bb_compute): Adjust.
10475 * dce.c (word_dce_process_block): Adjust dead debug uses.
10476 (dce_process_block): Likewise.
10477
10478 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10479
10480 * df-problems.c (df_note_bb_compute): Do not take note of
10481 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
10482
10483 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
10484
10485 PR debug/51570
10486 * var-tracking.c (expand_depth): New type.
10487 (onepart_aux, expand_loc_callback_data): Change depth type to it.
10488 (loc_exp_dep_alloc): Adjust initializer.
10489 (update_depth): Use new type. Add entryvals.
10490 (vt_expand_var_loc_chain): Take note of expansions with
10491 ENTRY_VALUEs, but don't accept them right away. Run an optional
10492 second pass accepting the minimum ENTRY_VALUE count found in the
10493 first pass.
10494 (vt_expand_loc_callback, INIT_ELCD): Adjust.
10495
10496 2012-04-13 Tom de Vries <tom@codesourcery.com>
10497
10498 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
10499 parameters vuse and vuse_escaped.
10500 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
10501 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
10502 vuse1 != vuse2.
10503
10504 2012-04-13 Richard Guenther <rguenther@suse.de>
10505
10506 PR tree-optimization/52969
10507 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
10508 the condition for the COND_EXPR and handle predicate negation
10509 by swapping the COND_EXPR arms.
10510
10511 2012-04-13 Nick Clifton <nickc@redhat.com>
10512
10513 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
10514 TODO_dump_func flag.
10515
10516 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
10517
10518 PR rtl-optimization/52203
10519 PR rtl-optimization/52715
10520
10521 Revert the 2012-03-07 fix for PR 52203.
10522 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
10523 the insn does not modify DFA right before issuing, adjust
10524 issue_rate accordingly.
10525
10526 2012-04-13 Richard Guenther <rguenther@suse.de>
10527
10528 PR c/52549
10529 * c-typeck.c (pointer_diff): Remove bogus assert.
10530
10531 2012-04-13 Richard Guenther <rguenther@suse.de>
10532
10533 PR c/52862
10534 * convert.c (convert_to_pointer): Remove special-casing of zero.
10535
10536 2012-04-13 Joey Ye <joey.ye@arm.com>
10537
10538 * config/arm/constraints.md (Pe): New constraint.
10539 * config/arm/arm.md: New split for imm 256-510.
10540
10541 2012-04-13 Terry Guo <terry.guo@arm.com>
10542
10543 * config/arm/arm-cores.def: Added core cortex-m0plus.
10544 * config/arm/arm-tune.md: Regenerated.
10545 * config/arm/arm-tables.opt: Regenerated.
10546 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
10547
10548 2012-04-13 Alan Modra <amodra@gmail.com>
10549
10550 PR target/52828
10551 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
10552 tie regs on destination of sets. Delete forward declaration.
10553 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
10554 (rs6000_emit_prologue): Likewise.
10555 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
10556 and gen_stack_tie.
10557 (is_mem_ref): Use tie_operand to recognise stack ties.
10558 * config/rs6000/predicates.md (tie_operand): New.
10559 * config/rs6000/rs6000.md (restore_stack_block): Generate new
10560 stack tie rtl.
10561 (restore_stack_nonlocal): Likewise.
10562 (stack_tie): Update.
10563 (frame_tie): Delete.
10564
10565 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10566
10567 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
10568 HOST_WIDE_INT_PRINT_DEC in format strings.
10569
10570 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
10571
10572 PR target/52932
10573 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
10574 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
10575 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
10576 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
10577 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
10578 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
10579 avx2_permvarv8si using VI4F_256 mode iterator.
10580 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
10581 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
10582 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
10583 gen_avx2_permvarv8sf.
10584 (expand_vec_perm_pshufb): Ditto.
10585
10586 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10587
10588 PR target/52775
10589 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
10590 the list of options to enable the FCFID instruction.
10591 (TARGET_EXTRA_BUILTINS): Adjust comment.
10592
10593 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10594
10595 PR tree-optimization/18589
10596 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
10597 (operand_entry): Add count field.
10598 (add_repeat_to_ops_vec): New function.
10599 (completely_remove_stmt): Likewise.
10600 (remove_def_if_absorbed_call): Likewise.
10601 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
10602 (acceptable_pow_call): New function.
10603 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
10604 entries with repeat counts when found.
10605 (repeat_factor_d): New struct and associated typedefs.
10606 (repeat_factor_vec): New static vector variable.
10607 (compare_repeat_factors): New function.
10608 (get_reassoc_pow_ssa_name): Likewise.
10609 (attempt_builtin_powi): Likewise.
10610 (reassociate_bb): Call attempt_builtin_powi.
10611 (fini_reassoc): Two new calls to statistics_counter_event.
10612
10613 2012-04-12 Richard Guenther <rguenther@suse.de>
10614
10615 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
10616 * cgraph.h (tree_rest_of_compilation): Remove.
10617 * cgraph.c (cgraph_add_new_function): Move ...
10618 * cgraphunit.c (cgraph_add_new_function): ... here.
10619 (tree_rest_of_compilation): Make static.
10620 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
10621 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
10622 gate_all_early_local_passes, execute_all_early_local_passes,
10623 pass_early_local_passes, gate_all_early_optimizations,
10624 pass_all_early_optimizations): Move ...
10625 * passes.c (gate_all_optimizations, pass_all_optimizations,
10626 gate_all_early_local_passes, execute_all_early_local_passes,
10627 pass_early_local_passes, gate_all_early_optimizations,
10628 pass_all_early_optimizations): ... here.
10629 * tree-optimize.c (execute_free_datastructures): Remove.
10630 * tree-flow.h (execute_free_datastructures): Remove.
10631 * tree-optimize.c (execute_init_datastructures,
10632 pass_init_datastructures): Move ...
10633 * tree-ssa.c (execute_init_datastructures,
10634 pass_init_datastructures): ... here.
10635 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
10636 execute_free_datastructures.
10637
10638 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
10639
10640 * dbgcnt.def (ira_move): New counter.
10641 * ira-int.h (ira_create_new_reg): Declare function.
10642 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
10643 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
10644 no longer static. All callers changed.
10645 * ira.c: Include "dbgcnt.h".
10646 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
10647 move_unallocated_pseudos): New static functions.
10648 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
10649 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
10650 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
10651 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
10652 to the pseudos generated in find_moveable_pseudos.
10653 * Makefile.in (ira.o): Add $(DBGCNT_H).
10654
10655 2012-04-12 Richard Guenther <rguenther@suse.de>
10656
10657 PR tree-optimization/52943
10658 * tree-chrec.h (chrec_is_positive): Remove.
10659 * tree-scalar-evolution.c (chrec_is_positive): Move ...
10660 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
10661 Return false for a constant zero instead of negative.
10662 (analyze_siv_subscript_cst_affine): Handle zero difference
10663 in the initial condition explicitely.
10664
10665 2012-04-12 Richard Guenther <rguenther@suse.de>
10666
10667 * tree-parloops.c (parallelize_loops): Also consult the upper
10668 bound for the number of iterations.
10669 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10670 (loop_prefetch_arrays): Likewise.
10671
10672 2012-04-12 Richard Guenther <rguenther@suse.de>
10673
10674 * cfgloop.h (estimated_loop_iterations_int): Ditch
10675 'conservative' parameter.
10676 (max_stmt_executions_int): Likewise.
10677 (estimated_loop_iterations): Likewise.
10678 (max_stmt_executions): Likewise.
10679 (max_loop_iterations): Declare.
10680 (max_loop_iterations_int): Likewise.
10681 (estimated_stmt_executions): Likewise.
10682 (estimated_stmt_executions_int): Likewise.
10683 * tree-ssa-loop-niter.c (estimated_loop_iterations):
10684 Split parts to ...
10685 (max_loop_iterations): ... this.
10686 (estimated_loop_iterations_int): Split parts to ...
10687 (max_loop_iterations_int): ... this.
10688 (max_stmt_executions_int): Split parts to ...
10689 (estimated_stmt_executions_int): ... this.
10690 (max_stmt_executions): Split parts to ...
10691 (estimated_stmt_executions): ... this.
10692 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
10693 * predict.c (predict_loops): Likewise.
10694 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
10695 (analyze_siv_subscript_cst_affine): Likewise.
10696 (compute_overlap_steps_for_affine_1_2): Likewise.
10697 (analyze_subscript_affine_affine): Likewise.
10698 (init_omega_for_ddr_1): Likewise.
10699 * tree-parloops.c (parallelize_loops): Likewise.
10700 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10701 (may_eliminate_iv): Likewise.
10702 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10703 (loop_prefetch_arrays): Likewise.
10704 * tree-vrp.c (adjust_range_with_scev): Likewise.
10705
10706 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
10707
10708 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
10709 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
10710 Fix line width.
10711 (dump_table): Use bool type for need_align and have_df variables.
10712 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
10713 (regs_used): Remove register modifier.
10714 (barrier_align): Move variables slot, credit, jump_to_next
10715 into if block above for loop. Use bool type for jump_to_next.
10716 (sh_function_arg): Use NULL_RTX instead of 0.
10717
10718 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
10719
10720 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
10721 (bswapsi2): New expander.
10722
10723 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10724
10725 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
10726 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
10727
10728 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10729
10730 PR rtl-optimization/52876
10731 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
10732 Don't call mark_reg_pointer for incompatible pointer sign extension.
10733
10734 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
10735 directly.
10736
10737 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
10738
10739 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
10740 comparisons against TYPE_PRECISION.
10741 * tree-ssa-forwprop.c (combine_conversions): Likewise.
10742
10743 2012-04-11 Xinliang David Li <davidxl@google.com>
10744
10745 * tree-passes.h: Remove TODO_dump_func.
10746 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
10747 * trans-mem.c: Remove TODO_dump_func.
10748 * ira.c: Remove TODO_dump_func.
10749
10750 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
10751
10752 * config/i386/i386.c (ix86_option_override_internal): Check
10753 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
10754 after TARGET_64BIT is updated.
10755
10756 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10757
10758 * config/sh/sh.h: Remove old secondary reload code.
10759
10760 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10761
10762 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
10763 (ready_reorder): ... this function.
10764
10765 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
10766
10767 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
10768 sched_init calls.
10769
10770 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
10771 insns so that no other insn is queued for a time before them.
10772
10773 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
10774 unknown.
10775
10776 2012-04-11 Richard Guenther <rguenther@suse.de>
10777
10778 PR middle-end/52621
10779 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
10780 consider loop nesting.
10781 (evolution_function_is_univariate_p): Properly check the remainder
10782 for chrecs.
10783
10784 2012-04-11 Richard Guenther <rguenther@suse.de>
10785
10786 PR middle-end/52918
10787 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
10788
10789 2012-04-11 Nick Clifton <nickc@redhat.com>
10790
10791 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
10792 information, if requested.
10793
10794 * config/rx/rx.c (rx_expand_prologue): Likewise.
10795
10796 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
10797 Michael Matz <matz@suse.de>
10798
10799 PR target/16458
10800 * rtlanal.c (unsigned_reg_p): New function.
10801 Update copyright notice dates.
10802 * rtl.h (unsigned_reg_p): Prototype it.
10803 Update copyright notice dates.
10804 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
10805 Update comment.
10806 * expr.c (expand_expr_real_1): Set register attributes.
10807 * stmt.c (expand_case): Likewise.
10808
10809 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10810
10811 PR target/50751
10812 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
10813 consider_sh2a and allow_zero.
10814 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
10815 (disp_addr_displacement): New function.
10816 (sh_address_cost): Use disp_addr_displacement function instead
10817 of DISP_ADDR_OFFSET.
10818 (sh_legitimate_address_p): Adapt to changed
10819 sh_legitimate_index_p declaration.
10820 (sh_find_mov_disp_adjust): Remove HImode check.
10821 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
10822 disp_addr_displacement and max_mov_insn_displacement.
10823 (max_mov_insn_displacement): Remove HImode check.
10824 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
10825 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
10826 * config/sh/constraints.md (K05, K13): New constraints.
10827 (K12): Correct comment.
10828 (Sdd): Do not use DISP_ADDR_P macro.
10829 (Snd, Sbw): Use satisfies_constraint_Sdd.
10830 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
10831 (*extendhisi2_compact, movhi_i): Remove.
10832 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
10833 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
10834 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
10835 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
10836 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
10837 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
10838 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
10839 CONST_OK_FOR_Kxx.
10840 Add new peepholes for HImode displacement addressing.
10841
10842 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
10843
10844 * config/sh/sh.h (SIDI_OFF): Remove.
10845 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
10846 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
10847 or operand_subword.
10848
10849 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
10850
10851 PR target/52624
10852 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
10853 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
10854 * doc/md.texi (Standard Names): Add bswap.
10855 * builtin-types.def (BT_UINT16): New primitive type.
10856 (BT_FN_UINT16_UINT16): New function type.
10857 * builtins.def (BUILT_IN_BSWAP16): New.
10858 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
10859 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
10860 expand_builtin_bswap.
10861 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
10862 (fold_builtin_1): Likewise.
10863 (is_inexpensive_builtin): Likewise.
10864 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
10865 missing bits for bswap to libcall code.
10866 * tree.c (build_common_tree_nodes): Build uint16_type_node.
10867 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
10868 (uint16_type_node): New define.
10869 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
10870 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
10871 above builtin.
10872 (rs6000_init_builtins): Likewise.
10873 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
10874
10875 2012-04-11 Tristan Gingold <gingold@adacore.com>
10876
10877 * doc/extend.texi (Type Attributes): Move paragraph.
10878
10879 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10880
10881 PR 24985
10882 * diagnostic.h (show_caret): Declare.
10883 (caret_max_width): Declare.
10884 (diagnostic_show_locus): Declare.
10885 * diagnostic.c (diagnostic_initialize): Initialize to false.
10886 (diagnostic_show_locus): New.
10887 (diagnostic_report_diagnostic): Call it.
10888 (getenv_columns): New.
10889 (adjust_line): New.
10890 (diagnostic_set_caret_max_width): New.
10891 * input.c (read_line): New.
10892 (location_get_source_line): New.
10893 * input.h (location_get_source_line): Declare.
10894 * toplev.c (general_init): Initialize show_caret from options.
10895 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
10896 * opts.c (common_handle_option): Likewise.
10897 * pretty-print.h (pp_get_prefix): New.
10898 (pp_base_get_prefix): New.
10899 * common.opt (fdiagnostics-show-caret): New option.
10900 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
10901
10902 2012-04-11 Richard Guenther <rguenther@suse.de>
10903
10904 PR rtl-optimization/52881
10905 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
10906
10907 2012-04-11 Richard Guenther <rguenther@suse.de>
10908
10909 PR tree-optimization/52912
10910 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
10911 manipulation code we are threading through a loop header
10912 to an exit destination.
10913
10914 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
10915
10916 * tree.h (warn_if_unused_value): Move declaration from here.
10917 * stmt.c (warn_if_unused_value): Move definition from here.
10918
10919 2012-04-10 Michael Matz <matz@suse.de>
10920
10921 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
10922 grouped_stores.
10923 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
10924 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
10925 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
10926 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
10927 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10928 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10929 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10930 (vect_record_strided_load_vectors): Rename to
10931 vect_record_grouped_load_vectors.
10932 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
10933 Rename use of above macros.
10934 (vect_verify_datarefs_alignment): Ditto.
10935 (vector_alignment_reachable_p): Ditto.
10936 (vect_peeling_hash_get_lowest_cost): Ditto.
10937 (vect_enhance_data_refs_alignment): Ditto.
10938 (vect_analyze_group_access): Ditto and rename stride to groupsize.
10939 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
10940 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
10941 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
10942 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
10943 (vect_record_strided_load_vectors): Rename to
10944 vect_record_grouped_load_vectors.
10945 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
10946 (destroy_loop_vec_info): Ditto.
10947 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
10948 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
10949 (vect_analyze_slp): Ditto.
10950 (new_bb_vec_info): Ditto.
10951 (destroy_bb_vec_info): Ditto.
10952 (vect_schedule_slp_instance): Ditto and rename strided_store to
10953 grouped_store.
10954 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
10955 vect_cost_group_size.
10956 (vect_model_store_cost): Rename use of above macros and call
10957 to vect_cost_strided_group_size.
10958 (vect_model_load_cost): Ditto.
10959 (vectorizable_store): Ditto, rename strided_store to grouped_store
10960 and calls to renamed tree-vectorizer.h functions.
10961 (vectorizable_load): Ditto.
10962 (vect_transform_stmt): Rename use of above macros and strided_store
10963 to grouped_store.
10964
10965 2012-04-10 Jan Hubicka <jh@suse.cz>
10966
10967 * cgraph.h: Remove misledaing comment on ipa-ref.h.
10968 (symtab_type): New enum.
10969 (symtab_node): New structure.
10970 (cgraph_node, varpool_node): Add symbol base type.
10971 (cgraph, varpool): New accestor functions.
10972 * cgraph.c (cgraph_create_node_1): Set symbol type.
10973 * varpool.c (varpool_node): Set symbol type.
10974
10975 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
10976 Richard Sandiford <rdsandiford@googlemail.com>
10977
10978 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
10979
10980 2012-04-10 Richard Guenther <rguenther@suse.de>
10981
10982 PR middle-end/52888
10983 * gimple-low.c (gimple_check_call_args): Properly account for
10984 compatible aggregate types.
10985
10986 2012-04-10 Richard Guenther <rguenther@suse.de>
10987
10988 * toplev.h (tree_rest_of_compilation): Remove.
10989 * tree-optimize.c (tree_rest_of_compilation): Likewise.
10990 * cgraph.h (tree_rest_of_compilation): Declare.
10991 * tree-optimize.c (tree_rest_of_compilation): Move ...
10992 * cgraphunit.c (tree_rest_of_compilation): ... here.
10993 * cgraph.c (cgraph_add_new_function): Adjust.
10994 * Makefile.in (tree-optimize.o): Adjust.
10995 (cgraphunit.o): Likewise.
10996
10997 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
10998
10999 PR tree-optimization/52870
11000 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
11001 presumed pattern statement is within the same loop or basic block.
11002
11003 2012-04-10 Tristan Gingold <gingold@adacore.com>
11004
11005 * gengtype.c (main): Make uintptr_t a known type.
11006
11007 2012-04-10 Richard Guenther <rguenther@suse.de>
11008
11009 * tree-pass.h (tree_lowering_passes): Remove.
11010 * tree-optimize.c (tree_lowering_passes): Remove.
11011 * cgraph.c (cgraph_add_new_function): Inline relevant parts
11012 of tree_lowering_passes, avoid redundant call of early local passes.
11013 * cgraphunit.c (cgraph_lower_function): Fold into ...
11014 (cgraph_analyze_function): ... its single caller. Inline
11015 relevant parts of tree_lowering_passes.
11016
11017 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
11018
11019 PR other/52777
11020 * config/pa/pa.opt: Remove SIO and GNU_LD.
11021
11022 2012-04-09 Jan Hubicka <jh@suse.cz>
11023
11024 PR lto/52722
11025 PR lto/51765
11026 PR lto/52634
11027 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
11028 boundary, add its target too.
11029 * lto.c (add_references_to_partition): Add also aliased nodes.
11030 (add_cgraph_node_to_partition,
11031 add_varpool_node_to_partition): Work on nodes, not functions/variables;
11032 when adding alias, add also the aliased object.
11033
11034 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
11035
11036 PR target/52883
11037 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
11038 VOIDmode immediate operands.
11039 * config/i386/constraints.md (Wz): New constraint.
11040 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
11041
11042 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
11043
11044 PR target/52717
11045 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
11046 the DECL generated for the special GOT helper.
11047
11048 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
11049
11050 * config/sh/constraints.md: Update list of constraints in
11051 comment block.
11052 (Sr0): Remove unused memory constraint.
11053
11054 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11055
11056 * tree-pretty-print.h: Update comment.
11057
11058 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
11059
11060 * config/sh/sh.md: Use braced string notation where applicable.
11061 (*prefetch_i4, prefetch_m2a): Merge into ...
11062 (*prefetch): ... this new insn.
11063
11064 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11065
11066 * config/sh/sh.h (high_life_started): Remove
11067 * config/sh/predicates.md (general_movdst_operand): Use
11068 'reload_in_progress' instead of 'high_life_started'.
11069 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
11070 divsi_inv_fp): Likewise.
11071
11072 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11073
11074 * config/sh/sh-protos.h (prepare_move_operands): Return void
11075 instead of int.
11076 * config/sh/sh.c (prepare_move_operands): Likewise.
11077 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
11078
11079 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
11080
11081 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
11082 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
11083 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
11084 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
11085 commutative_float_operator, noncommutative_float_operator,
11086 sh_handle_pragma): Remove.
11087
11088 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
11089
11090 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
11091 Use @option markup on command-line options. Use @samp markup on
11092 literal keywords to options. Use @code markup on code fragments.
11093 Use other markup in preference to quotation marks in the text.
11094 Add markup to some passages without any.
11095
11096 2012-04-06 Mike Stump <mikestump@comcast.net>
11097
11098 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
11099
11100 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11101
11102 * config/sh/sh.c (hi_const): Remove.
11103 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
11104 of hi_const.
11105
11106 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11107
11108 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
11109 to bool.
11110 * config/sh/sh.c (sh_expand_t_scc): Likewise.
11111 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
11112 calling sh_expand_t_scc.
11113
11114 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
11115
11116 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
11117 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
11118 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
11119 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
11120 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
11121 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
11122 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
11123 sh2a_is_function_vector_call): Use bool as return type.
11124 (sh_pass_in_reg_p): Remove.
11125 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
11126 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
11127 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
11128 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
11129 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
11130 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
11131 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
11132 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
11133 sh_loads_bankedreg_p): Use bool as return type.
11134 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
11135 'register' modifier.
11136
11137 2012-04-06 Matt Turner <mattst88@gmail.com>
11138
11139 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
11140
11141 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
11142
11143 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
11144 of the destination isn't also a FP_REGS register.
11145
11146 2012-04-05 Teresa Johnson <tejohnson@google.com>
11147 H.J. Lu <hongjiu.lu@intel.com>
11148
11149 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
11150 * config/i386/i386.md (move immediate to memory peephole2):
11151 Add cases for HImode move when LCP stall avoidance is needed.
11152 * config/i386/i386.c (initial_ix86_tune_features): Initialize
11153 X86_TUNE_LCP_STALL entry.
11154
11155 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
11156
11157 PR target/52882
11158 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
11159 CONST_INT operands, zero-extended with AND.
11160
11161 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
11162
11163 PR target/50751
11164 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
11165 first argument instead of mode size. Move displacement calculations
11166 to ...
11167 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
11168 ... these new functions.
11169 (disp_adjust): Remove max_mov_disp field.
11170 (sh_legitimate_index_p): Use max_mov_insn_displacement and
11171 mov_insn_alignment_mask.
11172 (sh_address_cost): Use max_mov_insn_displacement.
11173
11174 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
11175
11176 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
11177 (arch_enabled): Handle new arch types.
11178 (one_cmpldi2): Add NEON support.
11179
11180 2012-04-05 Richard Guenther <rguenther@suse.de>
11181
11182 * gimple.c (walk_gimple_op): Compute val_only for the LHS
11183 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
11184 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
11185 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
11186 ... here and make static.
11187 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
11188 Remove.
11189
11190 2012-04-05 Richard Guenther <rguenther@suse.de>
11191
11192 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
11193 basic-block before removing it.
11194
11195 2012-04-05 Richard Guenther <rguenther@suse.de>
11196
11197 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
11198 version namespace as we release the freelist.
11199
11200 2012-04-05 Richard Guenther <rguenther@suse.de>
11201
11202 * tree-nrv.c (tree_nrv): Release VDEFs.
11203 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11204 (sra_modify_assign): Likewise.
11205 * tree-vect-stmts.c (vect_remove_stores): Likewise.
11206 * tree-vect-loop.c (vect_transform_loop): Likewise.
11207 * tree-ssa-dom.c (optimize_stmt): Likewise.
11208 * tree-vect-slp.c (vect_schedule_slp): Likewise.
11209 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
11210
11211 2012-04-05 Richard Guenther <rguenther@suse.de>
11212
11213 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
11214 cleanup.
11215 * gimple.h (gsi_remove): Adjust.
11216 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
11217 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
11218 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
11219 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
11220 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
11221 * tree-ssa-pre.c (eliminate): Likewise.
11222
11223 2012-04-04 Mike Stump <mikestump@comcast.net>
11224
11225 * doc/rtl.texi (const_double): Document as sign-extending.
11226 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
11227 * emit-rtl.c (immed_double_int_const): Refine to state the
11228 value is signed.
11229 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
11230 CONST_DOUBLE integers.
11231 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
11232 negative values are converted. Fix conversions bigger than
11233 HOST_BITS_PER_WIDE_INT.
11234 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
11235 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
11236 * explow.c (plus_constant_mode): Add.
11237 (plus_constant): Implement with plus_constant_mode.
11238 * rtl.h (plus_constant_mode): Add.
11239
11240 2012-04-04 Richard Guenther <rguenther@suse.de>
11241
11242 PR tree-optimization/52808
11243 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
11244 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
11245
11246 2012-04-04 Tristan Gingold <gingold@adacore.com>
11247
11248 * expr.c (expand_expr_real_2): Handle larger sizetype in
11249 POINTER_PLUS_EXPR.
11250
11251 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11252
11253 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
11254 to m2a-single instead of m2e.
11255
11256 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
11257
11258 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
11259 Change type of BITOFFSET to signed. Make sure the lower bound of
11260 the computed range is non-negative by adjusting OFFSET and BITPOS.
11261 (expand_assignment): Adjust call to get_bit_range.
11262
11263 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
11264
11265 * h8300/h8300.c (h8300_current_function_monitor_function_p):
11266 New function. Added to check monitor functions.
11267 (h8300_option_override): Modified to generate error/warning
11268 messages for invalid combinations of different command line
11269 options.
11270 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
11271 save EXR on stack for monitor function in case of H8S target
11272 when "-mno-exr" is passed.
11273 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
11274 Add prototype.
11275 * doc/invoke.texi: Document H8S options.
11276
11277 2012-04-03 Tristan Gingold <gingold@adacore.com>
11278
11279 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
11280 of gcc_AC_FUNC_MMAP_BLACKLIST.
11281 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
11282 * Makefile.in (aclocal_deps): Add mmap.m4.
11283 * configure: Regenerate.
11284 * aclocal.m4: Regenerate.
11285
11286 2012-04-03 Richard Guenther <rguenther@suse.de>
11287
11288 PR tree-optimization/52808
11289 * tracer.c (tail_duplicate): Return whether we have duplicated
11290 any block.
11291 (tracer): If we have duplicated any block, cleanup the CFG.
11292 * cfghooks.c (duplicate_block): If we duplicated a loop
11293 header but not its loop, destroy the loop because it now has
11294 multiple entries.
11295 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
11296 the cfg manipulation routines we are not creating a multiple
11297 entry loop.
11298
11299 2012-04-03 Tristan Gingold <gingold@adacore.com>
11300
11301 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
11302 'byte' alignment.
11303 (vms_c_common_override_options): Allow parameterless variadic
11304 functions.
11305
11306 2012-04-03 Jakub Jelinek <jakub@redhat.com>
11307
11308 PR tree-optimization/52835
11309 * tree-data-ref.c (build_rdg): Return NULL if
11310 compute_data_dependences_for_loop failed.
11311
11312 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
11313
11314 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
11315 for REAL_CST as well.
11316 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
11317 In the bitfield case, if the value is a REAL_CST, convert it first to
11318 an INTEGER_CST.
11319
11320 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
11321
11322 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
11323 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
11324 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
11325
11326 * config/i386/biarchx32.h: New.
11327
11328 2012-04-02 Anatoly Sokolov <aesok@post.ru>
11329
11330 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
11331 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11332 (arm_preferred_reload_class): New function.
11333
11334 2012-04-02 Richard Guenther <rguenther@suse.de>
11335
11336 PR tree-optimization/52756
11337 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
11338 (thread_through_loop_header): After threading through the loop latch
11339 remove the split part from the loop and clear further threading
11340 opportunities that would create a multiple entry loop.
11341
11342 2012-04-02 Richard Guenther <rguenther@suse.de>
11343
11344 PR rtl-optimization/52800
11345 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
11346 CLEANUP_CFG_CHANGED.
11347
11348 2012-04-02 Richard Guenther <rguenther@suse.de>
11349
11350 PR middle-end/52803
11351 * loop-init.c (gate_handle_loop2): Destroy loops here if
11352 we don't enter RTL loop optimizers.
11353
11354 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
11355
11356 Partially revert:
11357 2012-03-29 Richard Guenther <rguenther@suse.de>
11358
11359 * rtl.h (extended_count): Remove.
11360 * combine.c (extended_count): Remove.
11361
11362 2012-04-02 Dodji Seketeli <dodji@redhat.com>
11363
11364 PR c++/40942
11365 * pt.c (more_specialized_fn): Don't apply decay conversion to
11366 types of function parameters.
11367
11368 2012-04-02 Tristan Gingold <gingold@adacore.com>
11369
11370 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
11371 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
11372 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
11373 (ggc_pch_this_base): Use uintptr_t instead of size_t.
11374
11375 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
11376
11377 PR bootstrap/52784
11378 * config/i386/i386.c (ix86_option_override_internal): Don't
11379 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
11380
11381 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
11382
11383 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
11384 (stmt_can_make_abnormal_goto): Use it.
11385 (is_ctrl_altering_stmt): Likewise.
11386
11387 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
11388 Kaz Kojima <kkojima@gcc.gnu.org>
11389
11390 * config/sh/sh.c (push_regs): Skip banked registers when
11391 resbank attribute is specified.
11392 (sh_expand_epilogue): Likewise.
11393
11394 2012-03-30 Richard Henderson <rth@redhat.com>
11395
11396 PR debug/52727
11397 * combine-stack-adj.c (prev_active_insn_bb): New.
11398 (next_active_insn_bb): New.
11399 (force_move_args_size_note): New.
11400 (combine_stack_adjustments_for_block): Use it.
11401
11402 2012-03-30 Richard Henderson <rth@redhat.com>
11403
11404 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
11405 (ix86_expand_vector_init_duplicate): Initialize it.
11406 (expand_vec_perm_palignr): Likewise.
11407 (ix86_expand_vec_perm_const): Likewise.
11408 (ix86_vectorize_vec_perm_const_ok): Likewise.
11409 (expand_vec_perm_blend): Use it.
11410 (expand_vec_perm_vpermil): Likewise.
11411 (expand_vec_perm_pshufb): Likewise.
11412 (expand_vec_perm_1): Likewise.
11413 (expand_vec_perm_pshuflw_pshufhw): Likewise.
11414 (expand_vec_perm_interleave2): Likewise.
11415 (expand_vec_perm_vpermq_perm_1): Likewise.
11416 (expand_vec_perm_vperm2f128): Likewise.
11417 (expand_vec_perm_interleave3): Likewise.
11418 (expand_vec_perm_vperm2f128_vblend): Likewise.
11419 (expand_vec_perm_vpshufb2_vpermq): Likewise.
11420 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
11421 (expand_vec_perm_broadcast): Likewise.
11422 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
11423
11424 2012-03-30 Richard Henderson <rth@redhat.com>
11425
11426 * dwarf2out.c (gen_variable_die): Initialize off.
11427
11428 2012-03-30 Tristan Gingold <gingold@adacore.com>
11429
11430 * config/vms/vms-f.c: New file.
11431 * config/vms/t-vms (vms-f.o): New rule.
11432 * config.gcc (*-*-*vms*): Define fortran_target_objs.
11433
11434 2012-03-30 Richard Guenther <rguenther@suse.de>
11435
11436 PR tree-optimization/52754
11437 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
11438 propagate arbitrary addresses into really plain dereferences.
11439
11440 2012-03-30 Richard Guenther <rguenther@suse.de>
11441
11442 PR middle-end/52772
11443 * except.c (emit_to_new_bb_before): Move loop updating ...
11444 (dw2_build_landing_pads): ... here. Use a proper block for
11445 querying the loop father.
11446
11447 2012-03-30 Tristan Gingold <gingold@adacore.com>
11448
11449 * config/ia64/ia64.c (ia64_section_type_flags): Remove
11450 common_object attribute handling.
11451 (SECTION_VMS_OVERLAY): Remove
11452 (ia64_vms_common_object_attribute): Replace abort with an assert.
11453 Do not set DECL_SECTION_NAME.
11454 (ia64_vms_output_aligned_decl_common): Handle common_object
11455 attribute.
11456 (ia64_vms_elf_asm_named_section): Remove.
11457 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
11458
11459 2012-03-30 Richard Guenther <rguenther@suse.de>
11460
11461 PR middle-end/52786
11462 * double-int.c (rshift_double): Remove not needed cast.
11463
11464 2012-03-30 Richard Guenther <rguenther@suse.de>
11465
11466 * tree-affine.h (print_aff): Remove.
11467 * tree-affine.c (print_aff): Make static.
11468 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
11469 (get_references_in_stmt): Likewise.
11470 (print_direction_vector): Likewise.
11471 (print_dir_vectors): Likewise.
11472 (print_dist_vectors): Likewise.
11473 (dump_subscript): Likewise.
11474 (dump_ddrs): Likewise.
11475 (dump_dist_dir_vectors): Likewise.
11476 (dump_data_references): Likewise.
11477 (dump_data_dependence_relation): Likewise.
11478 (dump_data_dependence_direction): Likewise.
11479 (dump_rdg_vertex): Likewise.
11480 (dump_rdg_component): Likewise.
11481 (debug_ddrs): Declare.
11482 (struct data_ref_loc_d): Move ...
11483 * tree-data-ref.c (struct data_ref_loc_d): ... here.
11484 (get_references_in_stmt): Make static.
11485 (dump_data_references): Likewise.
11486 (dump_subscript): Likewise.
11487 (print_direction_vector): Likewise.
11488 (print_dir_vectors): Likewise.
11489 (print_dist_vectors): Likewise.
11490 (dump_data_dependence_relation): Likewise.
11491 (dump_dist_dir_vectors): Likewise.
11492 (dump_ddrs): Likewise.
11493 (dump_rdg_vertex): Likewise.
11494 (dump_rdg_component): Likewise.
11495 (debug_ddrs): New function.
11496 (access_matrix_get_index_for_parameter): Remove.
11497
11498 2012-03-30 Tristan Gingold <gingold@adacore.com>
11499
11500 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
11501 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
11502 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
11503 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
11504 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
11505 (vms_patch_builtins): Handle new flags
11506 * config/vms/vms-crtlmap.map: Completed using nm on
11507 c and math system libraries.
11508 * config/vms/make-crtlmap.awk: Handle any number of flags.
11509
11510 2012-03-30 Martin Jambor <mjambor@suse.cz>
11511
11512 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
11513 is a builtin_stack_save in a dominating BB.
11514
11515 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
11516
11517 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
11518 crossing 128bit lane boundary.
11519
11520 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
11521
11522 * ira-color.c (setup_left_conflict_sizes_p): Process all
11523 conflicting objects.
11524
11525 2012-03-29 Jakub Jelinek <jakub@redhat.com>
11526
11527 PR tree-optimization/52760
11528 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
11529 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
11530
11531 2012-03-29 Richard Guenther <rguenther@suse.de>
11532
11533 * cgraph.h (cgraph_materialize_all_clones): Remove.
11534 (reset_inline_failed): Likewise.
11535 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
11536 * cgraphbuild.c (reset_inline_failed): Remove.
11537 * rtl.h (cse_main): Remove.
11538 (extended_count): Likewise.
11539 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
11540 (cse_main): Make static.
11541 * combine.c (extended_count): Remove.
11542 (dump_combine_stats): Mark as DEBUG_FUNCTION.
11543 * basic-block.h (reorder_basic_blocks): Remove.
11544 * bb-reorder.c (reorder_basic_blocks): Make static.
11545 * Makefile.in (dse.o): Remove dse.h dependency.
11546 * dse.h: Remove.
11547 * dse.c (gate_dse): Remove.
11548 (clear_alias_mode_eq): Likewise.
11549 (clear_alias_mode_hash): Likewise.
11550 (dse_record_singleton_alias_set): Likewise.
11551 (dse_invalidate_singleton_alias_set): Likewise.
11552
11553 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
11554
11555 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
11556 crtbegin_so%O%s for -shared.
11557 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
11558
11559 2012-03-29 Richard Guenther <rguenther@suse.de>
11560
11561 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
11562 (add_to_value): Remove.
11563 (print_value_expressions): Likewise.
11564 * tree-ssa-pre.c (add_to_value): Make static.
11565 (print_value_expressions): Likewise.
11566 * gimple.h (gimple_adjust_this_by_delta): Remove.
11567 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
11568
11569 2012-03-29 Richard Guenther <rguenther@suse.de>
11570
11571 PR middle-end/50708
11572 * double-int.h (rshift_double): Remove.
11573 * double-int.c (lshift_double): Use absu_hwi to make count positive.
11574 (rshift_double): Make static, take unsigned count argument,
11575 remove handling of negative count argument.
11576 (double_int_rshift): Dispatch to lshift_double.
11577
11578 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
11579
11580 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
11581 OPTION_MASK_ABI_64.
11582
11583 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
11584 (SPEC_X32): Likewise.
11585 (MULTILIB_DEFAULTS): Likewise.
11586
11587 * config/i386/i386.c (isa_opts): Remove -m64.
11588 (ix86_target_string): Properly handle -m32/-m64/-mx32.
11589 (ix86_option_override_internal): Properly
11590 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
11591 handle -m32, -m64 and -mx32.
11592
11593 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
11594 with OPTION_ABI_X32. Moved after TARGET_LP64.
11595 (TARGET_LP64): Changed to OPTION_ABI_64.
11596
11597 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
11598 (mx32): Replace ISA_X32 with ABI_X32.
11599
11600 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
11601
11602 * tree.c (tree_size) <VECTOR_CST>: New case.
11603
11604 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
11605
11606 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
11607 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
11608
11609 2012-03-28 Jakub Jelinek <jakub@redhat.com>
11610
11611 PR middle-end/52691
11612 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
11613 __builtin_va_start to __builtin_next_arg if the latter is
11614 builtin_decl_explicit_p rather than when it is not.
11615
11616 PR middle-end/52750
11617 * tree-vect-generic.c (vector_element): Perform multiplication
11618 for pos in bitsizetype type instead of idx type.
11619
11620 2012-03-28 Richard Guenther <rguenther@suse.de>
11621
11622 * loop-init.c (loop_optimizer_init): If loops are preserved
11623 perform incremental initialization of required loop features.
11624 (loop_optimizer_finalize): If loops are to be preserved only
11625 clean up optional loop features.
11626 (rtl_loop_done): Forcefully free loops here.
11627 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
11628 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
11629 to existing loops.
11630 (construct_init_block): Likewise.
11631 (construct_exit_block): Likewise.
11632 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
11633 the CFG after expanding.
11634 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
11635 If we needed to calculate them, free them afterwards.
11636 * tree-pass.h (PROP_loops): New define.
11637 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
11638 * basic-block.h (CLEANUP_CFG_CHANGED): New.
11639 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
11640 (cleanup_cfg): If we did something and have loops around, fix them up.
11641 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
11642 with CLEANUP_CFG_CHANGED.
11643 * cfghooks.c (merge_blocks): If we merge a loop header into
11644 its predecessor, update the loop structure.
11645 (duplicate_block): If we copy a loop latch, adjust loop state
11646 to note we may have multiple latches.
11647 (delete_basic_block): Mark loops for fixup if we remove a loop.
11648 * cfganal.c (forwarder_block_p): Protect loop latches, headers
11649 and preheaders.
11650 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
11651 (cfg_layout_can_merge_blocks_p): Likewise.
11652 * cprop.c (bypass_block): If we create a loop with multiple
11653 entries, mark it for removal.
11654 * except.c (emit_to_new_bb_before): Add the new basic-block
11655 to existing loops.
11656 * tree-eh.c (lower_resx): Likewise.
11657 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
11658 (expand_omp_taskreg): Likewise.
11659 * tree-inline.c (initialize_cfun): Likewise.
11660 * tree-mudflap.c (add_bb_to_loop): Prototype.
11661 (mf_build_check_statement_for): Properly add new basic-blocks
11662 to existing loops.
11663 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
11664 if we remove a loop.
11665 (thread_through_loop_header): Likewise.
11666 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
11667 new basic-blocks to existing loops.
11668 (expand_transaction): Likewise.
11669 * Makefile.in (except.o): Add $(CFGLOOP_H).
11670 (expr.o): Likewise.
11671 (cgraph.o): Likewise.
11672 (cprop.o): Likewise.
11673 (cfgexpand.o): Likewise.
11674 (cfganal.o): Likewise.
11675 (trans-mem.o): Likewise.
11676 (tree-eh.o): Likewise.
11677
11678 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
11679
11680 PR target/52692
11681 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
11682 (avr_builtin_decl): New static function.
11683 (struct avr_builtin_description, avr_bdesc): Move up.
11684 Add GTY marker. Add field fndecl. Remove redundant field id.
11685 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
11686 (avr_expand_builtin): Code cleanup because .id is removed.
11687
11688 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
11689
11690 PR target/52737
11691 * config.gcc (tm_file): Remove avr/multilib.h.
11692
11693 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
11694
11695 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
11696 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
11697 * config/avr/t-avr: Remove generation of multilib.h.
11698 * config/avr/t-multilib: Regenerate.
11699 * config/avr/multilib.h: Remove.
11700 * config/avr/avr.opt (-msp8): New option.
11701 (avr_sp8): New variable.
11702 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
11703 * config/avr/avr.h (AVR_HAVE_SPH): New define.
11704 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
11705 (avr_device_to_sp8): New prototype.
11706 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
11707 (DRIVER_SELF_SPECS): New define.
11708 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
11709 __AVR_SP8__, __AVR_HAVE_SPH__.
11710 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
11711 AVR_HAVE_8BIT_SP to decide if SP_H is present.
11712 (avr_file_start): Ditto.
11713
11714 2012-03-28 Jakub Jelinek <jakub@redhat.com>
11715
11716 PR target/52736
11717 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
11718 instead of 8 in adjust_address.
11719
11720 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
11721
11722 PR middle-end/51893
11723 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
11724 targets.
11725
11726 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
11727
11728 PR target/50751
11729 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
11730 Rearrange conditional logic. Move displacement address calculations
11731 to ...
11732 (sh_find_mov_disp_adjust): ... this new function.
11733
11734 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
11735
11736 * config/arm/arm.opt (mapcs): Remove MaskExists.
11737 * config/cris/linux.opt (mno-gotplt): Likewise.
11738 * config/i386/i386.opt (mhard-float): Likewise.
11739 (msse4): Likewise.
11740 (mno-sse4): Likewise.
11741 * config/m68k/m68k.opt (mhard-float): Likewise.
11742 * config/mep/mep.op (mcop32): Likewise.
11743 * config/pa/pa-hpux.opt (msio): Likewise.
11744 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
11745 * config/picochip/picochip.opt (mlittle): Likewise.
11746 * config/sh/sh.opt (mrenesas): Likewise.
11747 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
11748 * config/sparc/sparc.opt (mhard-float): Likewise.
11749 * config/v850/v850.opt (mv850es): Likewise.
11750 * config/vax/vax.opt (mg-float): Likewise.
11751
11752 2012-03-27 Martin Jambor <mjambor@suse.cz>
11753
11754 PR middle-end/52693
11755 * tree-sra.c (sra_modify_assign): Do not call
11756 load_assign_lhs_subreplacements when working with an unscalarizable
11757 region.
11758
11759 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
11760
11761 PR target/52698
11762 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
11763 New prototype.
11764 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
11765 * config/i386/i386.c: Include reload.h.
11766 (ix86_legitimize_reload_address): New function.
11767
11768 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
11769
11770 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
11771 hasn't been allocated. Define a target macro for Mask and
11772 InverseMask if it hasn't been defined. Remove MaskExists handling.
11773
11774 * doc/options.texi: Remove MaskExists.
11775
11776 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
11777
11778 PR target/52667
11779 * config/sh/sh.c (find_barrier): Add equality check of last_got
11780 to avoid going above orig insn. Update comments.
11781
11782 2012-03-27 Richard Guenther <rguenther@suse.de>
11783
11784 PR middle-end/52720
11785 * fold-const.c (try_move_mult_to_index): Handle &x.array more
11786 explicitely.
11787
11788 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
11789
11790 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
11791 of a unit before computing the offset in units.
11792 * expr.c (get_bit_range): Return the null range if the enclosing record
11793 is part of a larger bit field.
11794
11795 2012-03-27 Tristan Gingold <gingold@adacore.com>
11796
11797 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
11798 * config/ia64/ia64.md: Remove mode in template.
11799 Sign extend operand in expand_simple_binop.
11800 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
11801 CASE_VECTOR_MODE instead of TARGET_ILP32.
11802 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
11803
11804 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
11805
11806 * varasm.c (assemble_external): #if 0 out the new assert from the
11807 previous commit, it breaks the Java and Go front ends.
11808
11809 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
11810
11811 * toplev.c (check_global_declaration_1): Do not call assemble_external.
11812 * expr.c (emit_block_move_libcall_fn): Likewise.
11813 (clear_storage_libcall_fn): Likewise.
11814 (expand_expr_addr_expr_1): Likewise.
11815 (expand_expr_real_1): Likewise.
11816 * calls.c (rtx_for_function_call): Likewise.
11817
11818 * varasm.c (assemble_external): Assert this function is only called
11819 during or after expanding to RTL.
11820
11821 2012-03-26 Martin Jambor <mjambor@suse.cz>
11822
11823 PR tree-optimization/50052
11824 * tree-sra.c (tree_non_aligned_mem_p): Removed.
11825 (tree_non_aligned_mem_for_access_p): Likewise.
11826 (build_accesses_from_assign): Removed strict alignment requirements
11827 checks.
11828 (access_precludes_ipa_sra_p): Likewise.
11829
11830 2012-03-26 Richard Guenther <rguenther@suse.de>
11831
11832 PR tree-optimization/52701
11833 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
11834 compute and set the evolution part of PHI nodes.
11835
11836 2012-03-26 Richard Guenther <rguenther@suse.de>
11837
11838 PR tree-optimization/52721
11839 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
11840
11841 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
11842
11843 PR tree-optimization/52686
11844 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11845 WIDEN_LSHIFT_EXPR.
11846
11847 2012-03-26 Tristan Gingold <gingold@adacore.com>
11848
11849 * config/alpha/vms.h (LINK_SPEC): Simplify.
11850 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
11851 (NAME__MAIN, SYMBOL__MAIN): Remove.
11852 (VMS_DEBUG_MAIN_POINTER): Remove.
11853 * config/ia64/vms.h: Likewise.
11854 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
11855 code to vms.c. Call vms_start_function.
11856 * config/ia64/ia64.c (ia64_start_function): Likewise.
11857 * config/vms/vms-protos.h (vms_start_function): Declare.
11858 * config/vms/vms.c (vms_start_function): New function.
11859 * config/vms/vms.h (MATH_LIBRARY): Define.
11860 (VMS_DEBUG_MAIN_POINTER): Define.
11861
11862 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
11863
11864 PR rtl-optimization/52629
11865 * reload1.c (count_pseudo): Short-circuit common case.
11866 (count_spilled_pseudo): Return early for pseudos without hard regs.
11867 Assert that the pseudo has got a hard reg before manipulating it.
11868
11869 2012-03-24 Jan Hubicka <jh@suse.cz>
11870
11871 PR lto/51663
11872 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
11873 (decide_is_variable_needed): Do not handle toplevel reorder here.
11874 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
11875 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
11876 even at -O0.
11877
11878 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
11879
11880 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
11881 and str_bitsize instead of more convoluted expressions.
11882
11883 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
11884
11885 PR target/52610
11886 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
11887
11888 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
11889
11890 PR target/52656
11891 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
11892
11893 2012-03-23 Martin Jambor <mjambor@suse.cz>
11894
11895 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
11896
11897 2012-03-23 Richard Guenther <rguenther@suse.de>
11898
11899 PR tree-optimization/52678
11900 * tree-vectorizer.h (struct _stmt_vec_info): Add
11901 loop_phi_evolution_part member.
11902 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
11903 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
11904 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
11905 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11906 Use the cached evolution part and the PHI nodes value from
11907 the loop preheader edge instead of re-analyzing the evolution.
11908
11909 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11910
11911 * config/mips/mips-tables.opt: Update.
11912 * config/mips/mips.md (processor): Add xlp.
11913 * config/mips/mips-cpus.def: Add xlp.
11914 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
11915 5KF for now.
11916 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
11917 * doc/invoke.texi: Mention XLP.
11918
11919 2012-03-22 Jakub Jelinek <jakub@redhat.com>
11920
11921 PR middle-end/52547
11922 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
11923 on any new_local_var_chain vars declared during recursing on
11924 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
11925
11926 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
11927
11928 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
11929 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
11930 (ASM_OUTPUT_LOCAL): Ditto.
11931 (ASM_OUTPUT_COMMON): Remove.
11932 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
11933 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
11934
11935 2012-03-22 Jan Hubicka <jh@suse.cz>
11936
11937 PR middle-end/51737
11938 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
11939 parameter.
11940 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
11941 * ipa-inline-transform.c (save_inline_function_body): Remove
11942 copied clone if needed.
11943 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
11944
11945 2012-03-22 Richard Guenther <rguenther@suse.de>
11946
11947 PR middle-end/52666
11948 * fold-const.c (fold_ternary_loc): Fix typo.
11949
11950 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
11951
11952 PR target/52496
11953 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
11954 (unspecv): Add UNSPECV_MEMORY_BARRIER.
11955 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
11956 (delay_cycles_1, delay_cycles_2): Ditto.
11957 (delay_cycles_3, delay_cycles_4): Ditto.
11958 (nopv, *nopv): Ditto.
11959 (sleep, *sleep): Ditto.
11960 (wdr, *wdr): Ditto.
11961
11962 2012-03-22 Richard Guenther <rguenther@suse.de>
11963
11964 PR tree-optimization/52548
11965 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
11966 because of clobbers.
11967 (prune_clobbered_mems): New function.
11968 (compute_antic_aux): Use it to prune ANTIC_OUT.
11969 (compute_partial_antic_aux): Use it to prune PA_IN.
11970 (compute_avail): Only insert expressions into EXP_GEN that are not
11971 invalidated when translated up to the beginning of the block.
11972
11973 2012-03-22 Richard Guenther <rguenther@suse.de>
11974
11975 PR tree-optimization/52638
11976 * tree-vect-stmts.c (vect_init_vector_1): New function, split
11977 out from ...
11978 (vect_init_vector): ... here. Handle scalar vector inits.
11979 (vect_get_vec_def_for_operand): Adjust.
11980 (vectorizable_load): Likewise.
11981
11982 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
11983
11984 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
11985 (alpha*-*-freebsd*): Ditto.
11986 (alpha*-*-netbsd*): Ditto.
11987 (alpha*-*-openbsd*): Ditto.
11988 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
11989 (DWARF2_DEBUGGING_INFO): Remove.
11990 (PREFERRED_DEBUGGING_TYPE): Remove.
11991 (ASM_FINAL_SPEC): Remove.
11992 (IDENT_ASM_OP): Remove.
11993 (ASM_OUTPUT_IDENT): Remove.
11994 (SKIP_ASM_OP): Remove.
11995 (ASM_OUTPUT_SKIP): Remove.
11996 (ALIGN_ASM_OP): Remove.
11997 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
11998 (ASM_OUTPUT_CASE_LABEL): Remove.
11999 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
12000 (COMMON_ASM_OP): Remove.
12001 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
12002 (ASCII_DATA_ASM_OP): Remove.
12003 (READONLY_DATA_SECTION_ASM_OP): Remove.
12004 (INIT_SECTION_ASM_OP): Remove.
12005 (FINI_SECTION_ASM_OP): Remove.
12006 (ASM_SECTION_START_OP): Remove.
12007 (ASM_OUTPUT_SECTION_START_FILE): Remove.
12008 (TARGET_ASM_NAMED_SECTION): Remove.
12009 (TARGET_ASM_SELECT_SECTION): Remove.
12010 (MAKE_DECL_ONE_ONLY): Remove.
12011 (TYPE_ASM_OP): Remove.
12012 (SIZE_ASM_OP): Remove.
12013 (ASM_WEAKEN_LABEL): Remove.
12014 (TYPE_OPERAND_FMT): Remove.
12015 (ASM_DECLARE_RESULT): Remove.
12016 (ASM_DECLARE_OBJECT_NAME): Remove.
12017 (ASM_FINISH_DECLARE_OBJECT): Remove.
12018 (ELF_ASCII_ESCAPES): Remove.
12019 (ELF_STRING_LIMIT): Remove.
12020 (STRING_ASM_OP): Remove.
12021 (ASM_OUTPUT_EXTERNAL): Remove.
12022 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
12023 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
12024 before define.
12025 (ASM_DECLARE_FUNCTION_NAME): Ditto.
12026 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
12027 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
12028 (ASM_OUTPUT_SKIP): Ditto.
12029 (READONLY_DATA_SECTION_ASM_OP): Remove.
12030 (USER_LABEL_PREFIX): Remove.
12031 (ASM_OUTPUT_ASCII): Remove.
12032 (ASM_OUTPUT_CASE_LABEL): Remove.
12033 (NO_DOLLAR_IN_LABEL): Undefine.
12034
12035 2012-03-22 Richard Guenther <rguenther@suse.de>
12036
12037 PR tree-optimization/52459
12038 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
12039 PHI insertion for calls.
12040
12041 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
12042
12043 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
12044 find_sets_in_insn, canonicalize_insn): Split out from ...
12045 (cse_insn): ... here.
12046 (invalidate_from_clobbers): Take an insn instead of the pattern.
12047
12048 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
12049
12050 PR target/52479
12051 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
12052 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
12053 * config/sh/sh.md (sindf2, cosdf2): Remove.
12054
12055 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
12056
12057 PR target/52642
12058 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
12059 prologue for unwinder and profiler.
12060
12061 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
12062
12063 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
12064 Introduce emul_name to select the right linker emulation for
12065 powerpc64-*-freebsd*.
12066 * configure: Regenerate.
12067 * config.gcc: Add bits to support powerpc64-*-freebsd*.
12068 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
12069 * config/rs6000/freebsd64.h: New file.
12070 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
12071 POWERPC_FREEBSD.
12072 (rs6000_savres_strategy): Likewise.
12073 (rs6000_savres_routine_name): Likewise.
12074 (rs6000_elf_file_end): Likewise.
12075 * config/rs6000/t-freebsd64: New file.
12076 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
12077 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
12078
12079 * config/rs6000/freebsd64.h: Remove duplicated entries from last
12080 commit.
12081 * config/rs6000/t-freebsd64: Likewise.
12082
12083 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
12084
12085 PR rtl-optimization/52543
12086 PR target/52461
12087 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
12088 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
12089 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
12090 (avr_load_libgcc_p): Restrict to __flash loads.
12091 (avr_out_lpm): Only handle 1-byte loads from __flash.
12092 (avr_load_lpm): New function.
12093 (avr_find_unused_d_reg): Remove.
12094 (avr_out_lpm_no_lpmx): Remove.
12095 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
12096 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
12097 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
12098 (load_<mode>, load_<mode>_clobber): New insns.
12099 (mov<mode>): For multi-byte move from non-generic
12100 16-bit address spaces: Expand to load_<mode> resp.
12101 load_<mode>_clobber.
12102 (load<mode>_libgcc): Remove expander.
12103 (split-lpmx): Remove split.
12104
12105 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
12106
12107 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
12108 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
12109 All callers changed.
12110 (Fixed_core_reg): New feature.
12111 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
12112 disassembly.
12113 * neon-testgen.ml: Handle Fixed_core_reg.
12114
12115 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
12116
12117 * config/arm/arm.c (thumb2_reorg): Add complete support
12118 for 16-bit instructions.
12119 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
12120
12121 2012-03-21 Richard Guenther <rguenther@suse.de>
12122
12123 PR tree-optimizer/52636
12124 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
12125 to the appropriate type.
12126
12127 2012-03-21 Richard Guenther <rguenther@suse.de>
12128
12129 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
12130 dependencies.
12131 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
12132 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
12133 * passes.c (init_optimization_passes): Remove pass_init_function,
12134 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
12135 * tree-pass.h (pass_init_function): Remove.
12136 (pass_jump): Remove.
12137 (pass_initial_value_sets): Remove.
12138 (pass_unshare_all_rtl): Remove.
12139 * integrate.c (pass_initial_value_sets): Remove.
12140 * emit-rtl.c (pass_unshare_all_rtl): Remove.
12141 * tree.h (init_function_for_compilation): Remove.
12142 * function.c (init_function_for_compilation): Remove.
12143 (pass_init_function): Remove.
12144 * cfgcleanup.c (rest_of_handle_jump): Remove.
12145 (pass_jump): Remove.
12146
12147 2012-03-20 Jason Merrill <jason@redhat.com>
12148
12149 * tree-streamer-in.c (streamer_alloc_tree): Call
12150 ggc_alloc_zone_cleared_tree_node instead of
12151 ggc_alloc_zone_cleared_tree_node_stat.
12152
12153 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
12154
12155 * doc/extend.texi (Template Instantiation): Remove anachronisms.
12156
12157 2012-03-20 Jakub Jelinek <jakub@redhat.com>
12158
12159 PR target/52607
12160 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
12161 (ix86_expand_vec_perm_const_1): Call it.
12162
12163 * config/i386/i386.c (vselect_insn): New variable.
12164 (init_vselect_insn): New function.
12165 (expand_vselect, expand_vselect_insn): Add testing_p argument.
12166 Call init_vselect_insn if vselect_insn is NULL. Adjust
12167 PATTERN (vselect_insn), instead of creating a new insn each time,
12168 only emit a copy of it if not testing and recog has been successful.
12169 (expand_vec_perm_pshufb, expand_vec_perm_1,
12170 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
12171 callers.
12172
12173 PR target/52607
12174 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
12175 ("enabled" attribute): Handle avx2 and noavx2 isas.
12176 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
12177 New insns.
12178 (vec_dup<mode>): Add avx2 =x,x alternative.
12179 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
12180 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
12181 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
12182 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
12183 for V8SFmode.
12184 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
12185 if possible, handle also V8SFmode.
12186
12187 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
12188
12189 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
12190 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
12191 reg_or_zero_operand predicate.
12192 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
12193
12194 2012-03-20 Jakub Jelinek <jakub@redhat.com>
12195
12196 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
12197 If operand isn't UNSPEC, return 0.
12198
12199 2012-03-20 Richard Guenther <rguenther@suse.de>
12200
12201 * tree-pass.h (pass_rtl_eh): Remove.
12202 * except.c (gate_handle_eh): Likewise.
12203 (rest_of_handle_eh): Likewise.
12204 (pass_rtl_eh): Likewise.
12205 (finish_eh_generation): Export.
12206 * except.h (finish_eh_generation): Declare.
12207 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
12208 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
12209 after expanding stack alignment. Instead of compacting blocks
12210 call cleanup_cfg.
12211
12212 2012-03-20 Richard Guenther <rguenther@suse.de>
12213
12214 * stor-layout.c (finish_bitfield_representative): Fallback
12215 to conservative maximum size if the padding up to the next
12216 field cannot be computed as a constant.
12217 (finish_bitfield_layout): If we cannot compute the distance
12218 between the start of the bitfield representative and the
12219 bitfield member start a new representative.
12220 * expr.c (get_bit_range): The distance between the start of
12221 the bitfield representative and the bitfield member is zero
12222 if the field offsets are not constants.
12223
12224 2012-03-20 Tristan Gingold <gingold@adacore.com>
12225
12226 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
12227 convert in lowercase.
12228 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
12229 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
12230 * stor-layout.c (sizetype_tab): Adjust.
12231 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
12232 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
12233 instead of type_kind_last.
12234 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
12235 instead of size_int_kind.
12236 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
12237 * doc/tm.texi: Regenerate.
12238 * defaults.h (SIZETYPE): Provide a default value.
12239 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
12240 (SIZETYPE): Define.
12241
12242 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
12243
12244 * config/sh/sh.md: Use braced string notation where applicable.
12245
12246 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12247
12248 * config/i386/i386.md (allocate_stack): Simplify.
12249
12250 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12251
12252 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
12253 copy_to_mode_reg (Pmode, ...).
12254 (expand_builtin_frame_address): Ditto.
12255 * expr.c (emit_block_move_via_libcall): Ditto.
12256 (set_storage_via_libcall): Ditto.
12257
12258 * config/i386/i386.c (ix86_expand_movmem): Ditto.
12259 (ix86_expand_setmem): Ditto.
12260 (ix86_trampoline_init): DItto.
12261 * config/i386/i386.md (cmpstrnsi): Ditto.
12262
12263 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
12264
12265 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
12266 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
12267 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
12268 (SH Options): Likewise.
12269
12270 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12271
12272 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
12273 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
12274 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
12275 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
12276 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
12277
12278 Revert:
12279 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12280
12281 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12282 * config/i386/i386.c (ix86_decompose_address): Use
12283 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12284 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12285 thread pointer to a register.
12286
12287 Revert:
12288 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
12289
12290 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
12291 if Pmode != word_mode.
12292 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
12293 Pmode == SImode for TARGET_X32.
12294
12295 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
12296 (tls_initial_exec_x32): Likewise.
12297
12298 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
12299
12300 PR target/50751
12301 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
12302 DISP_ADDR_OFFSET): New macros.
12303 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
12304 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
12305 (sh_legitimize_address): Add QImode displacement handling.
12306 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
12307 vector subregs.
12308 (sh_secondary_reload): Add QImode displacement handling.
12309 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
12310 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
12311 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
12312 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
12313 to register operands only.
12314 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
12315 (extendqihi2): Change insn to expander.
12316 (*extendqihi2_compact_reg): New insn.
12317 (movqi_i, movqi): Replace with ...
12318 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
12319 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
12320 Add new peepholes for QImode displacement addressing.
12321
12322 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
12323
12324 PR c++/14710
12325 * doc/invoke.texi: Document -Wuseless-cast.
12326
12327 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
12328
12329 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
12330 * tree.h (handled_component_p): Reorder cases.
12331 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
12332 not initialize unsignedp.
12333 (loc_list_from_tree): Likewise.
12334 (fortran_common): Likewise.
12335 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
12336
12337 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
12338
12339 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
12340 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
12341 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
12342 (ix86_split_long_move): Ditto.
12343 (legitimize_tls_address): Use ix86_gen_sub3.
12344 (construct_plt_address): Assert that Pmode == DImode.
12345
12346 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
12347
12348 * config/i386/i386.md: Remove empty predicates and/or constraints.
12349 * config/i386/sync.md: Ditto.
12350 * config/i386/sse.md: Ditto.
12351 * config/i386/mmx.md: Ditto.
12352 * config/i386/pentium.md: Ditto.
12353 * config/i386/athlon.md: Ditto.
12354
12355 2012-03-16 Richard Guenther <rguenther@suse.de>
12356
12357 PR tree-optimization/52603
12358 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
12359 comment.
12360
12361 Revert
12362 2012-03-14 Richard Guenther <rguenther@suse.de>
12363
12364 PR tree-optimization/52571
12365 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12366 flag_section_anchors check ...
12367 (vect_can_force_dr_alignment_p): ... here.
12368
12369 2012-03-16 Martin Jambor <mjambor@suse.cz>
12370
12371 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
12372 memory through MEM_REFs by calling extract_bit_field.
12373
12374 2012-03-16 Richard Guenther <rguenther@suse.de>
12375
12376 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
12377 and REFERENCE_TYPE interpretations.
12378 (can_native_interpret_type_p): New function.
12379 (fold_ternary_loc): Use native encode/interpret to fold
12380 BIT_FIELD_REFs of constants.
12381
12382 2012-03-16 Richard Guenther <rguenther@suse.de>
12383
12384 PR middle-end/52584
12385 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
12386 of vector constants and constructors.
12387
12388 2012-03-16 Richard Guenther <rguenther@suse.de>
12389
12390 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12391 VIEW_CONVERT_EXPR to convert constants.
12392 (vect_is_simple_use): Treat all constants as vec_constant_def.
12393
12394 2012-03-16 Richard Guenther <rguenther@suse.de>
12395 Kai Tietz <ktietz@redhat.com>
12396
12397 PR middle-end/48814
12398 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
12399 side-effects completely in the pre-queue and use a temporary
12400 for the result.
12401
12402 2012-03-16 Richard Guenther <rguenther@suse.de>
12403
12404 * stor-layout.c (finish_bitfield_representative): Fall back
12405 to the conservative maximum size if we cannot compute the
12406 size of the tail padding.
12407
12408 2012-03-16 Tristan Gingold <gingold@adacore.com>
12409
12410 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
12411 __CRTL_VER and __VMS_VER.
12412 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
12413 and vms_c_get_vms_ver.
12414 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
12415 functions.
12416 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
12417 (VMS_DEFAULT_VMS_VER): Define.
12418 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
12419 (VMS_DEFAULT_VMS_VER): Define.
12420
12421 2012-03-16 Richard Guenther <rguenther@suse.de>
12422
12423 * tree-vect-loop.c (get_initial_def_for_induction): Use
12424 build_constructor directly.
12425 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
12426 build_vector_from_val.
12427 * tree.c (build_vector_from_val): Avoid creating a constructor
12428 first when we want a constant vector.
12429
12430 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12431
12432 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
12433
12434 2012-03-16 Richard Guenther <rguenther@suse.de>
12435
12436 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
12437 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
12438 (struct tree_vector): Remove elements member, add variable size
12439 elts array member.
12440 (build_vector_stat): Declare.
12441 (build_vector): Define in terms of build_vector_stat.
12442 * tree.c (build_vector): Rename to ...
12443 (build_vector_stat): ... this. Take array of trees as parameter.
12444 (build_vector_from_ctor): Adjust.
12445 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
12446 initializer_zerop): Adjust.
12447 * cfgexpand.c (expand_debug_expr): Likewise.
12448 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
12449 const_vector_from_tree): Likewise.
12450 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
12451 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
12452 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
12453 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
12454 (lto_input_ts_vector_tree_pointers): Adjust.
12455 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
12456 (write_ts_vector_tree_pointers): Adjust.
12457 * varasm.c (const_hash_1, compare_constant, copy_constant,
12458 output_constant): Adjust.
12459 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
12460 * print-tree.c (print_node): Adjust.
12461 * tree-pretty-print.c (dump_generic_node): Adjust.
12462 * tree-vect-generic.c (uniform_vector_p, vector_element,
12463 lower_vec_perm): Adjust.
12464 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
12465 * tree-vect-slp.c (vect_get_constant_vectors,
12466 vect_transform_slp_perm_load): Adjust.
12467 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
12468 * expmed.c (make_tree): Adjust.
12469 * config/i386/i386.c (ix86_expand_builtin): Adjust.
12470 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
12471 and implementation.
12472 (sparc_fold_builtin): Adjust.
12473
12474 2012-03-16 Tristan Gingold <gingold@adacore.com>
12475
12476 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
12477 * config/vms/vms-stdint.h: New file.
12478
12479 2012-03-16 Tristan Gingold <gingold@adacore.com>
12480
12481 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
12482 (ia64-hp-*vms*): Replaced by ...
12483 (*-*-*vms*): ... This new entry.
12484
12485 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12486
12487 PR target/52568
12488 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
12489 (ix86_expand_vec_perm_const_1): Use it.
12490
12491 PR target/52568
12492 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
12493 (avx2_permv4df): Remove.
12494 (avx2_permv4di): Macroize into...
12495 (avx2_perm<mode>): ... this using VI8F_256 iterator.
12496 (avx2_permv4di_1): Macroize into...
12497 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
12498
12499 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
12500
12501 * combine.c (apply_distributive_law): Do not distribute SUBREG.
12502
12503 2012-03-15 Ira Rosen <irar@il.ibm.com>
12504 Ulrich Weigand <ulrich.weigand@linaro.org>
12505
12506 * tree-vect-patterns.c (widened_name_p): Rename to ...
12507 (type_conversion_p): ... this. Add new argument to determine
12508 if it's a promotion or demotion operation. Check for
12509 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
12510 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
12511 widened_name_p.
12512 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
12513 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
12514 Likewise.
12515 (vect_recog_mixed_size_cond_pattern): Likewise and allow
12516 non-constant then and else clauses.
12517
12518 2012-03-15 Ira Rosen <irar@il.ibm.com>
12519 Ulrich Weigand <ulrich.weigand@linaro.org>
12520
12521 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
12522 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
12523 vect_pattern_recog.
12524 * tree-vect-patterns.c (widened_name_p): Pass basic block
12525 info to vect_is_simple_use.
12526 (vect_recog_dot_prod_pattern): Fail for basic blocks.
12527 (vect_recog_widen_sum_pattern): Likewise.
12528 (vect_handle_widen_op_by_const): Support basic blocks.
12529 (vect_operation_fits_smaller_type,
12530 vect_recog_over_widening_pattern): Likewise.
12531 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
12532 Update call to vect_is_simple_use.
12533 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
12534 Add printing.
12535 (check_bool_pattern): Add an argument, update call to
12536 vect_is_simple_use and the recursive calls.
12537 (vect_recog_bool_pattern): Update relevant function calls.
12538 Add printing.
12539 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
12540 (vect_pattern_recog_1): Check for reduction only in loops.
12541 (vect_pattern_recog): Add new argument. Support basic blocks.
12542 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
12543 info to vect_is_simple_use_1.
12544 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
12545 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
12546
12547 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12548 Andrew Pinski <apinski@cavium.com>
12549
12550 PR middle-end/52592
12551 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
12552 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
12553 calls instead of __builtin_ir{int,ound}*.
12554
12555 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12556
12557 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
12558 documentation.
12559
12560 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12561
12562 * config.gcc (target_type_format_char): New. Document it. Set it for
12563 arm*-*-* .
12564 * configure.ac (gnu_unique_option): Use target_type_format_char
12565 in test. Comment rationale.
12566 * configure: Regenerate .
12567
12568 2012-03-15 Jakub Jelinek <jakub@redhat.com>
12569
12570 PR tree-optimization/52267
12571 * tree-vrp.c (masked_increment): New function.
12572 (register_edge_assert_for_2): Derive ASSERT_EXPRs
12573 from (X & CST1) cmp CST2 tests.
12574
12575 2012-03-15 Richard Guenther <rguenther@suse.de>
12576
12577 PR middle-end/52580
12578 * tree-data-ref.c (subscript_dependence_tester_1): Check
12579 all dimensions for non-conflicting access functions.
12580
12581 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
12582
12583 PR c++/44783
12584 * doc/invoke.texi [C++ Language Options]: Document
12585 -ftemplate-backtrace-limit.
12586
12587 2012-03-15 Tristan Gingold <gingold@adacore.com>
12588
12589 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
12590 before a parameter.
12591
12592 2012-03-15 Tristan Gingold <gingold@adacore.com>
12593
12594 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
12595 use DW_OP_call_frame_cfa.
12596
12597 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
12598
12599 PR target/50797
12600 * config/i386/i386-opts.h (pmode): New.
12601
12602 * config/i386/i386.c (ix86_option_override_internal): Properly
12603 check and set ix86_pmode.
12604
12605 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
12606
12607 * config/i386/i386.opt (maddress-mode=): New.
12608
12609 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
12610
12611 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12612
12613 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
12614 (dwarf2out_do_cfi_asm): Likewise.
12615 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
12616 handling.
12617 (add_data_member_location_attribute): Likewise.
12618 (gen_array_type_die): Likewise.
12619 (gen_subprogram_die): Likewise.
12620 (gen_producer_string): Likewise.
12621 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
12622 Remove MIPS_DEBUGGING_INFO handling.
12623 (sdb_debug_hooks): Likewise.
12624 (sdbout_begin_block): Likewise.
12625 (sdbout_end_block): Likewise.
12626 (sdbout_begin_prologue): Likewise.
12627 (sdbout_start_source_file): Likewise.
12628 (sdbout_end_source_file): Likewise.
12629 (sdbout_init): Likewise.
12630 * system.h (MIPS_DEBUGGING_INFO): Poison.
12631
12632 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12633
12634 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
12635 (alpha_file_start) [MS_STAMP]: Remove.
12636
12637 * config/alpha/elf.h (TARGET_GAS): Remove.
12638 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
12639 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
12640 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
12641 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
12642 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
12643 (alpha*-*-freebsd*): Likewise.
12644 (alpha*-*-netbsd*): Likewise.
12645 (alpha*-*-openbsd*): Likewise.
12646 (alpha*-*-*): Remove target_cpu_default2.
12647 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
12648 handling.
12649 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
12650 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
12651 * config/alpha/alpha.c (print_operand): Always assume
12652 TARGET_AS_SLASH_BEFORE_SUFFIX.
12653 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
12654 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
12655 ("*builtin_setjmp_receiver_er_1"): Remove.
12656 * config/alpha/alpha.opt (malpha-as): Remove.
12657 (mgas): Ignore.
12658 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
12659 -malpha-as, -mgas.
12660 Remove DEC Unix reference.
12661
12662 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
12663 (EXTENDED_COFF): Remove.
12664 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
12665 (EXTENDED_COFF): Don't undef.
12666 * config/alpha/alpha.c (alpha_file_start): Always assume
12667 OBJECT_FORMAT_ELF.
12668 Don't set targetm.asm_file_start_file_directive.
12669 [!OBJECT_FORMAT_ELF]: Remove.
12670 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12671
12672 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
12673 (DBX_DEBUGGING_INFO): Remove.
12674 (MIPS_DEBUGGING_INFO): Remove.
12675 (PREFERRED_DEBUGGING_TYPE): Remove.
12676 (DBX_OUTPUT_SOURCE_LINE): Remove.
12677 (SDB_OUTPUT_SOURCE_LINE): Remove.
12678 (DBX_CONTIN_LENGTH): Remove.
12679 (NO_DBX_FUNCTION_END): Remove.
12680 (ASM_STABS_OP): Remove.
12681 (ASM_STABN_OP): Remove.
12682 (ASM_STABD_OP): Remove.
12683 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
12684 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
12685 (PUT_SDB_DEF): Remove.
12686 (PUT_SDB_PLAIN_DEF): Remove.
12687 (PUT_SDB_TYPE): Remove.
12688 (sdb_label_count): Remove.
12689 (PUT_SDB_BLOCK_START): Remove.
12690 (PUT_SDB_BLOCK_END): Remove.
12691 (PUT_SDB_FUNCTION_START): Remove.
12692 (PUT_SDB_FUNCTION_END): Remove.
12693 (PUT_SDB_EPILOGUE_END): Remove.
12694 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
12695 (MIPS_DEBUGGING_INFO): Don't undef.
12696 (DBX_DEBUGGING_INFO): Don't undef.
12697 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
12698 (MIPS_DEBUGGING_INFO): Don't undef.
12699 (DBX_DEBUGGING_INFO): Don't undef.
12700 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
12701 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
12702 handling.
12703 (alpha_start_function): Likewise.
12704 (sdb_label_count): Remove.
12705 (alpha_output_filename): Remove DBX_DEBUG handling.
12706 (alpha_file_start): Likewise.
12707
12708 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12709
12710 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
12711 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
12712 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
12713 Solaris 8 support.
12714 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
12715 (ld_tls_support): Remove Solaris 8 references.
12716 (lwp_dir, lwp_spec): Remove support for alternate thread library.
12717 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
12718 * configure: Regenerate.
12719 * config.in: Regenerate.
12720
12721 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
12722 * config/i386/sol2.h: Remove Solaris 8 references.
12723
12724 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
12725 (i?86-*-solaris2.9): ... this.
12726 Remove Solaris 8 references.
12727 (Specific, *-*-solaris2*): Document Solaris 8 removal.
12728 Remove Solaris 8 references.
12729
12730 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12731
12732 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
12733 (mips-sgi-irix6.5*): Remove.
12734 * config.host (mips-sgi-irix*): Remove.
12735 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
12736 (set_have_as_tls): Remove *-*-irix6*.
12737 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
12738 * configure: Regenerate.
12739
12740 * config/mips/iris6.h: Remove.
12741 * config/mips/iris6.opt: Remove.
12742 * config/mips/t-irix6: Remove.
12743
12744 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
12745 (TARGET_IRIX6): Remove.
12746 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
12747 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
12748 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
12749 handling.
12750 (mips_file_start): Likewise.
12751 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
12752
12753 * config/mips/driver-native.c [__sgi__]: Remove.
12754 (host_detect_local_cpu) [__sgi__]: Remove.
12755
12756 * config/mips/gnu-user.h: Remove iris5.h reference.
12757
12758 * config/mips/mips-modes.def: Remove IRIX 6 reference.
12759 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
12760 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
12761 Remove.
12762
12763 * gcc.c (main): Move asm_debug initialization ...
12764 (asm_debug): ... here.
12765
12766 * ginclude/stddef.h (__STDDEF_H__): Don't define.
12767
12768 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
12769 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
12770 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12771 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
12772 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
12773 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
12774 Remove.
12775 * doc/tm.texi: Regenerate.
12776
12777 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
12778 IRIX 6 reference.
12779 (MIPS Options, -march): Remove IRIX reference.
12780 * doc/install.texi (Binaries, SGI IRIX): Remove.
12781 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
12782 of section.
12783 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
12784
12785 2012-03-14 Martin Jambor <mjambor@suse.cz>
12786
12787 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
12788 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
12789 (expand_expr_real_1): Do not handle misalignment if modifier is
12790 EXPAND_WRITE.
12791
12792 2012-03-14 Richard Guenther <rguenther@suse.de>
12793
12794 PR middle-end/52584
12795 * tree-vect-generic.c (type_for_widest_vector_mode): Take
12796 element type instead of mode, use build_vector_type_for_mode
12797 instead of the langhook, build a vector of proper signedness.
12798 (expand_vector_operations_1): Adjust.
12799
12800 2012-03-14 Richard Guenther <rguenther@suse.de>
12801
12802 PR middle-end/52582
12803 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
12804 a cgraph node for a FUNCTION_DECL that comes from a constructor.
12805 (gimple_get_virt_method_for_binfo): Likewise.
12806
12807 2012-03-14 Richard Guenther <rguenther@suse.de>
12808
12809 PR tree-optimization/52571
12810 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
12811 flag_section_anchors check ...
12812 (vect_can_force_dr_alignment_p): ... here. Do not re-align
12813 DECL_COMMON variables.
12814
12815 2012-03-14 Richard Guenther <rguenther@suse.de>
12816
12817 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
12818 * stor-layout.c (start_bitfield_representative): New function.
12819 (finish_bitfield_representative): Likewise.
12820 (finish_bitfield_layout): Likewise.
12821 (finish_record_layout): Call finish_bitfield_layout.
12822 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
12823 for QUAL_UNION_TYPE fields.
12824 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12825 Stream DECL_BIT_FIELD_REPRESENTATIVE.
12826 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12827
12828 PR middle-end/52080
12829 PR middle-end/52097
12830 PR middle-end/48124
12831 * expr.c (get_bit_range): Unconditionally extract bitrange
12832 from DECL_BIT_FIELD_REPRESENTATIVE.
12833 (expand_assignment): Adjust call to get_bit_range.
12834
12835 2012-03-14 Richard Guenther <rguenther@suse.de>
12836
12837 PR middle-end/52578
12838 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
12839 the outermost conversion is a sign-change only.
12840 (fold_binary_loc): Disregard widening and sign-changing
12841 conversions when we determine if two variables are equal
12842 for reassociation.
12843 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
12844 (T1)x if the outermost conversion is a sign-change only.
12845
12846 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
12847
12848 Revert:
12849 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
12850
12851 * config/i386/predicates.md (constant_call_address_operand): Declare
12852 as special predicate. Update all uses.
12853
12854 2012-03-13 Jakub Jelinek <jakub@redhat.com>
12855
12856 PR c/52577
12857 * c-parser.c (c_parser_postfix_expression)
12858 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
12859
12860 * config/i386/smmintrin.h: Avoid /* within a comment.
12861 * config/i386/nmmintrin.h: Likewise.
12862
12863 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12864
12865 * config/i386/i386.md (xbegin): Remove constraint from expander.
12866
12867 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12868
12869 * config/i386/predicates.md (constant_call_address_operand): Declare
12870 as special predicate. Update all uses.
12871 * config/i386/i386.md: Remove mode from constant_call_address_operand
12872 predicates.
12873 * config/i386/i386.c (ix86_output_call_insn): Call
12874 constant_call_address_operand with VOIDmode.
12875
12876 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12877
12878 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
12879 AND zero extended address correctly.
12880
12881 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12882
12883 * config/i386/predicates.md (tls_symbolic_operand): Declare as
12884 special predicate.
12885 (tls_modbase_operand): Ditto.
12886 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
12887 tls_modbase_operand predicates.
12888
12889 2012-03-13 Martin Jambor <mjambor@suse.cz>
12890
12891 * expr.c (expand_assignment): Handle misaligned scalar writes to
12892 memory through top-level MEM_REFs by calling store_bit_field.
12893
12894 2012-03-13 Richard Guenther <rguenther@suse.de>
12895
12896 PR middle-end/52134
12897 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
12898 if Y is a constant multiple of 1 << CST.
12899
12900 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
12901
12902 PR target/52488
12903 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
12904 offset (size) to a value the insns can deal with.
12905 (expand_epilogue): Ditto.
12906
12907 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12908
12909 * config/arm/neon.ml (ops): Fixup expected instructions for
12910 unsigned vector compares.
12911
12912 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12913
12914 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
12915 addresses only when %reg is not in word mode.
12916
12917 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12918
12919 * config/microblaze/microblaze.md: Fix typo.
12920 * tree-if-conv.c: Likewise.
12921 * tree-vect-patterns.c: Likewise.
12922
12923 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12924
12925 * config.gcc (extra_passes): Remove.
12926 * configure.ac (extra_passes): Don't substitute.
12927 * configure: Regenerate.
12928 * Makefile.in (EXTRA_PASSES): Remove.
12929 (GCC_PASSES): Remove $(EXTRA_PASSES).
12930 (MOSTLYCLEANFILES): Likewise.
12931 (native): Likewise.
12932 (install-common): Likewise.
12933
12934 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
12935
12936 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
12937 * config/i386/i386.c (ix86_decompose_address): Use
12938 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
12939 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
12940 thread pointer to a register.
12941
12942 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
12943
12944 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
12945 on tls_symbolic_operand.
12946 (tls_global_dynamic_64_<mode>): Likewise.
12947
12948 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
12949
12950 PR other/52545
12951 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
12952 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
12953
12954 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
12955
12956 PR target/52499
12957 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
12958 type from reg_class_t to enum reg_class.
12959 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
12960
12961 2012-03-12 Andrew Pinski <apinski@cavium.com>
12962
12963 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
12964 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
12965 (value_replacement): Likewise.
12966 (empty_block_p): Check also if the PHIs for the block are empty.
12967
12968 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
12969
12970 PR target/52148
12971 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
12972 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
12973 r184615 from 2012-02-28.
12974
12975 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
12976
12977 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
12978 (ix86_gen_tls_local_dynamic_base_64): Likewise.
12979 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
12980 and ix86_gen_tls_local_dynamic_base_64.
12981 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
12982 ix86_gen_tls_local_dynamic_base_64.
12983
12984 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
12985 (*tls_global_dynamic_64_<mode>): This.
12986 (tls_global_dynamic_64): Renamed to ...
12987 (tls_global_dynamic_64_<mode>): This.
12988 (*tls_local_dynamic_base_64): Renamed to ...
12989 (*tls_local_dynamic_base_64_<mode>): This.
12990 (tls_local_dynamic_base_64): Renamed to ...
12991 (tls_local_dynamic_base_64_<mode>): This.
12992
12993 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
12994
12995 * config/i386/i386.c (ix86_option_override_internal): Properly
12996 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
12997 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
12998 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
12999 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
13000
13001 * config/i386/sse.md (sse3_monitor64): Renamed to ...
13002 (sse3_monitor64_<mode>): This.
13003
13004 2012-03-12 Tristan Gingold <gingold@adacore.com>
13005
13006 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
13007 (ia64_function_arg_advance): Ditto.
13008
13009 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13010
13011 * config.gcc (mips*-*-openbsd*): Remove.
13012 * config/mips/openbsd.h: Remove.
13013 * config/mips/sdb.h: Remove.
13014
13015 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
13016 * config/mips/mips.c (sdb_label_count): Remove.
13017 (mips_debugger_offset): Remove #if 0 code.
13018 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
13019 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
13020
13021 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13022
13023 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
13024 binutils reference.
13025 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
13026 Update binutils references.
13027 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
13028 Update binutils reference.
13029 Update Sun as/GNU ld caveat.
13030 Document binutils largefile requirement for LTO plugin.
13031 Remove reference to alternate libpthread.
13032
13033 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13034
13035 * config.gcc (alpha*-dec-osf5.1*): Remove.
13036 * config.host (alpha*-dec-osf*): Remove.
13037 * configure.ac (*-*-osf*): Remove.
13038 (alpha*-dec-osf*): Remove.
13039 * configure: Regenerate.
13040
13041 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
13042 config/alpha/va_list.h, config/alpha/x-osf: Remove.
13043
13044 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
13045 * config/alpha/alpha.c (struct machine_function): Update comment.
13046 (alpha_start_function): Remove Tru64 UNIX as handling for
13047 max_frame_size.
13048 * config/alpha/alpha.md ("exception_receiver"): Remove
13049 TARGET_LD_BUGGY_LDGP.
13050 ("*exception_receiver_2"): Likewise.
13051 * except.c (finish_eh_generation): Remove Tru64 reference.
13052 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
13053 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
13054 * target.def (handle_pragma_extern_prefix): Remove.
13055
13056 * Makefile.in (mips-tfile.o-warn): Remove.
13057 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
13058 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
13059 * mips-tdump.c, mips-tfile.c: Remove.
13060
13061 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
13062 extern_prefix.
13063 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
13064 (Specific, alpha*-dec-osf5.1): Note removal.
13065 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
13066 Remove.
13067 * doc/tm.texi: Regenerate.
13068 * doc/trouble.texi (Cross-Compiler Problems): Remove.
13069
13070 2012-03-12 Richard Guenther <rguenther@suse.de>
13071
13072 * config/arm/arm.c (neon_dereference_pointer): Do not call
13073 covert during RTL expansion.
13074
13075 2012-03-12 Tristan Gingold <gingold@adacore.com>
13076
13077 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
13078 Options. Mention -mpointer-size.
13079
13080 2012-03-12 Richard Guenther <rguenther@suse.de>
13081
13082 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
13083 build_nonstandard_integer_type.
13084
13085 2012-03-12 Richard Guenther <rguenther@suse.de>
13086
13087 * tree.c (signed_or_unsigned_type_for): Use
13088 build_nonstandard_integer_type.
13089 (signed_type_for): Adjust documentation.
13090 (unsigned_type_for): Likewise.
13091 * tree-pretty-print.c (dump_generic_node): Use standard names
13092 for non-standard integer types if available.
13093
13094 2012-03-12 Tristan Gingold <gingold@adacore.com>
13095
13096 * config/vms/vms.opt: Add vms-opts.h header.
13097 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
13098 target mask.
13099 (-mvms-return-codes): Document.
13100 (-mpointer-size): New option.
13101 (vms_pointer_size): Add enumeration.
13102 * config/vms/vms-opts.h: New file.
13103 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
13104 __INITIAL_POINTER_SIZE.
13105 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
13106 (C_COMMON_OVERRIDE_OPTIONS): Define.
13107 (DWARF2_ADDR_SIZE): Define.
13108 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
13109 * config/vms/vms-protos.h (vms_c_common_override_options):
13110 New prototype.
13111 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
13112 if -mno-pointer-size.
13113 (vms_c_common_override_options): New function.
13114 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
13115 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
13116 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
13117 and flag_vms_pointer_size.
13118 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
13119 * config.gcc (*-*-*vms*): Define xm_file.
13120 (alpha*-dec-*vms*): Do not define xm_file.
13121 (alpha64-dec-*vms*): Remove.
13122 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
13123 and tmake_file.
13124
13125 2012-03-12 Jakub Jelinek <jakub@redhat.com>
13126
13127 PR tree-optimization/51721
13128 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
13129 if (int) unsvar cmp CST.
13130
13131 2012-03-12 Richard Guenther <rguenther@suse.de>
13132
13133 * tree-sra.c (create_access_replacement): Only rename the replacement
13134 if we can rewrite it into SSA form. Properly mark register typed
13135 replacements that we cannot rewrite with TREE_ADDRESSABLE.
13136 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
13137 for aggregate or BLKmode results.
13138
13139 2012-03-12 Jakub Jelinek <jakub@redhat.com>
13140
13141 PR tree-optimization/52533
13142 * tree-vrp.c (register_edge_assert_for_2): Use double_int
13143 type for mask, only handle shifts by non-zero in-range
13144 shift count, for LE_EXPR and GT_EXPR if new_val is
13145 maximum, don't add the assertion.
13146
13147 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
13148
13149 * doc/invoke.texi: Document -mrtm option.
13150 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
13151 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
13152 (ix86_handle_option): Handle OPT_mrtm.
13153 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
13154 xtestintrin.h.
13155 (x86_64-*-*): Ditto.
13156 * i386-builtin-types.def (INT_FTYPE_VOID): New.
13157 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13158 __RTM__ if needed.
13159 (ix86_target_string): Define -mrtm option.
13160 (PTA_RTM): New.
13161 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
13162 Handle new option.
13163 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
13164 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
13165 IX86_BUILTIN_XTEST.
13166 (bdesc_special_args): Ditto.
13167 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
13168 (ix86_expand_special_args_builtin): Handle new built-in type.
13169 (ix86_expand_builtin): Handle XABORT instruction.
13170 * config/i386/i386.h (TARGET_RTM): New.
13171 * config/i386/i386.md (UNSPECV_XBEGIN): New.
13172 (UNSPECV_XEND): Ditto.
13173 (UNSPECV_XABORT): Ditto.
13174 (UNSPECV_XTEST): Ditto.
13175 (xbegin): Ditto.
13176 (xbegin_1): Ditto.
13177 (xend): Ditto.
13178 (xabort): Ditto
13179 (xtest): Ditto.
13180 (xtest_1): Ditto.
13181 * config/i386/i386.opt (mrtm): New.
13182 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
13183 * config/i386/rtmintrin.h: New header.
13184 * config/i386/xtestintrin.h: Ditto.
13185
13186 2012-03-12 Tristan Gingold <gingold@adacore.com>
13187
13188 * ginclude/stddef.h: Adjust previous patch.
13189 Use __VMS__ instead of VMS.
13190
13191 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
13192
13193 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
13194 Also convert sequences with CC setting arithmetic instruction.
13195
13196 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
13197
13198 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
13199 from C Language Options to Preprocessor Options.
13200 (C Dialect Options): Move -no-integrated-cpp documentation
13201 from here...
13202 (Preprocessor Options): ...to here. Rewrite the description
13203 so it makes more sense, and remove discussion of merging front ends.
13204
13205 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13206
13207 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
13208 needed for loop.
13209 (ix86_expand_setmem): Likewise.
13210
13211 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
13212
13213 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
13214 convert_to_mode.
13215
13216 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13217
13218 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
13219 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
13220
13221 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13222
13223 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
13224
13225 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13226
13227 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
13228 TARGET_64BIT.
13229
13230 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
13231 Uros Bizjak <ubizjak@gmail.com>
13232
13233 * config/i386/predicates.md (call_insn_operand): Allow
13234 constant_call_address_operand in Pmode only.
13235 (sibcall_insn_operand): Ditto.
13236 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
13237 (*call_vzeroupper): Ditto.
13238 (*sibcall): Ditto.
13239 (*sibcall_vzeroupper): Ditto.
13240 (*call_value): Ditto.
13241 (*call_value_vzeroupper): Ditto.
13242 (*sibcall_value): Ditto.
13243 (*sibcall_value_vzeroupper): Ditto.
13244 (*indirect_jump): Ditto.
13245 (*tablejump_1): Ditto.
13246 (indirect_jump): Convert memory address to word mode for TARGET_X32.
13247 (tablejump): Ditto.
13248 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
13249 to word mode.
13250
13251 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
13252
13253 PR target/51244
13254 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
13255 Use movrt_negc instead of negc pattern for non-SH2A.
13256 (*movnegt): Remove.
13257 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
13258
13259 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
13260
13261 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
13262 if Pmode != word_mode.
13263 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
13264 Pmode == SImode for TARGET_X32.
13265
13266 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
13267 (tls_initial_exec_x32): Likewise.
13268
13269 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
13270
13271 PR rtl-optimization/52528
13272 * combine.c (can_combine_p): Add setting of subst_low_luid
13273 before call to expand_field_assignment().
13274
13275 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
13276
13277 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
13278 and related program names.
13279
13280 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
13281
13282 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
13283
13284 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
13285
13286 PR target/52530
13287 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
13288 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
13289 to set code to 'q'.
13290 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
13291 (*movdi_internal_rex64): Use %E operand modifier for lea.
13292 (*movsi_internal): Ditto.
13293 (*lea_1): Ditto.
13294 (*lea<mode>_2): Ditto.
13295 (*lea_{3,4,5,6}_zext): Ditto.
13296 (*tls_global_dynamic_32_gnu): Ditto.
13297 (*tls_global_dynamic_64): Ditto.
13298 (*tls_dynamic_gnu2_lea_32): Ditto.
13299 (*tls_dynamic_gnu2_lea_64): Ditto.
13300 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
13301
13302 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13303
13304 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
13305 redefine to be NULL if the current bit-size is different from the
13306 configured bit-size.
13307
13308 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
13309 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
13310 set the default tuning. Add asserts to make sure the cpu and tune
13311 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
13312 test whether the index is set, instead of > 0.
13313 (rs6000_file_start): Do not reset the default cpu if the current
13314 bit-size is different from the configured bit-size.
13315
13316 2012-03-09 Tristan Gingold <gingold@adacore.com>
13317
13318 * config/vms/vms-crtlmap.map: Add comments.
13319 Add entries needed to build Ada RTS.
13320
13321 2012-03-09 Tristan Gingold <gingold@adacore.com>
13322
13323 * ginclude/stddef.h: Do not define __size_t on VMS.
13324
13325 2012-03-09 Tristan Gingold <gingold@adacore.com>
13326
13327 * c-tree.h (c_default_pointer_mode): New variable.
13328 * c-decl.c (c_default_pointer_mode): New variable.
13329 (c_build_pointer_type): New function.
13330 (grokdeclarator): Call c_build_pointer_type instead
13331 of build_pointer_type.
13332
13333 * config/vms/vms-c.c: Include c-tree.h
13334 (saved_pointer_mode): New variable.
13335 (handle_pragma_pointer_size): New function.
13336 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
13337 (vms_c_register_pragma): Register __pointer_size and
13338 __required_pointer_size pragmas.
13339
13340 2012-03-09 Tristan Gingold <gingold@adacore.com>
13341
13342 * config/vms/vms-c.c (vms_construct_include_filename): New function.
13343 (vms_c_register_includes): Reference it.
13344
13345 2012-03-09 Andrew Pinski <apinski@cavium.com>
13346
13347 PR middle-end/51988
13348 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
13349 print_generic_expr.
13350 (tree_ssa_phiopt_worker): Go through all the PHIs for
13351 value_replacement instead of just the singleton one.
13352 (value_replacement): Change return type to int. Return 0 instead of
13353 false.
13354 Allow the middle basic block to contain more than just the defining
13355 statement.
13356 Handle non empty middle basic blocks.
13357 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
13358
13359 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
13360
13361 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
13362 array reference and component reference.
13363 (analyze_scalar_evolution_for_address_of): New.
13364
13365 2012-03-08 Jie Zhang <jzhang918@gmail.com>
13366
13367 PR target/49862
13368 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
13369 (hwloop_pattern_reg): Fix set but not used warning.
13370 (bfin_reorg_loops): Remove unused parameter.
13371 (bfin_reorg): Update use of bfin_reorg_loops.
13372
13373 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
13374
13375 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
13376 with integer parameters in registers.
13377 (gen_push): Push register in word_mode instead of Pmode.
13378 (ix86_emit_save_regs): Likewise.
13379 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
13380 (gen_pop): Pop register in word_mode instead of Pmode.
13381 (ix86_emit_restore_regs_using_pop): Likewise.
13382 (ix86_expand_prologue): Replace Pmode with word_mode for push
13383 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
13384 restore RAX and R10 in word_mode.
13385 (ix86_emit_restore_regs_using_mov): Restore integer registers
13386 in word_mode.
13387 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
13388 word_mode.
13389 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
13390 (ix86_split_long_move): Likewise.
13391
13392 * config/i386/i386.md (W): New.
13393 (*push<mode>2_prologue): Replace :P with :W.
13394 (*pop<mode>1): Likewise.
13395 (*pop<mode>1_epilogue): Likewise.
13396 (push/pop peephole2): Use word_mode scratch registers.
13397
13398 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
13399
13400 * config/i386/predicates.md (indirect_branch_operand): Simplify.
13401
13402 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
13403
13404 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
13405 for constants in [-63,63].
13406
13407 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
13408
13409 PR target/52530
13410 Revert:
13411 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13412
13413 * config/i386/i386.c (ix86_print_operand_address): Only handle
13414 zero-extended DImode addresses.
13415
13416 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13417
13418 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
13419 * configure: Regenerate.
13420
13421 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
13422
13423 PR target/52496
13424 * config/avr/avr.c (avr_mem_clobber): New static function.
13425 (avr_expand_delay_cycles): Add memory clobber operand to
13426 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
13427 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
13428 (enable_interrupt, disable_interrupt): New expander.
13429 (nopv, sleep, wdr): New expanders.
13430 (delay_cycles_1): Add memory clobber.
13431 (delay_cycles_2): Add memory clobber.
13432 (delay_cycles_3): Add memory clobber.
13433 (delay_cycles_4): Add memory clobber.
13434 (cli_sei): New insn from former "enable_interrupt",
13435 "disable_interrupt" with memory clobber.
13436 (*wdt): New insn from former "wdt" with memory clobber.
13437 (*nopv): Similar, but for "nopv".
13438 (*sleep): Similar, but for "sleep".
13439
13440 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
13441 Kaz Kojima <kkojima@gcc.gnu.org>
13442
13443 PR target/52503
13444 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
13445 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
13446 (SUBTARGET_OVERRIDE_OPTIONS): Define.
13447
13448 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
13449
13450 * config/i386/predicates.md (x86_64_zext_general_operand): New.
13451 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
13452 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
13453
13454 2012-03-07 Walter Lee <walt@tilera.com>
13455
13456 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
13457 REG_CFA_* notes for the stack pointer.
13458 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
13459 EH_RETURN_STACKADJ_RTX.
13460 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
13461 generate REG_CFA_* notes for the stack pointer.
13462 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
13463 by EH_RETURN_STACKADJ_RTX.
13464
13465 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13466
13467 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
13468 when __AVR_3_BYTE_PC__ is defined.
13469
13470 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
13471
13472 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
13473 (ix86_print_operand): Handle '^'.
13474 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
13475 using P mode iterator. Add %^ to asm template to conditionally emit
13476 addr32 prefix.
13477 (*rep_movdi_rex64): Ditto.
13478 (*strsetdi_rex_1): Ditto.
13479 (*rep_stosdi_rex64): Ditto.
13480 (*strmov{si,hi,qi}_1): Add %^ to asm template to
13481 conditionally emit addr32 prefix.
13482 (*rep_mov{si,qi}): Ditto.
13483 (*strset{si,hi,qi}): Ditto.
13484 (*rep_stos{si,qi}): Ditto.
13485 (*cmpstrnqi_nz_1): Ditto.
13486 (*cmpstrnqi_1): Ditto.
13487 (*strlenqi_1): Ditto.
13488
13489 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
13490
13491 * config/i386/i386.c (function_value_64): Return pointers in
13492 word_mode instead of Pmode.
13493 (ix86_promote_function_mode): Likewise.
13494
13495 2012-03-07 Richard Guenther <rguenther@suse.de>
13496
13497 * coverage.c (get_gcov_type): Use type_for_mode.
13498 (get_gcov_unsigned_t): Likewise.
13499 * expr.c (store_constructor): Use type_for_mode.
13500 (try_casesi): Likewise.
13501 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
13502 (add_standard_iv_candidates): Use standard type trees.
13503 * dojump.c (do_jump): Remove dead code.
13504
13505 2012-03-07 Richard Guenther <rguenther@suse.de>
13506
13507 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
13508
13509 2012-03-07 Richard Guenther <rguenther@suse.de>
13510
13511 * convert.c (strip_float_extensions): Move ...
13512 * tree.c (strip_float_extensions): ... here.
13513
13514 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13515
13516 PR target/52484
13517 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
13518
13519 2012-03-07 Richard Guenther <rguenther@suse.de>
13520
13521 * omp-low.c (extract_omp_for_data): Use signed_type_for.
13522 (expand_omp_for_generic): Likewise.
13523 (expand_omp_for_static_nochunk): Likewise.
13524 (expand_omp_for_static_chunk): Likewise.
13525 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
13526 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13527 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
13528 Use unsigned_type_for.
13529 (vect_create_cond_for_align_checks): Use signed_type_for.
13530
13531 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
13532
13533 PR rtl-optimization/52203
13534 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
13535 all callers to pass NULL except ...
13536 (reset_sched_cycles_in_current_ebb): ... here, save the value
13537 in new variable 'empty'. Increase issue_rate only for
13538 non-empty insns.
13539
13540 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
13541
13542 PR target/51417
13543 * Makefile.in: Let install-gcc-ar depend on installdirs,
13544 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
13545 Don't double canonicalize if cross-compiling.
13546
13547 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13548
13549 PR target/52506
13550 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
13551 to: RAMPZ, RAMPY, RAMPX, RAMPD.
13552 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
13553
13554 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13555
13556 PR target/52505
13557 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
13558 from RAM.
13559 * config/avr/avr.md (xload_8): Adjust insn length.
13560
13561 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
13562
13563 PR target/52461
13564 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
13565 if RAMPZ affects reading from RAM.
13566
13567 2012-03-07 Richard Guenther <rguenther@suse.de>
13568
13569 PR pch/52518
13570 PR pch/38987
13571 * doc/invoke.texi (Precompiled Headers): Remove sentence that
13572 suggests you can include PCHs from inside another header.
13573
13574 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
13575
13576 PR middle-end/52515
13577 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
13578
13579 2012-03-07 Kai Tietz <ktietz@redhat.com>
13580
13581 * doc/invoke.texi (fwritable-relocated-rdata): Document
13582 new Cygwin/MinGW target option.
13583 * config/i386/winnt.c (i386_pe_unique_section): Ignore
13584 reloc if flag -fwritable-relocated-rdata is not set.
13585 (i386_pe_section_type_flags): Likewise.
13586 * config/i386/cygming.opt (fwritable-relocated-rdata):
13587 Add new flag variable flag_writable_rel_rdata.
13588
13589 2012-03-07 Richard Guenther <rguenther@suse.de>
13590
13591 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
13592 precision against gimple constraints.
13593
13594 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
13595
13596 PR middle-end/52372
13597 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
13598 variables.
13599 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
13600 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
13601 variables.
13602 (init_emit_regs): Move associated initialization to...
13603 (init_emit_once): ...here.
13604
13605 2012-03-06 Richard Henderson <rth@redhat.com>
13606
13607 * config/m68k/m68k.h (ISA_HAS_TAS): New.
13608 * config/m68k/sync.md (atomic_test_and_set): Use it.
13609 (atomic_test_and_set_1): Likewise.
13610
13611 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13612
13613 PR target/50310
13614 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
13615 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
13616 (vector_ltgt<mode>): Likewise.
13617 (vector_ordered<mode>): Likewise.
13618 (vector_unordered<mode>): Likewise.
13619 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13620
13621 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
13622
13623 * trans-mem.c: New typedef for tm_region_p.
13624 Define vector types for tm_region_p.
13625 (tm_region_init): Replace region_worklist to a vector called
13626 bb_regions.
13627
13628 2012-03-06 Richard Guenther <rguenther@suse.de>
13629
13630 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
13631 MEM_REF with constant pointer operand.
13632
13633 2012-03-06 Richard Guenther <rguenther@suse.de>
13634
13635 PR middle-end/52493
13636 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
13637
13638 2012-03-06 Tristan Gingold <gingold@adacore.com>
13639
13640 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
13641 (external_model_kind): Improve documentation.
13642 (vms_pragma_extern_model): Handle relaxed_redef.
13643 (vms_c_register_pragma): Allow expansion for nomember_alignment.
13644
13645 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
13646
13647 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
13648 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
13649 Some more notes on EIND usage and reorder EIND subsection.
13650
13651 2012-03-06 Tristan Gingold <gingold@adacore.com>
13652
13653 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
13654 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
13655
13656 2012-03-06 Tristan Gingold <gingold@adacore.com>
13657
13658 * config/vms/t-vmsnative (version): Define.
13659 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
13660
13661 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
13662
13663 PR rtl-optimization/52250
13664 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
13665 to put note list into. Unconditionally call move_bb_info.
13666 (move_bb_info): Do not assert the blocks being in the same region,
13667 just drop the note list if they are not.
13668
13669 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
13670
13671 PR target/51244
13672 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
13673 and use unified expansion logic.
13674 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
13675 closer to the existing movt insn.
13676 (negc): Rename insn to *negc. Add new expander.
13677 (movnegt): Use xor pattern for T bit negation. Reserve helper
13678 constant for negc pattern.
13679 (*movnegt): New insn and splitter.
13680
13681 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
13682
13683 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
13684 PLUS_EXPR.
13685
13686 2012-03-05 Richard Henderson <rth@redhat.com>
13687
13688 * genemit.c (main): Include "target.h" in insn-emit.c.
13689 * Makefile.in (insn-emit.o): Depend on TARGET_H.
13690 * config/sh/sync.md (atomic_test_and_set): Reference
13691 targetm.atomic_test_and_set_trueval instead of
13692 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
13693
13694 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
13695
13696 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
13697 Make static.
13698
13699 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
13700
13701 * langhooks.c (add_builtin_type): New function.
13702 * langhooks.h (add_builtin_type): Export it.
13703 * config/mep/mep.c (mep_init_builtins): Use it.
13704 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
13705
13706 2012-03-05 Jakub Jelinek <jakub@redhat.com>
13707
13708 PR debug/51902
13709 * tree.h (BLOCK_SAME_RANGE): Define.
13710 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
13711 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
13712 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
13713 isn't equal to supercontext fragment's fragment chain.
13714 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
13715 fragment origin.
13716 (blocks_nreverse_all): Likewise.
13717 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
13718 BLOCK_SUPERCONTEXT to supercontext fragment instead of
13719 supercontext fragment's fragment origin.
13720 * dwarf2out.c (add_high_low_attributes): If stmt has the same
13721 range as its parent (or parents thereof etc.), use the parent's
13722 DW_AT_ranges value instead of creating a new .debug_ranges range.
13723
13724 2012-03-05 Richard Henderson <rth@redhat.com>
13725
13726 PR tree-opt/52242
13727 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
13728 * omp-low.c (expand_omp_atomic): Assume anything aligned to
13729 BIGGEST_ALIGNMENT is aligned.
13730
13731 2012-03-05 Richard Henderson <rth@redhat.com>
13732
13733 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
13734 * config/sh/sh.c: ... here.
13735
13736 2012-03-05 Richard Henderson <rth@redhat.com>
13737
13738 PR target/52481
13739 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
13740 instead of calling negqi2 directly.
13741
13742 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
13743
13744 PR middle-end/52463
13745 * trans-mem.c (tm_region_init): Use last_basic_block.
13746
13747 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
13748
13749 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
13750 * config/sh/sync.md (atomic_test_and_set): New expander.
13751 (tasb, atomic_test_and_set_soft): New insns.
13752 * config/sh/sh.opt (menable-tas): New option.
13753 * doc/invoke.texi (SH Options): Document it.
13754
13755 2012-03-05 Richard Guenther <rguenther@suse.de>
13756
13757 * cfgloop.c (verify_loop_structure): Verify dominators before
13758 using them.
13759 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
13760 dominators from here.
13761 * graphite-scop-detection.c (create_sese_edges): Likewise.
13762 * loop-doloop.c (doloop_optimize_loops): Likewise.
13763 * loop-init.c (loop_optimizer_init): Likewise.
13764 * loop-unroll.c (unroll_and_peel_loops): Likewise.
13765 * loop-unswitch.c (unswitch_loops): Likewise.
13766 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
13767 * tree-parloops.c (parallelize_loops): Likewise. Verify
13768 only when checking is enabled.
13769 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
13770
13771 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
13772
13773 * genautomata.c (parse_automata_opt): New static function.
13774 (initiate_automaton_gen): Remove all option handling code. Remove
13775 argc argument. All callers changed.
13776 (main): Call init_rtx_reader_args_cb with the new function as argument.
13777
13778 2012-03-05 Richard Guenther <rguenther@suse.de>
13779
13780 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
13781 * tree-if-conv.c (combine_blocks): Free post-dominator info
13782 after breaking it.
13783 * tree-parloops.c (create_parallel_loop): Free and re-compute
13784 dominator info after breaking it.
13785
13786 2012-03-05 Richard Guenther <rguenther@suse.de>
13787
13788 PR middle-end/52353
13789 * optabs.h (trapv_unoptab_p): New function.
13790 (trapv_binoptab_p): Likewise.
13791 * optabs.c (expand_binop): Use emit_libcall_block_1 with
13792 a proper equiv_may_trap argument.
13793 (expand_unop): Likewise.
13794 (emit_libcall_block_1): Take extra argument whether the
13795 instruction may trap. Renamed from ...
13796 (emit_libcall_block): ... this. New wrapper.
13797
13798 2012-03-05 Jakub Jelinek <jakub@redhat.com>
13799
13800 PR tree-optimization/51721
13801 * tree-vrp.c (register_edge_assert_for_2): If comparing
13802 lhs of right shift by constant with an integer constant,
13803 add ASSERT_EXPRs for the rhs1 of the right shift.
13804
13805 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
13806
13807 2012-03-05 Richard Guenther <rguenther@suse.de>
13808
13809 * tree.c (integer_zerop): Handle VECTOR_CSTs.
13810 (integer_onep): Likewise.
13811 (integer_all_onesp): Likewise.
13812
13813 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
13814
13815 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
13816
13817 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13818
13819 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
13820 instead of TARGET_64BIT.
13821
13822 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13823
13824 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
13825 adjust_stack_insn.
13826
13827 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
13828
13829 * config/i386/i386.c (ix86_print_operand_address): Only handle
13830 zero-extended DImode addresses.
13831
13832 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
13833
13834 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
13835 taken and cputaken as bool.
13836
13837 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
13838
13839 * config/i386/constraints.md (Ya): New internal constraint.
13840 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
13841 (*zero_extendsidi2_rex64): Add x,x alternative.
13842 (*zero_extendsidi2): Ditto. Add o,0 alternative.
13843 Remove flags reg clobber. Adjust corresponding splits.
13844 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
13845 zero_extendqisi2 expanders using SWI12 mode iterator.
13846 (zero_extend<mode>si2_and): Macroize insn from
13847 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
13848 splitters.
13849 (*zero_extend<mode>si2): Macroize insn from
13850 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
13851 (*zero_extend*2_movzbl_and): Remove insn patterns.
13852 (zero_extendqihi2_and): Merge corresponding splitter.
13853 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
13854 (*zero_extend*2_movzbl_and): Remove insn patterns.
13855 (*anddi_1): Split TYPE_IMOVX instructions.
13856 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
13857 (*andhi_1): Ditto.
13858 (and->zext splitter): Add splitter pattern.
13859 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
13860
13861 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
13862
13863 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
13864 x86-specific text.
13865 (Debugging Options): Likewise.
13866 (Optimize Options): Likewise.
13867 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
13868 with other architectures. Use official processor names with correct
13869 spelling/capitalization. Fix formatting and grammar issues.
13870 (i386 and x86-64 Windows Options): Similar cleanup here.
13871
13872 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
13873
13874 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
13875
13876 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
13877
13878 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
13879 DBX_REGISTER_NUMBER.
13880
13881 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
13882
13883 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
13884 operand is CONST_INT. Take COSTS_N_INSNS into account.
13885 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
13886 of shiftcosts.
13887
13888 2012-03-02 Richard Henderson <rth@redhat.com>
13889
13890 * optabs.c (expand_atomic_test_and_set): Honor
13891 atomic_test_and_set_trueval even when atomic_test_and_set
13892 optab is not in use.
13893
13894 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
13895
13896 PR target/48596
13897 PR target/48806
13898 * config/sh/sh.c (sh_register_move_cost): Increase cost between
13899 GENERAL_REGS and FP_REGS for SImode.
13900
13901 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13902
13903 PR target/49486
13904 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
13905 (absdi2): New expander.
13906 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
13907
13908 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13909
13910 * config/sh/sync.md (atomic_exchange<mode>): New expander.
13911 (atomic_exchange<mode>_soft): New insn.
13912
13913 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13914
13915 * config/sh/sync.md: Update copyright notice dates.
13916 (atomic_compare_and_swap<mode>): Use SImode for return value instead
13917 of QImode.
13918 (atomic_compare_and_swap<mode>_soft): Likewise.
13919
13920 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
13921
13922 PR target/31640
13923 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
13924 * config/sh/sh.c: Update copyright notice dates.
13925 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
13926 alignment for TARGET_HARD_SH4.
13927 (sh_option_override): Reduce default function alignment. Set
13928 loop alignment to 4 bytes when not optimizing for size.
13929
13930 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
13931
13932 PR middle-end/50335
13933 * doc/invoke.texi (floop-flatten): Remove.
13934 * toplev.c (process_options): Remove references to flag_loop_flatten.
13935 * tree-ssa-loop.c (gate_graphite_transform): Same.
13936 * common.opt (floop-flatten): Obsolete.
13937 * graphite-poly.c (apply_poly_transforms): Remove reference to
13938 flag_loop_flatten.
13939 * Makefile.in (graphite-flattening.o): Remove.
13940 * graphite-flattening.c: Remove.
13941
13942 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
13943
13944 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
13945 having mode compatible with the mode of previous compare. Substitute
13946 compare mode of previous compare with the mode, compatible
13947 with eliminated and previous compare.
13948
13949 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
13950
13951 * config/rs6000/dfp.md (floatdidd2): New define_insn.
13952
13953 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
13954
13955 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
13956 compatible with CCGOCmode and CCGCmode.
13957
13958 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
13959
13960 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
13961
13962 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
13963
13964 * config/arm/arm.c (arm_sat_operator_match): New function.
13965 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
13966 * config/arm/arm.md ("insn" attribute): Add "sat" value.
13967 ("SAT", "SATrev"): New code iterators.
13968 ("SATlo", "SAThi"): New code iterator attributes.
13969 ("*satsi_<SAT:code>"): New pattern.
13970 ("*satsi_<SAT:code>_shift"): Likewise.
13971 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
13972 and "shift" attributes.
13973 ("arm_usatsihi"): Add "insn" attribute.
13974 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
13975 by powers of two. Do not allow shift by 32.
13976
13977 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
13978
13979 PR target/46716
13980 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
13981 to pass the argument in the register of "natural" mode.
13982
13983 2012-03-02 Richard Guenther <rguenther@suse.de>
13984
13985 PR tree-optimization/52406
13986 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
13987 (struct indices): Add unconstrained_base member.
13988 (struct dr_alias): Remove unused vops member.
13989 (DR_UNCONSTRAINED_BASE): New define.
13990 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
13991 add indices to allow their disambiguation. Make DR_BASE_OBJECT
13992 be an artificial access that covers the whole indexed object,
13993 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
13994 plain decl base-objects to their MEM_REF variant.
13995 (dr_may_alias_p): When the base-object of either data reference
13996 has unknown size use only points-to information.
13997 (compute_affine_dependence): Make dumps easier to read and
13998 more verbose.
13999 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
14000 DR_REF when looking for packed references.
14001 (vect_supportable_dr_alignment): Likewise.
14002
14003 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
14004
14005 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
14006 Improve conditions for peepholes of loads followed by commutative
14007 operators.
14008 * config/arm/ldmstm.md: Regenerated.
14009
14010 2012-03-02 Richard Guenther <rguenther@suse.de>
14011
14012 * BASE-VER: Set to 4.8.0.
14013
14014 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
14015
14016 * config.gcc (obsolete): Add all ARM targets using the FPA.
14017 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
14018 * doc/install.texi: Avoid references to obsolete ARM ports.
14019
14020 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
14021
14022 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
14023
14024 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
14025 Joern Rennecke <joern.rennecke@embecosm.com>
14026
14027 * doc/extend.texi: Expand and update information on interrupt
14028 attribute for Epiphany.
14029
14030 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14031
14032 * config/sh/sh-protos.h: Update copyright notice dates.
14033 * config/sh/sh.h: Likewise.
14034 * config/sh/sh.md: Likewise.
14035 * config/sh/constraints.md: Likewise.
14036 * config/sh/predicates.md: Likewise.
14037
14038 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14039
14040 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
14041 * config/sh/sh.c (tertiary_reload_operand): Likewise.
14042
14043 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
14044
14045 * config/sh/constraints.md: Fix comment typo.
14046
14047 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14048
14049 PR target/52408
14050 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
14051 unsigned HOST_WIDE_INT.
14052 (zvdep_imm64): Likewise.
14053 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
14054 (vdepi_and): Likewise.
14055 Likewise for unamed 64-bit patterns.
14056 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
14057
14058 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
14059
14060 PR debug/52001
14061 PR rtl-optimization/52417
14062 * cselib.c (cselib_any_perm_equivs): New variable.
14063 (cselib_reset_table): Check that it's not set when not
14064 preserving constants.
14065 (cselib_add_permanent_equiv): Set it.
14066 (cselib_have_permanent_equivalences): New.
14067 (cselib_init, cselib_finish): Reset it.
14068 * cselib.h (cselib_have_permanent_equivalences): Declare.
14069 * alias.c (get_addr): Restore earlier behavior when there
14070 aren't permanent equivalences.
14071
14072 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
14073
14074 * config/mn10300/mn10300-modes.def: Fix copyright notice.
14075 * config/v850/v850-modes.def: Fix copyright notice.
14076
14077 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
14078
14079 * doc/extend.texi (AVR Built-in Functions): Document
14080 __builtin_avr_flash_segment.
14081
14082 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
14083 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
14084 (*split.flash_segment): New insn-and-split.
14085 * config/avr/avr.c (avr_init_builtins): Add local variables:
14086 const_memx_void_node, const_memx_ptr_type_node,
14087 char_ftype_const_memx_ptr.
14088
14089 2012-03-01 Jakub Jelinek <jakub@redhat.com>
14090
14091 PR tree-optimization/52445
14092 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
14093 add ssa_name_ver, offset and size fields and change store field
14094 to bool.
14095 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
14096 (add_or_mark_expr): Likewise. Only consider previous stores
14097 with the same size and offset.
14098 (nt_init_block): Only look at gimple_assign_single_p stmts,
14099 doesn't look at rhs2.
14100
14101 2012-03-01 Richard Guenther <rguenther@suse.de>
14102
14103 PR middle-end/52443
14104 * tree-cfg.c (verify_gimple_assign_unary): Allow any
14105 conversions from integral types to pointer types.
14106
14107 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
14108
14109 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
14110 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
14111 unintentionally removed in r184616.
14112
14113 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14114
14115 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
14116 3DNow from bdver1.
14117
14118 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14119 Uros Bizjak <ubizjak@gmail.com>
14120
14121 PR target/52437
14122 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
14123 alternatives, add "e" constraint to the new last alternative
14124 and ! to last 3 alternatives.
14125
14126 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
14127
14128 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
14129 DW_AT_artificial attributes at the end of the processing.
14130 (gen_array_type_die): Likewise.
14131 (gen_enumeration_type_die): Likewise.
14132 (gen_struct_or_union_type_die): Likewise.
14133 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
14134 the parent type.
14135
14136 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14137
14138 PR middle-end/52419
14139 * expr.c (expand_assignment): If doing misaligned store that doesn't
14140 cover all mode bits, perform a RMW cycle.
14141
14142 PR tree-optimization/52429
14143 * tree-parloops.c (separate_decls_in_region_debug): Return early
14144 if var is LABEL_DECL.
14145
14146 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14147
14148 PR tree-optimization/52424
14149 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
14150 calling dom_thread_across_edge.
14151
14152 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14153
14154 * config/avr/avr.c: Move definition of TARGET macros to end of file.
14155
14156 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14157
14158 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
14159 * config/avr/avr.c (avr_output_bld): Remove unused function.
14160 (avr_out_sbxx_branch): Use "%T" to print bit position.
14161
14162 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14163
14164 * config/avr/avr.md: Untabify.
14165
14166 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14167
14168 * config/avr/avr.md (eqne): New code iterator.
14169 (*dec-and-branchsi): Use it in text peephole's condition.
14170 (*dec-and-branchhi): Ditto.
14171 (*dec-and-branchqi): Ditto.
14172
14173 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
14174
14175 PR target/49939
14176 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
14177 the device does not have the skip-bug.
14178
14179 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
14180
14181 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
14182 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
14183 -mpretend-cmove): New.
14184
14185 2012-02-29 Jakub Jelinek <jakub@redhat.com>
14186
14187 PR bootstrap/52397
14188 * df.h (struct df_d): Adjust comment that hard_regs_live_count
14189 doesn't count DEBUG_INSN refs.
14190 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
14191 for DEBUG_INSN refs.
14192
14193 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14194
14195 Partially revert:
14196
14197 2012-02-20 Richard Guenther <rguenther@suse.de>
14198 PR tree-optimization/52298
14199 * tree-vect-stmts.c (vectorizable_load): Properly use
14200 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
14201
14202 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
14203
14204 PR middle-end/51752
14205 * gimple.h (gimple_in_transaction): New.
14206 (gimple_set_in_transaction): New.
14207 (struct gimple_statement_base): Add in_transaction field.
14208 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
14209 transaction loads.
14210 (tree_ssa_lim_initialize): Compute transaction bits.
14211 * tree.h (compute_transaction_bits): Protoize.
14212 * trans-mem.c (tm_region_init): Use the heap to store BB
14213 auxilliary data.
14214 (compute_transaction_bits): New.
14215
14216 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14217
14218 * gcc.c (display_help): Document --help=common and sort entries
14219 alphabetically.
14220
14221 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14222
14223 * doc/install.texi: Document check-$LANG specific shortcuts
14224
14225 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14226
14227 PR target/51534
14228 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
14229 and vcgtu.
14230 * config/arm/arm_neon.h: Regenerate.
14231 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
14232 (neon_vcgeu): New insn.
14233 (neon_vcgtu): Likewise.
14234 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
14235 (ops): Unsigned comparison intrinsics call a different builtin.
14236
14237 2012-02-28 Richard Guenther <rguenther@suse.de>
14238
14239 PR target/52407
14240 * config/i386/i386.c (ix86_expand_vector_set): Fix element
14241 ordering for the VEC_CONCAT for two element vectors for
14242 V2SFmode, V2SImode and V2DImode.
14243
14244 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
14245
14246 PR target/49448
14247 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
14248 detecting big-endian triplets.
14249
14250 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
14251
14252 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
14253 mode if there is no type information available.
14254
14255 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
14256
14257 PR tree-optimization/53207
14258 * doc/invoke.texi: Document as experimental and relying on graphite.
14259
14260 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14261
14262 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
14263 of initializer to changes from r184614.
14264
14265 2012-02-28 Richard Guenther <rguenther@suse.de>
14266
14267 PR tree-optimization/52395
14268 * tree-sra.c (build_ref_for_offset): Also look at the base
14269 TYPE_ALIGN when figuring out the alignment of the replacement.
14270
14271 2012-02-28 Richard Guenther <rguenther@suse.de>
14272
14273 PR tree-optimization/52402
14274 * ipa-prop.c (ipa_modify_call_arguments): Properly use
14275 mis-aligned types when creating the accesses at the call site.
14276
14277 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14278
14279 * config/avr/builtins.def: New file.
14280 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
14281 * config/avr/avr.c (enum avr_builtin_id): Use it.
14282 (avr_init_builtins): Use it. And use avr_bdesc.
14283 (bdesc_1arg): Remove.
14284 (bdesc_2arg): Remove.
14285 (bdesc_3arg): Remove.
14286 (struct avr_builtin_description): Add field n_args.
14287 (avr_bdesc): New static variable using builtins.def.
14288 (avr_expand_builtin): Use it.
14289 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
14290 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
14291 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
14292
14293 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14294
14295 PR target/52148
14296 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
14297 match only one single hard register with respective hard reg rtx.
14298 (movmemx_<mode>): Ditto.
14299 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
14300 insn anatomy of movmem[x]_<mode>.
14301 (avr_out_movmem): Same for printing assembler and operand usage.
14302
14303 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
14304
14305 PR target/49868
14306 PR target/52261
14307 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
14308 address spaces located outside of device flash.
14309
14310 * config/avr/avr.h (base_arch_s): Remove field n_segments.
14311 (mcu_type_s): Add field n_flash.
14312 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
14313 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
14314 (AVR_MCU): Add N_FLASH argument.
14315 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
14316 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
14317 macro __FLASH<n> if that address space makes sense for the device.
14318 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
14319 outside of target flash.
14320 (avr_asm_named_section): Ditto.
14321 (avr_asm_select_section): Ditto.
14322 (avr_addr_space_convert): Ditto.
14323 (avr_emit_movmemhi): Ditto.
14324 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
14325 address space is outside of device flash.
14326 (avr_insert_attributes): Ditto.
14327 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
14328 avr_current_arch->n_segments.
14329
14330 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
14331
14332 PR target/52352
14333 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
14334 (*movabs<mode>_2): Likewise.
14335
14336 2012-02-27 Jakub Jelinek <jakub@redhat.com>
14337
14338 PR target/52375
14339 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
14340 s_register_operand in the test instead of REG_P. Don't call
14341 gen_reg_rtx if it won't be used.
14342
14343 PR tree-optimization/52376
14344 * ipa-split.c (split_function): Ignore CLOBBER stmts.
14345
14346 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
14347
14348 * ifcvt.c (noce_get_condition): Check condition variable is not
14349 small_register_classes_for_mode_p before accepting.
14350
14351 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
14352
14353 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
14354
14355 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14356
14357 Revert:
14358 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14359 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
14360 tuning parameters.
14361 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
14362
14363 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
14364
14365 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
14366
14367 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
14368
14369 * config/sh/predicates.md: Remove blank lines.
14370 * config/sh/sh.c: Fix typos in comments.
14371 * config/sh/constraints.md: Likewise.
14372 * config/sh/sh.md: Remove blank lines.
14373 Fix typos in comments. Use ;; as comment characters.
14374
14375 2012-02-26 Walter Lee <walt@tilera.com>
14376
14377 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
14378 (replace_mov_pcrel_step2): Ditto.
14379
14380 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
14381
14382 PR debug/52001
14383 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
14384 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
14385 and locs that reference values newer than the non-canonical value
14386 at hand. Return the canonical value as a worst case.
14387 (memrefs_conflict_p): Walk canonical value's locs.
14388
14389 PR debug/52001
14390 * cselib.c (preserve_only_constants): Rename to...
14391 (preserve_constants_and_equivs): ... this. Split out...
14392 (invariant_or_equiv_p): ... this. Preserve plus expressions
14393 of other preserved expressions too.
14394 (cselib_reset_table): Adjust.
14395 * var-tracking.c (reverse_op): Use canonical value to build
14396 reverse operation.
14397
14398 2012-02-23 Kai Tietz <ktietz@redhat.com>
14399
14400 * config/i386/i386.c (ix86_delegitimize_address): Handle
14401 UNSPEC_PCREL plus displacement.
14402
14403 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
14404
14405 PR target/52261
14406 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
14407 to test for unusedness in st X addressing.
14408
14409 2012-02-24 Richard Guenther <rguenther@suse.de>
14410
14411 PR middle-end/52361
14412 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
14413 (is_gimple_reg_type): Move inline ...
14414 * gimple.h (is_gimple_reg_type): ... here.
14415
14416 2012-02-24 Richard Guenther <rguenther@suse.de>
14417
14418 PR middle-end/52361
14419 * passes.c (execute_function_todo): When verifying SSA form
14420 verify gimple form first.
14421 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
14422
14423 2012-02-24 Richard Guenther <rguenther@suse.de>
14424
14425 PR middle-end/52355
14426 * fold-const.c (fold_addr_of_array_ref_difference): New function.
14427 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
14428
14429 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14430
14431 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
14432
14433 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14434
14435 * tree-phinodes.c (make_phi_node): Mark static.
14436 * tree-flow.h (make_phi_node): Remove extern decl.
14437 * doc/gimple.texi (make_phi_node): Remove documentation.
14438
14439 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14440
14441 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
14442 * tree-ssa-sccvn.c (print_scc): Ditto.
14443
14444 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14445
14446 * doc/passes.texi (Full redundancy elimination): Fix typo.
14447
14448 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14449
14450 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
14451
14452 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
14453
14454 PR bootstrap/52287
14455 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
14456
14457 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
14458
14459 PR c/52290
14460 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
14461
14462 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
14463
14464 * config/avr/avr.md (code_stdname): Add ior, xor.
14465 (xior): New code iterator.
14466 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
14467 (*<code_stdname><mode>qi.byte1-3): Ditto.
14468
14469 2012-02-23 Jakub Jelinek <jakub@redhat.com>
14470
14471 PR tree-optimization/52019
14472 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
14473 CLOBBER stmts.
14474
14475 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14476
14477 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
14478 HAVE_INITFINI_ARRAY to work around namespace pollution in
14479 certain versions of newlib system headers.
14480 * config.in: Regenerate.
14481 * configure: Regenerate.
14482 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
14483 instead of HAVE_INITFINI_ARRAY.
14484
14485 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
14486
14487 PR target/52330
14488 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
14489 is not offsettable memory reference.
14490
14491 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14492
14493 PR target/18145
14494 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
14495 setting avr_need_clear_bss_p for __gnu_lto* symbols.
14496
14497 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14498
14499 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
14500 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
14501
14502 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14503
14504 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
14505 library on Solaris 8 even without TLS support.
14506 * configure: Regenerate.
14507
14508 2012-02-22 Richard Guenther <rguenther@suse.de>
14509
14510 PR middle-end/52329
14511 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
14512 for GIMPLE_DEBUG stmts.
14513
14514 2012-02-22 Martin Jambor <mjambor@suse.cz>
14515
14516 PR middle-end/51782
14517 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
14518 according to the base object.
14519
14520 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
14521
14522 PR rtl-optimization/50063
14523 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
14524 and 2 (8-bit SP) in operand 2.
14525 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
14526 setup to use movhi_sp_r instead of vanilla move to write SP.
14527 Adjust REG_CFA notes to superseed unspec.
14528 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
14529 of vanilla move.
14530 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
14531 known to be off) only with TARGET_NO_INTERRUPTS. Never use
14532 irq_state 1 (IRQ known to be on) here.
14533
14534 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
14535
14536 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
14537 WORDS_BIG_ENDIAN.
14538 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
14539 assign_hard_reg): Likewise.
14540
14541 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14542
14543 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
14544
14545 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14546
14547 * config/avr/avr.md
14548 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
14549 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
14550
14551 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
14552
14553 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
14554 prototype from here to...
14555 * config/avr/avr.h: ...here.
14556
14557 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
14558
14559 PR target/52294
14560 * thumb2.md (thumb2_shiftsi3_short): Split register and
14561 immediate shifts. For register shifts tie operands 0 and 1.
14562 (peephole2 for above): Check that register-controlled shifts
14563 have suitably tied operands.
14564
14565 2012-02-21 Quentin Neill <quentin.neill@amd.com>
14566
14567 PR target/52137
14568 * config/i386/bdver1.md (bdver1_call, bdver1_push,
14569 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
14570 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
14571 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
14572 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
14573 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
14574 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
14575 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
14576 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
14577 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
14578 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
14579 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
14580 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
14581 bdver1_ssevector_avx256_unaligned_load,
14582 bdver1_ssevector_sse128_unaligned_load,
14583 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
14584 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
14585 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
14586 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
14587 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
14588 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
14589 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
14590 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
14591 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
14592 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
14593 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
14594 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
14595 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
14596 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
14597 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
14598 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
14599 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
14600 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
14601 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
14602 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
14603 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
14604 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
14605 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
14606 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
14607 bdver1_ssediv_double_load, bdver1_ssediv_double,
14608 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
14609 Add "bdver2" attribute.
14610
14611 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14612
14613 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
14614 default if possible and not specified otherwise.
14615
14616 2012-02-21 Richard Guenther <rguenther@suse.de>
14617
14618 PR middle-end/52314
14619 * gimplify.c (create_tmp_from_val): Use the main variant type
14620 for the type of the temporary we create.
14621
14622 2012-02-21 Richard Guenther <rguenther@suse.de>
14623
14624 PR tree-optimization/52324
14625 * gimplify.c (gimplify_expr): When re-gimplifying expressions
14626 do not gimplify a MEM_REF address operand if it is already
14627 in suitable form.
14628
14629 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14630
14631 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
14632 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
14633
14634 2012-02-21 Richard Guenther <rguenther@suse.de>
14635
14636 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
14637 nested_in_vect_loop.
14638
14639 2012-02-21 Jakub Jelinek <jakub@redhat.com>
14640
14641 PR tree-optimization/52318
14642 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
14643 vdef also to non-pure/const call stmts in the sequence.
14644
14645 2012-02-21 Tristan Gingold <gingold@adacore.com>
14646
14647 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
14648
14649 2012-02-20 David S. Miller <davem@davemloft.net>
14650
14651 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
14652 don't use the "rd %pc" instruction on v9 for PIC register loads.
14653
14654 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
14655
14656 PR middle-end/52141
14657 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
14658 in a transaction safe function.
14659
14660 2012-02-20 Kai Tietz <ktietz@redhat.com>
14661
14662 PR target/52238
14663 * stor-layout.c (place_field): Handle desired_align for
14664 ms-bitfields, too.
14665
14666 2012-02-20 Richard Guenther <rguenther@suse.de>
14667
14668 PR tree-optimization/52298
14669 * tree-vect-stmts.c (vectorizable_store): Properly use
14670 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
14671 outer loops.
14672 (vectorizable_load): Likewise.
14673 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
14674 Access DR_STEP after ensuring it is not NULL.
14675
14676 2012-02-20 Jakub Jelinek <jakub@redhat.com>
14677
14678 PR tree-optimization/52286
14679 * fold-const.c (fold_binary_loc): For (X & C1) | C2
14680 optimization use double_int_to_tree instead of build_int_cst_wide,
14681 rewrite to use double_int vars.
14682
14683 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14684
14685 PR target/50166
14686 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
14687 Define _start.
14688 Remove -e 0 from $gcc_cv_ld invocation.
14689 Only use __GLIBC_PREREQ if defined.
14690 Enable on Solaris since Solaris 8 patch.
14691 (gcc_SUN_LD_VERSION): New macro.
14692 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
14693 gcc_SUN_LD_VERSION for version number format.
14694 * configure: Regenerate.
14695 * varasm.c (get_elf_initfini_array_priority_section): Set
14696 SECTION_NOTYPE for non-default priority.
14697 Use get_section instead of get_unnamed_section to emit
14698 .init_array/.fini_array with default priority.
14699
14700 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
14701
14702 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
14703 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
14704 (mips_start_unique_function, mips_output_mips16_rdhwr)
14705 (mips_code_end): New functions.
14706 (TARGET_ASM_CODE_END): Define.
14707
14708 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
14709
14710 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
14711 to stubs with non-sibling calls.
14712
14713 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
14714
14715 * doc/invoke.texi (-fira-* options): Copy-edit.
14716 (ira-* parameters): Copy-edit.
14717
14718 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
14719
14720 * doc/invoke.texi: Minor copy-edits to bring into conformance with
14721 GCC coding conventions.
14722
14723 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
14724
14725 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
14726 when used as adjectives.
14727
14728 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
14729
14730 * doc/invoke.texi: Clean up "that"/"which" confusion.
14731
14732 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
14733
14734 * system.h: Poison SMALL_REGISTER_CLASSES
14735 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
14736 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
14737
14738 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14739
14740 PR tree-optimization/52285
14741 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
14742 when deciding if a call is a tail call or tail recursion.
14743
14744 2012-02-16 Kai Tietz <ktietz@redhat.com>
14745
14746 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14747 interger-constant displacement for UNSPEC_PCREL.
14748
14749 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14750
14751 PR rtl-optimization/52208
14752 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
14753 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
14754
14755 PR tree-optimization/52255
14756 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
14757 loop->header has virtual PHI, but exit_e->dest doesn't, add
14758 virtual PHI to exit_e->dest and adjust all uses after the loop.
14759
14760 PR debug/52260
14761 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
14762 children with clone_tree_hash, not after it.
14763
14764 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
14765
14766 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
14767 extended identifiers.
14768
14769 2012-02-16 Jakub Jelinek <jakub@redhat.com>
14770
14771 PR middle-end/51929
14772 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
14773 a same_body_alias, also test whether e->callee isn't a former
14774 or current clone of the decl this is a same body alias of.
14775
14776 PR translation/52264
14777 * cgraphunit.c (verify_cgraph_node): Fix a typo.
14778
14779 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
14780
14781 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
14782
14783 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14784
14785 PR target/52199
14786 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14787 force_reg instead of copy_to_reg for better optimization. Force
14788 non-register or memory operands into a register.
14789
14790 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
14791
14792 * extend.texi: Reserve upper bits of memory model for future use.
14793
14794 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
14795 Anatoly Sokolov <aesok@post.ru>
14796 Eric Weddington <eric.weddington@atmel.com>
14797
14798 PR target/52261
14799 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
14800 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
14801 Rewrite initializers for .macro.
14802 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
14803 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
14804 atxmega32d4, atxmega32x1.
14805 avrxmega4: atxmega64a3, atxmega64d3.
14806 avrxmega5: atxmega64a1, atxmega64a1u.
14807 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
14808 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
14809 avrxmega7: atxmega128a1, atxmega128a1u.
14810 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
14811 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
14812 (struct base_arch_s): Rename reserved to xmega_p.
14813 Rename reserved2 to have_rampd.
14814 (AVR_XMEGA): New define.
14815 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
14816 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
14817 * config/avr/predicates.md (io_address_operand): Take into
14818 account SFR offset.
14819 (low_io_address_operand): Ditto.
14820 (high_io_address_operand): Ditto.
14821 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
14822 (enabled, movhi_sp_r): Use them.
14823 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
14824 cpp_define_formatted to built-in define __AVR_ARCH__.
14825 (__AVR_XMEGA__): New built-in define.
14826 (__AVR_HAVE_RAMPD__): New built-in define.
14827 (__AVR_HAVE_RAMPX__): New built-in define.
14828 (__AVR_HAVE_RAMPY__): New built-in define.
14829 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
14830
14831 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
14832 (avr_option_override): Initialize them.
14833 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
14834 (avr_init_expanders): Initialize them. No more block several calls.
14835 (emit_push_sfr): New static function.
14836 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
14837 Handle AVR_XMEGA.
14838 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
14839 (avr_print_operand): Print addreeses as symbols for
14840 RAMPX, RAMPY, RAMPD, CCP.
14841 (output_movhi): Handle AVR_XMEGA when writing to SP.
14842 (avr_out_movhi_mr_r_xmega): New static function.
14843 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
14844 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
14845 __RAMPD__, __CCP__ as needed.
14846
14847 * config/avr/multilib.h: Regenerate.
14848 * config/avr/t-multilib: Regenerate.
14849 * config/avr/avr-tables.opt: Regenerate.
14850
14851 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
14852
14853 PR tree-optimization/50561
14854 * graphite-flattening.c (lst_project_loop): Do not
14855 remove old scattering dimensions after flattening.
14856 (lst_do_flatten): Likewise.
14857
14858 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
14859
14860 * doc/extend.texi (AVR Built-in Functions): Remove doc for
14861 __builtin_avr_map8, __builtin_avr_map16.
14862 Document __builtin_avr_insert_bits.
14863
14864 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
14865 (insert_bits): New insn.
14866 (adjust_len.map_bits): Rename to insert_bits.
14867 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
14868 * avr-protos.h (avr_out_map_bits): Remove.
14869 (avr_out_insert_bits, avr_has_nibble_0xf): New.
14870 * config/avr/constraints.md (Cxf,C0f): New.
14871 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
14872 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
14873 New built-in define __BUILTIN_AVR_INSERT_BITS.
14874 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
14875 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
14876 (avr_move_bits): Rewrite.
14877 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
14878 functions.
14879 (avr_map_op_t): New typedef.
14880 (avr_map_op): New static variable.
14881 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
14882 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
14883 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
14884 (bdesc_3arg, avr_expand_triop_builtin): New.
14885 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
14886 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
14887 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
14888 (avr_map_equal_p, avr_map_sig_p): Remove.
14889 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
14890 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14891 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
14892 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14893 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
14894 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
14895
14896 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
14897
14898 * config/c6x/c6x.md (reserve_cycles): New attribute.
14899 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
14900 don't reserve functional units after the branch occurs.
14901
14902 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
14903
14904 PR middle-end/52142
14905 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
14906 functions into non-tm_pure functions.
14907
14908 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
14909
14910 PR lto/52178
14911 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
14912 (iterative_hash_canonical_type): Likewise.
14913 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
14914 the dead edges.
14915
14916 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
14917
14918 * haifa-sched.c (prune_ready_list): Ensure that if there is a
14919 sched-group insn, it either remains alone or the entire list is pruned.
14920
14921 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
14922
14923 * doc/install.texi (Prerequisites): Fix grammar.
14924 (Configuration): Likewise.
14925
14926 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
14927
14928 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
14929 MPC as part of GCC before describing configuring with --with-gmp etc.
14930 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
14931 sources are present.
14932
14933 2012-02-14 Jakub Jelinek <jakub@redhat.com>
14934
14935 PR debug/51950
14936 * dwarf2out.c (clone_tree_hash): New function.
14937 (copy_decls_walk): Use it instead of clone_tree.
14938
14939 2012-02-14 Richard Guenther <rguenther@suse.de>
14940
14941 PR tree-optimization/52244
14942 PR tree-optimization/51528
14943 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
14944 replacements for integral types.
14945
14946 2012-02-14 Walter Lee <walt@tilera.com>
14947
14948 * config.gcc: Handle tilegx and tilepro.
14949 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
14950 tilegx and tilepro.
14951 Add HAVE_AS_TLS check for tilegx and tilepro.
14952 * configure: Regenerate.
14953 * doc/contrib.texi: Add Mat Hostetter and self.
14954 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
14955 Document instruction intrinsics and network accessing intrinsics.
14956 (TILEPro Built-in Functions): New node. Document instruction
14957 intrinsics and network accessing intrinsics.
14958 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
14959 (Specific, tilepro-*-linux*): Likewise.
14960 * doc/invoke.texi (TILE-Gx Options): New section.
14961 (TILEPro Options): New section.
14962 * doc/md.texi (TILE-Gx): New section.
14963 (TILEPro): New section.
14964 * common/config/tilegx/tilegx-common.c: New file.
14965 * common/config/tilepro/tilepro-common.c: New file.
14966 * config/tilegx/constraints.md: New file.
14967 * config/tilegx/linux.h: New file.
14968 * config/tilegx/mul-tables.c: New file.
14969 * config/tilegx/predicates.md: New file.
14970 * config/tilegx/sync.md: New file.
14971 * config/tilegx/t-tilegx: New file.
14972 * config/tilegx/tilegx-builtins.h: New file.
14973 * config/tilegx/tilegx-c.c: New file.
14974 * config/tilegx/tilegx-generic.md: New file.
14975 * config/tilegx/tilegx-modes.def: New file.
14976 * config/tilegx/tilegx-multiply.h: New file.
14977 * config/tilegx/tilegx-protos.h: New file.
14978 * config/tilegx/tilegx.c: New file.
14979 * config/tilegx/tilegx.h: New file.
14980 * config/tilegx/tilegx.md: New file.
14981 * config/tilegx/tilegx.opt: New file.
14982 * config/tilepro/constraints.md: New file.
14983 * config/tilepro/gen-mul-tables.cc: New file.
14984 * config/tilepro/linux.h: New file.
14985 * config/tilepro/mul-tables.c: New file.
14986 * config/tilepro/predicates.md: New file.
14987 * config/tilepro/t-tilepro: New file.
14988 * config/tilepro/tilepro-builtins.h: New file.
14989 * config/tilepro/tilepro-c.c: New file.
14990 * config/tilepro/tilepro-generic.md: New file.
14991 * config/tilepro/tilepro-modes.def: New file.
14992 * config/tilepro/tilepro-multiply.h: New file.
14993 * config/tilepro/tilepro-protos.h: New file.
14994 * config/tilepro/tilepro.c: New file.
14995 * config/tilepro/tilepro.h: New file.
14996 * config/tilepro/tilepro.md: New file.
14997 * config/tilepro/tilepro.opt: New file.
14998
14999 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15000
15001 PR tree-optimization/52210
15002 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
15003 vect_model_simple_cost with two entry vect_def_type array instead
15004 of an address of dt.
15005
15006 2012-02-14 Richard Guenther <rguenther@suse.de>
15007
15008 PR lto/52178
15009 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
15010 Do not stream DECL_QUALIFIER.
15011 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
15012 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
15013 (find_decls_types_r): Do not walk DECL_QUALIFIER.
15014
15015 2012-02-14 Jakub Jelinek <jakub@redhat.com>
15016
15017 PR c/52181
15018 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
15019 newdecl.
15020
15021 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15022
15023 PR bootstrap/52172
15024 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
15025 * cselib.c (cselib_subst_to_values_from_insn): New function.
15026 * sched-deps.c (add_insn_mem_dependence,
15027 sched_analyze_1, sched_analyze_2): Use it.
15028
15029 2012-02-13 Jan Hubicka <jh@suse.cz>
15030
15031 PR middle-end/52214
15032 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
15033
15034 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
15035
15036 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
15037 (GTM_SELF_SPECS): Define if not already defined.
15038 (driver_self_specs): Add GTM_SELF_SPECS.
15039 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
15040 (GTM_SELF_SPECS): Define.
15041 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
15042 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
15043
15044 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15045
15046 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
15047 away if seen.
15048
15049 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
15050
15051 PR middle-end/52230
15052 * omp-low.c (expand_omp_for): If a static schedule without chunk size
15053 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
15054
15055 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
15056
15057 PR c/52190
15058 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
15059
15060 2012-02-13 Richard Guenther <rguenther@suse.de>
15061
15062 PR translation/52211
15063 * passes.c (enable_disable_pass): Fix typo.
15064
15065 2012-02-13 Jakub Jelinek <jakub@redhat.com>
15066
15067 PR middle-end/52209
15068 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
15069 XOR for reduce_bit_field if type is unsigned.
15070
15071 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
15072
15073 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
15074 disallow changes from SFmode to mode with different size in FP regs.
15075
15076 2012-02-12 Robert Millan <rmh@gnu.org>
15077 Gerald Pfeifer <gerald@pfeifer.com>
15078
15079 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
15080 Tweak comment.
15081
15082 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
15083
15084 PR rtl-optimization/52175
15085 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
15086 to frame-related instructions.
15087
15088 2012-02-10 Jason Merrill <jason@redhat.com>
15089
15090 PR c++/51910
15091 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
15092 (demangle_new_symbols): Fill it.
15093 (scan_linker_output): Walk it.
15094 (start_tweaking): Split out from scan_linker_output.
15095 (maybe_tweak): Update sym->chosen.
15096 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
15097
15098 2012-02-11 Jakub Jelinek <jakub@redhat.com>
15099
15100 PR debug/52132
15101 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
15102
15103 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
15104
15105 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
15106 having the same mode as previous compare.
15107
15108 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
15109
15110 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
15111 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
15112 (nonlocal_goto_internal): Likewise.
15113 (nonlocal_goto): Emit a use and an indirect jump directly.
15114
15115 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
15116
15117 PR c/52190
15118 * doc/extend.texi : Update comments for __atomic_compare_exchange and
15119 __atomic_{is,always}_lock_free.
15120
15121 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
15122
15123 PR target/52146
15124 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
15125 negative constant address for TARGET_X32.
15126
15127 2012-02-10 Richard Henderson <rth@redhat.com>
15128
15129 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
15130 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
15131 for GIMPLE_TRANSACTION. Tidy if's into a switch.
15132
15133 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15134 Ira Rosen <irar@il.ibm.com>
15135
15136 PR tree-optimization/50031
15137 * targhooks.c (default_builtin_vectorization_cost): Handle
15138 vec_promote_demote.
15139 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
15140 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
15141 all types of reduction and pattern statements.
15142 (vect_estimate_min_profitable_iters): Likewise.
15143 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
15144 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
15145 for explicit realigns.
15146 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
15147 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
15148 vec_promote_demote.
15149 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15150 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
15151 vec_perm for VSX and handle vec_promote_demote.
15152
15153 2012-02-10 Jakub Jelinek <jakub@redhat.com>
15154
15155 PR middle-end/52177
15156 * builtins.c (fold_builtin_atomic_always_lock_free,
15157 expand_builtin_atomic_always_lock_free,
15158 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
15159 Return and/or test boolean_true_node/boolean_false_node instead of
15160 integer_one_node/integer_zero_node.
15161
15162 2012-02-10 Jan Hubicka <jh@suse.cz>
15163
15164 PR middle-end/48600
15165 * predict.c (predict_paths_for_bb): Prevent looping.
15166 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
15167
15168 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
15169
15170 * config/arm/arm.c (output_move_double): In one case properly
15171 count number of instructions that will be emitted.
15172
15173 2012-02-10 Richard Guenther <rguenther@suse.de>
15174
15175 PR translation/52193
15176 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
15177
15178 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
15179
15180 PR middle-end/52140
15181 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
15182
15183 2012-02-09 Jakub Jelinek <jakub@redhat.com>
15184
15185 PR debug/52165
15186 * var-tracking.c (emit_note_insn_var_location): If
15187 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
15188 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
15189 non-NOTE_DURING_CALL_P insn.
15190
15191 2012-02-09 Bin Cheng <bin.cheng@arm.com>
15192
15193 PR middle-end/51867
15194 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
15195
15196 2012-02-08 Magnus Granberg <zorry@gentoo.org>
15197
15198 PR driver/48524
15199 * gcc.c (switch_matches) Support switches with separated form,
15200 -D and -U.
15201
15202 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
15203
15204 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
15205 (SP_ADDR): Ditto.
15206 (RAMPZ_ADDR): Ditto.
15207 * config/avr/avr.c (avr_addr_t): New typedef.
15208 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
15209 (avr_init_expanders): Initialize it.
15210 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
15211 SREG_ADDR.
15212 (expand_epilogue): Ditto.
15213 (avr_print_operand): Ditto.
15214 (avr_file_start): Ditto.
15215 (avr_emit_movmemhi): Ditto.
15216
15217 2012-02-08 Richard Guenther <rguenther@suse.de>
15218
15219 PR tree-optimization/46886
15220 * tree-flow.h (do_while_loop_p): Declare.
15221 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
15222 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
15223
15224 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
15225
15226 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
15227 always succeed for integers larger than a native word.
15228
15229 2012-02-08 Richard Guenther <rguenther@suse.de>
15230
15231 PR rtl-optimization/52170
15232 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
15233 properly handle integer vector modes.
15234
15235 2012-02-08 Jakub Jelinek <jakub@redhat.com>
15236
15237 PR gcov-profile/52150
15238 * coverage.c: Include target.h.
15239 (build_var): Call targetm.strip_name_encoding on the assembler name.
15240 Change one _ into . or $ if the target allows it.
15241 * Makefile.in (coverage.o): Depend on $(TARGET_H).
15242
15243 PR rtl-optimization/52139
15244 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
15245 is a BARRIER after emit_insn_after_noloc, move BB_END
15246 to the last non-BARRIER insn before it.
15247
15248 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
15249
15250 PR middle-end/24306
15251 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
15252 (mips_gimplify_va_arg_expr): Call it instead of
15253 std_gimplify_va_arg_expr.
15254
15255 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15256
15257 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
15258 message for -mno-pointers-to-nested-function.
15259
15260 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
15261
15262 PR middle-end/51994
15263 * expr.c (get_inner_reference): If there is an offset, add a negative
15264 bit position to it (if any).
15265
15266 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15267
15268 PR rtl-optimization/52060
15269 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
15270 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
15271 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
15272 and/or i0src_copy2 when needed.
15273
15274 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15275
15276 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
15277 or LTOPLUGINSONAME if have_c.
15278
15279 * config/freebsd-spec.h: Add comment about what macros can be defined
15280 in this header.
15281 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
15282 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
15283 here instead.
15284
15285 2012-02-07 Richard Guenther <rguenther@suse.de>
15286
15287 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
15288 newline in -alias dumps.
15289
15290 2012-02-07 Kai Tietz <ktietz@redhat.com>
15291 Dave Korn <dave.korn.cygwin@gmail.com>
15292
15293 PR target/40068
15294 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
15295 Take care that typinfo gets dllexport-attribute.
15296
15297 2012-02-07 Jakub Jelinek <jakub@redhat.com>
15298
15299 PR middle-end/52074
15300 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
15301 if modifier < EXPAND_SUM call force_operand on the result.
15302
15303 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
15304
15305 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
15306 adding __forwarder_dst__ prefix if a forwarder_section attribute is
15307 present.
15308 (epiphany_function_type): Replace types for specific interrupts with
15309 EPIPHANY_FUNCTION_INTERRUPT.
15310 (EPIPHANY_INTERRUPT_P): Update.
15311 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
15312 New static function.
15313 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
15314 <disinterrupt>: Affects type identity.
15315 (epiphany_handle_interrupt_attribute): Handle variable number of
15316 arguments.
15317 (epiphany_compute_function_type): Update for new
15318 epiphany_function_type definition.
15319 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
15320 handlers with a longcall forwarder.
15321 (epiphany_start_function): Handle multiple interrupt arguments and/or
15322 forwarder_section attribute.
15323
15324 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
15325 libgloss.
15326
15327 2012-02-07 Alan Modra <amodra@gmail.com>
15328
15329 PR target/52107
15330 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
15331 subregs of TFmode.
15332
15333 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15334
15335 PR tree-optimization/50969
15336 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
15337 use vec_perm rather than vector_stmt.
15338 (vect_model_load_cost): Likewise.
15339 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
15340 vec_perm to be the same as other vector statements.
15341 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
15342 cost of vec_perm for TARGET_VSX.
15343
15344 2012-02-06 Richard Guenther <rguenther@suse.de>
15345
15346 PR tree-optimization/52115
15347 * tree-sra.c (access_has_replacements_p): New function.
15348 (sra_modify_assign): Use it to decide whether a use is uninitialized.
15349
15350 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
15351
15352 PR middle-end/52047
15353 * trans-mem.c (expand_call_tm): Add an assertion.
15354 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
15355 functions.
15356
15357 2012-02-06 Richard Guenther <rguenther@suse.de>
15358
15359 PR tree-optimization/50955
15360 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
15361 raise cost of expressions that replace an address with an
15362 expression based on a different pointer.
15363
15364 2012-02-06 Jakub Jelinek <jakub@redhat.com>
15365
15366 PR target/52129
15367 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
15368 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
15369
15370 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
15371
15372 PR c++/48680
15373 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
15374 -Weffc++ and specify guidelines come from second edition.
15375
15376 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
15377
15378 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
15379 (sibcall_value_multiple_internal, call_split, call_internal_direct)
15380 (call_direct_split, call_value_split, call_value_internal_direct)
15381 (call_value_direct_split, call_value_multiple_split): Use jal and
15382 jal_macro attributes.
15383
15384 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
15385
15386 * reload1.c (reload_regs_reach_end_p): Replace with...
15387 (reload_reg_rtx_reaches_end_p): ...this function.
15388 (new_spill_reg_store): Update commentary.
15389 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
15390 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
15391 before setting new_spill_reg_store.
15392 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
15393 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
15394 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
15395 for non-spill reload registers.
15396
15397 2012-02-05 Ira Rosen <irar@il.ibm.com>
15398
15399 PR tree-optimization/52091
15400 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
15401 (vect_is_simple_use_1): Likewise.
15402 * tree-vect-loop.c (vectorizable_reduction): Update calls
15403 to vect_is_simple_use_1 and vect_is_simple_use.
15404 (vectorizable_live_operation): Likewise.
15405 * tree-vect-patterns.c (widened_name_p,
15406 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
15407 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
15408 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
15409 vectorizable_shift,vectorizable_operation, vectorizable_store,
15410 vectorizable_load): Likewise.
15411 (vect_is_simple_cond): Add an argument, pass it to
15412 vect_is_simple_use_1.
15413 (vectorizable_condition): Update calls to vect_is_simple_cond,
15414 vect_is_simple_use.
15415 (vect_is_simple_use): Add an argument, the statement in which
15416 OPERAND is used. Check that if OPERAND's def stmt is a double
15417 reduction phi node, the use is a phi node too.
15418 (vect_is_simple_use_1): Add an argument, pass it to
15419 vect_is_simple_use.
15420 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
15421 to vect_is_simple_use.
15422
15423 2012-02-04 Jakub Jelinek <jakub@redhat.com>
15424
15425 PR rtl-optimization/52095
15426 * modulo-sched.c (dump_insn_locator): New function.
15427 (loop_canon_p, sms_schedule): Use it.
15428
15429 PR rtl-optimization/52113
15430 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
15431 even for decomposable shift/zext insns.
15432
15433 2012-02-03 Jakub Jelinek <jakub@redhat.com>
15434 Zdenek Dvorak <ook@ucw.cz>
15435
15436 PR rtl-optimization/52092
15437 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
15438 on get_iv_value result.
15439
15440 2012-02-02 Andrew Pinski <apinski@cavium.com>
15441
15442 PR middle-end/47982
15443 PR middle-end/43967
15444 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
15445
15446 2012-02-02 Jakub Jelinek <jakub@redhat.com>
15447
15448 PR middle-end/48071
15449 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
15450
15451 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
15452
15453 PR rtl-optimization/49800
15454 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
15455 (sched_finish): Call regstat_free_n_sets_and_refs.
15456
15457 2012-02-02 Jia Liu <proljc@gmail.com>
15458
15459 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
15460 than operand 2.
15461
15462 2012-02-02 Jan Hubicka <jh@suse.cz>
15463 Tom de Vries <tom@codesourcery.com>
15464
15465 PR middle-end/51998
15466 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
15467 * varpool.c (varpool_analyze_pending_decls): Likewise.
15468
15469 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
15470 Jayant R Sonar <jayant.sonar@kpitcummins.com>
15471
15472 * config.gcc: Add cr16-* support.
15473
15474 * doc/extend.texi: Document cr16 extensions.
15475 * doc/install.texi: Document cr16 install.
15476 * doc/invoke.texi: Document cr16 options.
15477 * doc/md.texi: Document cr16 constraints.
15478
15479 * common/config/cr16/cr16-common.c: New file.
15480 * config/cr16/cr16.c: New file.
15481 * config/cr16/cr16.h: New file.
15482 * config/cr16/cr16.md: New file.
15483 * config/cr16/cr16.opt: New file.
15484 * config/cr16/cr16-protos.h: New file.
15485 * config/cr16/predicates.md: New file.
15486 * config/cr16/constraints.md: New file.
15487 * config/cr16/t-cr16: New file.
15488
15489 2012-02-02 Jakub Jelinek <jakub@redhat.com>
15490
15491 PR target/52086
15492 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
15493 that operands[2] is either immediate, or q_regs_operand.
15494
15495 PR tree-optimization/52073
15496 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
15497 a pattern stmt for pattern uses, ignore uses outside of the loop.
15498
15499 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
15500
15501 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
15502 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
15503 (OUT_AS1, OUT_AS2): Remove.
15504
15505 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
15506
15507 PR rtl-optimization/51374
15508 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
15509 to cross other volatile_refs_p insns.
15510
15511 2012-02-01 Richard Guenther <rguenther@suse.de>
15512
15513 * doc/invoke.texi (fno-inline): Clarify documentation.
15514 (finline-small-functions): Likewise.
15515 (finline-functions): Likewise.
15516 * common.opt (finline): Adjust comment and documentation.
15517 (finline-small-functions): Clarify documentation.
15518 (finline-functions): Likewise.
15519 (finline-functions-called-once): Likewise.
15520
15521 2012-02-01 Tristan Gingold <gingold@adacore.com>
15522
15523 * c-typeck.c (composite_type): Keep mode for pointers.
15524
15525 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
15526
15527 * function.h (regno_reg_rtx): Adjust comment.
15528 * reginfo.c (init_reg_modes_target): Only use the previous mode
15529 if it fits within one register. Remove MIPS comment.
15530
15531 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15532
15533 PR bootstrap/52058
15534 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
15535
15536 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15537
15538 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
15539 to srak instruction.
15540
15541 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
15542
15543 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
15544
15545 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15546
15547 PR bootstrap/52041
15548 PR bootstrap/52039
15549 PR target/51974
15550 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
15551
15552 2012-01-31 Richard Guenther <rguenther@suse.de>
15553
15554 PR tree-optimization/51528
15555 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
15556 assigns.
15557
15558 2012-01-31 Jakub Jelinek <jakub@redhat.com>
15559
15560 PR bootstrap/52041
15561 PR bootstrap/52039
15562 PR target/51974
15563 * ree.c (add_removable_extension): Change def_map argument
15564 to unsigned *, store in def_map 1 + offset into *insn_list vector
15565 instead of pointers into the vector.
15566 (find_removable_extensions): Adjust caller.
15567
15568 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
15569
15570 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
15571 Transform all "* quoted-c-code" to { c-code }.
15572 Remove redundant test for "optimize" in combine patterns.
15573 Move (include "avr-dimode.md") to end of file.
15574
15575 2012-01-30 Bin Cheng <bin.cheng@arm.com>
15576
15577 PR target/51835
15578 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15579 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
15580
15581 2012-01-30 Richard Guenther <rguenther@suse.de>
15582
15583 PR tree-optimization/52028
15584 * tree-loop-distribution.c (ldist_gen): Properly update
15585 virtual SSA form.
15586
15587 2012-01-30 Jakub Jelinek <jakub@redhat.com>
15588
15589 PR debug/52027
15590 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
15591 set_cur_line_info_table if not emitting debug info.
15592
15593 PR tree-optimization/52046
15594 * tree-vect-patterns.c (check_bool_pattern): Give up if
15595 a comparison could throw.
15596
15597 PR debug/52048
15598 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
15599
15600 2012-01-30 Richard Guenther <rguenther@suse.de>
15601
15602 PR tree-optimization/52045
15603 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
15604 SSA form if cfgcleanup did anything.
15605
15606 2012-01-30 Richard Guenther <rguenther@suse.de>
15607
15608 PR tree-optimization/52045
15609 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
15610 before computing final todo.
15611
15612 2012-01-30 Richard Guenther <rguenther@suse.de>
15613
15614 PR tree-optimization/51528
15615 * tree-sra.c (sra_modify_assign): Re-factor in preparation
15616 for PR51528 fix.
15617
15618 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
15619
15620 * df-problems.c (df_kill_notes): Check that the use refers
15621 to the note under examination.
15622
15623 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
15624
15625 PR target/51920
15626 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
15627 parameter and use short-lived pseudos.
15628 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
15629 (sparc_expand_vector_init): Const-ify local variables and adjust
15630 calls to above functions.
15631
15632 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
15633
15634 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
15635
15636 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
15637
15638 * doc/invoke.texi: Make usage of "compile time" and
15639 "run time"/"runtime" consistent throughout the file.
15640
15641 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
15642
15643 * config/alpha/alpha.c (alpha_option_override): Default to
15644 full IEEE compliance mode for Go language.
15645
15646 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
15647
15648 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
15649 (LINK_SSP_SPEC): Define.
15650
15651 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15652
15653 PR target/51871
15654 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
15655 stubs.
15656
15657 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
15658
15659 * doc/invoke.texi: Correct hyphenation of "floating point",
15660 "double precision", and related terminology throughout the file.
15661
15662 2012-01-28 Jakub Jelinek <jakub@redhat.com>
15663
15664 PR target/52006
15665 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
15666 arm_general_register_operand predicate for operand 2 instead of
15667 register_operand.
15668
15669 2012-01-27 Ian Lance Taylor <iant@google.com>
15670
15671 PR go/47656
15672 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
15673 * builtins.c (expand_builtin_init_trampoline): Add onstack
15674 parameter. Change caller.
15675 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15676 * tree.c (build_common_builtin_nodes): Declare
15677 __builtin_init_heap_trampoline.
15678
15679 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
15680
15681 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
15682 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
15683 * config/avr/avr.c: Ditto.
15684 (avr_regnames): Remove because unused.
15685 * config/avr/avr.md (*cpse.ne): New peephole.
15686 (*cpse.eq): New peephole from former cpse peepholes.
15687
15688 2012-01-27 Michael Eager <eager@eagercon.com>
15689
15690 * config/microblaze.c (microblaze_emit_compare): Correct
15691 test after pcmp instruction.
15692
15693 2012-01-27 Richard Guenther <rguenther@suse.de>
15694
15695 PR tree-optimization/52020
15696 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
15697
15698 2012-01-27 Richard Guenther <rguenther@suse.de>
15699
15700 * ipa-pure-const.c (check_stmt): Clobbers do not make a
15701 function non-const/pure.
15702
15703 2012-01-27 Richard Guenther <rguenther@suse.de>
15704
15705 PR tree-optimization/50444
15706 * tree-sra.c (build_ref_for_offset): Properly adjust the
15707 MEM_REF type for unaligned accesses.
15708
15709 2012-01-27 Richard Guenther <rguenther@suse.de>
15710
15711 PR tree-optimization/50444
15712 * expr.c (mem_ref_refers_to_non_mem_p): New function.
15713 (expand_assignment): Use it. Properly handle misaligned
15714 bases when expanding stores to component references.
15715 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
15716 refactor that case.
15717
15718 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
15719
15720 PR middle-end/51389
15721 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
15722 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
15723 * tree-data-ref.c (find_data_references_in_loop): Make static.
15724 (compute_all_dependences): Change return type to bool. Bail out
15725 for too many datarefs in a loop. Move the hunk resetting the data
15726 dependences vector from ...
15727 (compute_data_dependences_for_loop): ... here. Account for
15728 compute_all_dependences returning false.
15729 (compute_data_dependences_for_bb): Likewise.
15730 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
15731 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
15732
15733 2012-01-27 Richard Guenther <rguenther@suse.de>
15734
15735 PR middle-end/51959
15736 * expr.c (store_field): Use the alias-set of the scratch memory
15737 for storing to it.
15738
15739 2012-01-27 Tom de Vries <tom@codesourcery.com>
15740
15741 PR tree-optimization/51990
15742 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15743 WITH_SIZE_EXPR.
15744 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
15745
15746 2012-01-27 Jakub Jelinek <jakub@redhat.com>
15747
15748 PR debug/52001
15749 * var-tracking.c (reverse_op): Don't add any reverse operation
15750 if V already has any constant locations.
15751
15752 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
15753
15754 * doc/invoke.texi: Correct usage of "command line" (noun)
15755 vs "command-line" (adjective) throughout.
15756
15757 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
15758
15759 * doc/invoke.texi (Language Independent Options): Move
15760 -Wcoverage-mismatch blurb from here....
15761 (Warning Options): ...to here.
15762
15763 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
15764
15765 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15766 Set rs6000_always_hint to false for 476.
15767
15768 2012-01-27 Matthias Klose <doko@ubuntu.com>
15769
15770 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
15771 system root.
15772 * incpath.c (add_standard_paths): Likewise.
15773
15774 2012-01-27 Richard Henderson <rth@redhat.com>
15775
15776 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15777 * config/m68k/sync.md (atomic_test_and_set): Rename from
15778 sync_test_and_setqi and adjust the operands.
15779 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
15780 and unconditionally enable.
15781
15782 2012-01-27 Richard Henderson <rth@redhat.com>
15783
15784 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15785 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
15786 (ldstub): Rename from ldstubqi.
15787 (ldstub<I24MODE>): Remove.
15788
15789 2012-01-27 Richard Henderson <rth@redhat.com>
15790
15791 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
15792 * c-cppbuiltin.c (cpp_atomic_builtins): Define
15793 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
15794 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
15795 * doc/tm.texi: Rebuild.
15796
15797 2012-01-27 Richard Henderson <rth@redhat.com>
15798
15799 * optabs.c (gen_atomic_test_and_set): Remove default.
15800 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
15801
15802 2012-01-26 Jakub Jelinek <jakub@redhat.com>
15803
15804 PR rtl-optimization/51978
15805 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
15806 (combine_reaching_defs): Likewise.
15807 (struct re_info): Remove.
15808 (add_removable_extension): Remove x and data arguments,
15809 add insn, insn_list and def_map. Use the arguments directly
15810 instead of using struct re_info.
15811 (find_removable_extensions): Don't call add_removable_extension
15812 through note_stores, instead just call it with single_set
15813 result if non-NULL.
15814 (find_and_remove_re): Pass curr_cand->expr instead of
15815 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
15816
15817 2012-01-26 Michael Matz <matz@suse.de>
15818
15819 PR tree-optimization/46590
15820 * cfgexpand.c: Revert last change (r183305).
15821 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
15822 regs.
15823 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
15824 checking for emptiness.
15825
15826 2012-01-26 Jakub Jelinek <jakub@redhat.com>
15827
15828 PR middle-end/51895
15829 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
15830 non-addressable non-BLKmode base correctly.
15831
15832 2012-01-26 Michael Matz <matz@suse.de>
15833
15834 PR tree-optimization/48794
15835 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
15836 regions referenced from RESX/EH_DISPATCH.
15837
15838 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15839
15840 * config/s390/s390.h: Make BRANCH_COST an option.
15841 * config/s390/s390.opt: New option -mbranch-cost.
15842
15843 2012-01-26 Richard Henderson <rth@redhat.com>
15844
15845 Revert 2012-01-24 change:
15846 * trans-mem.c (requires_barrier): Do not instrument thread local
15847 variables and emit save/restore for them.
15848
15849 2012-01-25 Jakub Jelinek <jakub@redhat.com>
15850
15851 PR middle-end/51986
15852 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
15853 for pat == 0.
15854
15855 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
15856
15857 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
15858 ASM_OPERANDS.
15859
15860 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
15861
15862 PR target/49868
15863 Rename __pgm to __flash.
15864 Rename __pgm1 to __flash1.
15865 Rename __pgm2 to __flash2.
15866 Rename __pgm3 to __flash3.
15867 Rename __pgm4 to __flash4.
15868 Rename __pgm5 to __flash5.
15869 Rename __pgmx to __memx.
15870 * doc/extend.texi (AVR Named Address Spaces)
15871 Rename address space names as indicated above.
15872 * config/avr/avr.c (avr_addrspace): Ditto.
15873
15874 * config/avr/avr-protos.h
15875 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
15876 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
15877 * config/avr/predicates.md: Ditto.
15878 * config/avr/avr.c Ditto, and
15879 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
15880 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
15881
15882 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
15883 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
15884 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
15885 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
15886 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
15887 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
15888 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
15889 * config/avr/avr.c: Ditto.
15890 * config/avr/avr.md: Ditto.
15891
15892 2012-01-25 Jason Merrill <jason@redhat.com>
15893
15894 PR c++/51992
15895 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
15896
15897 2012-01-25 Jakub Jelinek <jakub@redhat.com>
15898
15899 PR tree-optimization/51987
15900 * tree-data-ref.c (get_references_in_stmt): Handle references in
15901 non-volatile GIMPLE_ASM.
15902
15903 2012-01-25 Richard Guenther <rguenther@suse.de>
15904
15905 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
15906 bases are dereferenced.
15907
15908 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
15909
15910 PR rtl-optimization/48374
15911 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
15912
15913 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
15914
15915 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
15916 compute_data_dependences_for_loop returns false.
15917 * tree-parloops.c (loop_parallel_p): Likewise.
15918
15919 2012-01-25 Richard Guenther <rguenther@suse.de>
15920
15921 * tree.h (get_pointer_alignment_1): Declare.
15922 * builtins.c (get_pointer_alignment_1): New function.
15923 (get_pointer_alignment): Use it.
15924
15925 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15926
15927 PR rtl-optimization/48308
15928 * combine.c (enum undo_kind): Add UNDO_LINKS.
15929 (struct undo): Add member l to other_contents and where.
15930 (do_SUBST_LINK): New.
15931 (SUBST_LINK): New.
15932 (try_combine): Handle LOG_LINKS for the dummy i1 case.
15933 (undo_all): Handle UNDO_LINKS.
15934
15935 2012-01-25 Richard Henderson <rth@redhat.com>
15936
15937 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
15938 mem inputs.
15939
15940 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15941
15942 * optabs.c (gen_atomic_test_and_set): Use each argument.
15943
15944 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15945
15946 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
15947 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
15948 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
15949 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
15950 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
15951 TARGET_PAIRED_SINGLE_FLOAT.
15952
15953 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15954
15955 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15956 (in_struct, return_val): Remove MEM documentation.
15957 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
15958 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
15959 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
15960 and MEM_SCALAR.
15961 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15962 * cfgexpand.c (add_alias_set_conflicts): Likewise.
15963 * expr.c (store_field): Likewise.
15964 * function.c (assign_stack_temp_for_type): Likewise.
15965 * ifcvt.c (noce_try_cmove_arith): Likewise.
15966 * reload1.c (reload): Likewise.
15967 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
15968 (alpha_set_memflags): Likewise.
15969 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
15970
15971 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
15972
15973 * rtl.h (true_dependence, canon_true_dependence): Remove varies
15974 parameter.
15975 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
15976 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
15977 (true_dependence_1, true_dependence, canon_true_dependence): Remove
15978 varies parameter.
15979 * cselib.c (cselib_rtx_varies_p): Delete.
15980 (cselib_invalidate_mem): Update call to canon_true_dependence.
15981 * dse.c (record_store, check_mem_read_rtx): Likewise.
15982 (scan_reads_nospill): Likewise.
15983 * cse.c (check_dependence): Likewise.
15984 (cse_rtx_varies_p): Delete.
15985 * expr.c (safe_from_p): Update call to true_dependence.
15986 * ira.c (validate_equiv_mem_from_store): Likewise.
15987 (memref_referenced_p): Likewise.
15988 * postreload-gcse.c (find_mem_conflicts): Likewise.
15989 * sched-deps.c (sched_analyze_2): Likewise.
15990 * store-motion.c (load_kills_store): Likewise.
15991 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
15992 * gcse.c (mems_conflict_for_gcse_p): Likewise.
15993 (compute_transp): Update call to canon_true_dependence.
15994
15995 2012-01-25 Richard Henderson <rth@redhat.com>
15996
15997 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
15998 (maybe_emit_atomic_test_and_set): New.
15999 (expand_sync_lock_test_and_set): Use it.
16000 (expand_atomic_test_and_set): Likewise.
16001 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
16002 the implementation; clarify implementation defined details.
16003 * doc/md.texi (atomic_test_and_set): Document.
16004
16005 2012-01-25 Richard Henderson <rth@redhat.com>
16006
16007 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
16008
16009 2012-01-25 Richard Henderson <rth@redhat.com>
16010
16011 PR target/51968
16012 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
16013 to effect no-op split.
16014
16015 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
16016
16017 PR lto/51698
16018 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
16019 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
16020 (BT_FN_VOID_PTR_INT_SIZE): New.
16021 (BT_FN_UINT_UINT_VAR): Remove.
16022 (BT_FN_UINT32_UINT32_VAR): New.
16023 (BT_FN_DOUBLE_VPTR): Remove.
16024 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
16025
16026 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
16027 (_ITM_changeTransactionMode): Same.
16028 (_ITM_memmoveRtWt): Change return type to void.
16029 (_ITM_memcpyRtWt): Same.
16030 (_ITM_memsetW): Same.
16031 (_ITM_RaRD): Change types to double.
16032 (_ITM_RD): Same.
16033 (_ITM_RaWD): Same.
16034 (_ITM_RfWD): Same.
16035
16036 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
16037
16038 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
16039 Patrick Marlier <patrick.marlier@gmail.com>
16040
16041 * trans-mem.c (requires_barrier): Do not instrument thread local
16042 variables and emit save/restore for them.
16043
16044 2012-01-24 Jason Merrill <jason@redhat.com>
16045
16046 PR c++/51812
16047 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
16048 output static aliases.
16049
16050 2012-01-24 Jakub Jelinek <jakub@redhat.com>
16051
16052 PR driver/47249
16053 * common.opt (-pie, -shared, pie, shared): Change from Common to
16054 Driver.
16055 * gcc.c (display_help): Display help for -pie and -shared.
16056
16057 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
16058
16059 PR target/49868
16060 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
16061 Remove note on size/offset limitation.
16062 (AVR Variable Attributes): Add example how to read data located
16063 with progmem. Refer to named address spaces.
16064 * doc/invoke.texi (AVR Options): Fix typo.
16065
16066 2012-01-24 Richard Guenther <rguenther@suse.de>
16067
16068 Forward-port to trunk
16069 2010-09-21 Jakub Jelinek <jakub@redhat.com>
16070
16071 PR middle-end/45678
16072 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
16073 op0 isn't sufficiently aligned and there is movmisalignM
16074 insn for mode, use it to load op0 into a temporary register.
16075
16076 2012-01-24 Jakub Jelinek <jakub@redhat.com>
16077
16078 PR target/51957
16079 * target.def (const_not_ok_for_debug_p): New hook.
16080 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
16081 documentation.
16082 * doc/tm.texi: Regenerated.
16083 * dwarf2out.c (const_ok_for_output_1): If
16084 targetm.const_not_ok_for_debug_p returns true, fail.
16085 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
16086 function.
16087 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
16088
16089 2012-01-23 Kai Tietz <ktietz@redhat.com>
16090
16091 PR target/51900
16092 * config/i386/predicates.md (symbolic_operand): Allow
16093 UNSPEC_PCREL as PIC expression for lea.
16094 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
16095 * config/i386/i386.c (ix86_delegitimize_address): Handle
16096 UNSPEC_PCREL for none-MEM, too.
16097
16098 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
16099
16100 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
16101 (ipa_tm_create_version_alias): Same.
16102
16103 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
16104
16105 PR libitm/51830
16106 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
16107 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
16108
16109 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
16110 Patrick Marlier <patrick.marlier@gmail.com>
16111 Iain Sandoe <developer@sandoe-acoustics.co.uk>
16112
16113 PR lto/51916
16114 * lto-wrapper.c (run_gcc): Pass the LTO section name to
16115 simple_object_start_read.
16116
16117 2012-01-23 Richard Guenther <rguenther@suse.de>
16118
16119
16120 PR tree-optimization/51895
16121 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
16122 parameter decomposition into BLKmode components.
16123
16124 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
16125
16126 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
16127 fake variables for restrict-qualified pointers whose pointed-to type
16128 contains a placeholder.
16129
16130 2012-01-23 Richard Guenther <rguenther@suse.de>
16131
16132 PR tree-optimization/51949
16133 * ipa-split.c (execute_split_functions): Do not split malloc functions.
16134
16135 2012-01-23 Jakub Jelinek <jakub@redhat.com>
16136
16137 PR rtl-optimization/51933
16138 * ree.c (transform_ifelse): Return true right away if dstreg is
16139 already wider or equal to cand->mode.
16140 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
16141 (make_defs_and_copies_lists): Remove defs_list and copies_list
16142 arguments, add state argument, just truncate state->work_list
16143 instead of always allocating and freeing the vector. Assert that
16144 get_defs succeeds instead of returning 2. Changed return type to bool.
16145 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
16146 have ext_src_mode, see if it has been modified already with the
16147 right kind of extension and has been extended before from the
16148 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
16149 just return true. Remember the original mode in state->modified array.
16150 (combine_reaching_defs): Add state argument. Don't allocate and
16151 free here def_list, copied_list and vec vectors, instead just
16152 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
16153 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
16154 Add state variable, clear vectors in it, initialize state.modified
16155 if needed. Free all the vectors at the end and state.modified too.
16156 Don't skip a candidate if the extension expression has been modified.
16157
16158 2012-01-22 Douglas B Rupp <rupp@gnat.com>
16159
16160 PR target/47096
16161 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
16162 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
16163 (extra_options) interix.opt -> i386/interix.opt"
16164 (extra_objs):Add winnt-stubs.o
16165 * configure.ac: Add interix to target_os .comm on PE check.
16166 * configure: Regenerate.
16167 * config/interix3.h: Delete and move bits to..
16168 * config/interix.h: Delete and move bits to..
16169 * config/i386/i386-interix3.h: Delete and move bits to..
16170 * config/i386/i386-interix.h: ..here.
16171 (TARGET_CPU_DEFAULT): Remove redefinition.
16172 (TARGET_ASM_CONSTRUCTOR): Undefine.
16173 (SUBTARGET_SWITCHES): Define for ms-bitfields.
16174 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
16175 (PTRDIFF_TYPE): Define.
16176 (LONG_DOUBLE_TYPE_SIZE): Define.
16177 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
16178 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
16179 (TARGET_SECTION_TYPE_FLAGS): Define.
16180 (ASM_DECLARE_FUNCTION_NAME): Define.
16181 (ASM_OUTPUT_EXTERNAL): Define.
16182 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
16183 (ASM_OUTPUT_ALIGNED_BSS): Define.
16184 (PCC_BITFIELD_TYPE_MATTERS): Define.
16185 (USE_CONST_SECTION): Define.
16186 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
16187 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16188 (SUPPORTS_ONE_ONLY): Remove.
16189 (I386_PE_STRIP_ENCODING): Define.
16190 * config/interix.opt: Delete and move bits to..
16191 * config/i386/interix.opt: ..here. New.
16192 (mpe-aligned-commons): Add.
16193 * config/i386/t-interix: Add copyright header.
16194 (winnt-stubs.o): Add rule.
16195
16196 2012-01-22 Jason Merrill <jason@redhat.com>
16197
16198 PR c++/51832
16199 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
16200 for extra name aliases.
16201
16202 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
16203
16204 PR rtl-optimization/51924
16205 * ree.c (combine_set_extension): Improve debugging message.
16206 (combine_reaching_defs): Likewise.
16207 (get_defs): Rename confusingly named variable.
16208 (find_and_remove_re): Skip a candidate if the extension expression has
16209 been modified.
16210
16211 2012-01-21 Robert Millan <rmh@gnu.org>
16212 Gerald Pfeifer <gerald@pfeifer.com>
16213
16214 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
16215 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
16216
16217 2012-01-20 Jakub Jelinek <jakub@redhat.com>
16218
16219 PR tree-optimization/51914
16220 * tree-vect-stmts.c (vectorizable_conversion): For
16221 cvt_type && modifier == WIDEN, put temporary with cvt_type
16222 at the beginning of vec_dsts and set vec_dest to temporary
16223 with vectype_out.
16224
16225 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
16226
16227 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
16228
16229 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
16230
16231 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
16232 * config/rs6000/rs6000.c: Likewise.
16233
16234 2012-01-20 Jakub Jelinek <jakub@redhat.com>
16235
16236 PR target/51915
16237 * config/arm/arm.c (arm_count_output_move_double_insns): Call
16238 output_move_double on a copy of operands array.
16239
16240 2012-01-20 Cary Coutant <ccoutant@google.com>
16241 Dodji Seketeli <dodji@redhat.com>
16242
16243 PR debug/45682
16244 * dwarf2out.c (copy_declaration_context): Return ref to parent
16245 of declaration DIE, if necessary.
16246 (remove_child_or_replace_with_skeleton): Add new parameter; update
16247 caller. Place skeleton DIE under parent DIE of original declaration.
16248 Move call to copy_declaration_context to here ...
16249 (break_out_comdat_types): ... from here.
16250
16251 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16252
16253 PR rtl-optimization/51856
16254 * reload.c (find_reloads_subreg_address): Set the address_reloaded
16255 flag to reloaded.
16256
16257 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16258
16259 PR target/51819
16260 * config/arm/arm.c (arm_print_operand): Correct output of alignment
16261 hints for neon loads and stores.
16262
16263 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
16264
16265 PR target/49868
16266 PR target/50887
16267 * doc/extend.texi (Named Address Spaces): Split into subsections.
16268 (AVR Named Address Spaces): New subsection.
16269 (M32C Named Address Spaces): New subsection.
16270 (RL78 Named Address Spaces): New subsection.
16271 (SPU Named Address Spaces): New subsection.
16272 (Variable Attributes): New anchor "AVR Variable Attributes".
16273 (AVR Variable Attributes): Rewrite and avoid wording
16274 "address space" in this context.
16275 * doc/invoke.texi (AVR Options): Rewrite and add documentation
16276 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
16277 (AVR Built-in Macros): New subsubsection therein.
16278 * doc/md.texi (AVR constraints): Remove "C04", "R".
16279
16280 2012-01-20 Richard Guenther <rguenther@suse.de>
16281
16282 PR tree-optimization/51903
16283 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
16284 when removing stmts.
16285
16286 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16287
16288 PR target/50313
16289 * config/arm/arm.c (arm_load_pic_register): Use
16290 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
16291 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
16292 (arm_pic_static_addr): Likewise.
16293 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
16294 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
16295 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
16296 (pic_load_addr_unified): New.
16297
16298 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
16299
16300 PR target/51106
16301 * function.c (instantiate_virtual_regs_in_insn): Use
16302 delete_insn_and_edges when removing a wrong asm insn.
16303
16304 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
16305
16306 PR rtl-optimization/40761
16307 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
16308 Add new member loop_num.
16309 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
16310 (ira_build): Remove the parameter.
16311
16312 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
16313 (ira.c): Do not build CFG loops for one region allocation. Remove
16314 argument from ira_build call.
16315
16316 * ira-build.c (init_loop_tree_node): New function.
16317 (create_loop_tree_nodes): Use it. Separate the case when CFG
16318 loops are not built.
16319 (more_one_region_p): Check current_loops.
16320 (finish_loop_tree_nodes): Separate the case when CFG loops are not
16321 built.
16322 (add_loop_to_tree): Process loop equal to NULL too.
16323 (form_loop_tree): Separate the case when CFG loops are not built.
16324 Use explicitly number for the root.
16325 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
16326 an assertion.
16327 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
16328 instead of loop->num.
16329 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
16330 (mark_all_loops_for_removal): Ditto.
16331 (remove_unnecessary_regions): Separate the case when CFG loops
16332 are not built.
16333 (ira_build): Remove the parameter. Use explicit number of regions
16334 when CFG loops are not built.
16335
16336 * ira-color.c (print_loop_title): Separate the case for the root node.
16337 Use loop_num instead of loop->num.
16338 (move_spill_restore): Use loop_num instead of loop->num.
16339
16340 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
16341 (change_loop): Ditto.
16342 (change_loop): Use loop_num instead of loop->num.
16343
16344 * ira-lives.c (process_bb_node_lives): Ditto.
16345
16346 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
16347
16348 * ira-conflicts.c (print_allocno_conflicts): Ditto.
16349
16350 2012-01-19 Jakub Jelinek <jakub@redhat.com>
16351
16352 PR libmudflap/40778
16353 * tree-mudflap.c (mf_artificial): New function.
16354 (execute_mudflap_function_ops, execute_mudflap_function_decls,
16355 mx_register_decls, mudflap_enqueue_decl): Use it.
16356
16357 PR target/51876
16358 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
16359 numbers in the insn pattern.
16360
16361 2012-01-19 Michael Matz <matz@suse.de>
16362
16363 PR tree-optimization/46590
16364 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
16365 use it in remembering which conflicts we already created.
16366 (add_scope_conflicts): Adjust call to above, (de)allocate helper
16367 bitmap.
16368
16369 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
16370
16371 PR lto/51280
16372 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
16373 (merge_and_complain): Same.
16374
16375 2012-01-19 Jakub Jelinek <jakub@redhat.com>
16376
16377 PR bootstrap/50237
16378 * config/initfini-array.h: Guard content of the header
16379 with #ifdef HAVE_INITFINI_ARRAY.
16380 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
16381 Add initfini-array.h to tm_file here.
16382 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
16383 * config.gcc: Don't add initfini-array.h to tm_file here.
16384 * configure: Regenerated.
16385
16386 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
16387
16388 PR rtl-optimization/51505
16389 * df-problems.c (df_kill_notes): New parameter live. Update comment.
16390 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
16391 (df_note_bb_compute): Update the call to df_kill_notes.
16392
16393 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
16394
16395 * trans-mem.c (requires_barrier): Remove call to is_global_var.
16396
16397 2012-01-18 Richard Guenther <rguenther@suse.de>
16398
16399 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
16400 of conversions to void *.
16401
16402 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16403 Richard Sandiford <rdsandiford@googlemail.com>
16404
16405 PR middle-end/50325
16406 PR middle-end/51192
16407 * optabs.h (simplify_expand_binop): Declare.
16408 * optabs.c (simplify_expand_binop): Make global.
16409 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
16410 endian targets if the source cannot be exactly covered by word
16411 mode chunks.
16412
16413 2012-01-17 Jakub Jelinek <jakub@redhat.com>
16414
16415 PR bootstrap/51872
16416 * hard-reg-set.h (struct hard_reg_set_container): New type.
16417 * target.h (struct hard_reg_set_container): Forward declare.
16418 * target.def (set_up_by_prologue): New target hook.
16419 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
16420 * doc/tm.texi: Regenerated.
16421 * function.c (thread_prologue_and_epilogue_insns): Change
16422 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
16423 Call targetm.set_up_by_prologue on it.
16424 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
16425 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
16426
16427 2012-01-17 Nick Clifton <nickc@redhat.com>
16428
16429 * config/rx/rx.c (rx_can_use_simple_return): New function.
16430 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
16431 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
16432
16433 2012-01-17 Richard Guenther <rguenther@suse.de>
16434
16435 PR middle-end/51782
16436 * expr.c (expand_assignment): Take address-space information
16437 from the address operand of MEM_REF and TARGET_MEM_REF.
16438 (expand_expr_real_1): Likewise.
16439
16440 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16441
16442 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
16443 reload dump is requested.
16444
16445 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
16446
16447 PR other/51165
16448 * trans-mem.c (requires_barrier): Call may_be_aliased.
16449
16450 2012-01-17 Jakub Jelinek <jakub@redhat.com>
16451
16452 PR tree-optimization/51877
16453 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
16454 call arguments and fndecls compare equal, instead return false if they
16455 don't. Return true only if lhs1 and lhs2 are either both NULL, or
16456 both SSA_NAMEs that are valueized the same, or they satisfy
16457 operand_equal_p.
16458
16459 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16460
16461 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
16462 Solaris 11+.
16463 * configure: Regenerate.
16464
16465 2012-01-16 Jan Hubicka <jh@suse.cz>
16466
16467 PR c/12245
16468 PR c++/14179
16469 * convert.c (convert_to_integer): Use fold_convert for
16470 converting an INTEGER_CST to integer type.
16471
16472 2012-01-16 Jason Merrill <jason@redhat.com>
16473
16474 PR c++/14179
16475 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
16476
16477 2012-01-16 Jakub Jelinek <jakub@redhat.com>
16478
16479 PR bootstrap/51860
16480 * config/s390/s390.c (s390_chunkify_start): Don't skip
16481 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
16482 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
16483 If insn is followed by NOTE_INSN_VAR_LOCATION or
16484 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
16485 Don't use location of note insns.
16486
16487 PR tree-optimization/51865
16488 * tree-inline.c (tree_function_versioning): Call remap_decl
16489 on DECL_RESULT whenever it has VOID_TYPE_P type.
16490
16491 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
16492
16493 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
16494 for calls to locally-binding MIPS16 functions if only the return
16495 type uses float regs.
16496
16497 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
16498 Richard Sandiford <rdsandiford@googlemail.com>
16499
16500 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
16501 (SYMBOL_32_HIGH): Likewise.
16502 (mips_output_tls_reloc_directive): Declare.
16503 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
16504 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
16505 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
16506 (mips_lo_relocs, mips_hi_relocs): Make extern.
16507 (mips16_stub_function): Move up file.
16508 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
16509 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
16510 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
16511 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
16512 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
16513 (mips_get_tp): Add MIPS16 support.
16514 (mips_legitimize_tls_address): Remove MIPS16 sorry().
16515 Generalize DTPREL and TPREL handling.
16516 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
16517 Add MIPS16 TLS support.
16518 (mips_output_tls_reloc_directive): New function.
16519 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
16520 * config/mips/predicates.md (symbolic_operand_with_high)
16521 (tls_reloc_operand): New predicates.
16522 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
16523 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
16524 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
16525 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
16526 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
16527 (*tls_get_tp_mips16_call_<mode>): Likewise.
16528
16529 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
16530
16531 PR rtl-optimization/51821
16532 * recog.c (peep2_find_free_register): Determine clobbered registers
16533 from insn pattern.
16534
16535 2012-01-14 Denis Chertykov <chertykov@gmail.com>
16536
16537 PR target/50925
16538 * config/avr/avr-protos.h: Revert change of 2012-01-09.
16539 * config/avr/avr.c: Likewise.
16540 * config/avr/avr.h: Likewise.
16541
16542 2012-01-13 Ian Lance Taylor <iant@google.com>
16543
16544 PR c++/50012
16545 * tree.h (TYPE_QUALS): Add cast to int.
16546 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
16547
16548 2012-01-13 Ian Lance Taylor <iant@google.com>
16549
16550 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
16551 comparing param_index to VEC_length result.
16552
16553 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
16554
16555 * c-decl.c: Do not include tree-mudflap.h
16556 * tree-optimize.c: Likewise.
16557 * Makefile.in: Update dependencies.
16558
16559 2012-01-13 Richard Guenther <rguenther@suse.de>
16560
16561 PR middle-end/8081
16562 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
16563 variable-sized result always use RSO.
16564
16565 2012-01-12 DJ Delorie <dj@redhat.com>
16566
16567 * cfgexpand.c (convert_debug_memory_address): Allow any valid
16568 pointer type, not just the default pointer type.
16569
16570 2012-01-09 Richard Henderson <rth@redhat.com>
16571 Denis Chertykov <chertykov@gmail.com>
16572
16573 PR target/50925
16574 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
16575 * config/avr/avr.c (avr_can_eliminate): Simplify.
16576 (avr_initial_elimination_offset): Likewise.
16577 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
16578 (expand_epilogue): Likewise.
16579 (avr_legitimize_address): Gut.
16580 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
16581 (avr_hard_regno_nregs): New.
16582 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
16583 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
16584 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
16585 add soft frame pointer.
16586 (CALL_USED_REGISTERS): Likewise.
16587 (REG_CLASS_CONTENTS): Likewise.
16588 (REGISTER_NAMES): Likewise.
16589 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
16590 (HARD_FRAME_POINTER_REGNUM): New.
16591 (FRAME_POINTER_REGNUM): Use soft frame pointer.
16592 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
16593 remove the HARD_FRAME_POINTER self-elimination.
16594
16595 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
16596
16597 PR target/51756
16598 * config/avr/avr.c (avr_encode_section_info): Test for absence of
16599 DECL_EXTERNAL when checking for initializers of progmem variables.
16600
16601 2012-01-12 Ira Rosen <irar@il.ibm.com>
16602
16603 PR tree-optimization/51799
16604 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
16605 that the last operation is a type demotion.
16606
16607 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
16608
16609 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
16610 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
16611
16612 2012-01-11 Jakub Jelinek <jakub@redhat.com>
16613
16614 PR bootstrap/51796
16615 * combine.c (distribute_notes): If i3 is a noreturn call,
16616 allow old_size to be equal to args_size and make sure the
16617 noreturn call gets REG_ARGS_SIZE note.
16618 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
16619 on noreturn calls even when the delta is 0.
16620
16621 2012-01-11 Nathan Sidwell <nathan@acm.org>
16622
16623 * gcov.c (STRING_SIZE): Remove.
16624 (generate_results): Erase annotations for source files with no
16625 coverage information.
16626 (read_line): New.
16627 (output_lines): Use it.
16628
16629 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
16630
16631 * gimple.h (gimplify_body): Remove first argument.
16632 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
16633 pointer set here, instead just pass DATA to walk_tree.
16634 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
16635 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
16636 (unvisit_body): Likewise, but with unmark_visited.
16637 (gimplify_body): Remove BODY_P argument and adjust.
16638 (gimplify_function_tree): Adjust call to gimplify_body.
16639 * omp-low.c (finalize_task_copyfn): Likewise.
16640
16641 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
16642
16643 * tree.h (build_function_decl_skip_args): Add boolean parameter.
16644 (build_function_type_skip_args): Delete.
16645 * tree.c (build_function_type_skip_args): Make static and add
16646 SKIP_RETURN parameter. Fix thinko in the handling of variants.
16647 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
16648 pass it to build_function_type_skip_args.
16649 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
16650 (tree_function_versioning): Likewise.
16651 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
16652 build_function_decl_skip_args.
16653 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
16654 and pass it to build_function_decl_skip_args/tree_function_versioning.
16655 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
16656 * ipa-inline-transform.c (save_inline_function_body): Likewise.
16657 * trans-mem.c (ipa_tm_create_version): Likewise.
16658 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
16659 * tree-inline.c (declare_return_variable): Remove always-true test.
16660 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
16661 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
16662 * ipa-split.c (split_function): Skip the return value for the split
16663 part if it doesn't return.
16664
16665 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16666
16667 PR tree-optimization/49642
16668 * ipa-split.c (forbidden_dominators): New variable.
16669 (check_forbidden_calls): New function.
16670 (dominated_by_forbidden): Likewise.
16671 (consider_split): Check for forbidden dominators.
16672 (execute_split_functions): Initialize and free forbidden
16673 dominators info; call check_forbidden_calls.
16674
16675 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16676
16677 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
16678
16679 2012-01-11 Nick Clifton <nickc@redhat.com>
16680
16681 * config/rx/rx.md (return): Define pattern.
16682
16683 2012-01-11 Richard Guenther <rguenther@suse.de>
16684
16685 * doc/extend.texi (malloc attribute): Adjust according to
16686 implementation.
16687
16688 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
16689 Patrick Marlier <patrick.marlier@gmail.com>
16690
16691 PR middle-end/51516
16692 * trans-mem.c (get_cg_data): Traverse aliases if requested.
16693 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
16694 (ipa_tm_note_irrevocable): Same.
16695 (ipa_tm_scan_irr_block): Same.
16696 (ipa_tm_decrement_clone_counts): Same.
16697 (ipa_tm_scan_irr_function): Same.
16698 (ipa_tm_create_version_alias): Same.
16699 (ipa_tm_create_version): Same.
16700 (ipa_tm_transform_calls_redirect): Same.
16701 (ipa_tm_transform_calls): Same.
16702 (ipa_tm_transform_transaction): Same.
16703 (ipa_tm_execute): Same.
16704
16705 2012-01-10 Richard Guenther <rguenther@suse.de>
16706
16707 PR middle-end/51806
16708 * opts.c (common_handle_option): Handle -Werror.
16709
16710 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
16711
16712 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
16713 operand number.
16714
16715 2012-01-10 Jason Merrill <jason@redhat.com>
16716
16717 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
16718 information.
16719
16720 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16721
16722 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
16723 supports R_386_TLS_GD_PLT reloc.
16724 (gcc_cv_as_ix86_tlsldmplt): Check if linker
16725 supports R_386_TLS_LDM_PLT reloc.
16726 * configure: Regenerate.
16727 * config.in: Regenerate.
16728
16729 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
16730
16731 PR target/49868
16732 Extend __pgmx semantics to linearize memory.
16733 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
16734 determine if code comes inline or from libgcc.
16735 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
16736 (movmem_qi, movmem_qi): Set constraint #2 to "n".
16737 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
16738 (movmemx_qi, movmemx_hi): New insns.
16739 (xload_<mode>_libgcc): Rewrite to new insn condition.
16740 (xload_<mode>): Remove insns.
16741 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
16742 cases that don't satisfy avr_xload_libgcc_p().
16743 (avr_addr_space_convert): Allow converting in any direction.
16744 (avr_addr_space_subset_p): Return always true.
16745 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
16746 (avr_emit_movmemhi): Ditto.
16747 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
16748 (avr_out_movmem): Ditto.
16749 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
16750 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
16751 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
16752 (avr_encode_section_info): Encode 'progmem' in symbol flags.
16753 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
16754
16755 2012-01-10 Richard Guenther <rguenther@suse.de>
16756
16757 PR tree-optimization/50913
16758 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
16759 Require data-refs to be representable by Graphite with respect
16760 to any loop nest.
16761
16762 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
16763
16764 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
16765 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
16766
16767 2012-01-10 Tom de Vries <tom@codesourcery.com>
16768
16769 PR rtl-optimization/51271
16770 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
16771 handling annulled branch.
16772
16773 2012-01-10 Richard Henderson <rth@redhat.com>
16774
16775 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
16776 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
16777 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
16778 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
16779 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
16780 arm_expand_vec_perm_const): New.
16781 * config/arm/arm-protos.h: Update.
16782 * config/arm/neon.md (UNSPEC_VCONCAT): New.
16783 (*neon_vswp<VDQX>): New.
16784 (neon_vcombine<VDX>): Use neon_split_vcombine.
16785 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
16786 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
16787 (vec_perm<VE>): New.
16788
16789 2012-01-10 Richard Henderson <rth@redhat.com>
16790
16791 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
16792 use it if reload_completed.
16793 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
16794 arm_output_asm_insn, arm_process_output_memory_barrier,
16795 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
16796 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
16797 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
16798 arm_process_output_sync_insn, arm_output_sync_insn,
16799 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
16800 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
16801 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
16802 (emit_unlikely_jump): New.
16803 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
16804 (arm_split_atomic_op): New.
16805 * config/arm/arm-protos.h: Update.
16806 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
16807 (struct arm_sync_generator): Remove.
16808 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
16809 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
16810 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
16811 (VUNSPEC_LL, VUNSPEC_SC): New.
16812 (sync_result, sync_memory, sync_required_value, sync_new_value,
16813 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
16814 (attr length): Don't use arm_sync_loop_insns.
16815 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
16816 (movsfcc, movdfcc): Likewise.
16817 * config/arm/constraints.md (Ua): New.
16818 * config/arm/prediates.md (mem_noofs_operand): New.
16819 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
16820 (sync_clobber, sync_t2_reqd): Remove.
16821 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
16822 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
16823 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
16824 (arm_sync_compare_and_swap<SIDI>): Remove.
16825 (arm_sync_compare_and_swap<NARROW>): Remove.
16826 (arm_sync_lock_test_and_set<SIDI>): Remove.
16827 (arm_sync_lock_test_and_set<NARROW>): Remove.
16828 (arm_sync_new_<syncop><SIDI>): Remove.
16829 (arm_sync_new_<syncop><NARROW>): Remove.
16830 (arm_sync_new_nand<SIDI>): Remove.
16831 (arm_sync_new_nand<NARROW>): Remove.
16832 (arm_sync_old_<syncop><SIDI>): Remove.
16833 (arm_sync_old_<syncop><NARROW>): Remove.
16834 (arm_sync_old_nand<SIDI>): Remove.
16835 (arm_sync_old_nand<NARROW>): Remove.
16836 (*memory_barrier): Merge arm_output_memory_barrier.
16837 (atomic_compare_and_swap<QHSD>): New.
16838 (atomic_compare_and_swap<NARROW>_1): New.
16839 (atomic_compare_and_swap<SIDI>_1): New.
16840 (atomic_exchange<QHSD>): New.
16841 (cas_cmp_operand, cas_cmp_str): New.
16842 (atomic_op_operand, atomic_op_str): New.
16843 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
16844 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
16845 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
16846 (arm_load_exclusive<NARROW>): New.
16847 (arm_load_exclusivesi, arm_load_exclusivedi): New.
16848 (arm_store_exclusive<QHSD>): New.
16849
16850 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16851
16852 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
16853 reload patterns if -mvsx-scalar-memory.
16854
16855 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
16856 generated, even -mno-vsx-scalar-double was used.
16857 (vsx_xscvdpsp_scalar): Likewise.
16858 (vsx_xscvspdp_scalar2): Likewise.
16859
16860 2012-01-09 Tom de Vries <tom@codesourcery.com>
16861 Andrew Pinski <apinski@cavium.com>
16862
16863 PR debug/51471
16864 * reorg.c (fill_slots_from_thread): Don't speculate
16865 frame-related insns.
16866
16867 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
16868
16869 * sched-int.h (bb_note): Move to...
16870 * basic-block.h: ...here.
16871 * haifa-sched.c (bb_note): Move to...
16872 * cfgrtl.c: ...here.
16873 * function.c (next_block_for_reg): New function.
16874 (move_insn_for_shrink_wrap): Likewise.
16875 (prepare_shrink_wrap): Rewrite to use the above.
16876
16877 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
16878
16879 * gimple.c (is_gimple_non_addressable): Remove.
16880 * gimple.h: Remove is_gimple_non_addressable.
16881 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
16882 is_gimple_non_addressable.
16883 * trans-mem.c (expand_assign_tm): Same.
16884
16885 2012-01-09 Richard Guenther <rguenther@suse.de>
16886
16887 PR tree-optimization/51775
16888 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
16889 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
16890
16891 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16892
16893 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
16894 tuning parameters.
16895 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
16896
16897 2012-01-09 Richard Guenther <rguenther@suse.de>
16898
16899 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
16900
16901 2012-01-08 Jan Hubicka <jh@suse.cz>
16902
16903 PR tree-optimize/51680
16904 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
16905 on when known_vals needs to be computed; cleanup.
16906
16907 2012-01-08 Jan Hubicka <jh@suse.cz>
16908
16909 PR tree-optimize/51694
16910 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
16911
16912 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
16913
16914 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
16915 for -std=c++98 and -std=c++11 too.
16916
16917 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
16918
16919 * cfgloop.c (cancel_loop): Add free() of bbs array.
16920
16921 2012-01-07 Jan Hubicka <jh@suse.cz>
16922
16923 PR tree-optimization/51600
16924 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
16925 that benefits small functions.
16926
16927 2012-01-07 Jan Hubicka <jh@suse.cz>
16928
16929 * ipa-inline.c (want_inline_small_function_p): Fix formating.
16930
16931 2012-01-07 Jan Hubicka <jh@suse.cz>
16932
16933 PR tree-optimization/51680
16934 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
16935 whose inlining reduce unit size.
16936
16937 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
16938
16939 PR bootstrap/51725
16940 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
16941 Add canonical node to containing_mem chain after the non-canonical
16942 one, even if there weren't any locs to propagate.
16943 (remove_useless_values): Keep only canonical values.
16944 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
16945 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
16946 canonicalize mem_chain elements that are not discarded.
16947
16948 2012-01-06 Jakub Jelinek <jakub@redhat.com>
16949
16950 PR target/47333
16951 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
16952 before emitting functions.
16953
16954 PR gcov-profile/50127
16955 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
16956 clear_aux_for_blocks.
16957
16958 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
16959
16960 PR debug/51746
16961 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
16962
16963 2012-01-06 Arnaud Charlet <charlet@adacore.com>
16964
16965 * c-decl.c (ext_block): Moved up.
16966 (collect_all_refs, for_each_global_decl): Take ext_block into account.
16967
16968 2012-01-06 Han Shen <shenhan@google.com>
16969
16970 Translate built-in include paths for sysroot.
16971 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
16972 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
16973
16974 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
16975 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
16976
16977 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
16978 control whether sysroot should be prepended to gxx include dir.
16979
16980 * configure: Regenerate.
16981
16982 2012-01-06 Torvald Riegel <triegel@redhat.com>
16983
16984 PR rtl-optimization/51771
16985 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
16986 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
16987
16988 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
16989
16990 PR tree-optimization/51315
16991 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
16992 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
16993
16994 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
16995
16996 PR target/51681
16997 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
16998 for shrp pattern. Correctly handle and fixup shift variable.
16999 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
17000
17001 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17002
17003 PR debug/51762
17004 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
17005 note when !ACCUMULATE_OUTGOING_ARGS.
17006
17007 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
17008
17009 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
17010 condition.
17011 (extract_range_from_unary_expr_1): Avoid useless computations.
17012
17013 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17014
17015 PR rtl-optimization/51767
17016 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
17017 of jump_block and add an extra edge for degenerated asm gotos.
17018
17019 PR middle-end/51768
17020 * stmt.c (check_unique_operand_names): Don't ICE during error
17021 reporting if i is from labels chain.
17022
17023 PR middle-end/44777
17024 * profile.c (branch_prob): Split bbs that have exit edge
17025 and need a fake entry edge too.
17026
17027 2012-01-05 Jan Hubicka <jh@suse.cz>
17028
17029 PR middle-end/49710
17030 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
17031 unlooping loops.
17032
17033 2012-01-05 Richard Guenther <rguenther@suse.de>
17034
17035 PR lto/50490
17036 * tree-streamer-out.c (write_ts_optimization): New function.
17037 (streamer_write_tree_body): Call it.
17038 * tree-streamer-in.c (lto_input_ts_optimization): New function.
17039 (streamer_read_tree_body): Call it.
17040 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
17041
17042 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17043
17044 PR middle-end/51761
17045 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
17046 * gimplify.c (gimplify_cleanup_point_expr): Save and set
17047 in_cleanup_point_expr before gimplify_stmt call and restore it
17048 afterwards.
17049 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
17050 in_cleanup_point_expr is false.
17051
17052 2012-01-05 Richard Guenther <rguenther@suse.de>
17053
17054 PR middle-end/51764
17055 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
17056 to c.opt.
17057 * toplev.c (process_options): Reject combining mudflap and LTO.
17058 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
17059
17060 2012-01-05 Richard Guenther <rguenther@suse.de>
17061
17062 PR tree-optimization/51760
17063 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
17064 not VARYING.
17065 (bit_value_unop): Handle UNDEFINED operands.
17066 (bit_value_binop): Likewise.
17067
17068 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
17069
17070 * config/avr/avr.c (avr_replace_prefix): Remove.
17071 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
17072 (avr_asm_function_rodata_section): Ditto.
17073 (avr_asm_select_section): Ditto.
17074
17075 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17076
17077 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
17078 insertion.
17079
17080 2012-01-05 Jakub Jelinek <jakub@redhat.com>
17081
17082 PR bootstrap/51648
17083 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
17084 calls that have any non-fake successor edges.
17085
17086 PR debug/51746
17087 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
17088
17089 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
17090
17091 PR tree-optimization/51624
17092 * tree-sra.c (build_ref_for_model): When replicating a chain of
17093 COMPONENT_REFs, stop as soon as the offset would become negative.
17094
17095 2012-01-04 Jakub Jelinek <jakub@redhat.com>
17096
17097 PR debug/51695
17098 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
17099 in .debug_loc on the floor.
17100
17101 2012-01-04 Andrew Pinski <apinski@cavium.com>
17102
17103 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
17104
17105 2012-01-04 Andrew Pinski <apinski@cavium.com>
17106 Adam Nemet <anemet@caviumnetworks.com>
17107
17108 * config/mips/mips.md (size): Add SI and DI.
17109 (SIZE): New mode attribute.
17110 (U): New code attribute.
17111 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
17112 (mips_lbux_<mode>): Delete.
17113 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
17114 (mips_lhx): Use gen_mips_lhx_extsi.
17115 (mips_lhx_<mode>): Delete.
17116 (mips_lwx): Delete.
17117 (mips_l<size>x): New expand.
17118 (mips_lwx_<mode>): Delete.
17119 (mips_l<GPR:size>x_<P:mode>): New pattern.
17120 (*mips_lw<u>x_<P:mode>_ext): Likewise.
17121 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
17122 * config/mips/mips.c (mips_lx_address_p): New function.
17123 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
17124 (dsp64): New availability predicate.
17125 (mips_builtins): Add an entry for __builtin_mips_ldx.
17126 * config/mips/mips.h (ISA_HAS_LBX): New define.
17127 (ISA_HAS_LBUX): Likewise.
17128 (ISA_HAS_LHX): Likewise.
17129 (ISA_HAS_LHUX): Likewise.
17130 (ISA_HAS_LWX): Likewise.
17131 (ISA_HAS_LWUX): Likewise.
17132 (ISA_HAS_LDX): Likewise.
17133 * doc/extend.texi (__builtin_mips_ldx): Document.
17134
17135 2012-01-04 Tristan Gingold <gingold@adacore.com>
17136
17137 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
17138 when long pointers are used.
17139 * config.build (*-*-*vms*): Handle all OpenVMS targets.
17140 (alpha64-dec-*vms*, alpha*-dec-*vms*)
17141 (ia64-hp-*vms*): Remove.
17142 * config/vms/xm-vms64.h: Delete.
17143
17144 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17145
17146 PR middle-end/51472
17147 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
17148
17149 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17150
17151 * opts.c (finish_options): Remove duplicate sorry.
17152
17153 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
17154
17155 PR middle-end/51696
17156 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
17157 correctly.
17158
17159 2012-01-04 Richard Guenther <rguenther@suse.de>
17160
17161 PR middle-end/51750
17162 * tree.c (size_low_cst): New function.
17163 * tree.h (size_low_cst): Declare.
17164 * fold-const.c (fold_comparison): Use it to extract the low
17165 part of the POINTER_PLUS_EXPR offset.
17166
17167 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
17168
17169 Fix clearing ZERO_REG
17170 * config/avr/avr.md (cc): Add alternative "ldi".
17171 (movqi_insn): Use it in cc attribute.
17172 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
17173 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
17174 (output_reload_insisf): Use ZERO_REG to pre-clear register.
17175
17176 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17177
17178 * configure: Regenerate.
17179
17180 2012-01-04 Richard Guenther <rguenther@suse.de>
17181
17182 PR tree-optimization/49651
17183 * tree-ssa-structalias.c (type_can_have_subvars): New function.
17184 (var_can_have_subvars): Use it.
17185 (get_constraint_for_1): Only consider subfields if there can be any.
17186
17187 2012-01-03 Jakub Jelinek <jakub@redhat.com>
17188
17189 PR bootstrap/51725
17190 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
17191 to its new canonical_cselib_val and the cselib_val was in
17192 first_containing_mem chain, but the canonical_cselib_val was not,
17193 add the latter into the chain.
17194 (cselib_invalidate_mem): Compare canonical_cselib_val of
17195 addr_list chain elt with v.
17196
17197 PR pch/51722
17198 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
17199 dwarf2out_undef): Allocate e.info using ggc_strdup instead
17200 of xstrdup.
17201 (output_macinfo_op): Don't ggc_strdup fd->filename.
17202 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
17203 then ggc_strdup it. Don't free inc->info or cur->info.
17204 (output_macinfo): Don't free ref->info or file->info.
17205
17206 2012-01-03 Ira Rosen <irar@il.ibm.com>
17207
17208 PR tree-optimization/51269
17209 * tree-vect-loop-manip.c (set_prologue_iterations): Make
17210 first_niters a pointer.
17211 (slpeel_tree_peel_loop_to_edge): Likewise.
17212 (vect_do_peeling_for_loop_bound): Update call to
17213 slpeel_tree_peel_loop_to_edge.
17214 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
17215 here. Remove it from the parameters list.
17216 (vect_do_peeling_for_alignment): Update calls and compute
17217 wide_prolog_niters.
17218
17219 2012-01-03 Richard Guenther <rguenther@suse.de>
17220
17221 PR tree-optimization/51070
17222 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
17223 Properly handle calls.
17224
17225 2012-01-03 Richard Guenther <rguenther@suse.de>
17226
17227 PR tree-optimization/51692
17228 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
17229 the LHS of allocation stmts.
17230
17231 2012-01-03 Olivier Hainque <hainque@adacore.com>
17232
17233 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
17234
17235 2012-01-03 Olivier Hainque <hainque@adacore.com>
17236
17237 * collect2.c (main): In AIX specific computations for vector
17238 insertions, use CONST_CAST2 to cast from char ** to const char **.
17239
17240 2012-01-03 Richard Guenther <rguenther@suse.de>
17241
17242 PR debug/51650
17243 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
17244 the context of a limbo DIE when it does not already exist.
17245
17246 2012-01-03 Jakub Jelinek <jakub@redhat.com>
17247
17248 PR tree-optimization/51719
17249 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
17250 but direct call is, clear direct call's lhs and don't add fallthrough
17251 edge from dcall_bb to join_bb and PHIs.
17252
17253 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17254
17255 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
17256 the instructions emitted by the pattern.
17257 ("*TDC_insn_<mode>"): Add comment.
17258
17259 2012-01-03 Richard Guenther <rguenther@suse.de>
17260
17261 PR middle-end/51730
17262 * fold-const.c (fold_comparison): Properly canonicalize
17263 tree offset and HOST_WIDE_INT bit position.
17264
17265 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
17266
17267 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
17268 operands for extzv pattern.
17269
17270 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17271
17272 PR bootstrap/51725
17273 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
17274 on mem_elt first.
17275
17276 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
17277
17278 * doc/invoke.texi (-flto and related options): Copy-edit.
17279
17280 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17281
17282 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
17283
17284 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17285
17286 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
17287 New patterns.
17288
17289 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17290
17291 * expr.h (move_by_pieces_ninsns): Declare.
17292 * expr.c (move_by_pieces_ninsns): Make external.
17293 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
17294 (mips_store_by_pieces_p): Likewise.
17295 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
17296 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
17297 * config/mips/mips.c (mips_move_by_pieces_p): New function.
17298 (mips_store_by_pieces_p): Likewise.
17299
17300 2012-01-02 Jakub Jelinek <jakub@redhat.com>
17301
17302 * passes.c (register_one_dump_file): Free full_name.
17303
17304 * reload1.c (reload): Don't allocate reg_max_ref_width here.
17305 (calculate_elim_costs_all_insns): Free offsets_at and
17306 offsets_known_at at the end and clear the pointers.
17307
17308 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17309
17310 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
17311 this option introduced in r180739.
17312
17313 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17314
17315 PR target/51345
17316 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
17317 (tmake_file target=avr): Add avr/t-multilib.
17318
17319 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
17320 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
17321 * config/avr/genmultilib.awk: New file.
17322 * config/avr/t-multilib: New auto-generated file.
17323 * config/avr/multilib.h: New auto-generated file.
17324 * config/avr/t-avr (AVR_MCUS): New variable.
17325 (genopt.sh): Use it.
17326 (s-mlib): Depend on t-multilib.
17327 (t-multilib, multilib.h): New dependencies.
17328 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
17329 (MULTILIB_OPTIONS): Remove.
17330 (MULTILIB_MATCHES): Remove.
17331 (MULTILIB_DIRNAMES): Remove.
17332 (MULTILIB_EXCEPTIONS): Remove:
17333 * config/avr/genopt.sh: Don't use hard coded file name;
17334 pass AVR_MCUS from t-avr instead.
17335
17336 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17337
17338 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
17339
17340 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
17341
17342 Implement light-weight DImode support.
17343 * config/avr/avr-dimode.md: New file.
17344 * config/avr/avr.md: Include it.
17345 (adjust_len): Add plus64, compare64.
17346 (HIDI): Remove code iterator.
17347 (code_stdname): New code attribute.
17348 (rotx, rotsmode): Remove DI.
17349 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
17350 as code iterator.
17351 * config/avr/avr-protos.h (avr_have_dimode): New.
17352 (avr_out_plus64, avr_out_compare64): New.
17353 * config/avr/avr.c (avr_out_compare): Handle DImode.
17354 (avr_have_dimode): New variable definition and initialization.
17355 (avr_out_compare64, avr_out_plus64): New functions.
17356 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
17357 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
17358 (avr_compare_pattern): Skip DImode comparisons.
17359
17360 2012-01-02 Revital Eres <revital.eres@linaro.org>
17361
17362 * ddg.c (def_has_ccmode_p): New function.
17363 (add_cross_iteration_register_deps,
17364 create_ddg_dep_from_intra_loop_link): Call it.
17365
17366 2012-01-02 Richard Guenther <rguenther@suse.de>
17367
17368 PR other/51679
17369 * invoke.texi (fassociative-math): Remove spurious paranthesis.
17370
17371 2012-01-01 Jakub Jelinek <jakub@redhat.com>
17372
17373 * gcc.c (process_command): Update copyright notice dates.
17374 * gcov.c (print_version): Likewise.
17375 * gcov-dump.c (print_version): Likewise.
17376 * mips-tfile.c (main): Likewise.
17377 * mips-tdump.c (main): Likewise.
17378
17379 2012-01-01 Ira Rosen <irar@il.ibm.com>
17380
17381 PR tree-optimization/51704
17382 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
17383 a use is inside the basic block or loop before accessing its vect info.
17384
17385 2012-01-01 Jan Hubicka <jhjh@suse.cz>
17386
17387 PR rtl-optimization/51069
17388 * cfgloopmanip.c (remove_path): Removing path making irreducible
17389 region unconditional makes BB part of the region.
17390
17391 2012-01-01 Jakub Jelinek <jakub@redhat.com>
17392
17393 PR tree-optimization/51683
17394 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
17395 calls with side-effects.
17396 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17397 \f
17398 Copyright (C) 2012 Free Software Foundation, Inc.
17399
17400 Copying and distribution of this file, with or without modification,
17401 are permitted in any medium without royalty provided the copyright
17402 notice and this notice are preserved.