Commit for Christophe Lyon.
[gcc.git] / gcc / ChangeLog
1 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
2
3 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
4 (neon_vld1_dup): Restrict to VQ operands.
5 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
6
7 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8 James Greenhalgh <james.greenhalgh@arm.com>
9
10 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
11 (TARGET_FMA): New macro.
12 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
13 (TARGET_ARM_ARCH): Likewise.
14 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
15 (TARGET_V6M, TARGET_V7M): Likewise.
16 (TARGET_ARM_ARCH_PROFILE): Likewise.
17 (TARGET_ARM_FEATURE_LDREX): Likewise.
18 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
19 (ARM_MIN_ENUM_SIZE): Likewise.
20 * config/arm/arm.c (arm_file_start): Refactor appropriately.
21 (base_architecture): New enumeration.
22 (arm_base_arch): New global variable.
23 (processors): Add field base_arch.
24 (ARM_ARCH, ARM_CORE): Adjust accordingly.
25 (arm_option_override): Add initialization of arm_base_arch.
26 * doc/cpp.texi (system-specific predefined macros.): Change.
27
28 2012-06-25 Jakub Jelinek <jakub@redhat.com>
29
30 PR target/53759
31 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
32 of x x x in the vmovlps load alternative.
33
34 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
35
36 PR debug/53740
37 * df.h (dead_debug_add): Remove third argument.
38 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
39 REG that we want to replace instead.
40 (dead_debug_insert_temp): Use the REGNO of the reg that we want
41 to replace instead of DF_REF_REGNO. Require there to always be
42 at least one such use. Check for cases where the same location
43 has more than df_ref associated with it.
44 (df_note_bb_compute): Remove third dead_debug_add argument.
45 * dce.c (word_dce_process_block): Likewise.
46
47 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
48
49 * config/v850/v850.c: Remove redundant extern declarations for
50 last_assemble_variable_decl and size_directive_output.
51
52 * doc/tm.texi.in: Document JMP_BUF_SIZE.
53 * doc/tm.texi: Regenerate.
54 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
55 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
56 * config/stormy16/stormy16.h: Likewise.
57
58 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
59
60 * doc/sourcebuild.texi: Add missing subdirectories.
61
62 2012-06-25 Tristan Gingold <gingold@adacore.com>
63
64 * config/i386/i386.h: Fix typo.
65
66 2012-06-25 Tristan Gingold <gingold@adacore.com>
67
68 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
69 (seh_cfa_adjust_cfa): ... that function.
70 (seh_emit_stackalloc): Do not emit out of range values.
71 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
72 UNSPEC_DEF_CFA constants.
73 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
74 * config/i386/i386.c (ix86_frame_pointer_required): Required
75 for very large frames on SEH target.
76 (ix86_compute_frame_layout): Save area is before frame pointer
77 on SEH target. Handle very large frames.
78 (ix86_expand_prologue): Likewise.
79
80 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
81
82 * output.h: (current_function_is_leaf,
83 current_function_sp_is_unchanging,
84 current_function_uses_only_leaf_regs): Remove.
85 * function.c (current_function_is_leaf,
86 current_function_sp_is_unchanging,
87 current_function_uses_only_leaf_regs): Remove.
88 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
89 instead of current_function_uses_only_leaf_regs.
90 * function.h (struct rtl_data): New fields sp_is_unchanging,
91 is_leaf, uses_only_leaf_regs.
92 * resource.c (init_resource_info): Replace current_function_is_leaf,
93 current_function_sp_is_unchanging, and
94 current_function_uses_only_leaf_regs with new crtl fields.
95 * sdbout.c (sdbout_symbol): Likewise.
96 * df-core.c (rest_of_handle_df_initialize): Likewise.
97 * ira.c (ira): Likewise.
98 * final.c (final_start_function): Likewise.
99 * reorg.c (fill_simple_delay_slots): Likewise.
100 * regrename.c (check_new_reg_p): Likewise.
101 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
102 (notice_stack_pointer_modification): Likewise.
103 * dbxout.c (dbxout_symbol): Likewise.
104 (dbxout_parms): Likewise.
105 * sel-sched.c (init_regs_for_mode): Likewise.
106 * dwarf2out.c (dbx_reg_number): Likewise.
107 (multiple_reg_loc_descriptor): Likewise.
108 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
109 (gen_pop): Likewise.
110 (ix86_select_alt_pic_regnum): Likewise.
111 (ix86_compute_frame_layout): Likewise.
112 (ix86_finalize_stack_realign_flags): Likewise.
113 (ix86_expand_epilogue): Likewise.
114 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
115 * config/h8300/h8300.c (byte_reg): Likewise.
116 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
117 (c6x_save_reg): Likewise.
118 (c6x_compute_frame_layout): Likewise.
119 * config/pa/pa.c (pa_compute_frame_size): Likewise.
120 (pa_output_function_prologue): Likewise.
121 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
122 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
123 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
124 (sparc_expand_prologue): Likewise.
125 (sparc_flat_expand_prologue): Likewise.
126 (sparc_asm_function_prologue): Likewise.
127 (sparc_output_mi_thunk): Likewise.
128 (sparc_frame_pointer_required): Likewise.
129 * config/epiphany/epiphany.c (epiphany_compute_function_type):
130 Likewise.
131 (epiphany_compute_frame_size): Likewise.
132 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
133 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
134 (cris_frame_pointer_required): Likewise.
135 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
136 (tilepro_current_function_is_leaf): Likewise.
137 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
138 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
139 * config/ia64/ia64.c (find_gr_spill): Likewise.
140 (ia64_compute_frame_size): Likewise.
141 (ia64_can_eliminate): Likewise.
142 (ia64_initial_elimination_offset): Likewise.
143 * config/m68k/m68k.c (m68k_save_reg): Likewise.
144 (m68k_expand_epilogue): Likewise.
145 * config/rx/rx.c (rx_get_stack_layout): Likewise.
146 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
147 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
148 Likewise.
149 (picochip_output_frame_debug): Likewise.
150 * config/sh/sh.c (sh_media_register_for_return): Likewise.
151 (sh_allocate_initial_value): Likewise.
152 (sh_output_mi_thunk): Likewise.
153 * config/microblaze/microblaze.c (microblaze_must_save_register):
154 Likewise.
155 (compute_frame_size): Likewise.
156 (microblaze_initial_elimination_offset): Likewise.
157 (microblaze_expand_prologue): Likewise.
158 (microblaze_expand_epilogue): Likewise.
159 * config/frv/frv.c (frv_expand_epilogue): Likewise.
160 (frv_frame_pointer_required): Likewise.
161 * config/spu/spu.c (get_pic_reg): Likewise.
162 (direct_return): Likewise.
163 (spu_expand_prologue): Likewise.
164 (spu_expand_epilogue): Likewise.
165 (spu_initial_elimination_offset): Likewise.
166 * config/mips/mips.c (mips_global_pointer): Likewise.
167 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
168 (mips_compute_frame_info): Likewise.
169 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
170 (mep_reload_pointer): Likewise.
171 * config/rl78/rl78.c (need_to_save): Likewise.
172 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
173 * config/score/score.c (score_compute_frame_size): Likewise.
174 (score_function_prologue): Likewise.
175 * config/bfin/bfin.c (must_save_p): Likewise.
176 (expand_prologue_reg_save): Likewise.
177 (expand_epilogue_reg_restore): Likewise.
178 (bfin_frame_pointer_required): Likewise.
179 (n_regs_saved_by_prologue): Likewise.
180 (add_to_reg): Likewise.
181 (expand_interrupt_handler_prologue): Likewise.
182 (expand_interrupt_handler_epilogue): Likewise.
183 (bfin_expand_prologue): Likewise.
184 * config/avr/avr.c (avr_regs_to_save): Likewise.
185 (avr_prologue_setup_frame): Likewise.
186 (expand_epilogue): Likewise.
187 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
188 (s390_register_info): Likewise.
189 (s390_frame_info): Likewise.
190 (s390_init_frame_layout): Likewise.
191 (s390_emit_prologue): Likewise.
192
193
194 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
195
196 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
197 * vmsdbgout: Do not undefine it if defined.
198 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
199 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
200 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
201
202 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
203
204 * config/mips/mips.c (mips_process_sync_loop): Add missing
205 enum cast.
206
207 2012-06-23 Richard Henderson <rth@redhat.com>
208
209 PR target/53749
210 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
211 V*QImode shifts and multiply.
212 (ix86_expand_vecop_qihi): Support shifts.
213 * config/i386/i386.md (any_shift): New code iterator.
214 * config/i386/sse.md (ashlv16qi3): Merge ...
215 (<any_shiftrt>v16qi3): ... into ...
216 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
217 to support SSE and AVX.
218
219 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
220 parameter into src and dest.
221 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
222 (vec_unpacks_hi_<V124_AVX2>): Likewise.
223 (vec_unpacku_lo_<V124_AVX2>): Likewise.
224 (vec_unpacks_lo_<V124_AVX2>): Likewise.
225 * config/i386/i386-protos.h: Update.
226
227 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
228 pure expander; move expansion code ...
229 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
230 * config/i386/i386-protos.h: Update.
231
232 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
233
234 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
235 (popcntb<mode>2): Add attribute type popcnt.
236 (popcntd<mode>2): Ditto.
237 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
238 * config/rs6000/power5.md (define_insn_reservation): Ditto.
239 * config/rs6000/power7.md (define_insn_reservation): Ditto.
240 * config/rs6000/476.md (define_insn_reservation): Ditto.
241 * config/rs6000/power6.md (define_insn_reservation): New
242 reservation for popcnt instructions.
243
244 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
245
246 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
247
248 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
249
250 PR target/53383
251 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
252
253 * config/i386/i386.c (ix86_option_override_internal): Allow
254 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
255
256 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
257 if SSE is disabled.
258
259 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
260
261 * double-int.c (double_int_multiple_of): New function.
262 * double-int.h (double_int_multiple_of): New decl.
263 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
264 (mbc_entry_hash): New forward decl.
265 (mbc_entry_eq): Likewise.
266 (zero_cost): Change to no_cost.
267 (mult_costs): New static var.
268 (cost_tables_exist): Likewise.
269 (initialize_costs): New function.
270 (finalize_costs): Likewise.
271 (tree_ssa_iv_optimize_init): Call initialize_costs.
272 (add_cost): Change to add_regs_cost; distinguish costs by speed.
273 (multiply_regs_cost): New function.
274 (add_const_cost): Likewise.
275 (extend_or_trunc_reg_cost): Likewise.
276 (negate_reg_cost): Likewise.
277 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
278 costs by speed.
279 (get_address_cost): Change add_cost to add_regs_cost; change
280 multiply_by_cost to multiply_by_const_cost.
281 (force_expr_to_var_cost): Change zero_cost to no_cost; change
282 add_cost to add_regs_cost; change multiply_by_cost to
283 multiply_by_const_cost.
284 (split_cost): Change zero_cost to no_cost.
285 (ptr_difference_cost): Likewise.
286 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
287 to multiply_by_const_cost.
288 (get_computation_cost_at): Change add_cost to add_regs_cost; change
289 multiply_by_cost to multiply_by_const_cost.
290 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
291 (determine_iv_cost): Change add_cost to add_regs_cost.
292 (iv_ca_new): Change zero_cost to no_cost.
293 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
294 * tree-ssa-address.c (most_expensive_mult_to_index): Change
295 multiply_by_cost to multiply_by_const_cost.
296 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
297 (add_regs_cost): New decl.
298 (multiply_regs_cost): Likewise.
299 (add_const_cost): Likewise.
300 (extend_or_trunc_reg_cost): Likewise.
301 (negate_reg_cost): Likewise.
302
303 2012-06-22 Richard Guenther <rguenther@suse.de>
304
305 Merge from graphite branch
306 2011-08-10 Sebastian Pop <sebpop@gmail.com>
307
308 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
309
310 2012-01-13 Tobias Grosser <tobias@grosser.es>
311
312 * tree-flow.h (parallelized_function_p): Declare.
313 * tree-parloops.c (parallelized_function_p): Export.
314 * graphite.c (graphite_transform_loops): Do not run graphite on
315 already parallel functions.
316
317 2012-06-22 Alan Modra <amodra@gmail.com>
318
319 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
320 return mem. Convert to indirect addressing if not indirect or
321 indexed. Adjust all callers.
322
323 2012-06-22 Richard Guenther <rguenther@suse.de>
324
325 * gcov-iov.c: Include bconfig.h and system.h.
326
327 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
328
329 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
330
331 2012-06-22 Richard Guenther <rguenther@suse.de>
332
333 PR gcov-profile/53744
334 * gcov-iov.c (main): Treat "" and "prerelease" the same.
335
336 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
337
338 PR debug/53704
339 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
340 for GNU Fortran if in strict DWARF2 mode.
341
342 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
343
344 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
345 DECL_IGNORED_P non-reg vars even if they are used.
346
347 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
348
349 PR debug/53671
350 PR debug/49888
351 * var-tracking.c (vt_get_canonicalize_base): New.
352 (vt_canonicalize_addr, vt_stack_offset_p): New.
353 (vt_canon_true_dep): New.
354 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
355 (clobber_overlaping_mems): Use vt_canonicalize_addr.
356
357 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
358
359 PR debug/53671
360 PR debug/49888
361 * var-tracking.c (vt_initialize): Record initial offset between
362 arg pointer and stack pointer.
363
364 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
365
366 PR debug/53671
367 PR debug/49888
368 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
369 CFA base.
370
371 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
372
373 PR debug/53671
374 PR debug/49888
375 * alias.c (memrefs_conflict_p): Improve handling of AND for
376 alignment.
377
378 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
379
380 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
381
382 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
383
384 PR debug/53682
385 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
386
387 2012-06-21 Meador Inge <meadori@codesourcery.com>
388
389 PR c/53702
390 * c-decl.c (c_push_function_context): Restore the behavior to reuse
391 the language function allocated for -Wunused-local-typedefs.
392 (c_pop_function_context): If necessary, clear the language function
393 created in c_push_function_context. Always clear out the
394 x_cur_stmt_list field of the restored language function.
395
396 2012-06-21 Sterling Augustine <saugustine@google.com>
397 Cary Coutant <ccoutant@google.com>
398
399 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
400 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
401 (comdat_type_struct): New field 'skeleton_die'.
402 (breakout_comdat_types): Update it.
403 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
404 is_namespace_die. Fix minor style violation. Call want_pubnames.
405 (add_pubname_string): Call want_pubnames.
406 (add_pubtype): Rework logic for calculating type name. Call
407 is_namespace_die. Call want_pubnames.
408 (output_pubnames): Move conditional logic deciding when to produce the
409 section from dwarf2out_finish. Use new skeleton_die field.
410 (base_type_die): Call add_pubtype.
411 (gen_enumeration_type_die): Unconditionally call add_pubtype.
412 (gen_subprogram_die): Adjust calls to add_pubname.
413 (gen_namespace_die): Call add_pubname_string.
414 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
415 produce pubnames and pubtypes sections to output_pubnames.
416 * common.opt (-gpubnames): New option.
417 * doc/invoke.texi: Document it.
418
419 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
420
421 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
422
423 2012-06-21 Michael Matz <matz@suse.de>
424
425 PR middle-end/53688
426 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
427 with correct size.
428
429 2012-06-21 Richard Guenther <rguenther@suse.de>
430
431 * tree-inline.c (estimate_num_insns): Estimate call cost for
432 tailcalls properly.
433
434 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
435
436 * tree.h (DECL_SOURCE_COLUMN): New accessor.
437
438 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
439
440 * config/i386/i386.md (SINCOS): New int iterator.
441 (sincos): New int attribute.
442 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
443 SINCOS int iterator.
444 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
445 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
446
447 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
448
449 * config/i386/i386.md (RDFSGSBASE): New int iterator.
450 (WRFSGSBASE): Ditto.
451 (fsgs): New int attribute.
452 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
453 RDFSGSBASE int iterator.
454 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
455 WRFSGSBASE int iterator.
456
457 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
458
459 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
460 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
461 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
462 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
463 int iterator.
464
465 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
466
467 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
468
469 2012-06-20 Richard Guenther <rguenther@suse.de>
470
471 PR tree-optimization/30318
472 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
473 constants here.
474 (range_int_cst_singleton_p): But explicitely here.
475 (zero_nonzero_bits_from_vr): And here.
476 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
477 to cover all cases we can perform arbitrary precision
478 arithmetic with double-ints.
479 (intersect_ranges): Handle adjacent anti-ranges.
480
481 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
482
483 * config/i386/i386.md (rounding_insn): New int attribute.
484 (<rounding_insn>xf2): Macroize insn from
485 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
486 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
487
488 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
489
490 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
491 (ieee_maxmin): New int attribute.
492 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
493 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
494
495 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
496
497 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
498 * config/arm/arm.c: Do not include c-pragma.h.
499 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
500 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
501 to arm_emit_eabi_attribute.
502 * arm-c.c: Do not include output.h.
503 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
504 call to arm_emit_eabi_attribute.
505 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
506
507 2012-06-20 Richard Guenther <rguenther@suse.de>
508
509 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
510 Allow adjusting alignment of user-aligned decls again.
511
512 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
513
514 * config/rl78/rl78-c.c: Remove unnecessary includes.
515
516 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
517
518 * config/cris/cris.c: Include cgraph.h.
519 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
520
521 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
522
523 * emit-rtl.c (need_atomic_barrier_p): New function.
524 * emit-rtl.h (need_atomic_barrier_p): Declare it.
525 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
526 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
527 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
528 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
529 (mips_process_sync_loop): Use generic version instead.
530
531 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
532
533 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
534 it is used.
535
536 2012-06-19 Tom de Vries <vries@codesourcery.com>
537 Maxim Kuvyrkov <maxim@codesourcery.com>
538
539 * config/mips/constraints.md (ZR): New constraint.
540 * config/mips/predicates.md (mem_noofs_operand): New predicate.
541 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
542 * config/mips/mips.h (TARGET_XLP): Define.
543 (TARGET_SYNC_AFTER_SC): Update.
544 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
545 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
546 XLP-specific swap and ldadd patterns.
547 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
548
549 2012-06-19 Tom de Vries <vries@codesourcery.com>
550 Maxim Kuvyrkov <maxim@codesourcery.com>
551
552 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
553 (mips_emit_post_atomic_barrier_p): New static functions.
554 (mips_process_sync_loop): Use them. Emit sync memory barriers in
555 accordance with memory model semantics. Add return of CMP result for
556 compare_and_swap.
557 * config/mips/mips.md: Update comment.
558 (sync_cmp): New attribute.
559 (sync_memmodel): New attribute replacing sync_release_barrier.
560 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
561 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
562 (sync_lock_test_and_set, test_and_set_12): Update.
563 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
564 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
565
566 2012-06-19 Joseph Myers <joseph@codesourcery.com>
567
568 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
569 mov_si<mode>_e500_subreg0.
570 (*mov_si<mode>_e500_subreg0_elf_low)
571 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
572
573 2012-06-19 Richard Henderson <rth@redhat.com>
574
575 * config/alpha/alpha.c: Include params.h.
576 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
577 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
578
579 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
580
581 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
582 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
583 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
584 Remove.
585 * doc/tm.texi: Regenerate.
586 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
587 .objc_class_name_*.
588 * config/darwin-c.c: Include target.h.
589 (darwin_objc_declare_unresolved_class_reference): New function.
590 (darwin_objc_declare_class_definition): New function.
591 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
592 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
593
594 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
595
596 * target.def (output_ident): New hook.
597 * targhooks.h (default_asm_output_ident_directive): Add prototype.
598 * varasm.c (assemble_asm): Only prefix a tab if the string does not
599 already start with one.
600 (default_asm_output_ident_directive): New function to emit
601 .ident as a top-level asm node while parsing, or directly to
602 asm_out_file after parsing.
603 * toplev.c (compile_file): Print a GCC .ident with
604 targetm.asm_out.output_ident.
605 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
606 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
607 * doc/tm.texi: Update.
608
609 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
610 (TARGET_ASM_OUTPUT_IDENT): Define.
611 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
612 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
613 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
614 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
615 (TARGET_ASM_OUTPUT_IDENT): Define.
616 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
617 (TARGET_ASM_OUTPUT_IDENT): Define.
618
619 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
620 * config/cris/cris.c (cris_asm_output_ident): New function.
621 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
622
623 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
624 Add prototype.
625 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
626 (microblaze_asm_output_ident): Rewrite to work similar to
627 default_asm_output_ident_directive for front-end .idents.
628 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
629 (TARGET_ASM_OUTPUT_IDENT): Define.
630
631 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
632 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
633
634 * config/rx/rx.c: Include cgraph.h for add_asm_node.
635 (rx_asm_output_ident): New function, similar to
636 default_asm_output_ident_directive, but handle AS100 syntax also, so
637 that #ident also works for rx in AS100 syntax.
638 (TARGET_ASM_OUTPUT_IDENT): Define.
639 * config/rx/rx.h (IDENT_ASM_OP): Remove.
640
641 * Makefile.in: Fix dependencies for c-family/c-lex.o.
642
643 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
644
645 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
646 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
647 (ROUNDING): Ditto.
648 (*fist<mode>2_<rounding>_1): Macroize insn from
649 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
650 (fistdi2_<rounding>): Macroize insn from
651 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
652 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
653 corresponding splitters from fistdi2_{floor,ceil} and corresponding
654 splitters using FIST_ROUNDING int iterator.
655 (fist<mode>2_<rounding>): Macroize insn from
656 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
657 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
658 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
659 splitters using FIST_ROUNDING int iterator.
660 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
661 using FIST_ROUNDING int iterator.
662
663 2012-06-19 Richard Henderson <rth@redhat.com>
664
665 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
666 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
667 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
668 * config/i386/sse.md (sse2_mulv4si3): Delete.
669 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
670 nonimmediate_or_const_vector_operand.
671
672 2012-06-19 Richard Henderson <rth@redhat.com>
673
674 * expmed.c (struct init_expmed_rtl): Split ...
675 (init_expmed_one_mode): ... out of ...
676 (init_expmed): ... here. Initialize integer vector modes also.
677 (synth_mult): Handle integer vector modes.
678 (choose_mult_variant): Likewise.
679 (expand_mult_const): Likewise.
680 (expand_mult): Likewise.
681 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
682
683 2012-06-19 Richard Henderson <rth@redhat.com>
684
685 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
686 integral vector modes.
687
688 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
689
690 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
691 (rounding): New int attribute.
692 (ROUNDING): Ditto.
693 (frndintxf2_<rounding>): Macroize insn from
694 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
695 (frndintxf2_<rounding>_i387): Macroize insn from
696 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
697
698 2012-06-19 Richard Guenther <rguenther@suse.de>
699
700 * tree-vrp.c (union_ranges): New function.
701 (vrp_meet_1): Use union_ranges.
702 (vrp_meet): Dump what we union and call vrp_meet_1.
703
704 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
705
706 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
707 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
708 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
709 (attr write_conflict, attr core_cycles): Update.
710 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
711
712 2012-06-19 Richard Guenther <rguenther@suse.de>
713
714 * tree-vrp.c (intersect_ranges): Handle more cases.
715 (vrp_intersect_ranges): Dump what we intersect and call ...
716 (vrp_intersect_ranges_1): ... this.
717
718 2012-06-19 Richard Guenther <rguenther@suse.de>
719
720 PR tree-optimization/53708
721 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
722 user-supplied alignment and alignment of decls with the used
723 attribute.
724
725 2012-06-18 Lawrence Crowl <crowl@google.com>
726
727 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
728 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
729 (TV_PHASE_STREAM_IN): New.
730 (TV_PHASE_STREAM_OUT): New.
731 * timevar.c (validate_phases): New.
732 (timevar_print): Call validate_phases.
733 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
734 to TV_PHASE_OPT_GEN.
735 * langhooks.c (write_global_declarations): Rename use of
736 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
737 TV_PHASE_CHECK_DBGINFO.
738 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
739 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
740 lang_hooks.decls.final_write_globals.
741
742 2012-06-18 David Edelshn <dje.gcc@gmail.com>
743
744 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
745
746 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
747
748 PR target/53712
749 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
750 (*sse4_2_pcmpistr_unaligned): New.
751
752 2012-06-18 Ian Bolton <ian.bolton@arm.com>
753 Sameera Deshpande <sameera.deshpande@arm.com>
754 Greta Yorsh <greta.yorsh@arm.com>
755
756 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
757 * config/arm/arm.c (print_multi_reg): Remove.
758 (vfp_output_fldmd): Likewise.
759 (arm_output_epilogue): Likewise.
760 * config/arm/arm.md (epilogue_insns): Update condition and code.
761
762 2012-06-18 Ian Bolton <ian.bolton@arm.com>
763 Sameera Deshpande <sameera.deshpande@arm.com>
764 Greta Yorsh <greta.yorsh@arm.com>
765
766 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
767 * config/arm/arm.c (thumb2_expand_return): New function.
768 * config/arm/arm.md (return): Update condition and code.
769
770 2012-06-18 Ian Bolton <ian.bolton@arm.com>
771 Sameera Deshpande <sameera.deshpande@arm.com>
772 Greta Yorsh <greta.yorsh@arm.com>
773
774 * config/arm/arm-protos.h (output_return_instruction): New parameter
775 and int to bool change of parameter types.
776 * config/arm/arm.c (output_return_instruction): Likewise.
777 * config/arm/arm.md (arm_simple_return): New pattern.
778 (arm_return, cond_return, cond_return_inverted): Add new arguments.
779 * config/arm/thumb2.md (thumb2_return): Update condition and code.
780
781 2012-06-18 Ian Bolton <ian.bolton@arm.com>
782 Sameera Deshpande <sameera.deshpande@arm.com>
783 Greta Yorsh <greta.yorsh@arm.com>
784
785 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
786 * config/arm/arm.c (arm_expand_epilogue): New function.
787 * config/arm/arm.md (epilogue): Update condition and code.
788 (sibcall_epilogue): Likewise.
789
790 2012-06-18 Ian Bolton <ian.bolton@arm.com>
791 Sameera Deshpande <sameera.deshpande@arm.com>
792 Greta Yorsh <greta.yorsh@arm.com>
793
794 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
795 * config/arm/arm.md (arm_addsi3) Add an alternative.
796
797 2012-06-18 Ian Bolton <ian.bolton@arm.com>
798 Sameera Deshpande <sameera.deshpande@arm.com>
799 Greta Yorsh <greta.yorsh@arm.com>
800
801 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
802 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
803 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
804
805 2012-06-18 Ian Bolton <ian.bolton@arm.com>
806 Sameera Deshpande <sameera.deshpande@arm.com>
807 Greta Yorsh <greta.yorsh@arm.com>
808
809 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
810 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
811 (pop_multiple_with_return, ldr_with_return) Likewise.
812 * config/arm/predicates.md (pop_multiple_return) New special predicate.
813 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
814 * config/arm/arm.c (arm_output_multireg_pop) New function.
815 (arm_emit_multi_reg_pop): New function.
816
817 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
818
819 * config/arm/arm.c (ldm_stm_operation_p): Require SP
820 as base register for loads if SP is in the register list.
821
822 2012-06-18 Richard Guenther <rguenther@suse.de>
823
824 PR tree-optimization/53693
825 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
826 Reject operands with more than one use.
827
828 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
829
830 PR tree-optimization/53703
831 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
832 correctly set bb_for_def[12].
833
834 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
835
836 * config/vax/vax.h (VMS_TARGET): Remove.
837
838 2012-06-18 Richard Guenther <rguenther@suse.de>
839
840 * tree-vrp.c (extract_range_from_assert): Split out range
841 intersecting code.
842 (intersect_ranges): New function.
843 (vrp_intersect_ranges): Likewise.
844
845 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
846
847 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
848 r187965.
849
850 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
851
852 * doc/md.texi: Document int iterators.
853 * read-rtl.c (ints): New iterator group.
854 (find_int): Int iterator group callback.
855 (apply_int_iterator): Likewise.
856 (apply_iterators): Traverse int iterator table and add all the used
857 iterators to list.
858 (initialize_iterators): Initialize data structures and callbacks for
859 int iterators.
860 (read_rtx): Parse and read mappings for int iterators.
861 (read_rtx_code): Record int iterator usage.
862
863 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
864
865 PR middle-end/53698
866 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
867 performing an addition.
868
869 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
870
871 * output.h (split_double): Move prototype to rtl.h.
872 (constructor_static_from_elts_p): Move prototype to tree.c.
873 * rtl.h (split_double): Moved here from output.h.
874 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
875 * final.c (split_double): Move from here ...
876 * rtlanal.c (split_double): ... to here.
877 * expr.c: Do not include output.h.
878
879 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
880
881 * cfglayout.h: Remove.
882 * cfglayout.c: Remove.
883 * function.h (struct function): Remove x_last_location field.
884 * function.c: Do not include cfglayout.h.
885 (expand_function_start): Do not call no-op force_next_line_note.
886 (expand_function_end): Likewise.
887 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
888 (unlink_insn_chain): Moved here from cfglayout.c.
889 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
890 into_cfg_layout_mode, outof_cfg_layout_mode,
891 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
892 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
893 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
894 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
895 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
896 cfg_layout_finalize): Likewise.
897 (rtl_can_remove_branch_p): Likewise.
898 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
899 (duplicate_insn_chain): Likewise.
900 (force_next_line_note): Remove prototype.
901 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
902 (last_location): Remove #define to emit.x_last_location.
903 (force_next_line_note): Remove no-op function.
904 (init_emit): Don't set x_last_location.
905 (block_locators_locs, block_locators_blocks, locations_locators_locs,
906 locations_locators_vals, prologue_locator, epilogue_locator,
907 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
908 Move POD to here from cfglayout.c.
909 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
910 set_curr_insn_source_location, get_curr_insn_source_location,
911 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
912 locator_scope, insn_scope, locator_location, locator_line, insn_line,
913 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
914 * cfghooks.h: Remove double-include protection.
915 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
916 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
917 * final.c: Do not include cfglayout.h.
918 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
919 (reemit_insn_block_notes): Likewise. Make static.
920 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
921 operation_could_trap_p, tree_could_throw_p): Move from here...
922 * tree.h: ... to here.
923 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
924 * profile.c: Do not include cfghooks.h.
925 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
926 * modulo-sched.c: Likewise.
927 * loop-unswitch.c: Do not include cfglayout.h.
928 * sched-ebb.c: Likewise.
929 * tracer.c: Likewise.
930 * ddg.c: Likewise.
931 * tree-vect-loop-manip.c: Likewise.
932 * loop-init.c: Likewise.
933 * dwarf2out.c: Likewise.
934 * hw-doloop.c: Likewise.
935 * loop-unroll.c: Likewise.
936 * cfgcleanup.c: Likewise.
937 * bb-reorder.c: Likewise.
938 * sched-rgn.c: Likewise.
939 * tree-cfg.c: Likewise.
940 * config/alpha/alpha.c: Likewise.
941 * config/spu/spu.c: Likewise.
942 * config/sparc/sparc.c: Likewise.
943 * config/sh/sh.c: Likewise.
944 * config/c6x/c6x.c: Likewise.
945 * config/ia64/ia64.c: Likewise.
946 * config/rs6000/rs6000.c: Likewise.
947 * config/score/score.c: Likewise.
948 * config/mips/mips.c: Likewise.
949 * config/bfin/bfin.c: Likewise.
950 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
951 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
952 * config/spu/t-spu-elf (spu.o: $): Likewise.
953 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
954
955 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
956
957 * cfgloop.h: Do not include rtl.h.
958 (enum iv_extend_code): New.
959 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
960 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
961 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
962 an IV_EXTEND_CODE to an RTX_CODE.
963 (dump_iv_info): Update for rtx_iv field type change.
964 (iv_constant): Likewise.
965 (iv_subreg): Likewise.
966 (iv_extend): Likewise.
967 (iv_neg): Likewise.
968 (iv_add): Likewise.
969 (iv_mult): Likewise.
970 (iv_shift): Likewise.
971 (get_biv_step_1): Likewise.
972 (get_biv_step): Likewise.
973 (iv_analyze_biv): Likewise.
974 (get_iv_value): Likewise.
975 (shorten_into_mode): Likewise.
976 (canonicalize_iv_subregs): Likewise.
977 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
978 of MAY_HAVE_DEBUG_INSNS.
979 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
980 * tree-ssa-loop-prefetch.c: Likewise.
981
982 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
983
984 * expmed.c (ceil_log2): Move from here...
985 * hwint.c: ... to here for older GCCs...
986 * hwint.h: ... and here for newer GCCs.
987 * rtl.h (ceil_log2): Remove prototype.
988
989 * tree-phinodes.c: Do not include rtl.h.
990 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
991
992 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
993
994 * config/cris/cris.h (TARGET_ELF): Remove.
995 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
996 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
997 (LOCAL_LABEL_PREFIX): Likewise.
998 * config/cris/cris.c (cris_target_asm_named_section): Remove.
999 (cris_option_override): Simpify using TARGET_ELF==1.
1000 (cris_file_start): Likewise.
1001 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
1002
1003 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
1004
1005 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
1006
1007 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
1008
1009 PR middle-end/53590
1010 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
1011
1012 2012-06-15 Easwaran Raman <eraman@google.com>
1013
1014 * passes.c (init_optimization_passes): Remove pass_call_cdce
1015 from its current position and insert after pass_dce.
1016
1017 2012-06-15 Walter Lee <walt@tilera.com>
1018
1019 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
1020
1021 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
1022
1023 * arm.c (note_invalid_constants): Don't return a result.
1024 (arm_memory_load_p): Delete function.
1025 (arm_const_double_rtx): Delete iterator variable i;
1026 (fp_immediate_constant): Likewise.
1027 (fp_const_from_val): Likewise.
1028
1029 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
1030
1031 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1032
1033 PR c++/51033
1034 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
1035 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
1036
1037 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
1038
1039 * config/avr/avr.c (avr_default_expand_builtin): New function.
1040 (avr_expand_builtin): Use it.
1041 (avr_expand_unop_builtin): Remove.
1042 (avr_expand_binop_builtin): Remove.
1043 (avr_expand_triop_builtin): Remove.
1044
1045 2012-06-15 Michael Matz <matz@suse.de>
1046
1047 PR middle-end/38474
1048 * cfgexpand.c (add_alias_set_conflicts): Remove.
1049 (expand_used_vars): Don't call it.
1050 (aggregate_contains_union_type): Remove.
1051 * function.c (n_temp_slots_in_use): New static data.
1052 (make_slot_available, assign_stack_temp_for_type): Update it.
1053 (init_temp_slots): Zero it.
1054 (remove_unused_temp_slot_addresses): Use it for quicker removal.
1055 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
1056
1057 2012-06-15 Michael Matz <matz@suse.de>
1058
1059 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
1060 argument, don't emit assign statement if value is directly usable.
1061 (gimplify_expr): Adjust.
1062
1063 2012-06-15 Michael Matz <matz@suse.de>
1064
1065 * gimplify.c (gimplify_modify_expr): Fold generated statements.
1066 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
1067
1068 2012-06-15 Richard Guenther <rguenther@suse.de>
1069
1070 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
1071 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
1072 we assert for in set_value_range to VR_VARYING.
1073
1074 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
1075
1076 * arm.md (addsf3, adddf3): Use s_register_operand.
1077 (subsf3, subdf3): Likewise.
1078 (mulsf3, muldf3): Likewise.
1079 (difsf3, divdf3): Likewise.
1080 (movsfcc, movdfcc): Likewise.
1081 * predicates.md (f_register_operand): Delete.
1082 (arm_float_rhs_operand): Delete.
1083 (arm_float_add_operand): Delete.
1084 (arm_float_compare_operand): Use s_register_operand when
1085 there's no VFP.
1086 (cirrus_register_operand): Delete.
1087 (cirrus_fp_register): Delete.
1088 (cirrus_shift_const): Delete.
1089 (cmpdi_operand): Remove Maverick support.
1090 * constraints.md (f, v, H): Delete constraints.
1091 (G): Update documentation.
1092 * arm.c (fp_consts_inited): Convert to bool.
1093 (strings_fp): Delete.
1094 (values_fp): Delete.
1095 (value_fp0): New variable.
1096 (init_fp_table): Simplify logic.
1097 (arm_const_double_rtx): Likewise.
1098 (fp_immediate_constant): Likewise.
1099 (fp_const_from_val): Likewise.
1100 (neg_const_double_rtx_ok_for_fpa): Delete.
1101 * doc/md.texi (ARM constraints): Update documentation.
1102
1103 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1104
1105 PR tree-optimization/53636
1106 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
1107 stride when doing basic-block vectorization.
1108
1109 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1110
1111 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
1112 into VEC_PERM_EXPR.
1113
1114 2012-06-15 Jakub Jelinek <jakub@redhat.com>
1115
1116 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
1117 allocate and free bbs array for the SLP case.
1118
1119 PR tree-optimization/51581
1120 * expr.h (choose_multiplier): New prototype.
1121 * expmed.c (choose_multiplier): No longer static.
1122 Change multiplier_ptr from rtx * to UHWI *.
1123 (expand_divmod): Adjust callers.
1124 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
1125 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
1126 argument to new_stmt_vec_info. Attempt to optimize also divisions
1127 by non-pow2 constants if integer vector division isn't supported.
1128 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
1129 don't look at pattern stmts and sequences.
1130
1131 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
1132
1133 PR middle-end/53590
1134 * common.opt (-fdelete-dead-exceptions): New switch.
1135 * doc/invoke.texi (Code Gen Options): Document it.
1136 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
1137 insn_could_throw_p predicate. Do not skip an insn that could throw
1138 if dead exceptions can be deleted.
1139 (insn_live_p): Likewise, do not return true in that case.
1140 * dce.c (can_alter_cfg): New flag.
1141 (deletable_insn_p): Do not return false for an insn that can throw if
1142 the CFG can be altered and dead exceptions can be deleted.
1143 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
1144 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
1145 predicate. Do not preserve an insn that could throw if dead exceptions
1146 can be deleted.
1147 * function.h (struct function): Add can_delete_dead_exceptions flag.
1148 * function.c (allocate_struct_function): Set it.
1149 * lto-streamer-in.c (input_struct_function_base): Stream it.
1150 * lto-streamer-out.c (input_struct_function_base): Likewise.
1151 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
1152 statement that could throw as necessary if dead exceptions can be
1153 deleted.
1154
1155 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
1156
1157 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
1158
1159 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
1160
1161 PR target/53568
1162 * config/sh/sh.md: Add peephole for swapbsi2.
1163 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
1164
1165 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
1166
1167 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
1168 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
1169
1170 2012-06-14 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR target/53639
1173 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
1174
1175 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
1176
1177 * arm.c (arm_cirrus_insn_p): Delete.
1178 (cirrus_reorg): Delete.
1179 (arm_reorg): Don't call cirrus_reorg.
1180 (arm_final_prescan_insn_p): Don't check for cirrus insns.
1181 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
1182 (adddi3, subdi3): Remove Maverick support.
1183 (arm_adddi3): Likewise.
1184 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1185 (addsf3, adddf3): Likewise.
1186 (subsf3, subdf3): Likewise.
1187 (mulsf3, muldf3): Likewise.
1188 (ashldi3, ashrdi3, lshrdi3): Likewise.
1189 (floatsisf2, floatsidf2): Likewise.
1190 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
1191 (arm_movdi, thumb1_movdi_insn): Likewise.
1192 (arm_cmpdi_insn): Likewise.
1193 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
1194 (cirrus.md): Don't include.
1195 * cirrus.md: Delete file.
1196 * t-arm (MD_INCLUDES): Remove cirrus.md.
1197
1198 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * dwarf2out.c (function_possibly_abstracted_p): New static function.
1201 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
1202 cgraph_function_possibly_inlined_p.
1203 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
1204 (process_scope_var): Do not emit concrete instances of abstracted
1205 nested functions from here.
1206 (gen_decl_die): Emit the abstract instance if the function is possibly
1207 abstracted and not only possibly inlined.
1208 (dwarf2out_finish): Find the first non-abstract parent instance and
1209 attach concrete instances on the limbo list to it.
1210
1211 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
1212
1213 * arm.md (divsf3, divdf3): Remove FPA support.
1214 (negsf2, negdf2): Likewise.
1215 (sqrtsf2, sqrtdf2): Likewise.
1216 (movdfcc): Likewise.
1217 (modsf3, moddf3, movxf): Delete.
1218 (push_fp_multi): Delete.
1219 (fpa.md): Don't include it.
1220 * fpa.md: Delete file.
1221 * t-arm (MD_INCLUDES): Remove fpa.md.
1222
1223 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
1224
1225 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
1226 (cost_for_stmt): Remove decl.
1227 (vect_get_single_scalar_iteration_cost): Correct typo in name.
1228 * tree-vect-loop.c (vect_get_cost): Remove.
1229 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
1230 vect_get_stmt_cost rather than vect_get_cost.
1231 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
1232 vect_get_cost.
1233 (vect_estimate_min_profitable_iters): Correct typo in call to
1234 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
1235 than vect_get_cost.
1236 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
1237 vect_get_cost.
1238 (vect_model_induction_cost): Likewise.
1239 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
1240 typo in call to vect_get_single_scalar_iteration_cost.
1241 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
1242 (cost_for_stmt): Remove unnecessary function.
1243 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
1244
1245 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
1246
1247 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
1248 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
1249 * arm-tables.opt: Regenerated.
1250 * doc/invoke.texi: Remove references to deleted options.
1251
1252 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1253
1254 * config/h8300/genmova.sh: Modified to add offset bits of
1255 mova/Sz assembly instruction for memory access.
1256 * config/h8300/h8300.c: Likewise.
1257 * config/h8300/mova.md: Likewise.
1258
1259 2012-06-12 Christian Bruel <christian.bruel@st.com>
1260
1261 PR target/53621
1262 * config/sh/sh.c (sh_option_override): Don't force
1263 flag_omit_frame_pointer and maccumulate_outgoing_args.
1264 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
1265
1266 2012-06-14 Richard Guenther <rguenther@suse.de>
1267
1268 * tree-vrp.c (VR_INITIALIZER): New define.
1269 (ranges_from_anti_range): New function.
1270 (extract_range_from_binary_expr_1): Decompose operations on
1271 VR_ANTI_RANGEs to operations on VR_RANGE.
1272 (extract_range_from_unary_expr_1): Likewise.
1273 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
1274 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
1275 extract_range_from_cond_expr, adjust_range_with_scev,
1276 vrp_visit_assignment_or_call, vrp_visit_phi_node,
1277 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
1278
1279 2012-06-13 Richard Henderson <rth@redhat.com>
1280
1281 * hwint.h (HOST_WIDEST_INT_C): New.
1282 (HOST_WIDE_INT_C): New.
1283 (HOST_WIDE_INT_1): Use it.
1284 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
1285
1286 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
1287
1288 PR debug/49888
1289 * var-tracking.c: Include alias.h.
1290 (overlapping_mems): New struct.
1291 (drop_overlapping_mem_locs): New.
1292 (clobber_overlapping_mems): New.
1293 (var_mem_delete_and_set, var_mem_delete): Call it.
1294 (val_bind): Likewise, but only if modified.
1295 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
1296 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
1297
1298 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
1299
1300 PR debug/47624
1301 * var-tracking.c (loc_exp_dep_pool): New.
1302 (vt_emit_notes): Create and release the pool.
1303 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
1304 (emit_notes_in_bb): Likewise.
1305 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
1306 (notify_dependents_of_changed_value): Likewise.
1307 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
1308 variables don't have a VAR_LOC_DEP_LST.
1309 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
1310 VALUEs or MEMs of VALUEs.
1311
1312 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
1313
1314 PR debug/52983
1315 PR debug/48866
1316 * dce.c (word_dce_process_block): Insert debug temps only if the
1317 insn is not marked.
1318 (dce_process_block): Likewise, and if debug.used is not empty,
1319 and only after iterating over all DEFs that might mark the insn.
1320
1321 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
1322
1323 * common.opt (ftree-coalesce-inlined-vars): New.
1324 (ftree-coalesce-vars): New.
1325 * doc/invoke.texi: Document them.
1326 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1327 Implement them.
1328
1329 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
1330
1331 * read-rtl.c (mapping): Remove index field. Add current_value field.
1332 Define heap vectors.
1333 (iterator_group): Fix long line. Remove num_builtins field and
1334 uses_iterator fields. Make apply_iterator take a void * parameter.
1335 (iterator_use, atttribute_use): New structures.
1336 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
1337 (current_iterators, iterator_uses, attribute_uses): New variables.
1338 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
1339 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
1340 (map_attr_string, apply_iterator_to_string): Remove iterator
1341 and value parameters. Look through all current iterator values
1342 for a matching attribute.
1343 (mode_attr_index, apply_mode_maps): Delete.
1344 (apply_iterator_to_rtx): Replace with...
1345 (copy_rtx_for_iterators): ...this new function.
1346 (uses_iterator_p, apply_iterator_traverse): Delete.
1347 (apply_attribute_uses, add_current_iterators, apply_iterators): New
1348 functions.
1349 (add_mapping): Remove index field. Set current_value field.
1350 (initialize_iterators): Don't set num_builtins and uses_iterator_p
1351 fields.
1352 (find_iterator): Delete.
1353 (record_iterator_use, record_attribute_use): New functions.
1354 (record_potential_iterator_use): New function.
1355 (check_code_iterator): Remove handling of bellwether codes.
1356 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
1357 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
1358 parameter. Use the first code iterator value instead of the
1359 bellwether_codes array. Use record_potential_iterator_use for modes.
1360
1361 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
1362
1363 PR target/53568
1364 * config/sh/sh.md (bswapsi2): New expander.
1365 (swapbsi2): New insn.
1366
1367 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
1368
1369 PR target/53647
1370 * config/i386/i386.c (ix86_tune_cost): New variable.
1371 (ix86_option_override_internal): Set ix86_tune_cost. Use
1372 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
1373 l1_cache_size and l2_cache_size.
1374
1375 2012-06-13 Richard Guenther <rguenther@suse.de>
1376
1377 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
1378 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
1379 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
1380 VR_ANTI_RANGE with VR_ANTI_RANGE.
1381
1382 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
1383
1384 * config.gcc (unsupported): Move obsoleted FPA-based configurations
1385 here from ...
1386 (obsolete): ... here.
1387 (arm*-*-freebsd*): Remove.
1388 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
1389 (arm*-*-uclinux*): Likewise.
1390 (arm*-*-ecos-elf): Remove.
1391 (arm*-*-rtems*): Remove.
1392 (arm*-*-elf): Remove.
1393 (arm*-wince-pe*): Remove.
1394 (arm, --with-fpu): Remove support for fpa and Maverick variants.
1395 * arm/ecos-elf.h: Delete.
1396 * arm/t-strongarm-elf: Delete.
1397 * arm/rtems-elf.h: Delete.
1398 * arm/wince-pe.h: Delete.
1399 * arm/pe.c: Delete.
1400 * arm/pe.h: Delete.
1401 * arm/t-wince-pe: Delete.
1402
1403 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
1404
1405 PR tree-optimization/53647
1406 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
1407 targets with no defined cache line size.
1408
1409 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
1410
1411 * targhooks.c (default_builtin_vectorized_conversion): Handle
1412 vec_construct, using vectype to base cost on subparts.
1413 * target.h (enum vect_cost_for_stmt): Add vec_construct.
1414 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
1415 instead of scalar_to-vec.
1416 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
1417 vec_construct in same way as default for now.
1418 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1419 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1420 Handle vec_construct, including special case for 32-bit loads.
1421
1422 2012-06-13 Xinyu Qi <xyqi@marvell.com>
1423
1424 * config/arm/arm.c (FL_IWMMXT2): New define.
1425 (arm_arch_iwmmxt2): New variable.
1426 (arm_option_override): Enable use of iWMMXt with VFP.
1427 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
1428 Thumb mode. Set arm_arch_iwmmxt2.
1429 (arm_expand_binop_builtin): Accept VOIDmode op.
1430 (enum arm_builtins): Revise built-in fcode.
1431 (IWMMXT2_BUILTIN): New define.
1432 (IWMMXT2_BUILTIN2): Likewise.
1433 (iwmmx2_mbuiltin): Likewise.
1434 (builtin_description bdesc_2arg): Revise built in declaration.
1435 (builtin_description bdesc_1arg): Likewise.
1436 (arm_init_iwmmxt_builtins): Revise built in initialization.
1437 (arm_expand_builtin): Revise built in expansion.
1438 (arm_output_iwmmxt_shift_immediate): New function.
1439 (arm_output_iwmmxt_tinsr): Likewise.
1440 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
1441 (arm_output_iwmmxt_tinsr): Likewise.
1442 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
1443 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
1444 (rorv4hi3, rorv2si3, rordi3): Likewise.
1445 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
1446 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
1447 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
1448 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
1449 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
1450 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
1451 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
1452 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
1453 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
1454 (ror<mode>3, ror<mode>3_di): Likewise.
1455 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
1456 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
1457 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
1458 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
1459 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
1460 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
1461 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
1462 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
1463 (All instruction patterns): Add wtype attribute.
1464 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
1465 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
1466 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
1467 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
1468 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
1469 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
1470 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
1471 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
1472 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
1473 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
1474 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
1475 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
1476 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
1477 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
1478 (iwmmxt2.md): Include.
1479 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
1480 (TARGET_IWMMXT2): New define.
1481 (TARGET_REALLY_IWMMXT2): Likewise.
1482 (arm_arch_iwmmxt2): Declare.
1483 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
1484 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
1485 Use C name-mangling for intrinsics.
1486 (__v8qi): Redefine.
1487 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
1488 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
1489 (_m_from_int): Likewise.
1490 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
1491 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
1492 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
1493 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
1494 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
1495 (_mm_tbcst_pi32): Likewise.
1496 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
1497 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
1498 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
1499 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
1500 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
1501 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
1502 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
1503 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
1504 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
1505 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
1506 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
1507 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
1508 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
1509 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
1510 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
1511 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
1512 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
1513 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
1514 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
1515 (_m_to_int): New define.
1516 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
1517 * config/arm/arm-arches.def (iwmmxt2): Likewise.
1518 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
1519 iwmmxt2.md.
1520 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
1521 (arch): Add "iwmmxt2".
1522 (arch_enabled): Handle "iwmmxt2".
1523 (wtype): New attribute.
1524 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
1525 (UNSPEC_WALIGNI): New unspec.
1526 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
1527 * config/arm/iterators.md (VMMX2): New mode_iterator.
1528 * config/arm/marvell-f-iwmmxt.md: New file.
1529 * config/arm/iwmmxt2.md: New file.
1530
1531 2012-06-12 Jakub Jelinek <jakub@redhat.com>
1532
1533 PR c/53532
1534 PR c/51034
1535 PR c/53196
1536 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
1537 if type isn't complete.
1538
1539 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
1540
1541 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
1542
1543 2012-06-12 Richard Henderson <rth@redhat.com>
1544
1545 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
1546 iterator instead of INT.
1547
1548 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
1549
1550 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
1551 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
1552 declaration.
1553 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
1554 (tree_ssa_phiopt): Call gate_hoist_loads.
1555 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
1556 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
1557 hoist_adjacent_loads.
1558 (local_mem_dependence): New function.
1559 (hoist_adjacent_loads): Likewise.
1560 (gate_hoist_loads): Likewise.
1561 * common.opt (fhoist-adjacent-loads): New switch.
1562 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
1563
1564 2012-06-12 Michael Matz <matz@suse.de>
1565
1566 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
1567 (nonoverlapping_memrefs_p): Don't call it here ...
1568 (true_dependence_1): ... but here.
1569
1570 2012-06-12 Richard Guenther <rguenther@suse.de>
1571
1572 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
1573 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
1574 and MEM_SIZE only refines it. Reflect that and be less conservative
1575 if either of the latter is not known.
1576
1577 2012-06-12 Jakub Jelinek <jakub@redhat.com>
1578
1579 PR rtl-optimization/53589
1580 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
1581 discovery even when e->dest != target. If any LABEL_REF points
1582 to e->dest label, redirect it to target's label.
1583
1584 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
1585
1586 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
1587 condition for generating REG_FRAME_RELATED_EXPR note.
1588 (pop): Add code for generating REG_CFA_RESTORE,
1589 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
1590 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
1591 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
1592
1593 2012-06-11 Richard Henderson <rth@redhat.com>
1594
1595 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
1596 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
1597
1598 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
1599
1600 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
1601
1602 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
1603 Mention that this hook needs to be defined for native TLS.
1604 * doc/tm.texi: Regenerate.
1605
1606 2012-06-11 Mike Stump <mikestump@comcast.net>
1607
1608 * emit-rtl.c (init_emit_once): Iterate through the
1609 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
1610 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
1611 all the MIN_MODE_PARTIAL_INT modes anymore.
1612
1613 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
1614
1615 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
1616
1617 2012-06-11 Roland McGrath <mcgrathr@google.com>
1618
1619 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
1620 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
1621 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
1622 operand.
1623
1624 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
1625
1626 PR target/53511
1627 * config/sh/sh.md (fmasf4): New expander.
1628 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
1629 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
1630 * config/sh/sh.opt (mfused-madd): Remove.
1631 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
1632 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
1633 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
1634 as extra options.
1635 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
1636 descriptions.
1637
1638 2012-06-11 Richard Henderson <rth@redhat.com>
1639
1640 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
1641
1642 2012-06-11 Richard Guenther <rguenther@suse.de>
1643
1644 PR middle-end/53470
1645 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
1646 replace it with the first non-BLOCK context.
1647
1648 2012-06-11 Richard Guenther <rguenther@suse.de>
1649
1650 * alias.c (aliases_everything_p): Remove.
1651 (DIFFERENT_ALIAS_SETS_P): Likewise.
1652 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
1653 Do not use aliases_everything_p or special-case ANDs. Do not
1654 special-case BLKmode moves.
1655 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
1656 - for SCATCH only.
1657
1658 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
1659
1660 Fix CRIS build errors with --enable-build-with-cxx.
1661 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
1662 variable "and" to "andop".
1663 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
1664 temporary variable for memory model, passing C++-type-correct
1665 parameter type to expand_mem_thread_fence.
1666 ("atomic_compare_and_swap<mode>"): Ditto.
1667
1668 2012-06-09 Richard Henderson <rth@redhat.com>
1669
1670 PR c++/53602
1671 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
1672 (pass_jump): Rename from pass_jump2.
1673 (execute_jump2, pass_jump2): New.
1674 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
1675 perform cfg cleanup here. Move the test of PUSH_ROUNDING
1676 and ACCUMULATE_OUTGOING_ARGS test...
1677 (gate_handle_stack_adjustments): ... here.
1678 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
1679 Place new pass_jump2 after pass_stack_adjustments.
1680 * tree-pass.h (pass_jump): Declare.
1681
1682 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1683
1684 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
1685 count trucation.
1686
1687 2012-06-08 Richard Henderson <rth@redhat.com>
1688
1689 PR c++/53602
1690 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
1691 note to a clobber insn when no other insn is available.
1692
1693 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
1694
1695 * config/avr/avr.c (avr_case_values_threshold): Return 7.
1696
1697 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
1698
1699 * genhooks.c (main): Set progname.
1700 (emit_documentation): Remove variable found_start, always bail out
1701 when a place is missing.
1702 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
1703
1704 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1705
1706 PR middle-end/53580
1707 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
1708 call walk_gimple_seq_mod instead of walk_gimple_seq.
1709 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
1710 scan_omp_for, scan_omp_sections, scan_omp_single,
1711 execute_lower_omp): Adjust callers.
1712 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
1713 returns false, replace stmt with GIMPLE_NOP.
1714 (check_omp_nesting_restrictions): Instead of issuing warnings,
1715 issue errors and return false if any errors were reported.
1716
1717 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1718
1719 * doc/invoke.texi (fconserve-space): Remove documentation.
1720
1721 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
1722
1723 * config/rs6000/rs6000-tables.opt: Regenerated.
1724
1725 2012-06-06 Richard Guenther <rguenther@suse.de>
1726
1727 PR tree-optimization/53081
1728 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
1729 (adjacent_dr_p): ... this and make it work for reads, too.
1730 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
1731 (struct partition_s): Change main_stmt to main_dr, add
1732 secondary_dr member.
1733 (build_size_arg_loc): Change to date data-reference and not
1734 gimplify here.
1735 (build_addr_arg_loc): New function split out from ...
1736 (generate_memset_builtin): ... here. Use it and simplify.
1737 (generate_memcpy_builtin): New function.
1738 (generate_code_for_partition): Adjust.
1739 (classify_partition): Streamline pattern detection. Detect memcpy.
1740 (ldist_gen): Adjust.
1741 (tree_loop_distribution): Adjust seed statements for memcpy
1742 recognition.
1743
1744 2012-06-06 Matt Turner <mattst88@gmail.com>
1745
1746 * config/arm/mmintrin.h (_mm_empty): New.
1747 (_m_empty): New.
1748
1749 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
1750
1751 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
1752 * common.opt (fsched-pressure-algorithm=): Remove.
1753 * flag-types.h (sched_pressure_algorithm): Move to...
1754 * sched-int.h (sched_pressure_algorithm): ...here.
1755 * params.def (sched-pressure-algorithm): New param.
1756 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
1757 * common/config/s390/s390-common.c (s390_option_optimization_table):
1758 Remove OPT_fsched_pressure_algorithm_ entry.
1759 * config/s390/s390.c (s390_option_override): Set a default value for
1760 PARAM_SCHED_PRESSURE_ALGORITHM.
1761
1762 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1763
1764 PR target/53487
1765 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
1766 doing an unsigned compare, make sure the second argument is not a
1767 negative constant.
1768 (rs6000_emit_cmove): Don't allow floating point comparisons when
1769 generating ISEL moves.
1770
1771 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
1772
1773 * config/rs6000/e5500.md: New file.
1774 * config/rs6000/e6500.md: New file.
1775 * config/rs6000/rs6000.c (processor_costs): Add new costs for
1776 e5500 and e6500.
1777 (rs6000_option_override_internal): Altivec and Spe options not
1778 allowed with e5500. Spe options not allowed with e6500. Increase
1779 move inline limit for e5500 and e6500. Disable string instructions
1780 for e5500 and e6500. Enable branch targets alignment for e5500 and
1781 e6500. Initialize rs6000_cost for e5500 and e6500.
1782 (rs6000_adjust_cost): Add extra scheduling cycles between compare
1783 and brnach for e5500 and e6500.
1784 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
1785 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
1786 e6500.
1787 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
1788 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
1789 ppce6500.
1790 Include e5500.md and e6500.md.
1791 * config/rs6000/rs6000-opt.h (processor_type): Add
1792 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
1793 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
1794 (powerpc*-*-*): Add new cores e5500, e6500.
1795 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
1796
1797 2012-06-05 Richard Guenther <rguenther@suse.de>
1798
1799 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
1800
1801 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
1802
1803 PR target/53575
1804 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
1805 is used for x86_64-*-*.
1806
1807 2012-06-05 Richard Guenther <rguenther@suse.de>
1808
1809 PR tree-optimization/30442
1810 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
1811 vectorization stop analysis at the first stmt we cannot compute
1812 a data-reference for instead of giving up completely.
1813
1814 2012-06-05 Richard Guenther <rguenther@suse.de>
1815
1816 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
1817 (partition_alloc): Initialize it.
1818 (partition_has_writes): New function.
1819 (rdg_flag_uses): Adjust.
1820 (rdg_flag_vertex): Likewise.
1821 (rdg_flag_vertex_and_dependent): Likewise.
1822 (rdg_flag_loop_exits): Likewise.
1823 (build_rdg_partition_for_component): Likewise.
1824 (rdg_build_partitions): Likewise.
1825
1826 2012-06-05 Richard Guenther <rguenther@suse.de>
1827
1828 PR tree-optimization/53081
1829 * tree-loop-distribution.c (generate_memset_builtin): Handle all
1830 kinds of byte-sized stores.
1831 (classify_partition): Likewise.
1832 (tree_loop_distribution): Adjust seed statements used for
1833 !flag_tree_loop_distribution.
1834
1835 2012-06-05 Alan Modra <amodra@gmail.com>
1836
1837 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
1838 (rs6000_emit_prologue): Ensure register used for inline saves
1839 of vector regs is not the static chain register. Revise comment.
1840
1841 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
1842
1843 * doc/md.texi (Standard Pattern Names For Generation): Document
1844 sincos pattern.
1845
1846 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
1847
1848 PR bootstrap/53555
1849 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
1850
1851 2012-06-04 Jason Merrill <jason@redhat.com>
1852
1853 * dwarf2out.c (is_unit_die): New.
1854 (copy_declaration_context, copy_ancestor_tree): Use it.
1855 (copy_decls_walk): Likewise.
1856
1857 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
1858
1859 PR c++/53524
1860 * doc/invoke.texi (Wenum-compare): Update documentation.
1861
1862 2012-06-04 Dodji Seketeli <dodji@redhat.com>
1863
1864 PR preprocessor/53463
1865 * parser.c (cp_parser_assignment_expression): Use the location
1866 for the '=' as the default location for the expression.
1867
1868 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
1869
1870 PR target/53559
1871 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
1872 operands.
1873 (altivec_stvlxl): Ditto.
1874 (altivec_stvrx): Ditto.
1875 (altivec_stvrxl): Ditto.
1876
1877 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
1878
1879 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
1880 (ira_uniform_class_p): New macro.
1881
1882 * ira.c (setup_uniform_class_p): New function.
1883 (setup_allocno_and_important_classes): Call the function.
1884 (print_unform_and_important_classes): New function.
1885 (print_classes): Rename to print_translated_classes.
1886 (ira_debug_allocno_classes): Add call of
1887 print_unform_and_important_classes.
1888
1889 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
1890 classes instead of pressure classes.
1891
1892 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
1893
1894 PR middle-end/47530
1895 * trans-mem.c (expand_block_edges): Do not skip the first
1896 statement when resetting the BB.
1897
1898 2012-06-04 Richard Guenther <rguenther@suse.de>
1899
1900 * tree-data-ref.c (stores_from_loop): Remove.
1901 (stmt_with_adjacent_zero_store_dr_p): Likewise.
1902 (stores_zero_from_loop): Likewise.
1903 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
1904 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
1905 (adjacent_store_dr_p): New function.
1906 * tree-loop-distribution.c (generate_memset_builtin): Pass
1907 the RDG, use the already available data-reference.
1908 (generate_code_for_partition): Pass down RDG.
1909 (classify_partition): Inline parts of the former
1910 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
1911 (ldist_gen): Remember if there was any detected builtin and
1912 do less work if not and flag_tree_loop_distribution is not set.
1913 (tree_loop_distribution): Inline and fuse stores_from_loop
1914 and stores_zero_from_loop here.
1915
1916 2012-06-04 Richard Guenther <rguenther@suse.de>
1917
1918 PR middle-end/53471
1919 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
1920 create new assembler names.
1921
1922 2012-06-04 Richard Guenther <rguenther@suse.de>
1923
1924 * tree-data-ref.c (struct rdg_vertex_info): Remove.
1925 (rdg_vertex_for_stmt): Simplify using gimple_uid.
1926 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
1927 hashtable. Record stmt data-references.
1928 (hash_stmt_vertex_info): Remove.
1929 (eq_stmt_vertex_info): Likewise.
1930 (hash_stmt_vertex_del): Likewise.
1931 (build_empty_rdg): Simplify.
1932 (build_rdg): Adjust.
1933 (free_rdg): Likewise.
1934 (ref_base_address): Remove.
1935 (have_similar_memory_accesses): Likewise.
1936 * tree-data-ref.h (create_rdg_vertices): Remove.
1937 (struct rdg_vertex): Add datarefs member.
1938 (RDGV_DATAREFS): New define.
1939 (RDG_DATAREFS): Likewise.
1940 (have_similar_memory_accesses): Remove.
1941 (rdg_has_similar_memory_accesses): Likewise.
1942 * tree-loop-distribution.c (ref_base_address): Re-implement here.
1943 (similar_memory_accesses): Re-implement using existing data-references.
1944 (tree_loop_distribution): Initialize stmt uids for the stmt to
1945 RDG index mapping.
1946 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1947 access stmt vinfo for stmts in loop.
1948
1949 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
1950
1951 PR target/53461
1952 * config/m68k/m68k.md ("tablejump"): Fix check for
1953 CASE_VECTOR_PC_RELATIVE.
1954
1955 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1956
1957 * output.h (merge_weak, assemble_alias,
1958 initializer_constant_valid_p,
1959 initializer_constant_valid_for_bitfield_p): Move protos from here...
1960 * tree.h: ... to here.
1961 * cgraphclones.c: Do not include output.h.
1962 * gimplify.c: Likewise.
1963 * reload.c: Likewise.
1964 * recog.c: Likewise.
1965 * tree-ssa-loop-ivopts.c: Likewise.
1966 * tree-switch-conversion.c: Likewise.
1967 * c-parser.c: Likewise.
1968 * c-typeck.c: Likewise.
1969 * Makefile.in: Fix dependencies.
1970
1971 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
1972
1973 PR target/46261
1974 * config/avr/avr-stdint.h: New file.
1975 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
1976 newlib-stdint.h
1977
1978 2012-06-04 Jakub Jelinek <jakub@redhat.com>
1979
1980 PR tree-optimization/53550
1981 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
1982 is POINTER_TYPE_P, use sizetype as step type instead of type.
1983
1984 2012-06-04 Richard Guenther <rguenther@suse.de>
1985
1986 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
1987 (ref_base_address_1): Likewise.
1988 (remove_similar_memory_refs): Likewise.
1989 * tree-data-ref.h (remove_similar_memory_refs): Remove.
1990 * tree-loop-distribution.c (classify_partition): Do not classify
1991 as builtin if -ftree-loop-distribute-patterns is not enabled.
1992 (fuse_partitions_with_similar_memory_accesses): Inline ...
1993 (ldist_gen): ... here. Fuse all non-builtin partitions if
1994 -ftree-loop-distribution is not enabled. Properly return
1995 the number of created partitions. Do not update SSA form here but ...
1996 (tree_loop_distribution): ... once here for the whole function.
1997 Only walk innermost loops, constrain loops we consider here
1998 further. Do not call remove_similar_memory_refs.
1999 (distribute_loop): Do not check number of loop nodes here.
2000
2001 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2002
2003 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
2004
2005 2012-06-03 Martin Jambor <mjambor@suse.cz>
2006
2007 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
2008 (ipa_get_jf_known_type_base_type): Likewise.
2009 (ipa_get_jf_known_type_component_type): Likewise.
2010 (ipa_get_jf_constant): Likewise.
2011 (ipa_get_jf_pass_through_formal_id): Likewise.
2012 (ipa_get_jf_pass_through_operation): Likewise.
2013 (ipa_get_jf_ancestor_offset): Likewise.
2014 (ipa_get_jf_ancestor_type): Likewise.
2015 (ipa_get_jf_ancestor_formal_id): Likewise.
2016 (ipa_get_jf_member_ptr_pfn): Likewise.
2017 * ipa-prop.c (ipa_set_jf_known_type): New function.
2018 (ipa_set_jf_constant): Likewise.
2019 (ipa_set_jf_simple_pass_through): Likewise.
2020 (ipa_set_jf_arith_pass_through): Likewise.
2021 (ipa_set_ancestor_jf): Likewise.
2022 (fill_member_ptr_cst_jump_function): Moved up and renamed to
2023 ipa_set_jf_member_ptr_cst.
2024 (detect_type_change_1): Use the new jump function creation functions.
2025 (compute_complex_assign_jump_func): Likewise.
2026 (compute_complex_ancestor_jump_func): Likewise.
2027 (compute_known_type_jump_func): Likewise.
2028 (compute_scalar_jump_functions): Likewise.
2029 (compute_pass_through_member_ptrs): Likewise.
2030 (determine_cst_member_ptr): Likewise.
2031 (combine_known_type_and_ancestor_jfs): Likewise.
2032 (try_make_edge_direct_simple_call): Likewise.
2033 (try_make_edge_direct_virtual_call): Likewise.
2034 (update_indirect_edges_after_inlining): Likewise.
2035 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
2036 access functions. Incorporat NOP_EXPR and BINFO handling from its
2037 callers.
2038 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
2039 which was in its callers.
2040 (ipa_value_from_jfunc): Use jump function access functions. Some
2041 functionality moved to functions above.
2042 (propagate_vals_accross_ancestor): Likewise.
2043 (propagate_vals_accross_pass_through): Use jump function access
2044 functions.
2045 (propagate_accross_jump_function): Likewise.
2046 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
2047 access functions.
2048 (inline_merge_summary): Likewise.
2049
2050 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2051
2052 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
2053 * config/pa/pa.c (pa_attr_length_millicode_call): Use
2054 MAX_PCREL17F_OFFSET instead of fixed offset.
2055 (pa_attr_length_call): Likewise.
2056 (pa_attr_length_indirect_call): Likewise.
2057
2058 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
2059
2060 PR target/53512
2061 * config/sh/sh.opt (mfsca, mfsrra): New options.
2062 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
2063 condition.
2064 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
2065 (sinssf2, cossf2): Fold expanders to ...
2066 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
2067 TARGET_FSCA condition.
2068 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
2069 TARGET_FSCA.
2070 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
2071 -mno-fsca, -mfsrra, -mno-fsrra.
2072
2073 2012-06-03 Matt Turner <mattst88@gmail.com>
2074
2075 * config/mips/4600.md (r4700_imul_si): New.
2076 (r4700_imul_di): New.
2077 (r4700_fmul_single): New.
2078 (r4700_fmul_double): New.
2079 * config/mips/mips-cpus.def: Add r4700.
2080 * config/mips/mips.c: Likewise.
2081 * config/mips/mips.md: Likewise.
2082 * config/mips/mips-tables.opt: Regenerate.
2083
2084 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
2085
2086 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
2087 new function sparc_initial_elimination_offset.
2088 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
2089 function.
2090 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
2091 Prototype it.
2092
2093 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
2094
2095 * expmed.c (expand_mult, choose_multiplier): Change
2096 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
2097 * expr.c (convert_modes): Likewise.
2098 * explow.c (plus_constant): Likewise.
2099 * fixed-value.c (fixed_saturate1, fixed_saturate2)
2100 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
2101 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
2102 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
2103 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
2104 (do_fixed_shift, fixed_convert, fixed_convert)
2105 (fixed_convert_from_int, fixed_convert_from_int)
2106 (fixed_convert_from_real): Likewise.
2107 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
2108 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
2109 * varasm.c (output_constructor_bitfield): Likewise.
2110 * tree-vrp.c (register_edge_assert_for_2): Likewise.
2111 * double-int.c (rshift_double, lshift_double): Likewise.
2112 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
2113 Likewise.
2114 * simplify-rtx.c (mode_signbit_p)
2115 (simplify_const_unary_operation, simplify_binary_operation_1)
2116 (simplify_immed_subreg): Likewise.
2117 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
2118 * tree-vect-generic.c (build_replicated_const): Likewise.
2119 * dbxout.c (stabstr_O): Likewise.
2120 * emit-rtl.c (immed_double_int_const, immed_double_const)
2121 (gen_lowpart_common, init_emit_once): Likewise.
2122 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
2123 (widest_int_cst_value, upper_bound_in_type): Likewise.
2124 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
2125 (fixup_unsigned_type): Likewise.
2126 * real.c (real_to_integer2, real_from_integer): Likewise.
2127 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
2128 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
2129
2130 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
2131
2132 PR middle-end/53501
2133 * fold-const.c (fold_binary_loc): Refine previous change.
2134
2135 2012-06-01 Olivier Hainque <hainque@adacore.com>
2136
2137 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
2138 the "do {" part of the do-while(0) loop.
2139
2140 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2141
2142 * config/i386/i386.c (x86_sched_reorder): New function.
2143 Added new function x86_sched_reorder.
2144
2145 2012-06-01 Richard Guenther <rguenther@suse.de>
2146
2147 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
2148 Handle PHIs.
2149 (classify_partition): Likewise.
2150
2151 2012-06-01 Richard Guenther <rguenther@suse.de>
2152
2153 * tree-loop-distribution.c (enum partition_kind): New enum.
2154 (struct partition_s): Add kind and main_stmt members.
2155 (partition_alloc): Initialize kind to PKIND_NORMAL.
2156 (partition_builtin_p): New function.
2157 (copy_loop_before): Remove failure path and assert instead.
2158 (generate_loops_for_partition): Likewise.
2159 (generate_memset_zero): Fold into ...
2160 (generate_memset_builtin): ... this.
2161 (classify_partition): New function with code from
2162 can_generate_builtin and generate_builtin.
2163 (generate_builtin): Remove.
2164 (can_generate_builtin): Likewise.
2165 (fuse_partitions_with_similar_memory_accesses): Call
2166 partition_builtin_p instead of can_generate_builtin.
2167 (rdg_build_partitions): Do not call
2168 fuse_partitions_with_similar_memory_accesses here...
2169 (ldist_gen): ... but here after classifying all partitions.
2170 Remove failure path of generate_code_for_partition.
2171 (generate_code_for_partition): Generate code according
2172 to partition classification.
2173
2174 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
2175 Jonathan Wakely <jwakely.gcc@gmail.com>
2176
2177 PR c++/50134
2178 * doc/invoke.texi (Warning Options): Explain purpose and differences
2179 between -Wmissing-prototypes and -Wmissing-declarations.
2180
2181 2012-06-01 Christian Bruel <christian.bruel@st.com>
2182
2183 * gcc.c (save_switch): Add user_p parameter.
2184 (read_specs): Likewise.
2185 (set_specs): Likewise.
2186 (validate_switches): Likewise.
2187 (validate_switches_from_spec): Likewise.
2188 (validate_all_switches): Pass on user_p parameter.
2189 (struct spec_list): Add user_p field.
2190 (struct switchstr): Add known field.
2191 (save_switch): Add known parameter.
2192 (INIT_STATIC_SPEC): Initialize user_p;
2193 (driver_unknown_option_callbac): call save_switch if
2194 OPT_SPECIAL_unknown.
2195 (driver_handle_option): Propagate OPT_specs.
2196 (do_spec_1): Set validated only if known.
2197 (check_live_switch): Likewise.
2198 (validate_switches): Set validated if known or user_spec.
2199
2200 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
2201
2202 Add CRIS atomic patterns for 1, 2, and 4 bytes.
2203 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
2204 * config/cris/cris-protos.h: Declare it.
2205 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
2206 (TARGET_DEFAULT): Add alignment by 32.
2207 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
2208 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
2209 TARGET_CPU_DEFAULT == 32.
2210 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
2211 * config/cris/cris.md: Include sync.md. Avoid allocating specific
2212 numbers by replacing the define_constants for all UNSPECs with the
2213 equivalent define_c_enum construct.
2214 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
2215 * config/cris/sync.md: New file.
2216
2217 2012-05-31 Matt Turner <mattst88@gmail.com>
2218
2219 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
2220 (r4600_imul_di): New.
2221 (r4600_idiv_si): Rename from r4600_idiv.
2222 (r4600_idiv_di): New.
2223
2224 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2225
2226 * output.h (__gcc_host_wide_int__): Move to hwint.h.
2227 (decl_default_tls_model): Move to tree.h
2228 (dump_file): Move to system.h.
2229 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
2230 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
2231 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
2232 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
2233 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
2234 dbxout_stab_value_internal_label,
2235 dbxout_stab_value_internal_label_diff): Move from here ...
2236 * dbxout.h: ... to here.
2237 * system.h (dump_file): Moved here from output.h.
2238 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
2239 * tree.h (decl_default_tls_model): Moved here from output.h.
2240 * varasm.c (default_stabs_asm_out_destructor,
2241 default_stabs_asm_out_constructor): Move from here ...
2242 * dbxout.c: ... to here.
2243
2244 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
2245
2246 * collect2.h (dump_file): Rename to dump_ld_file.
2247 * collect2.c: Likewise.
2248 * tlink.c: Likewise.
2249
2250 * alias.c: Do not include output.h.
2251 * auto-inc-dec.c: Likewise.
2252 * bt-load.c: Likewise.
2253 * caller-save.c: Likewise.
2254 * cfg.c: Likewise.
2255 * cfgbuild.c: Likewise.
2256 * cfgcleanup.c: Likewise.
2257 * cfglayout.c: Likewise.
2258 * cfgloop.c: Likewise.
2259 * cfgloopanal.c: Likewise.
2260 * cfgloopmanip.c: Likewise.
2261 * cfgrtl.c: Likewise.
2262 * cgraph.c: Likewise.
2263 * cgraphclones.c: Likewise.
2264 * combine-stack-adj.c: Likewise.
2265 * combine.c: Likewise.
2266 * cprop.c: Likewise.
2267 * cse.c: Likewise.
2268 * cselib.c: Likewise.
2269 * dbgcnt.c: Likewise.
2270 * df-problems.c: Likewise.
2271 * df-scan.c: Likewise.
2272 * dojump.c: Likewise.
2273 * fwprop.c: Likewise.
2274 * gcse.c: Likewise.
2275 * graph.c: Likewise.
2276 * haifa-sched.c: Likewise.
2277 * hw-doloop.c: Likewise.
2278 * ipa-inline-transform.c: Likewise.
2279 * ipa-pure-const.c: Likewise.
2280 * ipa-reference.c: Likewise.
2281 * ipa-utils.c: Likewise.
2282 * ira-build.c: Likewise.
2283 * ira-emit.c: Likewise.
2284 * lcm.c: Likewise.
2285 * loop-doloop.c: Likewise.
2286 * loop-invariant.c: Likewise.
2287 * loop-iv.c: Likewise.
2288 * loop-unroll.c: Likewise.
2289 * loop-unswitch.c: Likewise.
2290 * lto-cgraph.c: Likewise.
2291 * lto-section-in.c: Likewise.
2292 * lto-streamer-in.c: Likewise.
2293 * mcf.c: Likewise.
2294 * mode-switching.c: Likewise.
2295 * postreload-gcse.c: Likewise.
2296 * postreload.c: Likewise.
2297 * predict.c: Likewise.
2298 * profile.c: Likewise.
2299 * ree.c: Likewise.
2300 * reg-stack.c: Likewise.
2301 * regcprop.c: Likewise.
2302 * regmove.c: Likewise.
2303 * regstat.c: Likewise.
2304 * reload1.c: Likewise.
2305 * sched-ebb.c: Likewise.
2306 * sel-sched-dump.c: Likewise.
2307 * simplify-rtx.c: Likewise.
2308 * stor-layout.c: Likewise.
2309 * store-motion.c: Likewise.
2310 * tracer.c: Likewise.
2311 * tree-affine.c: Likewise.
2312 * tree-cfg.c: Likewise.
2313 * tree-cfgcleanup.c: Likewise.
2314 * tree-dfa.c: Likewise.
2315 * tree-into-ssa.c: Likewise.
2316 * tree-nomudflap.c: Likewise.
2317 * tree-optimize.c: Likewise.
2318 * tree-pretty-print.c: Likewise.
2319 * tree-profile.c: Likewise.
2320 * tree-ssa-address.c: Likewise.
2321 * tree-ssa-ccp.c: Likewise.
2322 * tree-ssa-copy.c: Likewise.
2323 * tree-ssa-dom.c: Likewise.
2324 * tree-ssa-loop-ch.c: Likewise.
2325 * tree-ssa-loop-im.c: Likewise.
2326 * tree-ssa-loop-manip.c: Likewise.
2327 * tree-ssa-loop-niter.c: Likewise.
2328 * tree-ssa-loop-prefetch.c: Likewise.
2329 * tree-ssa-loop-unswitch.c: Likewise.
2330 * tree-ssa-loop.c: Likewise.
2331 * tree-ssa-propagate.c: Likewise.
2332 * tree-ssa-structalias.c: Likewise.
2333 * tree-ssa-tail-merge.c: Likewise.
2334 * tree-ssa-threadedge.c: Likewise.
2335 * tree-ssa-threadupdate.c: Likewise.
2336 * tree-ssa-uncprop.c: Likewise.
2337 * tree-ssa-uninit.c: Likewise.
2338 * tree-ssa.c: Likewise.
2339 * value-prof.c: Likewise.
2340 * var-tracking.c: Likewise.
2341 * web.c: Likewise.
2342
2343 * config/m32r/m32r.c: Include dbxout.h.
2344 * config/pa/pa.c: Likewise.
2345 * config/rs6000/rs6000.c: Likewise.
2346
2347 * Makefile.in: Fix dependencies.
2348 * config/rs6000/t-rs5000: Likewise.
2349
2350 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
2351
2352 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
2353 * gimple.h (block_in_transaction): Check for flag_tm.
2354
2355 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
2356
2357 PR tree-optimization/52558
2358 * cfg.c (alloc_aux_for_edge): Fix comment.
2359 (alloc_aux_for_edge): Remove static.
2360 * basic-block.h (alloc_aux_for_edge): Protoize.
2361 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
2362 (execute_sm_if_changed_flag): New.
2363 (execute_sm_if_changed_flag_set): New.
2364 (execute_sm): Do not generate data races unless requested.
2365 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
2366 (tree_ssa_lim_finalize): Call free_aux_for_edges.
2367 * gimple.h (block_in_transaction): New.
2368 (gimple_in_transaction): Use block_in_transaction.
2369
2370 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2371
2372 PR target/51345
2373 * config/avr/avr.opt (-msp8): Document it.
2374 * doc/invoke.texi (AVR Options): Ditto. And document related
2375 built-in macros.
2376
2377 2012-05-31 Diego Novillo <dnovillo@google.com>
2378
2379 * configure.ac (CXX_FOR_BUILD): Define and substitute.
2380 (BUILD_CXXFLAGS): Define and substitute.
2381 * Makefile.in (BUILD_CXXFLAGS): Define.
2382 (CXX_FOR_BUILD): Define.
2383 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
2384 (LINKER_FOR_BUILD): Likewise.
2385 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
2386 (BUILD_LINKERFLAGS): Likewise.
2387 * configure: Regenerate.
2388
2389 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2390
2391 * Makefile.in: Fix many dependencies.
2392 * tree-profile.c: Don't include regs.h.
2393 * tree-vectorizer.c: Don't include cfglayout.h.
2394 * tree-vect-stmts.c: Likewise.
2395 * tree-vect-slp.c: Likewise.
2396 * tree-vect-loop.c: Likewise.
2397 * reg-stack.c: Likewise.
2398 * tree-ssa-loop-manip.c: Likewise.
2399 * toplev.c: Likewise.
2400 * varasm.c: Don't include cfglayout.h, basic-block.h,
2401 and tree-iterator.h.
2402 * tree-cfgcleanup.c: Don't include cfglayout.h.
2403 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
2404 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
2405 * cgraphclones.c: Don't include plugin.h.
2406
2407 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2408
2409 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
2410 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
2411 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
2412
2413 2012-05-31 Richard Guenther <rguenther@suse.de>
2414
2415 * tree-loop-distribution.c (struct partition_s): New struct,
2416 typedef and vector type.
2417 (partition_alloc, partition_free): New functions.
2418 (generate_loops_for_partition, generate_builtin,
2419 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
2420 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2421 build_rdg_partition_for_component, can_generate_builtin,
2422 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
2423 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
2424 number_of_rw_in_partition, partition_contains_all_rw,
2425 ldist_gen): Use partition_t instead of bitmap.
2426
2427 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2428
2429 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
2430 * doc/avr-mmcu.texi: Regenerate.
2431
2432 2012-05-31 Richard Guenther <rguenther@suse.de>
2433
2434 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
2435 Use FOR_EACH_SSA_DEF_OPERAND.
2436 (generate_builtin): Adjust.
2437 (stmt_generated_in_another_partition): Remove.
2438 (add_scalar_computations_to_partition): Likewise.
2439 (rdg_build_partitions): Do not call
2440 add_scalar_computations_to_partition.
2441
2442 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
2443
2444 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
2445 double ints throughout.
2446 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
2447 Check that the position of the field is representable as an integer.
2448
2449 2012-05-31 Richard Guenther <rguenther@suse.de>
2450
2451 * tree-data-ref.c (dr_analyze_innermost): Properly convert
2452 the MEM_REF offset to sizetype.
2453
2454 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2455
2456 * doc/invoke.texi (AVR Options): Fix typos.
2457
2458 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
2459
2460 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
2461 and -mcpu= options.
2462 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
2463 non-v32 into --march=v0_v10.
2464
2465 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2466
2467 * ira-int.h (target_ira_int): Rename x_move_cost to
2468 x_ira_register_move_cost, x_may_move_in_cost to
2469 x_ira_may_move_in_cost and x_may_move_out_cost to
2470 x_ira_may_move_out_cost. Delete the old fields with
2471 those names and also x_ira_max_register_move_cost,
2472 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
2473 (move_cost, may_move_in_cost, may_move_out_cost)
2474 (ira_max_register_move_cost, ira_max_may_move_in_cost)
2475 (ira_max_may_move_out_cost): Delete.
2476 * ira.c (init_move_cost): Rename to...
2477 (ira_init_register_move_cost): ...this, deleting the old
2478 function with that name. Apply above variable renamings.
2479 Retain asserts for null fields.
2480 (ira_init_once): Don't initialize register move costs here.
2481 (free_register_move_costs): Apply above variable renamings.
2482 Remove code for deleted fields.
2483
2484 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2485
2486 * ira.c (init_move_cost): Adjust choice of subclasses to match
2487 the current ira_init_register_move_cost choice. Use
2488 ira_class_subset_p instead of reg_class_subset_p.
2489 (ira_init_register_move_cost): Assert that move_cost,
2490 may_move_in_cost and may_move_out_cost already hold the desired
2491 values for their ira_* equivalents. For the latter two,
2492 ignore classes that can't store a register of the given mode.
2493
2494 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2495
2496 * ira.c (setup_allocno_and_important_classes): Use
2497 ira_class_hard_regs_num to check whether a class has any
2498 allocatable registers.
2499 (ira_init_register_move_cost): Likewise.
2500
2501 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2502
2503 * ira.c (init_move_cost): Adjust local variable names to match
2504 file conventions. Use ira_assert instead of gcc_assert.
2505
2506 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2507
2508 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
2509 Move these definitions and associated target_globals fields to...
2510 * ira-int.h: ...here.
2511 * rtl.h (init_move_cost): Delete.
2512 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
2513 * ira.c: ...here, making the latter static.
2514
2515 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2516
2517 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
2518 and ira_register_move_cost instead of init_move_cost and move_cost.
2519
2520 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2521
2522 * ira.h (target_ira): Delete x_ira_available_class_regs.
2523 (ira_available_class_regs): Delete.
2524 * ira.c (setup_available_class_regs): Delete.
2525 (setup_alloc_classes): Don't call it.
2526 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
2527 ira_available_class_regs.
2528 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
2529 (model_spill_cost): Likewise.
2530 * ira-build.c (low_pressure_loop_node_p): Likewise.
2531 * ira-color.c (color_pass): Likewise.
2532 * ira-emit.c (change_loop): Likewise.
2533 * ira-lives.c (inc_register_pressure, dec_register_pressure)
2534 (single_reg_class, ira_implicitly_set_insn_hard_regs)
2535 (process_bb_node_lives): Likewise.
2536 * loop-invariant.c (gain_for_invariant): Likewise.
2537
2538 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2539
2540 PR target/52999
2541 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
2542 (pa_section_type_flags): New.
2543 (pa_legitimate_constant_p): Revert previous change.
2544
2545 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
2546
2547 * ira.c (allocate_initial_values): Make static.
2548
2549 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
2550
2551 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
2552 Generate tls_initial_exec_64_sun only when !TARGET_X32.
2553
2554 2012-05-30 Richard Guenther <rguenther@suse.de>
2555
2556 PR middle-end/53501
2557 * fold-const.c (fold_binary_loc): Make sure to call
2558 fold_plusminus_mult_expr with the original sign of operands.
2559
2560 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
2561
2562 * Makefile.in: Fix many dependencies.
2563 (DWARF2_H): Depend on dwarf2.def.
2564 (RTL_ERROR_H): Depend on rtl-error.h.
2565 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
2566 all gimple-pretty-print.h and tree-pretty-print.h references.
2567
2568 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
2569
2570 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
2571 concatenations.
2572
2573 2012-05-30 Richard Guenther <rguenther@suse.de>
2574
2575 PR middle-end/53522
2576 * tree-emutls.c (gen_emutls_addr): Do not add globals to
2577 referenced-vars.
2578
2579 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
2580
2581 * explow.c (probe_stack_range): Restore simple control flow and stop
2582 again when the probe cannot be generated if HAVE_check_stack.
2583
2584 2012-05-30 Jakub Jelinek <jakub@redhat.com>
2585
2586 PR rtl-optimization/53519
2587 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
2588 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
2589
2590 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2591
2592 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
2593
2594 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
2595
2596 PR debug/53453
2597 * doc/tm.texi: Update.
2598 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
2599 * target.def (force_at_comp_dir): New hook.
2600 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
2601 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
2602
2603 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
2604
2605 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
2606 Darwin >= 10.
2607 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
2608 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2609
2610 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
2611
2612 PR target/51340
2613 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
2614 flag_unsafe_math_optimizations is set.
2615 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
2616 Update description of -mfused-madd.
2617
2618 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
2619
2620 PR target/52941
2621 * config/sh/predicates.md (atomic_arith_operand,
2622 atomic_logical_operand): New predicates.
2623 * config/sh/sh.c (sh_option_override): Check atomic options.
2624 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
2625 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
2626 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
2627 UNSUPPORTED_HARD_ATOMIC_CPU.
2628 * config/sh/sync.md: Update description comments.
2629 (I12): New mode iterator.
2630 (fetchop_predicate, fetchop_constraint): New code attributes.
2631 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2632 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2633 atomic_fetch_<fetchop_name>si_hard,
2634 atomic_fetch_<fetchop_name><mode>_hard,
2635 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2636 atomic_<fetchop_name>_fetchsi_hard,
2637 atomic_<fetchop_name>_fetch<mode>_hard,
2638 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2639 atomic_test_and_set_hard): New insns.
2640 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
2641 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
2642 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
2643 atomic_test_and_set_soft): Use same formatting for the first line of
2644 the asm block as in new insns above.
2645 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
2646 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
2647 atomic_test_and_set): Integrate new *_hard insns into expanders.
2648 * config/sh/sh.opt (mhard-atomic): New option.
2649 * doc/invoke.texi (SH Options): Document it.
2650
2651 2012-05-29 Meador Inge <meadori@codesourcery.com>
2652
2653 * c-decl.c (c_push_function_context): Always create a new language
2654 function.
2655 (c_pop_function_context): Clear the language function created in
2656 c_push_function_context.
2657
2658 2012-05-29 Matt Turner <mattst88@gmail.com>
2659
2660 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
2661 (define_bypass "ev6_fcmov"): New.
2662
2663 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
2664
2665 * integrate.c: Remove.
2666 * integrate.h: Remove.
2667 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
2668 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
2669 * config/rs6000/t-rs6000: Likewise
2670 * config/spu/t-spu-elf: Likewise.
2671 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
2672 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
2673 from integrate.h to here.
2674 (initial_value_entry): New prototype.
2675 * reload.h (allocate_initial_values): Remove prototype.
2676 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
2677 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
2678 integrate.c.
2679 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
2680 set_decl_abstract_flags, set_block_abstract_flags): Move from
2681 integrate.c to here, the only user.
2682 * expmed.c (extract_fixed_bit_field): Remove outdated comment
2683 about integrate.c.
2684 * function.c: Don't include integrate.h.
2685 (struct initial_value_pair, struct initial_value_struct,
2686 get_hard_reg_initial_val, has_hard_reg_initial_val,
2687 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
2688 integrate.c to here.
2689 (initial_value_entry): New function.
2690 * genemit.c (main): Don't print integrate.h include line.
2691 * ira.c: Don't include integrate.h.
2692 (allocate_initial_values): Move from integrate.c to here.
2693 (ira): Update allocate_initial_values call.
2694 * tree-inline.c: Don't include integrate.h.
2695 (function_attribute_inlinable_p): Moved from integrate.c to here.
2696 * cfgexpand.c: Don't include integrate.h.
2697 * except.c: Likewise.
2698 * langhooks.c: Likewise.
2699 * passes.c: Likewise.
2700 * toplev.c: Likewise.
2701 * config/frv/frv.c: Likewise.
2702 * config/pa/pa.c: Likewise.
2703 * config/spu/spu.c: Likewise.
2704 * config/epiphany/epiphany.c: Likewise.
2705 * config/mep/mep.c: Likewise.
2706 * config/score/score.c: Likewise.
2707 * config/picochip/picochip.c: Likewise.
2708 * config/sh/sh.c: Likewise.
2709 * config/alpha/alpha.c: Likewise.
2710 * config/microblaze/microblaze.c: Likewise.
2711 * config/mips/mips.c: Likewise.
2712 * config/v850/v850.c: Likewise.
2713 * config/mmix/mmix.c: Likewise.
2714 * config/bfin/bfin.c: Likewise.
2715 * config/arm/arm.c: Likewise.
2716 * config/s390/s390.c: Likewise.
2717 * config/m32r/m32r.c: Likewise.
2718 * config/rs6000/rs6000.c: Likewise.
2719 * config/c6x/c6x.c: Include function.h instead of integrate.h.
2720 * config/tilegx/tilegx.c: Likewise.
2721 * config/tilepro/tilepro.c: Likewise.
2722
2723 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
2724
2725 * config/avr/t-avr (s-avr-mmcu-texi): Call
2726 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
2727
2728 2012-05-29 Michael Matz <matz@suse.de>
2729
2730 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
2731 assign_temp): Remove 'keep' argument.
2732 (mark_temp_addr_taken): Remove prototype.
2733 * tree.h (expand_decl): Remove prototype.
2734 * function.c (struct temp_slot): Remove addr_taken and keep member.
2735 (assign_stack_temp_for_type) Don't initialize above, remove
2736 keep argument.
2737 (assign_stack_temp, assign_temp): Remove keep argument.
2738 (mark_temp_addr_taken): Remove.
2739 (preserve_temp_slots): Remove handling of addr_taken and keep members.
2740 (free_temp_slots): Ditto.
2741 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
2742 dead code.
2743 * stmt.c (expand_asm_operands): Remove dead code.
2744 (expand_decl): Remove.
2745 * c-decl.c (finish_struct): Don't call expand_decl.
2746 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
2747 and assign_stack_temp.
2748 * calls.c (save_fixed_argument_area, initialize_argument_information,
2749 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
2750 * expmed.c (extract_bit_field_1): Ditto.
2751 * expr.c (emit_group_load_1, emit_group_store,
2752 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
2753 store_field, expand_constructor, expand_cond_expr_using_cmove,
2754 expand_expr_real_2, expand_expr_real_1): Ditto.
2755 * stmt.c (expand_asm_operands, expand_return): Ditto.
2756
2757 * function.c (pop_temp_slots): Call free_temp_slots.
2758 * calls.c (store_one_arg): Don't call preserve_temp_slots or
2759 free_temp_slots.
2760 * expr.c (expand_assignment): Don't call free_temp_slots.
2761
2762 * config/arm/arm.c (neon_expand_vector_init): Ditto.
2763 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
2764 (ix86_expand_vector_extract): Ditto.
2765 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
2766 ia64_expand_movxf_movrf): Ditto.
2767 * config/mips/mips.c (mips_expand_vi_general): Ditto.
2768 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
2769 extendsfdf2): Ditto.
2770 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
2771 rs6000_expand_vector_set, rs6000_expand_vector_extract,
2772 rs6000_allocate_stack_temp): Ditto.
2773 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
2774 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2775 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
2776 sparc_expand_vector_init): Ditto.
2777
2778 2012-05-29 Michael Matz <matz@suse.de>
2779
2780 * c-tree.h (c_expand_decl): Remove prototype.
2781
2782 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
2783 a kept temp.
2784 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
2785 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
2786 COMPOUND_LITERAL_EXPR.
2787 * function.c (expand_function_start): Don't call expand_decl,
2788 instead assert that we have RTL assigned.
2789 * tree-ssa-live.c (remove_unused_locals): Clear
2790 nonlocal_goto_save_area if its backing variable is removed.
2791 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
2792 as mem inputs.
2793 (expand_decl): Assert that this does nothing.
2794 * calls.c (expand_call): Don't call mark_temp_addr_taken.
2795
2796 2012-05-29 Richard Guenther <rguenther@suse.de>
2797
2798 PR tree-optimization/53516
2799 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
2800 bitfield accesses.
2801 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2802
2803 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2804
2805 * LANGUAGES: Fix typos.
2806 * Makefile.in: Fix typos.
2807 * alias.c: Fix typos.
2808 * auto-inc-dec.c: Fix typos.
2809 * bb-reorder.c: Fix typos.
2810 * cfgcleanup.c: Fix typos.
2811 * cgraph.c: Fix typos.
2812 * cgraph.h: Fix typos.
2813 * cgraphunit.c: Fix typos.
2814 * collect2-aix.h: Fix typos.
2815 * collect2.c: Fix typos.
2816 * compare-elim.c: Fix typos.
2817 * config/alpha/vms.h: Fix typos.
2818 * config/arm/README-interworking: Fix typos.
2819 * config/arm/arm.c: Fix typos.
2820 * config/arm/iterators.md: Fix typos.
2821 * config/arm/vxworks.h: Fix typos.
2822 * config/avr/avr.c: Fix typos.
2823 * config/avr/avr.h: Fix typos.
2824 * config/avr/avr.md: Fix typos.
2825 * config/avr/builtins.def: Fix typos.
2826 * config/c6x/c6x.c: Fix typos.
2827 * config/cr16/cr16.c: Fix typos.
2828 * config/cr16/cr16.md: Fix typos.
2829 * config/cris/cris.md: Fix typos.
2830 * config/darwin.c: Fix typos.
2831 * config/darwin.opt: Fix typos.
2832 * config/i386/i386-c.c: Fix typos.
2833 * config/i386/i386.c: Fix typos.
2834 * config/ia64/ia64.c: Fix typos.
2835 * config/m68k/cf.md: Fix typos.
2836 * config/mep/mep.c: Fix typos.
2837 * config/microblaze/microblaze.c: Fix typos.
2838 * config/microblaze/microblaze.h: Fix typos.
2839 * config/mn10300/mn10300.c: Fix typos.
2840 * config/mn10300/mn10300.md: Fix typos.
2841 * config/pa/pa.c: Fix typos.
2842 * config/picochip/picochip.h: Fix typos.
2843 * config/rs6000/a2.md: Fix typos.
2844 * config/rs6000/rs6000.c: Fix typos.
2845 * config/rs6000/vector.md: Fix typos.
2846 * config/rx/rx.md: Fix typos.
2847 * config/rx/rx.opt: Fix typos.
2848 * config/s390/2097.md: Fix typos.
2849 * config/s390/s390.c: Fix typos.
2850 * config/s390/s390.h: Fix typos.
2851 * config/sh/sh.c: Fix typos.
2852 * config/sh/sh.md: Fix typos.
2853 * config/sparc/sync.md: Fix typos.
2854 * config/spu/spu.c: Fix typos.
2855 * config/spu/spu.md: Fix typos.
2856 * config/vms/vms.c: Fix typos.
2857 * config/vxworks-dummy.h: Fix typos.
2858 * config/vxworks.h: Fix typos.
2859 * cselib.c: Fix typos.
2860 * df-scan.c: Fix typos.
2861 * df.h: Fix typos.
2862 * doc/extend.texi: Fix typos.
2863 * doc/install.texi: Fix typos.
2864 * doc/invoke.texi: Fix typos.
2865 * doc/md.texi: Fix typos.
2866 * doc/plugins.texi: Fix typos.
2867 * doc/rtl.texi: Fix typos.
2868 * dse.c: Fix typos.
2869 * dwarf2asm.c: Fix typos.
2870 * dwarf2out.c: Fix typos.
2871 * except.h: Fix typos.
2872 * expr.c: Fix typos.
2873 * fold-const.c: Fix typos.
2874 * gcc.c: Fix typos.
2875 * gcse.c: Fix typos.
2876 * genautomata.c: Fix typos.
2877 * gengtype-state.c: Fix typos.
2878 * gengtype.c: Fix typos.
2879 * genhooks.c: Fix typos.
2880 * gimple-fold.c: Fix typos.
2881 * gimple-pretty-print.c: Fix typos.
2882 * gimple.c: Fix typos.
2883 * gimple.h: Fix typos.
2884 * gimplify.c: Fix typos.
2885 * graphite-interchange.c: Fix typos.
2886 * graphite-sese-to-poly.c: Fix typos.
2887 * ifcvt.c: Fix typos.
2888 * input.c: Fix typos.
2889 * ipa-cp.c: Fix typos.
2890 * ipa-inline-analysis.c: Fix typos.
2891 * ipa-inline-transform.c: Fix typos.
2892 * ipa-inline.c: Fix typos.
2893 * ipa-pure-const.c: Fix typos.
2894 * ipa-ref.h: Fix typos.
2895 * ipa-reference.c: Fix typos.
2896 * ipa-utils.c: Fix typos.
2897 * ipa.c: Fix typos.
2898 * ira-emit.c: Fix typos.
2899 * ira-lives.c: Fix typos.
2900 * lto-streamer.c: Fix typos.
2901 * lto-streamer.h: Fix typos.
2902 * lto-wrapper.c: Fix typos.
2903 * mcf.c: Fix typos.
2904 * mode-switching.c: Fix typos.
2905 * modulo-sched.c: Fix typos.
2906 * plugin.c: Fix typos.
2907 * postreload.c: Fix typos.
2908 * sched-deps.c: Fix typos.
2909 * sel-sched-ir.c: Fix typos.
2910 * sel-sched-ir.h: Fix typos.
2911 * sel-sched.c: Fix typos.
2912 * sese.c: Fix typos.
2913 * stor-layout.c: Fix typos.
2914 * target-hooks-macros.h: Fix typos.
2915 * target.def: Fix typos.
2916 * trans-mem.c: Fix typos.
2917 * tree-eh.c: Fix typos.
2918 * tree-predcom.c: Fix typos.
2919 * tree-sra.c: Fix typos.
2920 * tree-ssa-address.c: Fix typos.
2921 * tree-ssa-loop-ivopts.c: Fix typos.
2922 * tree-ssa-loop-niter.c: Fix typos.
2923 * tree-ssa-math-opts.c: Fix typos.
2924 * tree-ssa-pre.c: Fix typos.
2925 * tree-ssa-propagate.c: Fix typos.
2926 * tree-ssa-reassoc.c: Fix typos.
2927 * tree-ssa-sccvn.c: Fix typos.
2928 * tree-ssa-ter.c: Fix typos.
2929 * tree-ssa-uninit.c: Fix typos.
2930 * tree-ssanames.c: Fix typos.
2931 * tree-vect-generic.c: Fix typos.
2932 * tree-vect-slp.c: Fix typos.
2933 * tree.c: Fix typos.
2934 * tree.h: Fix typos.
2935 * varasm.c: Fix typos.
2936 * varpool.c: Fix typos.
2937
2938 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2939
2940 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
2941
2942 2012-05-29 Richard Guenther <rguenther@suse.de>
2943
2944 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
2945 for globals.
2946 (add_referenced_var_1): Re-organize. Assert we are not
2947 called for globals.
2948 (remove_referenced_var): Likewise.
2949 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
2950 * tree-mudflap.c (execute_mudflap_function_ops): Do not
2951 call add_referenced_var on globals.
2952 * matrix-reorg.c (transform_access_sites): Likewise.
2953
2954 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
2955
2956 * alias.c (reg_known_value): Make this a VEC.
2957 (reg_known_equiv_p): Make this an sbitmap.
2958 (reg_known_value_size): Remove.
2959 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
2960 set_reg_known_equiv_p): Update for reg_known_value and
2961 reg_known_value_size data structure change.
2962 (init_alias_analysis, end_alias_analysis): Likewise.
2963
2964 2012-05-29 Jakub Jelinek <jakub@redhat.com>
2965
2966 PR middle-end/53510
2967 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
2968 to avoid leaking memory. No need to handle memory allocation
2969 failure. Double string_len on each reallocation instead of adding 2.
2970 * gcov.c (read_line): Likewise.
2971
2972 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
2973
2974 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
2975 New macros.
2976 * config/cris/cris.md ("trap"): Define, enabled for
2977 TARGET_TRAP_USING_BREAK8.
2978 * config/cris/cris.opt (mtrap-using-break8): New option.
2979
2980 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2981
2982 PR c++/25137
2983 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
2984 for C++.
2985
2986 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
2987
2988 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
2989 (Standard Names): Fix typos in documentation of atomic patterns.
2990
2991 2012-05-27 Nathan Sidwell <nathan@acm.org>
2992
2993 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
2994
2995 2012-05-26 Jason Merrill <jason@redhat.com>
2996
2997 PR c++/53220
2998 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
2999 about array compound literals.
3000
3001 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
3002
3003 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
3004 if CLEANUP_NO_INSN_DEL.
3005 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
3006 from cfg_layout_merge_blocks.
3007 (emit_nop_for_unique_locus_between): New function.
3008 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
3009 (cfg_layout_merge_blocks): Likewise.
3010
3011 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
3012 Paolo Bonzini <bonzini@gnu.org>
3013
3014 * df-scan.c (df_def_record_1): Assert a parallel must contain an
3015 EXPR_LIST at this point. Receive the LOC and move its extraction...
3016 (df_defs_record): ... here. Change if-else to a switch statement.
3017 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
3018 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
3019 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
3020 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
3021 regs_invalidated_by_call.
3022 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
3023 df_get_call_refs().
3024
3025 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
3026
3027 PR lto/52178
3028 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
3029 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
3030
3031 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3032
3033 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
3034 software floating point emulation. No longer build the multilibs
3035 with -mstrict-align.
3036
3037 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
3038
3039 PR middle-end/53008
3040 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
3041 accessed indirectly.
3042 (ipa_tm_create_version): Same.
3043
3044 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
3045
3046 PR target/53474
3047 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
3048 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
3049
3050 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3051
3052 PR target/53435
3053 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
3054 (ix86_expand_vec_perm): Use int mode instead of float.
3055 (expand_vec_perm_pshufb): Remove handling of useseless type
3056 conversion.
3057
3058 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
3059
3060 PR ada/52362
3061 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
3062 gnu_ld variables to yes.
3063 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
3064 (HAVE_GNU_AS): Likewise.
3065 * config.in: Regenerate.
3066 * configure: Likewise.
3067
3068 2012-05-25 Tristan Gingold <gingold@adacore.com>
3069
3070 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
3071 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
3072 and preferred_alignment.
3073
3074 2012-05-25 Tristan Gingold <gingold@adacore.com>
3075
3076 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
3077
3078 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
3079
3080 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
3081 volatile bitfields case.
3082
3083 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
3084
3085 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
3086 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
3087 (adjacent_mem_locations): Move some code to and call...
3088 (get_memref_parts): ...new function.
3089 (mem_locations_overlap): New function.
3090 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
3091 (is_mem_ref): Rename to...
3092 (find_mem_ref): ...this. Return MEM rtx.
3093 (get_store_dest): Remove function.
3094 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
3095 new parameter and adjust calls.
3096 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
3097 mem refs overlap for true_store_to_load_dep_costly.
3098 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
3099 passed to adjacent_mem_locations.
3100 (is_costly_group): Walk resolved dependency list.
3101 (force_new_group): Emit group ending nop for Power6/Power7.
3102 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
3103 (group_ending_nop): New define_insn.
3104
3105 2012-05-24 Dodji Seketeli <dodji@redhat.com>
3106
3107 Make unwound macro expansion trace less redundant
3108 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
3109 context of macro definition in the trace, when it's redundant.
3110 Update comments.
3111
3112 2012-05-24 Richard Guenther <rguenther@suse.de>
3113
3114 PR middle-end/53460
3115 * tree-profile.c (tree_profiling): Cleanup the CFG if
3116 execute_fixup_cfg requests it.
3117
3118 2012-05-24 Richard Guenther <rguenther@suse.de>
3119
3120 * tree-flow.h (create_var_ann): Remove.
3121 * tree-dfa.c (create_var_ann): Remove and inline into its
3122 single caller ...
3123 (add_referenced_var_1): ... here.
3124 * varpool.c (add_new_static_var): Do not call add_referenced_var
3125 for global vars.
3126 * gimple-fold.c (canonicalize_constructor_val): Likewise.
3127 * tree-switch-conversion.c (build_one_array): Likewise.
3128 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
3129 * tree-flow-inline.h (gimple_referenced_vars): Guard against
3130 NULL fn argument.
3131 * tree-inline.c (remap_gimple_op_r): Likewise. Check
3132 gimple_referenced_vars instead of gimple_in_ssa_p.
3133 (copy_tree_body_r): Likewise.
3134 (setup_one_parameter): Likewise.
3135 (declare_return_variable): Likewise.
3136 (tree_function_versioning): Likewise.
3137
3138 2012-05-24 Jakub Jelinek <jakub@redhat.com>
3139
3140 PR tree-optimization/53465
3141 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
3142 vr0 into *vr, then vrp_meet that.
3143 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
3144 have any equivalences.
3145 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
3146 first time.
3147
3148 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
3149
3150 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
3151 hard registers.
3152 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
3153 check end_regno - 1 is a hard register.
3154
3155 2012-05-24 Richard Guenther <rguenther@suse.de>
3156
3157 * varpool.c (add_new_static_var): Remove call to create_var_ann.
3158 * tree-ssa-operands.c (create_vop_var): Likewise.
3159
3160 2012-05-24 Richard Guenther <rguenther@suse.de>
3161
3162 PR bootstrap/53466
3163 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
3164 handle globals.
3165 (remove_unused_locals): Pass global_unused_vars to
3166 remove_unused_scope_block_p. Restore code walking all
3167 referenced vars and pruning them.
3168
3169 2012-05-23 Jan Hubicka <jh@suse.cz>
3170
3171 * tree.h (alias_diag_flags): Remove.
3172 (alias_pair): Remove emitted_diags.
3173 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
3174 symbol_alias_set_t, symbol_alias_set_destroy,
3175 symbol_alias_set_contains, propagate_aliases_backward): Remove.
3176 * toplev.c (compile_file): Do not call finish_aliases_2
3177 * cgraphunit.c (cgraph_process_new_functions): Do not call
3178 finish_aliases_1.
3179 (handle_alias_pairs): Output diagnostics about aliases to externals.
3180 (assemble_thunks_and_aliases): Use do_assemble_alias.
3181 (output_weakrefs): Likewise.
3182 (finalize_compilation_unit): Do not call finish_aliases_1.
3183 * ipa.c (symtab_remove_unreachable_nodes): De not call
3184 remove_unreachable_alias_pairs.
3185 * varasm.c (do_assemble_alias): Export.
3186 (symbol_alias_set_create, symbol_alias_set_destroy,
3187 symbol_alias_set_contains, symbol_alias_set_insert,
3188 propagate_aliases_forward, propagate_aliases_backward,
3189 propagate_aliases_backward, trivially_visible_alias,
3190 trivially_defined_alias, remove_unreachable_alias_pairs,
3191 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
3192 * output.h (do_assemble_alias): Declare.
3193 * varpool.c (varpool_remove_unreferenced_decls): Do not call
3194 finish_aliases_1.
3195
3196 2012-05-23 Martin Jambor <mjambor@suse.cz>
3197
3198 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
3199
3200 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
3201
3202 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
3203 size handling.
3204 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
3205 (iterative_hash_gimple_type): Adjust comment.
3206 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
3207 domain for an array type instead of the domain type itself.
3208
3209 2012-05-23 Richard Guenther <rguenther@suse.de>
3210
3211 PR tree-optimization/53438
3212 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
3213
3214 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
3215
3216 PR target/53448
3217 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
3218 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
3219 ASM_OUTPUT_ALIGN.
3220
3221 2012-05-23 Richard Guenther <rguenther@suse.de>
3222
3223 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
3224 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
3225 via the global_unused_vars bitmap.
3226 (remove_unused_locals): Handle global vars in local-decls via
3227 a global_unused_vars bitmap instead of the used flag in the
3228 var annotation. Simplify global variable handling and removal.
3229
3230 2012-05-22 Jan Hubicka <jh@suse.cz>
3231
3232 PR middle-end/53426
3233 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
3234 from other partitions.
3235
3236 2012-05-22 Jan Hubicka <jh@suse.cz>
3237
3238 PR middle-end/53161
3239 * symtab.c (symtab_register_node): Fix ordering issue.
3240
3241 2012-05-22 Steven Drake <sbd@NetBSD.org>
3242
3243 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
3244
3245 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
3246
3247 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
3248 Use strip_name_encoding target hook.
3249
3250 2012-05-22 Richard Guenther <rguenther@suse.de>
3251
3252 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
3253 (init_function_for_compilation): Remove.
3254 * tree-dfa.c (find_vars_r): Take struct function argument.
3255 (find_referenced_vars_in): Adjust.
3256 * tree-ssa-operands.c (clobber_stats): Remove.
3257 (create_vop_var): Take struct function argument. Mark
3258 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
3259 (init_ssa_operands): Take struct function argument.
3260 (fini_ssa_operands): Do not dump dead stats.
3261 * tree-ssa-operands.h (init_ssa_operands): Take struct function
3262 argument.
3263 * cgraphunit.c (init_lowered_empty_function): Adjust.
3264 * lto-streamer-in.c (input_cfg): Likewise.
3265 * tree-inline.c (initialize_cfun): Likewise.
3266 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
3267 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
3268 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
3269 virtual operands are not registers.
3270
3271 2012-05-22 Richard Guenther <rguenther@suse.de>
3272
3273 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
3274
3275 2012-05-22 Richard Guenther <rguenther@suse.de>
3276
3277 PR middle-end/53437
3278 * tree-inline.c (setup_one_parameter): Create a dummy init
3279 statement for unused parameters when not optimizing.
3280
3281 2012-05-22 Richard Guenther <rguenther@suse.de>
3282
3283 * tree-flow.h (add_referenced_var_1): Declare.
3284 (add_referenced_var): Define.
3285 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
3286 (add_referenced_var): Rename to ...
3287 (add_referenced_var_1): ... this. Take struct function argument.
3288
3289 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3290
3291 PR target/53334
3292 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
3293 * config/arm/arm.c (arm_validize_comparison): Define.
3294 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
3295 arm_validize_comparison.
3296 ("cbranchdi4"): Likewise.
3297 ("cstoredi4"): Likewise.
3298 ("movsicc"): Likewise.
3299 ("movsfcc"): Likewise.
3300 ("movdfcc"): Likewise.
3301
3302 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
3303
3304 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
3305 the mw_reg_pool size.
3306
3307 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
3308
3309 PR tree-optimization/53336
3310 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
3311 non-integer integral types to offset type and vice versa.
3312
3313 2012-05-22 Alan Modra <amodra@gmail.com>
3314
3315 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
3316 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
3317 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
3318 V_SAVE_INLINE): Delete.
3319 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
3320 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
3321 For ELF targets, use out-of-line restores for -Os and any number
3322 of regs if the restore exits, and out-of-line gp save for two or
3323 more regs. Use save_reg_p to test for holes in reg restore set.
3324 Replace "#if" with "if".
3325
3326 2012-05-22 Alan Modra <amodra@gmail.com>
3327
3328 * config/rs6000/rs6000.c (save_reg_p): New function.
3329 (first_reg_to_save, first_fp_reg_to_save): Use it here.
3330 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
3331 (emit_frame_save): Use gen_frame_store.
3332 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
3333 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
3334 vrsave and toc.
3335 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
3336 vrsave, toc, gp and fp restores.
3337
3338 2012-05-22 Alan Modra <amodra@gmail.com>
3339
3340 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
3341 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
3342 Move function pointer variables after forward declarations.
3343 (rs6000_builtin_support_vector_misalignment): Make static.
3344 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
3345 (rs6000_function_value, rs6000_can_eliminate): Likewise.
3346
3347 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
3348
3349 PR rtl-optimization/53373
3350 * caller-save.c (save_call_clobbered_regs): Look into a possible
3351 PARALLEL manually rather than using single_set on a call insn.
3352
3353 2012-05-21 Jakub Jelinek <jakub@redhat.com>
3354
3355 PR tree-optimization/53436
3356 * omp-low.c (omp_build_component_ref): New function.
3357 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
3358
3359 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
3360
3361 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
3362 arguments to bool.
3363 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
3364 Do not print '.' here. Output operand lossage error for unhandled
3365 sizes. Move.
3366 <case '*'>: Move.
3367 <case '&'>: Ditto.
3368 <case 'Y'>: Ditto.
3369 <case 'z'>: Hardcode "code" argument into error strings.
3370 <case 'Z'>: Ditto.
3371 <case 'D'>: Merge AVX and non-AVX codes.
3372 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
3373 Update call to put_condition_code.
3374
3375 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
3376
3377 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
3378 CC_STATUS_INIT.
3379 (clzsi2): New expander.
3380 (*clzsi2_68k): New insn.
3381 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
3382
3383 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
3384
3385 * gimple.h (gimple_set_in_transaction): Remove.
3386 (gimple_in_transaction): Look in BB instead.
3387 (gimple_statement_base): Remove in_transaction field.
3388 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
3389 * trans-mem.c (compute_transaction_bits): Place transaction bit
3390 information into basic blocks.
3391
3392 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
3393
3394 * expr.c (get_def_for_expr_class): Define only if
3395 HAVE_conditional_move.
3396 (convert_tree_comp_to_rtx): Likewise.
3397
3398 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
3399
3400 PR target/53399
3401 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
3402 for TARGET_BMI.
3403 (ffssi2_no_cmove): Ditto.
3404 (*ffs<mode>_1): Remove insn pattern.
3405 (*tzcnt<mode>_1): New insn pattern.
3406 (*bsf<mode>1): Ditto.
3407
3408 2012-05-21 Richard Guenther <rguenther@suse.de>
3409
3410 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
3411 more referenced vars.
3412 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
3413 flag on variables that have a var-annotation.
3414
3415 2012-05-21 Joseph Myers <joseph@codesourcery.com>
3416
3417 PR c/53418
3418 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
3419 from folded operands before wrapping another around the
3420 conditional expression.
3421
3422 2012-05-21 Jakub Jelinek <jakub@redhat.com>
3423
3424 PR tree-optimization/53366
3425 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
3426 tests if complex_numbers == 2, but there are non-complex number loads
3427 too.
3428
3429 PR tree-optimization/53409
3430 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
3431 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
3432
3433 PR tree-optimization/53410
3434 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
3435 instead of build_int_cst (type, 0) where vector types might be
3436 involved. Instead of build_int_cst (type, 1) convert the original
3437 integer_onep argument to the desired type.
3438
3439 2012-05-21 Michael Matz <matz@suse.de>
3440
3441 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
3442 (simplify_test_exp): Handle one more case of distributive law,
3443 decrease cost threshold.
3444 (tests_attr_p, get_attr_order): New functions.
3445 (optimize_attrs): Use topological order, inline only cheap values.
3446 (write_attr_set): Reset our_known_true after some time.
3447
3448 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3449
3450 PR target/53425
3451 * config/i386/i386.c (type_natural_mode): Warn passing SSE
3452 vector argument without SSE enabled changes the ABI.
3453
3454 2012-05-21 Richard Guenther <rguenther@suse.de>
3455
3456 PR tree-optimization/53408
3457 * tree-vect-loop.c (vectorizable_induction): Properly check
3458 the restriction that we cannot handle induction results from
3459 the inner loop outside of the outer loop.
3460
3461 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3462
3463 PR target/53416
3464 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
3465 (UNSPECV_RDRAND): This.
3466 (rdrand<mode>_1): Updated.
3467
3468 2012-05-21 Richard Guenther <rguenther@suse.de>
3469
3470 * tree-loop-distribution.c (can_generate_builtin): Reject
3471 volatile stmts.
3472
3473 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
3474
3475 * Makefile.in (options.c): Add options.h to included header
3476 files, before tm.h.
3477
3478 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
3479
3480 * tree-parloops.c : Add myself to contributors, update
3481 TODO list, add link to wiki.
3482
3483 2012-05-21 Alan Modra <amodra@gmail.com>
3484
3485 * config/rs6000/predicates.md (input_operand): Don't match
3486 constant pool addresses. Remove label_ref, high and plus from
3487 match_code list. Remove redundant CONSTANT_P test.
3488 (splat_input_operand): Similarly update match_code list.
3489 (small_toc_ref): New predicate.
3490 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
3491 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
3492 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
3493 register checks to..
3494 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
3495 generated by create_TOC_reference.
3496 (rs6000_legitimize_address): Update cerate_TOC_reference call.
3497 (rs6000_delegitimize_address): Handle new rtl for toc refs.
3498 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
3499 (use_toc_relative_ref): New function, split out from..
3500 (rs6000_emit_move): ..here. Remove redundant tests. Update
3501 create_TOC_reference calls.
3502 (rs6000_legitimize_reload_address): Formatting. Handle splitting
3503 of medium/large model toc addresses. Use use_toc_relative_ref.
3504 (print_operand): Formatting, style. Adjust for toc changes.
3505 (print_operand_address): Likewise.
3506 (rs6000_output_addr_const_extra): Likewise.
3507 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
3508 than a PLUS. Use this formulation for both high and low part
3509 of -mcmodel=medium/large toc reference too. Before reload,
3510 always use the small model formulation.
3511 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
3512 a PLUS in high part of addresses here.
3513 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3514 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3515 (largetoc_high, largetoc_low): Move earlier. Cope when no
3516 base reg available.
3517 (largetoc_high_plus): New insn.
3518 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
3519 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
3520 (tocref): ..instead do so here, new insn and split.
3521
3522 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
3523
3524 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3525 RDRND, F16C and FSGSBASE.
3526
3527 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3528
3529 PR rtl-optimzation/53373
3530 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
3531 call pattern. Update split patterns.
3532 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
3533 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
3534
3535 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
3536
3537 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
3538 for outer loops.
3539
3540 2012-05-18 Jan Hubicka <jh@suse.cz>
3541
3542 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
3543 (cgraph_process_new_functions): Process also aliases.
3544 * lto-streamer-out.c (struct sets): Remove.
3545 (trivally_defined_alias): Remove.
3546 (output_alias_pair_p): Remove.
3547 (output_unreferenced_globals): Remove.
3548 (produce_symtab); Do not handle alias pairs.
3549 (produce_asm_for_decls): Likewise.
3550 * lto-streamer-in.c (input_alias_pairs): Remove.
3551 (lto_read_body): Do not input alias pairs.
3552 (lto_input_constructors_and_inits): Remove.
3553
3554 2012-05-18 Jan Hubicka <jh@suse.cz>
3555
3556 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
3557 aliases.
3558
3559 2012-05-18 Jan Hubicka <jh@suse.cz>
3560
3561 * cgraphbuild.c (record_reference): Update.
3562 * lto-cgraph.c (lto_output_varpool_node): External vars
3563 are not in other partition even if they are not output
3564 in current partition.
3565 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
3566 argument; fix.
3567 (canonicalize_constructor_val): Take FROM_DECL argument.
3568 (fold_ctor_reference, fold_string_cst_ctor_reference,
3569 fold_array_ctor_reference, fold_nonarray_ctor_reference,
3570 fold_ctor_reference): Likewise.
3571 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
3572 * gimple.h (gimple_fold_builtin): Likewise.
3573
3574 2012-05-18 Olivier Hainque <hainque@adacore.com>
3575
3576 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
3577 $(libsubdir) as libexecsubdir.
3578
3579 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3580
3581 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
3582 relied on signed overflow behavior.
3583
3584 2012-05-18 Richard Guenther <rguenther@suse.de>
3585
3586 PR tree-optimization/53346
3587 * tree-loop-distribution.c (ldist_gen): Make sure to apply
3588 builtin transform even when only a single partition with
3589 all reads/writes exists.
3590
3591 2012-05-18 Richard Guenther <rguenther@suse.de>
3592
3593 PR tree-optimization/53390
3594 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
3595 strided loads.
3596
3597 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3598
3599 * tree-ssa-reassoc.c (bip_map): Remove decl.
3600 (completely_remove_stmt): Remove function.
3601 (remove_def_if_absorbed_call): Remove function.
3602 (remove_visited_stmt_chain): Remove __builtin_powi handling.
3603 (possibly_move_powi): Remove function.
3604 (rewrite_expr_tree): Remove calls to possibly_move_powi.
3605 (rewrite_expr_tree_parallel): Likewise.
3606 (attempt_builtin_powi): Build multiplies explicitly rather than
3607 relying on the ops vector and rank system.
3608 (transform_stmt_to_copy): New function.
3609 (transform_stmt_to_multiply): Likewise.
3610 (reassociate_bb): Handle leftover operations after __builtin_powi
3611 optimization; build a final multiply if necessary.
3612
3613 2012-05-18 Jan Hubicka <jh@suse.cz>
3614
3615 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
3616 (mark_functions_to_output): Fix sanity check.
3617 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
3618
3619 2012-05-18 Richard Guenther <rguenther@suse.de>
3620
3621 * tree-flow.h (mark_symbols_for_renaming): Remove.
3622 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
3623 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
3624 (copy_debug_stmt): Likewise.
3625 (expand_call_inline): Likewise.
3626 (declare_return_variable): Mark the return variable for renaming
3627 if necessary.
3628
3629 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
3630
3631 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
3632 prototype.
3633 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
3634 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
3635 (ashrdi3,lshrdi3): Likewise.
3636 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
3637
3638 2012-05-18 Meador Inge <meadori@codesourcery.com>
3639
3640 PR rtl-optimization/53352
3641 * cse.c (equiv_constant): Ignore paradoxical subregs.
3642
3643 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
3644
3645 PR rtl-optimization/53125
3646 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
3647 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
3648 die in the basic block. Correctly top off REG_FREQ and
3649 REG_FREQ_CALLS_CROSSED.
3650 Remove do_not_gen.
3651 (regstat_compute_ri): Allocate and free local_live_last_luid.
3652 Remove do_not_gen.
3653 (regstat_bb_compute_calls_crossed): Correctly top off
3654 REG_FREQ_CALLS_CROSSED.
3655
3656 2012-05-17 Jan Hubicka <jh@suse.cz>
3657
3658 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
3659 constructor over decl without.
3660 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
3661 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
3662 * cgraphunit.c (process_function_and_variable_attributes): Finalize
3663 extrnal decls.
3664 (mark_functions_to_output): Also accept bodies for functions with
3665 clones.
3666 (output_in_order): Skip external vars.
3667 * lto-cgraph.c (lto_output_node): External functions are never in other
3668 partition.
3669 (lto_output_varpool_node): Likewise.
3670 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
3671 forgotten initializers.
3672 * ipa.c (process_references): Handle external vars.
3673 (symtab_remove_unreachable_nodes): Update to handle external vars.
3674 (varpool_externally_visible_p): External vars are externally visible.
3675 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3676 * varpool.c (varpool_remove_node): Remove constructor.
3677 (decide_is_variable_needed): Handle externals.
3678 (varpool_remove_unreferenced_decls): Likewise.
3679
3680 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3681
3682 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
3683 (enable_warning_as_error): Do not special case Wuninitialized.
3684 * optc-gen.awk: Add sanity checks.
3685
3686 2012-05-17 Jan Hubicka <jh@suse.cz>
3687
3688 * ipa-reference.c (is_proper_for_analysis): Do not check flags
3689 that might change as result of global optimization.
3690 (analyze_function): Do not check analyzed and externally_visible
3691 flags; be happy about address dereferences.
3692 (propagate): Prune all_module_statics so it really contains just
3693 statics; prune all the local summaries.
3694 (ipa_reference_write_optimization_summary): Simplify.
3695
3696 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3697
3698 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
3699 * config/m68k/m68k-tables.opt: Regenerated.
3700 * doc/invoke.texi (M680x0 Options): Document.
3701
3702 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
3703 Patrick Marlier <patrick.marlier@gmail.com>
3704
3705 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
3706 indirect calls.
3707
3708 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3709
3710 * configure: Regenerated.
3711
3712 2012-05-16 Andrew Pinski <apinski@cavium.com>
3713
3714 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
3715 GIMPLE_ASSIGN.
3716
3717 2012-05-16 David S. Miller <davem@davemloft.net>
3718
3719 * jump.c (delete_related_insns): If we remove a CALL, make sure
3720 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
3721
3722 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3723
3724 PR tree-optimization/53217
3725 * tree-ssa-reassoc.c (bip_map): New static variable.
3726 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
3727 (attempt_builtin_powi): Save feeding multiplies on a stack.
3728 (reassociate_bb): Create and destroy bip_map.
3729
3730 2012-05-16 Olivier Hainque <hainque@adacore.com>
3731
3732 * Makefile.in (install-no-fixedincludes): New target, former toplevel
3733 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
3734 Add comments and improve stamp preservation across the whole sequence.
3735 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
3736
3737 2012-05-16 Richard Guenther <rguenther@suse.de>
3738
3739 * tree-inline.c (insert_init_stmt): Do not call
3740 mark_symbols_for_renaming.
3741 (setup_one_parameter): Avoid initializing unused parameters.
3742 (declare_return_variable): Properly handle DECL_BY_REFERENCE
3743 return vars in SSA form.
3744
3745 2012-05-16 Richard Guenther <rguenther@suse.de>
3746
3747 * tree-flow.h (get_virtual_var): Remove.
3748 * tree-dfa.c (get_virtual_var): Likewise.
3749
3750 2012-05-16 Richard Guenther <rguenther@suse.de>
3751
3752 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
3753 Remove set-only bitmap of new names.
3754 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
3755 CFG hooks.
3756 * tree-flow.h (ssa_names_to_replace): Remove.
3757 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
3758
3759 2012-05-16 Richard Guenther <rguenther@suse.de>
3760
3761 PR tree-optimization/53364
3762 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3763 detect a view-conversion of the decl.
3764
3765 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3766
3767 PR preprocessor/7263
3768 * c-tree.h (enum c_declspec_word): Declare new enum.
3769 (struct c_declspecs::locations): New member.
3770 (declspecs_add_qual, declspecs_add_scspec)
3771 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
3772 location parameter.
3773 * c-decl.c (build_null_declspecs): Initialize the new struct
3774 c_declspecs::locations member.
3775 (declspecs_add_addrspace): Take a location parameter for the
3776 address space. Store it onto declaration specifiers.
3777 (declspecs_add_qual): Likewise, take a location parameter for the
3778 qualifier.
3779 (declspecs_add_type): Likewise, take a location parameter for the
3780 type specifier.
3781 (declspecs_add_scspec): Likewise, take a location parameter for
3782 the storage class specifier.
3783 (declspecs_add_attrs): Likewise, take a location parameter for the
3784 first attribute.
3785 (declspecs_add_alignas): Likewise, take a location parameter for
3786 the alignas token.
3787 (finish_declspecs): For diagnostics, use the location of the
3788 relevant declspec, instead of the global input_location.
3789 * c-parser.c (c_parser_parameter_declaration): Pass the precise
3790 virtual location of the declspec to the declspecs-setters.
3791 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
3792 repeatedly.
3793
3794 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
3795
3796 * configure.ac: Stack protector enabling for Android targets.
3797 * configure: Regenerate.
3798
3799 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
3800
3801 * ira.c (pseudo_move_insn): Delete.
3802 (find_moveable_pseudos): Don't set it.
3803 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
3804 the definitions of the original pseudo. Delete all of them.
3805
3806 2012-05-16 Olivier Hainque <hainque@adacore.com>
3807
3808 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3809 PROCESSOR_PPC8548.
3810 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
3811 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
3812 * config/rs6000/8540.md: indicate that the units/patterns apply to
3813 ppc8548 as well.
3814
3815 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
3816 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
3817 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
3818 related flags, check that what is queried is supported by the selected
3819 configuration. Rework the single/double_float and MASK_STRING resets to
3820 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
3821 costs for PROCESSOR_PPC8548 as well.
3822 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
3823 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
3824 statement instead of a sequence of ifs.
3825
3826 * config/rs6000/rs6000.h (TARGET_E500): Remove.
3827 (TARGET_NO_LWSYNC): Adjust accordingly.
3828 * config/rs6000/e500.h (TARGET_E500): Remove.
3829 (CHECK_E500_OPTIONS): Adjust accordingly.
3830 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
3831 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
3832 * config/rs6000/linuxspe.h: Likewise.
3833 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
3834 superfluous comments.
3835 * config/rs6000/e500-double.h: Remove.
3836
3837 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
3838 default to with_cpu=8548 if --enable-e500-double, and to 8540
3839 otherwise.
3840 (set misc flags section): For powerpc*|rs6000*, remove inclusion
3841 of e500-double.h for --enable-e500-double.
3842
3843 2012-05-16 Olivier Hainque <hainque@adacore.com>
3844
3845 * Makefile.in (s-header-vars): Resort to -n instead of trailing
3846 -e d in sed invocation.
3847
3848 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
3849
3850 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
3851 source-code.
3852 * doc/tm.texi: Regenerate.
3853
3854 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3855
3856 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
3857
3858 2012-05-15 Jakub Jelinek <jakub@redhat.com>
3859
3860 PR target/53358
3861 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3862 that operands[2] is either immediate, or q_regs_operand.
3863
3864 2012-05-15 Richard Guenther <rguenther@suse.de>
3865
3866 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
3867 (assemble_thunk): Likewise. Manually rename and register
3868 function arguments.
3869
3870 2012-05-15 Richard Guenther <rguenther@suse.de>
3871
3872 PR tree-optimization/53355
3873 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
3874 by constants.
3875
3876 2012-05-15 Tristan Gingold <gingold@adacore.com>
3877
3878 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
3879
3880 2012-05-15 Richard Guenther <rguenther@suse.de>
3881
3882 * gimple.c (gimple_set_modified): Move ...
3883 * gimple.h (gimple_set_modified): ... here.
3884
3885 2012-05-15 Tristan Gingold <gingold@adacore.com>
3886
3887 * ira-color.c (move_spill_restore): Add a guard.
3888
3889 2012-05-15 Tristan Gingold <gingold@adacore.com>
3890
3891 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
3892 plus_constant.
3893
3894 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
3895
3896 * gimplify.c (gimplify_init_constructor): Do a block move for very
3897 small objects as well.
3898
3899 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
3900
3901 * ira.c (find_moveable_pseudos): Skip registers whose
3902 DF_REG_EQ_USE_COUNT is nonzero.
3903
3904 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
3905
3906 * doc/md.texi (fma): Define to only be applicable for single rounding.
3907
3908 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
3909
3910 PR target/46098
3911 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3912 generate target register for "load" class builtins.
3913
3914 Revert:
3915 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
3916
3917 PR target/46098
3918 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3919 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3920 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3921 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3922 (<sse>_movu<ssemodesuffix>): New expander.
3923 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3924 (avx_movdqu<avxmodesuffix>): New expander.
3925 (*sse2_movdqu): Rename from sse2_movdqu.
3926 (sse2_movdqu): New expander.
3927
3928 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
3929
3930 PR target/52607
3931 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
3932 (canonicalize_perm): ... new function.
3933 (expand_vec_perm_2vperm2f128_vshuf): New function.
3934 (ix86_expand_vec_perm_const_1): Call it.
3935
3936 2012-05-14 Andrew Pinski <apinski@cavium.com>
3937 H.J. Lu <hongjiu.lu@intel.com>
3938 Jakub Jelinek <jakub@redhat.com>
3939
3940 PR target/53315
3941 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
3942 (xbegin): Updated.
3943
3944 2012-05-14 Jakub Jelinek <jakub@redhat.com>
3945
3946 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3947 lineno 1 the same as lineno 0 before first start file directive.
3948 (optimize_macinfo_range): Likewise.
3949
3950 * dwarf2out.c (have_macinfo): Define.
3951 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3952 attribute, don't force empty compilation unit and don't emit any
3953 .debug_macinfo/.debug_macro section if macinfo_table is empty.
3954
3955 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
3956
3957 PR target/53344
3958 * config/avr/avr.c (avr_const_address_lo16): Remove.
3959 (avr_assemble_integer): Print ".byte lo8(x)",
3960 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
3961 .warning if 3-byte address is assembled.
3962 * doc/extend.texi (AVR Named Address Spaces): Document that
3963 binutils 2.23 is needed to assemble 3-byte addresses.
3964
3965 2012-05-14 Richard Guenther <rguenther@suse.de>
3966
3967 * tree-vect-data-refs.c (vect_setup_realignment): Remove
3968 call to mark_symbols_for_renaming.
3969 (vect_permute_load_chain): Likewise.
3970 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
3971 instead of calling mark_symbols_for_renaming.
3972 * tree-vect-stmts.c (read_vector_array): Remove call to
3973 mark_symbols_for_renaming.
3974 (write_vector_array): Likewise.
3975 (vectorizable_call): Likewise.
3976 (vectorizable_store): Likewise.
3977 (vectorizable_load): Likewise.
3978 * matrix-reorg.c (transform_allocation_sites): Likewise.
3979 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
3980 (create_expression_by_pieces): Likewise.
3981
3982 2012-05-14 Richard Guenther <rguenther@suse.de>
3983
3984 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
3985 of statements for renaming.
3986 (force_gimple_operand_1): Likewise, consistently for both
3987 calls to force_gimple_operand and force_gimple_operand_gsi.
3988
3989 2012-05-14 Richard Guenther <rguenther@suse.de>
3990
3991 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
3992 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
3993 to update_ssa.
3994 (expand_omp_for): Likewise.
3995 (expand_omp_for_generic): Adjust conditional add to referenced vars.
3996 Use make_rename_temp for temporaries that should be rewritten into
3997 SSA form.
3998 (expand_omp_for_static_nochunk): Likewise.
3999 (expand_omp_atomic_pipeline): Likewise.
4000
4001 2012-05-14 Richard Guenther <rguenther@suse.de>
4002
4003 PR tree-optimization/53331
4004 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
4005 strided loads.
4006 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
4007
4008 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4009
4010 PR 53063
4011 * doc/options.texi: (LangEnabledBy): Document it.
4012 * optc-gen.awk: Handle LangEnabledBy.
4013 * opth-gen.awk: Generate declaration for lang-specific functions.
4014 * opt-read.awk: Record lang numbers.
4015 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
4016 (lang_sanitized_name): New.
4017
4018 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4019
4020 * attribs.c (decl_attributes): Avoid emitting a warning if
4021 ATTR_FLAG_BUILT_IN.
4022 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
4023 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
4024 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
4025 define a string "1".
4026 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
4027 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
4028 BUILT_IN_STRCPY): Use it for these functions.
4029 * postreload.c (reload_combine): Deal with SETs inside
4030 CALL_INSN_FUNCTION_USAGE.
4031 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
4032 Look for REG_RETURNED notes and use a cheap restore if possible.
4033 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
4034 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
4035 * ira-build.c (ira_create_allocno, create_cap_allocno,
4036 propagate_allocno_info, propagate_some_info_from_allocno,
4037 copy_info_to_removed_store_destination, ira_flattening): Handle it.
4038 * ira-lives.c (pseudo_regno_single_word_and_live_p,
4039 find_call_crossed_cheap_reg): New static functions.
4040 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
4041 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
4042 a REG_RETURNED note in that case.
4043 * ira.c (setup_reg_renumber): Change assert to allow cases where
4044 allocnos only cross calls for which they are cheap to restore.
4045 * ira-costs.c (ira_tune_allocno_costs): Compare
4046 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
4047 than 0.
4048 * reg-notes.def (REG_RETURNED): New note.
4049 * cse.c (cse_insn): Likewise.
4050 * sched-deps.c (sched_analyze_insn): Likewise.
4051 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
4052 * calls.c (decl_return_flags): New static function.
4053 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
4054 functions that return one of their arguments.
4055 * regcprop.c (struct kill_set_value_data): New.
4056 (kill_set_value): Interpret data as a pointer to such a struct.
4057 Do nothing if the caller wants the register to be ignored.
4058 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
4059
4060 2012-05-14 Richard Guenther <rguenther@suse.de>
4061
4062 PR tree-optimization/53340
4063 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
4064
4065 2012-05-14 Richard Guenther <rguenther@suse.de>
4066
4067 * gimplify.c (gimplify_expr): Remove odd code.
4068
4069 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
4070
4071 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
4072 into a PLUS_EXPR byte offset.
4073
4074 * tree-ssa-pre.c (can_value_number_call): Delete.
4075 (compute_avail): Skip all statements with side effects.
4076 <GIMPLE_CALL>: Skip calls to internal functions.
4077
4078 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
4079
4080 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
4081
4082 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4083
4084 * common.opt (Wtype-limits): Use EnabledBy.
4085
4086 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
4087
4088 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
4089 (pushtf splitter): Ditto.
4090 (movtf): Ditto.
4091 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
4092 (<code>tf2): Enable for TARGET_SSE.
4093 (*absnegtf2_sse): Ditto.
4094 (copysign<mode>3): Enable TFmode for TARGET_SSE.
4095 (copysign<mode>3_const): Ditto.
4096 (copysign<mode>3_var): Ditto.
4097 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
4098 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
4099 (*<code>tf3): Ditto.
4100 * config/i386/i386.c (struct builtin_description bdesc_args)
4101 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
4102 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
4103 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
4104 Emit a normal call if SSE isn't available.
4105
4106 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
4107
4108 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
4109 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
4110 (<code><mode>3): Ditto.
4111 (*andnot<mode>3): Ditto.
4112 (*andnottf3): Ditto.
4113 (*<code><mode>3): Ditto.
4114 (<code>tf3): Ditto.
4115
4116 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4117
4118 * optc-gen.awk: Error instead of warning for conflicting help.
4119
4120 2012-05-12 Jason Merrill <jason@redhat.com>
4121
4122 PR debug/53235
4123 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
4124 comdat types.
4125
4126 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
4127
4128 * function.c (requires_stack_frame_p): If the function can throw
4129 non-call exceptions, return true if the insn can throw internally.
4130
4131 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
4132
4133 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
4134
4135 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
4136
4137 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
4138 ORDERED and UNORDERED conditions.
4139
4140 2012-05-11 Richard Guenther <rguenther@suse.de>
4141
4142 * tree-flow.h (referenced_var_check_and_insert): Remove.
4143 (find_new_referenced_vars): Likewise.
4144 * tree-dfa.c (referenced_var_check_and_insert): Make static.
4145 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
4146 * tree-inline.c (copy_bb): Use find_referenced_vars_in
4147 instead of find_new_referenced_vars.
4148 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4149
4150 2012-05-11 Richard Guenther <rguenther@suse.de>
4151
4152 * tree-pass.h (pass_rest_of_compilation,
4153 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
4154 Remove.
4155 * passes.c (pass_all_optimizations, pass_postreload,
4156 pass_all_early_optimizations): Make static.
4157 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
4158 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
4159 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
4160 (delete_tree_ssa): Do not call fini_phinodes.
4161 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
4162
4163 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4164
4165 PR 53063
4166 * doc/options.texi (EnabledBy): Document
4167 * opts.c: Include opts.h and options.h before tm.h.
4168 (finish_options): Do not handle some sub-options here...
4169 (common_handle_option): ... instead call common_handle_option_auto
4170 here.
4171 * optc-gen.awk: Handle EnabledBy.
4172 * opth-gen.awk: Declare common_handle_option_auto.
4173 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
4174 (Wmaybe-uninitialized): Likewise.
4175 (Wunused-but-set-variable): Likewise.
4176 (Wunused-function): Likewise.
4177 (Wunused-label): Likewise.
4178 (Wunused-value): Likewise.
4179 (Wunused-variable): Likewise.
4180 * opt-read.awk: Create opt_numbers array.
4181
4182 2012-05-11 Richard Guenther <rguenther@suse.de>
4183
4184 PR tree-optimization/53295
4185 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
4186 strides.
4187 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
4188 strides when analyzing data-references in a loop context.
4189 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
4190 non-constant strides for now.
4191 (vect_enhance_data_refs_alignment): Ignore data references
4192 that are strided loads.
4193 (vect_analyze_data_ref_access): Handle non-constant strides.
4194 (vect_check_strided_load): Verify the data-reference is a load.
4195 (vect_analyze_data_refs): Restructure to make strided load
4196 support not dependent on gather support.
4197 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
4198 when doing strided or gather loads.
4199 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
4200 integer_zerop to compare stride with zero.
4201
4202 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4203
4204 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
4205
4206 2012-05-11 Jan Hubicka <jh@suse.cz>
4207
4208 PR bootstrap/53300
4209 * varpool.c (varpool_assemble_decl): Also output constat pool entries
4210 that output_constant_pool missed.
4211
4212 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
4213
4214 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
4215 MULTILIB_EXTRA_OPTS.
4216
4217 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
4218
4219 PR target/53291
4220 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
4221
4222 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
4223
4224 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
4225 optimization for TARGET_AVX.
4226 (*movti_internal_sse): Ditto.
4227 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
4228 (*movdi_internal): Ditto.
4229 (*movsi_internal): Ditto.
4230 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
4231 (*movdf_internal_rex64): Ditto.
4232 (*movfd_internal): Ditto.
4233 (*movsf_internal): Ditto.
4234 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
4235
4236 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
4237
4238 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
4239 reference as size attribute.
4240
4241 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
4242 Tristan Gingold <gingold@adacore.com>
4243
4244 * doc/md.texi (Standard Names): Document probe_stack_address.
4245 * explow.c (emit_stack_probe): Handle probe_stack_address.
4246 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
4247 (UNSPECV_PROBE_STACK_RANGE): Likewise.
4248 (probe_stack_address): New insn.
4249 (probe_stack_range): Likewise.
4250 * config/ia64/ia64.c: Include common/common-target.h.
4251 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
4252 checking is enabled.
4253 (ia64_emit_probe_stack_range): New function.
4254 (output_probe_stack_range): Likewise.
4255 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
4256 builtin stack checking is enabled.
4257 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
4258 and UNSPECV_PROBE_STACK_ADDRESS.
4259 (unknown_for_bundling_p): New predicate.
4260 (group_barrier_needed): Use important_for_bundling_p.
4261 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
4262 (issue_nops_and_insn): Likewise.
4263 (bundling): Likewise.
4264 (final_emit_insn_group_barriers): Likewise.
4265 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
4266 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
4267 (STACK_CHECK_PROTECT): Likewise.
4268 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4269
4270 2012-05-10 Jan Hubicka <jh@suse.cz>
4271
4272 * ipa-inline.c (update_all_callee_keys): Remove.
4273 (inline_small_functions): Simplify priority updating.
4274
4275 2012-05-10 Jan Hubicka <jh@suse.cz>
4276
4277 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
4278
4279 2012-05-10 Jan Hubicka <jh@suse.cz>
4280
4281 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
4282 (symtab_remove_unreachable_nodes): ... this one.
4283 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
4284 * cgraphunit.c (ipa_passes): Update.
4285 * cgraphclones.c (cgraph_materialize_all_clones): Update.
4286 * cgraph.c (cgraph_release_function_body): Only turn initial
4287 into error mark when initial was previously set.
4288 * ipa-inline.c (ipa_inline): Update.
4289 * ipa.c: Include ipa-inline.h
4290 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
4291 (enqueue_node): New function.
4292 (process_references): Update.
4293 (symtab_remove_unreachable_nodes): Cleanup.
4294 * passes.c (execute_todo, execute_one_pass): Update.
4295
4296 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
4297
4298 PR rtl-optimization/53125
4299 * ira.c (ira): Call find_moveable_pseudos and
4300 move_unallocated_pseudos if only ira_conflicts_p is true.
4301
4302 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
4303
4304 * config/i386/i386.md (*movoi_internal_avx): Handle
4305 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
4306 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
4307 (*movti_internal_sse): Ditto.
4308 (*movtf_internal): Ditto.
4309 * config/i386/sse.md (ssePSmode): New mode attribute.
4310 (*move<mode>_internal): Use ssePSmode.
4311 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
4312 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
4313 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
4314 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
4315
4316 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
4317
4318 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
4319 DECL_ORIGINAL_TYPE if it is present.
4320
4321 2012-05-10 Nick Clifton <nickc@redhat.com>
4322
4323 PR target/53120
4324 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
4325 a "0" constraint to being a (match_dup 0).
4326
4327 2012-05-10 Richard Guenther <rguenther@suse.de>
4328
4329 * stor-layout.c (byte_from_pos): Amend comment.
4330
4331 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4332
4333 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
4334 Document requirement to call in constructors.
4335
4336 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
4337
4338 2012-05-10 Richard Guenther <rguenther@suse.de>
4339
4340 * tree.h (TYPE_IS_SIZETYPE): Remove.
4341 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
4342 (extract_muldiv_1): Likewise.
4343 * gimple.c (gtc_visit): Likewise.
4344 (gimple_types_compatible_p): Likewise.
4345 (iterative_hash_canonical_type): Likewise.
4346 (gimple_canonical_types_compatible_p): Likewise.
4347 * gimplify.c (gimplify_one_sizepos): Likewise.
4348 * print-tree.c (print_node): Likewise.
4349 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
4350
4351 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
4352
4353 PR target/52908
4354 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
4355 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
4356 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
4357 instead of xop_mulv2div2di3_low.
4358 (xop_p<macs>dql): Fix vec_select selector.
4359 (xop_p<macs>dqh): Ditto.
4360 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
4361 (xop_mulv2div2di3_high): Ditto.
4362
4363 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4364
4365 PR c++/53289
4366 * diagnostic.h (diagnostic_context): Add last_location.
4367 * diagnostic.c (diagnostic_initialize): Initialize it.
4368 (diagnostic_show_locus): Use it.
4369
4370 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4371
4372 * doc/extend.texi (Function Attributes): Point xref to section
4373 about Pragmas.
4374
4375 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
4376
4377 * config/i386/i386.c (*movdf_internal_rex64): Remove
4378 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4379 Calculate "mode" attribute according to
4380 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4381 (*movdf_internal): Ditto.
4382
4383 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
4384
4385 PR target/44141
4386 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
4387 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
4388 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4389 or when optimizing for size.
4390 * config/i386/sse.md (*mov<mode>_internal): Remove
4391 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4392 Calculate "mode" attribute according to optimize_function_for_size_p
4393 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4394 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
4395 depending on the mode of the instruction. Calculate "mode" attribute
4396 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
4397 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
4398 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
4399
4400 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
4401
4402 PR target/53256
4403 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
4404 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
4405 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
4406 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
4407 (expand_prologue): Move initialization of cfun->machine->is_naked,
4408 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
4409 (avr_set_current_function): ...this new static function.
4410 (TARGET_SET_CURRENT_FUNCTION): New define.
4411 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
4412 checking attributes of current_function_decl.
4413 (avr_regs_to_save): Ditto.
4414 (signal_function_p): Rename to avr_signal_function_p.
4415 (interrupt_function_p): Rename to avr_interrupt_function_p.
4416
4417 * doc/extend.texi (Function Attributes): Better explanation of
4418 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
4419 alphabetical order.
4420
4421 2012-05-09 Michael Matz <matz@suse.de>
4422
4423 PR tree-optimization/53185
4424 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
4425 peeling when we see strided loads.
4426
4427 2012-05-09 Matthias Klose <doko@ubuntu.com>
4428
4429 * gcc-ar.c (main): Don't check for execute bits for the plugin.
4430
4431 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4432
4433 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
4434 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
4435 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
4436 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
4437 (USE_LOAD_POST_INCREMENT): Define.
4438 (USE_LOAD_PRE_INCREMENT): Define.
4439 (USE_LOAD_POST_DECREMENT): Define.
4440 (USE_LOAD_PRE_DECREMENT): Define.
4441 (USE_STORE_PRE_DECREMENT): Define.
4442 (USE_STORE_PRE_INCREMENT): Define.
4443 (USE_STORE_POST_DECREMENT): Define.
4444 (USE_STORE_POST_INCREMENT): Define.
4445 (arm_auto_incmodes): Add enumeration.
4446 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
4447 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
4448
4449 2012-05-09 Jakub Jelinek <jakub@redhat.com>
4450
4451 PR tree-optimization/53226
4452 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
4453 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
4454 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
4455 doesn't need to be revisited, look for earliest stmt with
4456 !gimple_plf (stmt, GF_PLF_1) if something changed.
4457
4458 2012-05-09 Terry Guo <terry.guo@arm.com>
4459
4460 * genmultilib: Update copyright dates.
4461 * doc/fragments.texi: Ditto.
4462
4463 2012-05-09 Terry Guo <terry.guo@arm.com>
4464
4465 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
4466 * genmultilib (MULTILIB_REQUIRED): New.
4467 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
4468
4469 2012-05-09 Richard Guenther <rguenther@suse.de>
4470
4471 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4472 (vect_do_peeling_for_loop_bound): Likewise.
4473 (vect_do_peeling_for_alignment): Likewise.
4474 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
4475 (vect_do_peeling_for_loop_bound): Get check_profitability and
4476 threshold as parameters.
4477 (vect_do_peeling_for_alignment): Likewise.
4478 (vect_loop_versioning): Likewise.
4479 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
4480 and threshold here. Control where to put the check here.
4481
4482 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
4483
4484 PR middle-end/53249
4485 * dwarf2out.h (get_address_mode): Move declaration to...
4486 * rtl.h: ...here.
4487 * dwarf2out.c (get_address_mode): Move definition to...
4488 * rtlanal.c: ...here.
4489 * var-tracking.c (get_address_mode): Delete.
4490 * combine.c (find_split_point): Use get_address_mode instead of
4491 targetm.addr_space.address_mode.
4492 * cselib.c (cselib_record_sets): Likewise.
4493 * dse.c (canon_address, record_store): Likewise.
4494 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
4495 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
4496 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
4497 (expand_expr_real_1): Likewise.
4498 * ifcvt.c (noce_try_cmove_arith): Likewise.
4499 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
4500 * reload.c (find_reloads): Likewise.
4501 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
4502 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
4503
4504 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
4505
4506 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
4507 information from the instruction produced.
4508
4509 2012-05-09 Richard Guenther <rguenther@suse.de>
4510
4511 * stor-layout.c (bit_from_pos): Document.
4512 (byte_from_pos): Likewise. Optimize.
4513 (pos_from_bit): Likewise.
4514 (normalize_offset): Use pos_from_bit instead of replicating it.
4515
4516 2012-05-09 Alan Modra <amodra@gmail.com>
4517
4518 PR target/53271
4519 * config/rs6000/rs6000.c (gen_frame_set): New function.
4520 (gen_frame_load, gen_frame_store): New functions.
4521 (rs6000_savres_rtx): Use the above.
4522 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
4523 Correct mode used for CR2 in save/restore_world patterns.
4524 Don't emit instructions for eh_return frame unwind reg info.
4525
4526 2012-05-08 Jan Hubicka <jh@suse.cz>
4527
4528 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
4529 with VALUE_EXPR.
4530 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
4531 are removable.
4532 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
4533 need to wrapup.
4534 (compile_file): Do not output variables.
4535 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
4536 output it.
4537 * langhooks.c: Include timevar.h
4538 (write_global_declarations): Finalize compilation unit after wrapup;
4539 set timevars correctly.
4540 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
4541 not to be added to varpool.
4542 * varpool.c (varpool_assemble_decl): Sanity check that we are called
4543 only on cases where it makes sense; skip constant pool and value expr
4544 vars.
4545
4546 2012-05-08 David S. Miller <davem@davemloft.net>
4547
4548 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
4549 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
4550 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
4551
4552 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
4553
4554 PR rtl-optimization/53278
4555 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
4556 speed_p code from earlier patch.
4557
4558 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
4559
4560 PR target/51244
4561 * config/sh/sh.md (*branch_true, *branch_false): New insns.
4562
4563 2012-05-08 Teresa Johnson <tejohnson@google.com>
4564
4565 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
4566 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
4567
4568 2012-05-08 Jan Hubicka <jh@suse.cz>
4569
4570 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
4571 (cgraph_create_node_1): Rename to ...
4572 (cgraph_create_empty_node): ... this one; export.
4573 (cgraph_create_node): Update.
4574 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
4575 (cgraph_create_edge_including_clones): Likewise.
4576 (cgraph_find_replacement_node): Likewise.
4577 (cgraph_clone_edge): Likewise.
4578 (cgraph_clone_node): Likewise.
4579 (clone_function_name): Likewise.
4580 (cgraph_create_virtual_clone): Likewise.
4581 (cgraph_remove_node_and_inline_clones): Likewise.
4582 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
4583 * cgraph.h: Reorder declarations so they match file of origin.
4584 (cgraph_create_empty_node): Declare.
4585 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
4586 (cgraph_copy_node_for_versioning): Likewise.
4587 (cgraph_function_versioning): Likewise.
4588 (cgraph_materialize_clone): Likewise.
4589 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4590 (cgraph_materialize_all_clones): Likewise.
4591 * cgraphclones.c: New file.
4592 * Makefile.in: Update for cgraphclones.
4593
4594 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
4595
4596 PR target/53176
4597 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
4598 (ix86_rtx_costs): Handle SET.
4599
4600 2012-05-08 Michael Matz <matz@suse.de>
4601
4602 * basic-block.h (struct rtl_bb_info): Remove visited member and
4603 move head_ member to ...
4604 (struct basic_block_def.basic_block_il_dependent): ... the new
4605 member x, replacing but containing old member rtl.
4606 (enum bb_flags): New BB_VISITED flag.
4607 (BB_HEADER, BB_FOOTER): New macros.
4608
4609 * jump.c (mark_all_labels): Adjust.
4610 * cfgcleanup.c (try_optimize_cfg): Adjust.
4611 * cfglayout.c (record_effective_endpoints): Adjust.
4612 (relink_block_chain): Ditto (and don't fiddle with visited).
4613 (fixup_reorder_chain): Adjust.
4614 (fixup_fallthru_exit_predecessor): Ditto.
4615 (cfg_layout_duplicate_bb): Ditto.
4616 * combine.c (update_cfg_for_uncondjump): Adjust.
4617 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
4618 (bb_visited_trace): New accessor.
4619 (mark_bb_visited): Move in front.
4620 (rotate_loop): Use bb_visited_trace.
4621 (find_traces_1_round): Ditto.
4622 (emit_barrier_after): Ditto.
4623 (copy_bb): Ditto, and initialize visited on resize.
4624 (reorder_basic_blocks): Initize visited member.
4625 (duplicate_computed_gotos): Clear bb flags at start, use
4626 BB_VISITED flags.
4627
4628 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
4629 (rtl_verify_flow_info_1): Ditto.
4630 (cfg_layout_split_block): Ditto.
4631 (cfg_layout_delete_block): Ditto.
4632 (cfg_layout_merge_blocks): Ditto.
4633 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
4634
4635 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
4636
4637 PR target/53272
4638 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
4639 when a constant source operand matches an "I" constraint, the "no
4640 CC0 change" applies to a register-destination only, not a
4641 strict_low_part-destination.
4642
4643 2012-05-08 Richard Guenther <rguenther@suse.de>
4644
4645 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
4646 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
4647
4648 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
4649
4650 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
4651
4652 * doc/avr-mmcu.texi: New auto-generated file.
4653 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
4654 to document all valid -mmcu= arguments.
4655
4656 * config/avr/avr.h (arch_info_s): New struct definition.
4657 * config/avr/avr-devices.c (avr_texinfo): New variable.
4658 * config/avr/gen-avr-mmcu-texi.c: New file.
4659 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
4660
4661 2012-05-08 Dehao Chen <dehao@google.com>
4662
4663 * predict.c (find_qualified_ssa_name): New.
4664 (find_ssa_name_in_expr): New.
4665 (find_ssa_name_in_assign_stmt): New.
4666 (is_comparison_with_loop_invariant_p): New.
4667 (is_bound_expr_similar): New.
4668 (predict_iv_comparison): New.
4669 (predict_loops): Add heuristic for loop-nested branches that compare an
4670 induction variable to a loop bound variable.
4671 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
4672
4673 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
4674
4675 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
4676 TARGET_BDVER2 defines where appropriate.
4677
4678 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
4679
4680 * configure.ac (PLUGIN_LD): Rename into...
4681 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
4682 * config.in: Regenerate.
4683 * configure: Likewise.
4684 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
4685
4686 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
4687
4688 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
4689 computation using the precision of the index type.
4690 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
4691 (fold_array_ctor_reference): Do index computations in the index type.
4692
4693 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
4694
4695 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
4696 down to plus_constant.
4697 (expand_epilogue): Ditto.
4698
4699 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4700
4701 * postreload.c (reload_cse_regs): Make static.
4702 * reload.h (reload_cse_regs): Remove prototype.
4703
4704 2012-05-07 Richard Henderson <rth@redhat.com>
4705
4706 * config/alpha/alpha.md (clear_cache): New pattern.
4707
4708 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4709
4710 PR middle-end/53245
4711 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
4712 is folded to a type boundary value, verify that the resulting case
4713 label is still a care range.
4714
4715 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
4716
4717 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
4718 only for TARGET_GENERIC, when not optimizing for size.
4719 (*ffs<mode>_1): Ditto.
4720
4721 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4722
4723 * tree-cfg.c (verify_gimple_switch): Tighten checks.
4724
4725 2012-05-07 Jakub Jelinek <jakub@redhat.com>
4726
4727 PR tree-optimization/53239
4728 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
4729 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
4730
4731 2012-05-07 Richard Guenther <rguenther@suse.de>
4732
4733 PR tree-optimization/53195
4734 * tree-inline.c (setup_one_parameter): Properly add referenced
4735 vars from the parameters new known value.
4736
4737 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4738
4739 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
4740 (sched_branch_type): Remove.
4741 (m68k_sched_md_init_global): Don't allocate it.
4742 (m68k_sched_md_finish_global): Don't free it.
4743 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
4744 * config/m68k/m68k.md: Set the type of insns using
4745 m68k_sched_branch_type to bcc directly.
4746
4747 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4748
4749 * config/sol2.c (solaris_override_options): New function.
4750 * config/sol2-protos.h (solaris_override_options): Declare.
4751 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
4752
4753 2012-05-07 Richard Guenther <rguenther@suse.de>
4754
4755 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
4756 whether we failed to compute data dependences.
4757 (loop_prefetch_arrays): Fail if we failed.
4758
4759 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
4760 Paolo Bonzini <bonzini@gnu.org>
4761
4762 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
4763 Emit bsf when optimizing for size.
4764 (*ffs<mode>_1): Ditto.
4765
4766 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
4767
4768 PR target/53250
4769 * config/sh/sh.c (sh_rtx_costs): Handle SET.
4770
4771 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
4772
4773 PR target/53227
4774 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
4775 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
4776 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
4777 (bswapsi2): Ditto.
4778 (*bswapdi2_doubleword): New insn pattern.
4779 (*bswap<mode>2): Rename from *bswap<mode>2_1.
4780
4781 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
4782
4783 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
4784 (mips_set_reg_reg_cost): Likewise.
4785 (mips_rtx_costs): Handle SET.
4786
4787 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
4788
4789 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
4790 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
4791 to compute the cost of moves. Set the mode of the target register.
4792
4793 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
4794
4795 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
4796 plus_constant function.
4797 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
4798 that the mode is sensible.
4799 (use_anchored_address, round_push, allocate_dynamic_stack_space)
4800 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
4801 plus_constant.
4802
4803 * alias.c (canon_rtx): Likewise.
4804 (init_alias_analysis): Likewise.
4805 * builtins.c (expand_builtin_return_addr)
4806 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
4807 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
4808 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
4809 (expand_builtin_stpcpy): Likewise.
4810 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
4811 (compute_argument_addresses, internal_arg_pointer_based_exp)
4812 (expand_call, emit_library_call_value_1): Likewise.
4813 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
4814 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
4815 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
4816 * cse.c (insert_const_anchor, find_reg_offset_for_const)
4817 (use_related_value, fold_rtx): Likewise.
4818 * cselib.c (cselib_subst_to_values): Likewise.
4819 * dse.c (record_store, check_mem_read_rtx): Likewise.
4820 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
4821 * emit-rtl.c (adjust_address_1): Likewise.
4822 * except.c (sjlj_emit_function_enter)
4823 (expand_builtin_extract_return_addr)
4824 (expand_builtin_frob_return_addr): Likewise.
4825 * expmed.c (expand_divmod): Likewise.
4826 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
4827 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
4828 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
4829 * function.c (assign_stack_local_1)
4830 (instantiate_virtual_regs_in_rtx): Likewise.
4831 * optabs.c (prepare_cmp_insn): Likewise.
4832 * recog.c (offsettable_address_addr_space_p): Likewise.
4833 * reload.c (find_reloads_address, form_sum)
4834 (find_reloads_subreg_address): Likewise.
4835 * reload1.c (init_reload, eliminate_regs_1)
4836 (eliminate_regs_in_insn): Likewise.
4837 * simplify-rtx.c (simplify_unary_operation_1)
4838 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
4839 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
4840 (vt_add_function_parameter): Likewise.
4841
4842 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
4843 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
4844 * config/alpha/alpha.c (alpha_legitimize_address_1)
4845 (get_unaligned_address, alpha_expand_unaligned_load)
4846 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
4847 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
4848 (alpha_expand_builtin_establish_vms_condition_handler)
4849 (alpha_setup_incoming_varargs, emit_frame_store_1)
4850 (alpha_expand_prologue, alpha_expand_epilogue)
4851 (alpha_use_linkage): Likewise.
4852 * config/alpha/alpha.md: Likewise.
4853
4854 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
4855 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
4856 (thumb_legitimize_address, arm_gen_load_multiple_1)
4857 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
4858 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
4859 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
4860 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
4861 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
4862 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
4863 (thumb_expand_movmemqi, arm_set_return_address)
4864 (thumb_set_return_address): Likewise.
4865 * config/arm/arm.md: Likewise.
4866
4867 * config/avr/avr.c (avr_incoming_return_addr_rtx)
4868 (avr_prologue_setup_frame, expand_epilogue)
4869 (avr_const_address_lo16): Likewise.
4870
4871 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
4872 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
4873 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
4874 (bfin_output_mi_thunk): Likewise.
4875
4876 * config/c6x/c6x.c (c6x_initialize_trampoline)
4877 (c6x_output_mi_thunk): Likewise.
4878
4879 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
4880 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
4881
4882 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
4883 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
4884 (cris_emit_movem_store, cris_trampoline_init): Likewise.
4885 * config/cris/cris.md: Likewise.
4886
4887 * config/darwin.c (machopic_indirect_data_reference)
4888 (machopic_legitimize_pic_address): Likewise.
4889
4890 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
4891 (epiphany_expand_prologue, epiphany_expand_epilogue)
4892 (epiphany_trampoline_init): Likewise.
4893 * config/epiphany/epiphany.md: Likewise.
4894
4895 * config/fr30/fr30.c (fr30_move_double): Likewise.
4896
4897 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
4898 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
4899 (frv_index_memory, unspec_got_name, frv_find_base_term)
4900 (frv_output_dwarf_dtprel): Likewise.
4901
4902 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
4903 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
4904
4905 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
4906 * config/i386/i386.c (setup_incoming_varargs_64)
4907 (setup_incoming_varargs_ms_64, choose_baseaddr)
4908 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
4909 (ix86_emit_probe_stack_range, ix86_expand_prologue)
4910 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
4911 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
4912 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
4913 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
4914 (x86_output_mi_thunk): Likewise.
4915 * config/i386/i386.md: Likewise.
4916
4917 * config/ia64/ia64.c (ia64_expand_load_address)
4918 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
4919 (do_spill, ia64_trampoline_init): Likewise.
4920
4921 * config/iq2000/iq2000.c (iq2000_va_start)
4922 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
4923 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
4924 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
4925
4926 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4927
4928 * config/m32c/m32c.c (m32c_return_addr_rtx)
4929 (m32c_expand_insv): Likewise.
4930
4931 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
4932 (m32r_legitimize_pic_address, m32r_print_operand)
4933 (m32r_print_operand_address): Likewise.
4934
4935 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
4936 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
4937 (EH_RETURN_HANDLER_RTX): Likewise.
4938 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
4939 (m68k_expand_epilogue, legitimize_pic_address)
4940 (m68k_output_mi_thunk): Likewise.
4941 * config/m68k/m68k.md: Likewise.
4942
4943 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4944 (mcore_expand_epilog): Likewise.
4945 * config/mcore/mcore.md: Likewise.
4946
4947 * config/mep/mep.c (mep_allocate_initial_value)
4948 (mep_expand_prologue, mep_expand_epilogue): Likewise.
4949
4950 * config/microblaze/microblaze.c (double_memory_operand)
4951 (microblaze_block_move_loop): Likewise.
4952
4953 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
4954 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
4955 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
4956 (mips_expand_prologue, mips_epilogue_set_cfa)
4957 (mips_expand_epilogue): Likewise.
4958 * config/mips/mips.md: Likewise.
4959
4960 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
4961 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
4962
4963 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
4964 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
4965
4966 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4967 (EH_RETURN_HANDLER_RTX): Likewise.
4968 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4969
4970 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
4971 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
4972 (pa_return_addr_rtx, hppa_builtin_saveregs)
4973 (pa_trampoline_init): Likewise.
4974 * config/pa/pa.md: Likewise.
4975
4976 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
4977
4978 * config/picochip/picochip.c (picochip_static_chain): Likewise.
4979
4980 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
4981 * config/rs6000/rs6000.c (rs6000_legitimize_address)
4982 (setup_incoming_varargs, print_operand, rs6000_return_addr)
4983 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
4984 (rs6000_emit_epilogue)
4985 (rs6000_machopic_legitimize_pic_address): Likewise.
4986
4987 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
4988
4989 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
4990 (DYNAMIC_CHAIN_ADDRESS): Likewise.
4991 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
4992 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
4993 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
4994 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
4995 (s390_emit_epilogue, s390_function_profiler): Likewise.
4996 * config/s390/s390.md: Likewise.
4997
4998 * config/score/score.c (score_add_offset, score_prologue): Likewise.
4999
5000 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
5001 (sh_output_mi_thunk): Likewise.
5002 * config/sh/sh.md: Likewise.
5003
5004 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
5005 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
5006 * config/sparc/sparc.c (sparc_legitimize_pic_address)
5007 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
5008 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
5009 (emit_and_preserve): Likewise.
5010 * config/sparc/sparc.md: Likewise.
5011
5012 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
5013 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
5014 (spu_setup_incoming_varargs, ea_load_store_inline)
5015 (spu_expand_load): Likewise.
5016
5017 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
5018 (combine_bnp): Likewise.
5019
5020 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
5021 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
5022 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
5023
5024 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
5025 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
5026 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
5027
5028 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
5029 * config/v850/v850.md: Likewise.
5030
5031 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
5032 (EH_RETURN_HANDLER_RTX): Likewise.
5033 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
5034 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
5035 (print_operand_address, vax_trampoline_init): Likewise.
5036
5037 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
5038 (xtensa_function_value_regno_p): Likewise.
5039
5040 2012-05-04 Andrew Pinski <apinski@cavium.com>
5041
5042 * expr.c (get_def_for_expr_class): New function.
5043 (convert_tree_comp_to_rtx): New function.
5044 (expand_cond_expr_using_cmove): New function.
5045 (expand_expr_real_2 <case COND_EXPR>): Call
5046 expand_cond_expr_using_cmove first and return if it succeeds.
5047 Remove the check for HAVE_conditional_move since we should have
5048 already converted it to a conditional move.
5049 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
5050 modes of DImode for 32bits and TImode.
5051
5052 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
5053
5054 PR other/29442
5055 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
5056 (print_md_ptr_loc, print_c_condition): Use them.
5057 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
5058 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
5059 attr_file, dfa_file, latency_file): New global variables.
5060 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
5061 write_upcase, write_indent, write_length_unit_log, write_test_expr,
5062 write_attr_get, write_insn_cases, write_eligible_delay,
5063 write_const_num_delay_slots): Accept FILE pointer and toss it around.
5064 Update all callers.
5065 (write_header, open_outfile, handle_arg): New funcions.
5066 (make_automaton_attrs): Write prototypes as extern to the output
5067 files.
5068 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
5069 names from the command line. Open the output files and write out
5070 internal functions for DFA functions to dfa_file_name, insn latency
5071 functions to latency_file_name, and everything else to attr_file.
5072 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
5073 (BACKEND): Build libbackend first.
5074 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
5075 (.PRECIOUS): Likewise.
5076 (insn-dfatab.o): New rule.
5077 (insn-latencytab.o): New rule.
5078 (simple_rtl_generated_c): Do not include insn-attrtab.c.
5079 (s-attrtab): New rule.
5080
5081 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
5082
5083 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
5084 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
5085 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
5086 * reorg.c (get_jump_flags): Do not set the removed flags.
5087
5088 * doc/md.texi (attr_flag): Update for abovementioned changes.
5089
5090 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
5091
5092 PR target/53228
5093 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
5094 (TARGET_CMOV): Rename from TARGET_CMOVE.
5095 (TARGET_CMOVE): New define.
5096 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
5097 Do not set TARGET_CMOVE here.
5098
5099 2012-05-04 Dodji Seketeli <dodji@redhat.com>
5100
5101 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
5102 * opts.c (finish_options): Activate -Wunused-local-typedefs if
5103 -Wunused is activated.
5104 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
5105
5106 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5107
5108 * config/s390/s390.md (*movmem_short, *clrmem_short)
5109 (*cmpmem_short): Move the mode check from the insn condition to
5110 the match_scratch.
5111
5112 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5113
5114 PR tree-optimization/52633
5115 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
5116 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
5117 (vect_recog_over_widening_pattern): Remove handling of code that was
5118 already detected as over-widening pattern. Remove special handling
5119 of "unsigned" cases. Instead, support general case of conversion
5120 of the shift result to another type.
5121
5122 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5123
5124 * tree-vect-patterns.c (vect_single_imm_use): New function.
5125 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
5126 (vect_recog_over_widening_pattern): Likewise.
5127 (vect_recog_widen_shift_pattern): Likewise.
5128
5129 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5130
5131 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
5132 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
5133 (vect_recog_widen_mult_pattern): Likewise.
5134 (vect_operation_fits_smaller_type): Likewise.
5135 (vect_recog_over_widening_pattern): Likewise.
5136 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
5137
5138 2012-05-04 Richard Guenther <rguenther@suse.de>
5139
5140 PR lto/50602
5141 * lto-wrapper.c (merge_and_complain): Complain about mismatches
5142 of -freg-struct-return and -fpcc-struct-return.
5143 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
5144 from the input file options and ignore those from the link
5145 command line.
5146
5147 2012-05-04 Richard Guenther <rguenther@suse.de>
5148
5149 PR tree-optimization/53168
5150 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
5151 memory reads when the result is a constant we can pun.
5152
5153 2012-05-04 Richard Guenther <rguenther@suse.de>
5154
5155 * common.opt (flto-report): Do not mark as Optimization.
5156
5157 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
5158
5159 PR target/48496
5160 * recog.c (constrain_operands): If extra constraints are present, also
5161 accept pseudo-registers with equivalent memory locations during reload.
5162
5163 2012-05-04 Olivier Hainque <hainque@adacore.com>
5164
5165 * collect2.c (may_unlink_output_file): New global.
5166 (maybe_unlink): Honor it.
5167 * collect2.h: Add extern for it.
5168 * tlink.c (do_tlink): Set it to true if the link succeeded.
5169
5170 2012-05-04 Olivier Hainque <hainque@adacore.com>
5171
5172 * gcc.c (eval_spec_function): Finalize/restore the current string
5173 obstack state as part of the context push/pop operations.
5174
5175 2012-05-04 Bin Cheng <bin.cheng@arm.com>
5176
5177 PR rtl-optimization/52804
5178 * reload1.c (reload_reg_reaches_end_p): Check whether successor
5179 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
5180 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
5181 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
5182 RELOAD_FOR_OUTADDR_ADDRESS.
5183
5184 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5185
5186 PR c++/24985
5187 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
5188 for macro expansion.
5189
5190 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5191
5192 * flags.h (flag_permissive): Do not declare.
5193 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
5194 option specially.
5195 * toplev.c (flag_permissive): Do not define.
5196 * c-tree.h (system_header_p): Delete unused.
5197
5198 2012-05-03 David S. Miller <davem@davemloft.net>
5199
5200 PR target/52684
5201 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
5202 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
5203 (sparc_emit_float_lib_cmp): Likewise.
5204
5205 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5206
5207 PR target/53199
5208 * config/rs6000/rs6000.md (bswapdi splitters): If
5209 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
5210 default) is used, generate an alternate sequence that does not
5211 depend on using indexed addressing.
5212
5213 2012-05-03 Jason Merrill <jason@redhat.com>
5214
5215 * gengtype.c (write_types): Fix warning message.
5216 (write_local): Likewise.
5217
5218 2012-05-02 Jason Merrill <jason@redhat.com>
5219
5220 * dwarf2out.c (struct external_ref, build_local_stub): New.
5221 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
5222 (optimize_external_refs, optimize_external_refs_1): New.
5223 (change_AT_die_ref): New.
5224 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
5225 (build_abbrev_table): Take the external refs hashtable.
5226 (output_comp_unit): Get it from optimize_external_refs and pass it in.
5227
5228 2012-05-03 Jan Hubicka <jh@suse.cz>
5229
5230 PR middle-end/53093
5231 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
5232
5233 2012-05-03 Jan Hubicka <jh@suse.cz>
5234
5235 PR middle-end/53106
5236 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
5237
5238 2012-05-03 Jason Merrill <jason@redhat.com>
5239
5240 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
5241 use_debug_types to discriminate the die_id union.
5242 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
5243 (build_abbrev_table, output_die): Likewise.
5244 (prune_unused_types_walk_attribs): Likewise.
5245 (generate_type_signature, copy_declaration_context): Set it.
5246 (remove_child_or_replace_with_skeleton): Set it.
5247 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
5248 check use_debug_types.
5249 (dwarf2out_finish): Do break_out_includes after .debug_types.
5250
5251 2012-05-03 Jason Merrill <jason@redhat.com>
5252
5253 * dwarf2out.c (modified_type_die): Use scope_die_for.
5254 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
5255 (uses_local_type_r, uses_local_type): New.
5256 (scope_die_for): Keep a type that uses a local type in local scope.
5257 Use get_context_die for namespace and type scope.
5258
5259 2012-05-03 Jason Merrill <jason@redhat.com>
5260
5261 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
5262 pc thunk.
5263 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
5264 (dwarf2out_finish): Likewise.
5265
5266 2012-05-03 Martin Jambor <mjambor@suse.cz>
5267
5268 * builtins.c (get_object_alignment_1): Return whether we can determine
5269 the alignment or conservatively assume byte alignment. Return the
5270 alignment by reference. Use get_pointer_alignment_1 for dereference
5271 alignment.
5272 (get_pointer_alignment_1): Return whether we can determine the
5273 alignment or conservatively assume byte alignment. Return the
5274 alignment by reference. Use get_ptr_info_alignment to get SSA name
5275 alignment.
5276 (get_object_alignment): Update call to get_object_alignment_1.
5277 (get_object_or_type_alignment): Likewise, fall back to type alignment
5278 only when it returned false.
5279 (get_pointer_alignment): Update call to get_pointer_alignment_1.
5280 * fold-const.c (get_pointer_modulus_and_residue): Update call to
5281 get_object_alignment_1.
5282 * ipa-prop.c (ipa_modify_call_arguments): Update call to
5283 get_pointer_alignment_1.
5284 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
5285 of MEM_REF or TARGET_MEM_REF only when it returns false.
5286 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
5287 get_object_alignment_1.
5288 (ccp_finalize): Use set_ptr_info_alignment.
5289 * tree.h (get_object_alignment_1): Update declaration.
5290 (get_pointer_alignment_1): Likewise.
5291 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
5292 (dump_gimple_stmt): Likewise.
5293 * tree-flow.h (ptr_info_def): Updated comments of fields align and
5294 misalign.
5295 (get_ptr_info_alignment): Declared.
5296 (mark_ptr_info_alignment_unknown): Likewise.
5297 (set_ptr_info_alignment): Likewise.
5298 (adjust_ptr_info_misalignment): Likewise.
5299 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
5300 and set alignment of SSA names.
5301 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
5302 mark_ptr_info_alignment_unknown.
5303 * tree-ssanames.c (get_ptr_info_alignment): New function.
5304 (mark_ptr_info_alignment_unknown): Likewise.
5305 (set_ptr_info_alignment): Likewise.
5306 (adjust_ptr_info_misalignment): Likewise.
5307 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
5308 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5309 Likewise.
5310 (bump_vector_ptr): Likewise.
5311 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
5312 (vectorizable_store): Likewise.
5313 (vectorizable_load): Likewise.
5314
5315 2012-05-03 Michael Matz <matz@suse.de>
5316
5317 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
5318 in front of basic_block_def.
5319 (struct basic_block_def): Make il.gimple the full struct, not a
5320 pointer.
5321 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
5322
5323 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
5324 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
5325 NULL il.gimple, which can't happen anymore.
5326 * gimple.h (bb_seq): il.gimple can't be NULL.
5327 (bb_seq_add): Ditto.
5328 (set_bb_seq): Adjust.
5329 (gsi_start_bb, gsi_last_bb): Tidy.
5330 * lto-streamer-in.c (make_new_block): Don't zero members that
5331 are zeroed already, don't allocate a gimple_bb_info.
5332 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
5333 (remove_bb): Clear all il.gimple members.
5334 (gimple_verify_flow_info): Adjust for flat il.gimple.
5335 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
5336
5337 * coretypes.h (const_gimple_seq): Remove typedef.
5338 * gimple.h (gimple_seq_first): Take gimple_seq.
5339 (gimple_seq_first_stmt): Ditto.
5340 (gimple_seq_last): Ditto.
5341 (gimple_seq_last_stmt): Ditto.
5342 (gimple_seq_empty_p): Ditto.
5343
5344 2012-05-03 Richard Guenther <rguenther@suse.de>
5345
5346 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
5347 operations.
5348 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
5349 (compute_avail): Do not add possibly trapping operations to
5350 EXP_GEN if they might not be executed in the block.
5351
5352 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
5353
5354 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
5355
5356 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
5357
5358 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
5359 information as early as possible. Update dominance info instead of
5360 discarding it.
5361
5362 2012-05-03 Richard Guenther <rguenther@suse.de>
5363
5364 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
5365 (union_contains_value): Remove.
5366 (vro_valid_in_sets): Likewise.
5367 (op_valid_in_sets): New function.
5368 (valid_in_sets): Use op_valid_in_sets.
5369 (insert_into_preds_of_block): Move dumping ...
5370 (do_regular_insertion): ... here.
5371 (do_partial_partial_insertion): ... and here. Dump that
5372 we've found a partial partial redundancy.
5373 (insert): Dump the current insert iteration.
5374
5375 2012-05-03 Jakub Jelinek <jakub@redhat.com>
5376
5377 PR plugins/53126
5378 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
5379 append program name to it and pass that as first argument
5380 to make_relative_prefix. Always pass standard_libexec_prefix
5381 as last argument to make_relative_prefix. If
5382 make_relative_prefix returns NULL, fall back to
5383 standard_libexec_prefix.
5384
5385 PR debug/53174
5386 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
5387 removed.
5388
5389 PR target/53187
5390 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
5391 mode, return that mode.
5392
5393 PR target/53194
5394 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
5395 define __ATOMIC_HLE_* macros here.
5396 (ix86_target_macros): But here, using cpp_define_formatted.
5397
5398 2012-05-03 Richard Guenther <rguenther@suse.de>
5399
5400 PR tree-optimization/53144
5401 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
5402 Rename to ...
5403 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
5404 with SSA name values.
5405 (vn_reference_lookup_3): Adjust callers.
5406
5407 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5408
5409 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
5410 has_fma4 for AMD processors with both fma3 and fma4 support.
5411
5412 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
5413
5414 PR target/53201
5415 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
5416 "-mno-hle".
5417
5418 2012-05-03 Michael Matz <matz@suse.de>
5419
5420 PR bootstrap/53197
5421 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
5422 (dse_enter_block): Properly iterate the whole sequence even
5423 if the last statement was removed.
5424
5425 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
5426
5427 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
5428 unset flag_jump_tables.
5429 * stmt.c (expand_case): Remove special flag_pic case conditional
5430 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
5431
5432 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5433
5434 * common/config/s390/s390-common.c (s390_option_optimization_table):
5435 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
5436 default when optimizing.
5437
5438 2012-05-02 Martin Jambor <mjambor@suse.cz>
5439
5440 PR lto/52605
5441 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
5442 of a variable when the contect is a function.
5443
5444 2012-05-02 Michael Matz <matz@suse.de>
5445
5446 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
5447 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
5448 (const_gimple_seq_node): Remove.
5449 (gimple_seq_node): Typedef as gimple.
5450 (struct gimple_statement_base): Add next and prev members,
5451 adjust all WORD markers in using structs.
5452 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
5453 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5454 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
5455 gimple are the same.
5456 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
5457 gimple_seq, adjust.
5458 (gimple_init_singleton): New function.
5459 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
5460 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
5461 (gsi_stmt): Adjust.
5462 (gsi_stmt_ptr): Remove.
5463 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
5464
5465 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
5466 again, adjust for above changes.
5467 (update_call_edge_frequencies): Adjust for above changes.
5468 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
5469 (gsi_insert_seq_nodes_after): Ditto.
5470 (gsi_split_seq_after): Ditto.
5471 (gsi_set_stmt): Ditto.
5472 (gsi_split_seq_before): Ditto.
5473 (gsi_remove): Ditto.
5474 (gsi_insert_seq_before_without_update): Don't free sequence.
5475 (gsi_insert_seq_after_without_update): Ditto.
5476 (gsi_replace): Assert some more invariants.
5477 (gsi_insert_before_without_update, gsi_insert_after_without_update):
5478 Tidy.
5479 (gsi_for_stmt): Don't search for stmt.
5480 (gsi_insert_on_edge_immediate): Tidy.
5481
5482 * gimple.c (gimple_alloc_k): Remove "sequences".
5483 (gimple_seq_cache): Remove.
5484 (gimple_alloc_stat): Make stmt a singleton sequence.
5485 (gimple_seq_alloc, gimple_seq_free): Remove.
5486 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
5487 (gimple_copy): Ditto.
5488 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
5489 create iterator from correct sequence.
5490 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
5491
5492 2012-05-02 Michael Matz <matz@suse.de>
5493
5494 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
5495 gimple_seq.
5496 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
5497 sequence, lazily allocate it.
5498 (bb_seq_addr): New function.
5499 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
5500 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
5501 (gsi_none): New function.
5502 (gsi_start_bb): Adjust.
5503 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
5504 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
5505 (gsi_last_bb): Adjust.
5506 (gsi_seq): Adjust.
5507 * tree-flow-inline.h (phi_nodes_ptr): New function.
5508
5509 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
5510 datastructure and interface change.
5511 (gsi_insert_seq_before_without_update): Ditto.
5512 (gsi_insert_seq_nodes_after): Ditto.
5513 (gsi_insert_seq_after_without_update): Ditto.
5514 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
5515 (gsi_split_seq_before): Ditto.
5516 (gsi_start_phis): Adjust.
5517 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
5518 (vect_transform_loop): Ditto.
5519 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
5520 gimple_seq_copy): Don't use gimple_seq_alloc.
5521 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
5522 (gimplify_seq_add_seq): Ditto.
5523 * lto-streamer-in.c (make_new_block): Ditto.
5524 * tree-cfg.c (create_bb): Ditto.
5525 * tree-sra.c (initialize_parameter_reductions): Ditto.
5526
5527 2012-05-02 Michael Matz <matz@suse.de>
5528
5529 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5530 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
5531 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
5532 set_bb_seq): Move down to after gimple_statement_d definition.
5533
5534 2012-05-02 Michael Matz <matz@suse.de>
5535
5536 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5537 gsi_replace_with_seq, instead of inserting itself.
5538 * gimple-iterator.c (gsi_replace_with_seq): New function.
5539 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
5540 iterator instead of statement, advance it.
5541 (ssa_forward_propagate_and_combine): Adjust call to above.
5542
5543 2012-05-02 Michael Matz <matz@suse.de>
5544
5545 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
5546 gimple_seq_alloc.
5547 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
5548 * tree-nested.c (walk_gimple_omp_for): Ditto.
5549 * trans-mem.c (lower_transaction): Ditto.
5550 * tree-eh.c (do_return_redirection): Ditto.
5551 (do_goto_redirection): Ditto.
5552 (lower_try_finally_switch): Ditto.
5553 * gimplify.c (gimplify_stmt): Ditto.
5554 (gimplify_scan_omp_clauses): Ditto.
5555 (gimplify_omp_for): Ditto.
5556 (gimplify_function_tree): Ditto.
5557 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
5558 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
5559 (mf_build_check_statement_for): Ditto.
5560 (mx_register_decls): Ditto.
5561 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
5562 and don't use itertors to append.
5563 (insert_stmts): Ditto.
5564 (insert_out_of_ssa_copy): Ditto.
5565 (insert_out_of_ssa_copy_on_edge): Ditto.
5566
5567 2012-05-02 Michael Matz <matz@suse.de>
5568
5569 * gimple.h (gimple_bind_body_ptr): New function.
5570 (gimple_bind_body): Use it.
5571 (gimple_catch_handler): Use gimple_catch_handler_ptr.
5572 (gimple_eh_filter_failure_ptr): New function.
5573 (gimple_eh_filter_failure): Use it.
5574 (gimple_eh_else_n_body_ptr): New function.
5575 (gimple_eh_else_n_body): Use it.
5576 (gimple_eh_else_e_body_ptr): New function.
5577 (gimple_eh_else_e_body): Use it.
5578 (gimple_try_eval_ptr): New function.
5579 (gimple_try_eval): Use it.
5580 (gimple_try_cleanup_ptr): New function.
5581 (gimple_try_cleanup): Use it.
5582 (gimple_wce_cleanup_ptr): New function.
5583 (gimple_wce_cleanup): Use it.
5584 (gimple_omp_body_ptr): New function.
5585 (gimple_omp_body): Use it.
5586 (gimple_omp_for_pre_body_ptr): New function.
5587 (gimple_omp_for_pre_body): Use it.
5588 (gimple_transaction_body_ptr): New function.
5589 (gimple_transaction_body): Use it.
5590 (gsi_split_seq_before): Adjust to return nothing and take pointer
5591 to sequence.
5592 (gsi_set_stmt): Declare.
5593 (gsi_replace_with_seq): Declare.
5594 (walk_gimple_seq_mod): Declare.
5595 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
5596
5597 * gimple-iterator.c (gsi_set_stmt): New function.
5598 (gsi_split_seq_before): Return new sequence via pointer argument.
5599 (gsi_replace): Use gsi_set_stmt.
5600
5601 * tree-ssa-loop-im.c (move_computations_stmt): First remove
5602 then insert stmt.
5603 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
5604 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
5605 return new stmt.
5606 (reserve_phi_args_for_new_edge): Change call to above,
5607 use gsi_set_stmt.
5608
5609 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
5610 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
5611 iterators. Adjust call to lower_omp.
5612 (lower_lastprivate_clauses): Adjust call to lower_omp.
5613 (lower_reduction_clauses): Ditto.
5614 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
5615 (lower_omp_sections): Don't explicitely count sequence length,
5616 nullify lowered bodies earlier, ensure stmts are part of only
5617 one sequence, adjust call to lower_omp.
5618 (lower_omp_single): Ensure stmts are part of only one sequence,
5619 adjust call to lower_omp.
5620 (lower_omp_master): Ditto.
5621 (lower_omp_ordered): Ditto.
5622 (lower_omp_critical): Ditto.
5623 (lower_omp_for): Ditto.
5624 (lower_omp_taskreg): Ditto, tidy.
5625 (lower_omp_1): Adjust calls to lower_omp.
5626 (execute_lower_omp): Ditto.
5627 (lower_omp): Adjust to take pointer to sequence.
5628 (diagnose_sb_2): Use walk_gimple_seq_mod.
5629 (diagnose_omp_structured_block_errors): Ditto and set possibly
5630 changed function body.
5631 * gimple-low.c (lower_function_body): Set function body after
5632 it stabilizes.
5633 (lower_sequence): Adjust to take pointer to sequence.
5634 (lower_omp_directive): Ensure stmt isn't put twice into the
5635 sequence, adjust call to lower_sequence.
5636 (lower_stmt): Adjust calls to lower_sequence.
5637 (lower_gimple_bind): Ditto.
5638 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
5639 * tree-nested.c (walk_body): Take pointer to sequence, use
5640 walk_gimple_seq_mod.
5641 (walk_function): Adjust call to walk_body, set possibly changed body.
5642 (walk_gimple_omp_for): Adjust calls to walk_body.
5643 (convert_nonlocal_omp_clauses): Ditto.
5644 (convert_nonlocal_reference_stmt): Ditto.
5645 (convert_local_omp_clauses): Ditto.
5646 (convert_local_reference_stmt): Ditto.
5647 (convert_tramp_reference_stmt): Ditto.
5648 (convert_gimple_call): Ditto.
5649 (convert_nl_goto_reference): Use local iterator copy.
5650 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
5651 but taking pointer to sequence, ensure gsi_start is called with
5652 callers lvalue.
5653 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
5654 asserting that the sequence head didn't change.
5655 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
5656 walk_gimple_seq_mod.
5657 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
5658 (execute_lower_tm): Ditto, and set possibly changed body.
5659 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
5660 call gsi_start with that lvalue.
5661 (replace_goto_queue_stmt_list): Ditto.
5662 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
5663 (replace_goto_queue): Ditto.
5664 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
5665 (lower_try_finally_onedest): Ditto.
5666 (lower_try_finally_copy): Ditto.
5667 (lower_try_finally_switch): Ditto.
5668 (lower_try_finally): Ditto.
5669 (lower_eh_filter): Ditto.
5670 (lower_eh_must_not_throw): Ditto.
5671 (lower_cleanup): Ditto.
5672 (lower_eh_constructs_2): Ditto.
5673 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
5674 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
5675 set possibly changed body.
5676 (optimize_double_finally): Call gsi_start with lvalue.
5677
5678 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
5679 (gimple_split_block): Ditto.
5680 (gimple_merge_blocks): Use gsi_start_phis.
5681 (move_stmt_r): Use walk_gimple_seq_mod.
5682 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
5683 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
5684 (rebuild_cgraph_edges): Ditto.
5685 (cgraph_rebuild_references): Ditto.
5686 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
5687 * tree-inline.c (copy_phis_for_bb): Ditto.
5688 * tree-ssa-dce.c: Ditto.
5689
5690 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
5691
5692 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
5693 Andi Kleen <ak@linux.intel.com>
5694
5695 * coretypes.h (MEMMODEL_MASK): New.
5696 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
5697 and return new variable.
5698 (expand_builtin_atomic_exchange): Mask memmodel values.
5699 (expand_builtin_atomic_compare_exchange): Ditto.
5700 (expand_builtin_atomic_load): Ditto.
5701 (expand_builtin_atomic_store): Ditto.
5702 (expand_builtin_atomic_clear): Ditto.
5703 * doc/extend.texi: Mention port-dependent memory model flags.
5704 * config/i386/cpuid.h (bit_HLE): New.
5705 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5706 HLE support.
5707 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
5708 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
5709 (ix86_target_string)<-mhle>: New.
5710 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5711 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
5712 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5713 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
5714 enabled for generic, generic64 and core-avx2.
5715 (ix86_print_operand): Generate HLE lock prefixes.
5716 (ix86_memmodel_check): New.
5717 (TARGET_MEMMODEL_CHECK): Ditto.
5718 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
5719 (IX86_HLE_ACQUIRE): Ditto.
5720 (IX86_HLE_RELEASE): Ditto.
5721 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
5722 * config/i386/i386.opt (mhle): Ditto.
5723 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
5724 success model to instruction emitter.
5725 (atomic_fetch_add<mode>): Ditto.
5726 (atomic_exchange<mode>): Ditto.
5727 (atomic_add<mode>): Ditto.
5728 (atomic_sub<mode>): Ditto.
5729 (atomic_<code><mode>): Ditto.
5730 (*atomic_compare_and_swap_doubledi_pic): Ditto.
5731 (atomic_compare_and_swap_single<mode>): Define and use argument
5732 for success model.
5733 (atomic_compare_and_swap_double<mode>): Ditto.
5734 * configure.ac: Check if assembler support HLE prefixes.
5735 * configure: Regenerate.
5736 * config.in: Ditto.
5737
5738 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
5739
5740 PR middle-end/53153
5741 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
5742 split out from ...
5743 (gimplify_switch_expr): ... here.
5744 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
5745 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
5746 to clean up case labels with values outside the index type range.
5747 (simplify_gimple_switch): Call it if something changed.
5748 Remove strange and unnecessary assert.
5749
5750 2012-05-02 Richard Guenther <rguenther@suse.de>
5751
5752 * fold-const.c (div_if_zero_remainder): sizetypes no longer
5753 sign-extend.
5754 (int_const_binop_1): New worker for int_const_binop with
5755 overflowable parameter. Pass it through to force_fit_type_double.
5756 (int_const_binop): Wrap around int_const_binop_1 with overflowable
5757 equal to one.
5758 (size_binop_loc): Call int_const_binop_1 with overflowable equal
5759 to minus one, forcing overflow detection for even unsigned types.
5760 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
5761 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
5762 * stor-layout.c (initialize_sizetypes): sizetypes no longer
5763 sign-extend.
5764 (layout_type): For zero-sized arrays ignore overflow on the
5765 size calculations.
5766 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
5767 (bit_value_binop_1): Likewise.
5768 * tree.c (double_int_to_tree): Likewise.
5769 (double_int_fits_to_tree_p): Likewise.
5770 (force_fit_type_double): Likewise.
5771 (host_integerp): Likewise.
5772 (int_fits_type_p): Likewise.
5773 * varasm.c (output_constructor_regular_field): Sign-extend the
5774 field-offset to cater for negative offsets produced by the Ada
5775 frontend.
5776 * omp-low.c (extract_omp_for_data): Convert the loop step to
5777 signed for pointer adjustments.
5778
5779 2012-05-02 Richard Guenther <rguenther@suse.de>
5780
5781 * tree.c (valid_constant_size_p): New function.
5782 * tree.h (valid_constant_size_p): Declare.
5783 * cfgexpand.c (expand_one_var): Adjust check for too large
5784 variables by using valid_constant_size_p.
5785 * varasm.c (assemble_variable): Likewise.
5786
5787 * c-decl.c (grokdeclarator): Properly check for sizes that
5788 cover more than half of the address-space.
5789
5790 2012-05-02 Jakub Jelinek <jakub@redhat.com>
5791
5792 PR tree-optimization/53163
5793 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
5794 return value from compute_all_dependences.
5795
5796 PR rtl-optimization/53160
5797 * ree.c (combine_reaching_defs): Handle the case where cand->insn
5798 has been modified by ree pass already.
5799
5800 2012-05-01 Ian Lance Taylor <iant@google.com>
5801
5802 PR c/37303
5803 * c-decl.c (build_compound_literal): Make the decl readonly if it
5804 an array of a readonly type.
5805 * gimplify.c (gimplify_compound_literal_expr): Add fallback
5806 parameter. Change all callers. If the decl is not addressable
5807 and is not an l-value, make it readonly.
5808
5809 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
5810
5811 * ira.c (allocated_reg_info_size): New static variable.
5812 (expand_reg_info): Manage it. Call
5813 setup_preferred_alternate_classes_for_new_pseudos.
5814 (ira): Don't do it here. Remove local allocated_reg_info_size,
5815 set the global before calling find_moveable_pseudos.
5816 (find_moveable_pseudos): Call expand_reg_info rather than
5817 resize_reg_info.
5818
5819 2012-05-01 Richard Henderson <rth@redhat.com>
5820
5821 * common.opt (fsync-libcalls): New.
5822 * doc/invoke.texi: Document it.
5823 * optabs.c (init_sync_libfuncs): Honor it.
5824
5825 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
5826 Richard Sandiford <r.sandiford@uk.ibm.com>
5827
5828 PR rtl-optimization/52543
5829 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
5830 lower-subreg.h.
5831 * lower-subreg.h: New file.
5832 * target-globals.h (this_target_lower_subreg): Declare.
5833 (target_globals): Add lower_subreg;
5834 (restore_target_globals): Restore this_target_lower_subreg.
5835 * target-globals.c: Include it.
5836 (default_target_globals): Add default_target_lower_subreg.
5837 (save_target_globals): Initialize target_lower_subreg.
5838 * rtl.h (init_lower_subreg): Added declaration.
5839 * toplev.c (backend_init_target): Call initializer for lower-subreg
5840 pass.
5841 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
5842 (default_target_lower_subreg): New variable.
5843 (this_target_lower_subreg): Likewise.
5844 (twice_word_mode, choices): New macros.
5845 (shift_cost, compute_splitting_shift, compute_costs)
5846 (init_lower_subreg): New functions.
5847 (resolve_simple_move): Add speed_p argument. Check choices.
5848 (find_pseudo_copy): Don't check the mode size here.
5849 (resolve_simple_move): Assert the mode size.
5850 (find_decomposable_shift_zext): Add speed_p argument and return
5851 a bool. Check choices.
5852 (resolve_shift_zext): Add comment.
5853 (dump_shift_choices, dump_choices): New functions.
5854 (decompose_multiword_subregs): Dump list of profitable
5855 transformations. Add code to skip non profitable transformations.
5856 Update calls to simple_move and find_decomposable_shift_zext.
5857
5858 2012-05-01 Ian Bolton <ian.bolton@arm.com>
5859 Sameera Deshpande <sameera.deshpande@arm.com>
5860 Greta Yorsh <greta.yorsh@arm.com>
5861
5862 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
5863 (thumb1_unexpanded_epilogue): ...this.
5864 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
5865 (thumb1_unexpanded_epilogue): ...this.
5866 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
5867 (thumb1_unexpanded_epilogue): ...this.
5868
5869 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
5870
5871 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
5872 comparing enumeration values. Update comments.
5873
5874 2012-05-01 Alan Modra <amodra@gmail.com>
5875
5876 PR target/53038
5877 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
5878 load_cr_save, add_crlr_cfa_restore): New functions.
5879 (rs6000_restore_saved_cr): Rename to..
5880 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
5881 (rs6000_emit_epilogue): Use new functions. Adjust condition
5882 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
5883 regs when using out-of-line restore only when shrink wrapping.
5884
5885 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
5886
5887 PR middle-end/53136
5888 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
5889 calls to cgraph_node_name in xstrdup.
5890 (ipa_make_edge_direct_to_target): Ditto.
5891 * cgraph.c (dump_cgraph_node): Ditto.
5892 * tree-sra.c (convert_callers_for_node): Ditto.
5893 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
5894 * ipa-cp.c (perhaps_add_new_callers): Ditto.
5895 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
5896 (cgraph_materialize_all_clones): Ditto.
5897 * ipa-inline.c (report_inline_failed_reason): Ditto.
5898 (want_early_inline_function_p): Ditto.
5899 (edge_badness): Ditto.
5900 (update_edge_key): Ditto.
5901 (flatten_function): Ditto.
5902 (ipa_inline): Ditto.
5903 (inline_always_inline_functions): Ditto.
5904 (early_inline_small_functions): Ditto.
5905
5906 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
5907
5908 PR target/53141
5909 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
5910 constraints 0 and 1.
5911
5912 012-04-30 Jan Hubicka <jh@suse.cz>
5913
5914 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
5915 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
5916 (cgraph_add_to_same_comdat_group): Remove.
5917 (cgraph_add_asm_node): Move to cgraphunit.c.
5918 (cgraph_make_decl_local): Move to symtab.c
5919 (cgraph_make_node_local_1): Update.
5920 (cgraph_can_remove_if_no_direct_calls_and): Update.
5921 (used_from_object_file_p): Update.
5922 (resolution_used_from_other_file_p): Move to symtab.c
5923 (cgraph_used_from_object_file_p): move to symtab.c
5924 (verify_cgraph_node): Verify same comdat groups.
5925 * cgraph.h (cgraph_asm_node): Rename to ...
5926 (asm_node): ... this one.
5927 (cgraph_asm_nodes): Rename to ...
5928 (asm_nodes): ... this one.
5929 (symtab_add_to_same_comdat_group): New function.
5930 (symtab_dissolve_same_comdat_group_list): New function.
5931 (symtab_used_from_object_file_p): Declare.
5932 (symtab_make_decl_local): Declare.
5933 (cgraph_add_to_same_comdat_group): Remove.
5934 (cgraph_add_asm_node): Remove.
5935 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
5936 Remove.
5937 (cgraph_finalize_compilation_unit): Rename to ...
5938 (finalize_compilation_unit): ... this one.
5939 (cgraph_optimize): Rename to ....
5940 (compile): ... this one.
5941 (add_asm_node): Declare.
5942 (fixup_same_cpp_alias_visibility): Declare.
5943 (cgraph_make_decl_local): Remove.
5944 (varpool_assemble_pending_decls): Rename to ...
5945 (varpool_output_variables): ... this one.
5946 (varpool_remove_unreferenced_decls): Remove.
5947 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
5948 (preserve_function_body_p): Make static.
5949 * toplev.c (compile_file): Update comments; update.
5950 * cgraphunit.c: Update comments.
5951 (cgraph_expand_all_functions): Rename to ...
5952 (expand_all_functions): ... this one; update.
5953 (cgraph_mark_functions_to_output): Rename to ...
5954 (mark_functions_to_output): ... this one; cleanup.
5955 (cgraph_output_pending_asms): Remove prototype.
5956 (asm_nodes, asm_last_node): New static vars.
5957 (cgraph_process_new_functions): Update.
5958 (cgraph_reset_node): Cleanup; add comment.
5959 (cgraph_add_new_function): Update.
5960 (cgraph_output_pending_asms): Rename to ...
5961 (output_asm_statements): ... this one.
5962 (add_asm_node): New function.
5963 (fixup_same_cpp_alias_visibility): New function based on code
5964 in cgraph_analyze_function.
5965 (cgraph_analyze_function): Use it.
5966 (cgraph_order_sort): Update.
5967 (cgraph_output_in_order): Update.
5968 (cgraph_function_versioning): Update.
5969 (cgraph_optimize): Rename to ...
5970 (compile): ... this one; initialize streamer hooks here.
5971 (cgraph_finalize_compilation_unit): Rename to ...
5972 (finalize_compilation_unit): ... this one; do not initialize streamer
5973 hook here.
5974 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
5975 * dwarf2out.c: Update ocmment.
5976 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
5977 * method.c (use_thunk): Likewise.
5978 * semantics.c (maybe_add_lambda_conv_op): Likewise.
5979 * decl2.c (maybe_emit_vtables): Likewise.
5980 (cp_write_global_declarations): Use finalize_compilation_unit.
5981 * parser.c (cp_parser_asm_definition): Use add_asm_node.
5982 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
5983 * c-decl.c (c_write_global_declarations): Use
5984 finalize_compilation_unit.
5985 * langhooks.c (write_global_declarations): Update.
5986 * ipa.c (cgraph_externally_visible_p): Update.
5987 (dissolve_same_comdat_group_list): Remove.
5988 (function_and_variable_visibility): Update.
5989 * symtab.c: Inlcude lto-streamer.h and rtl.h
5990 (ld_plugin_symbol_resolution_names): New.
5991 (symtab_add_to_same_comdat_group): New.
5992 (symtab_dissolve_same_comdat_group_list): New.
5993 (resolution_used_from_other_file_p): Move here from cgraph.c
5994 (symtab_used_from_object_file_p): New.
5995 (symtab_make_decl_local): New.
5996 * passes.c (register_pass): Update comments.
5997 * c-parser.c (c_parser_asm_definition): Update.
5998 * varpool.c (varpool_analyze_node): Use
5999 fixup_same_cpp_alias_visibility.
6000 (varpool_remove_unreferenced_decls): Make static.
6001 (varpool_assemble_pending_decls): Rename to ...
6002 (varpool_output_variables): ... this one; call
6003 varpool_remove_unreferenced_decls.
6004 (varpool_used_from_object_file_p): Remove.
6005
6006 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
6007
6008 PR c++/51033
6009 * c-typeck.c (build_array_ref): Call
6010 convert_vector_to_pointer_for_subscript.
6011 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
6012
6013 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
6014
6015 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
6016 to compile-time "mode == <MODE>mode" checks.
6017 (and splitter): Ditto.
6018
6019 2012-04-30 Richard Henderson <rth@redhat.com>
6020
6021 * config/arm/arm.md (UNSPEC_LL): New.
6022 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
6023 (arm_load_exclusivedi): Use %H0.
6024
6025 2012-04-30 Jason Merrill <jason@redhat.com>
6026
6027 * dwarf2out.c (comdat_symbol_id): Add const.
6028 (union die_symbol_or_type_node): Add const to die_symbol.
6029 (output_die_symbol, output_die, output_comp_unit): Adjust.
6030
6031 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
6032
6033 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
6034 * config/arm/neon.md (negdi2_neon): New insn.
6035 Also add splitters for core and NEON registers.
6036
6037 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
6038
6039 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
6040 (arm_print_operand): Add 'x' format.
6041 * config/arm/constraints.md (Dn): Allow const_int.
6042 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
6043 Use 'x' format to print constants.
6044 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
6045 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
6046 is enabled.
6047 (movdi_vfp_cortexa8): Likewise.
6048
6049 2012-04-30 Ian Bolton <ian.bolton@arm.com>
6050 Sameera Deshpande <sameera.deshpande@arm.com>
6051 Greta Yorsh <greta.yorsh@arm.com>
6052
6053 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
6054 * config/arm/arm.c (ldm_stm_operation_p): New function.
6055 * config/arm/predicates.md (load_multiple_operation): Update predicate.
6056 (store_multiple_operation): Likewise.
6057
6058 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
6059 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
6060 * config/arm/predicates.md (load_multiple_operation): Add arguments.
6061 (store_multiple_operation): Likewise.
6062
6063 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
6064
6065 * config/i386/i386.md (and<mode>3): Expand masking operations with
6066 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
6067 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
6068
6069 2012-04-30 Dodji Seketeli <dodji@redhat.com>
6070
6071 Add -Wvarargs option
6072 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
6073 argument for the various warning_at calls.
6074 * docs/invoke.texi: Update the documentation.
6075
6076 2012-04-30 Dodji Seketeli <dodji@redhat.com>
6077
6078 Switch -ftrack-macro-expansion=2 on by default.
6079 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
6080 by default.
6081
6082 Fix va_start related location
6083 * builtins.c (fold_builtin_next_arg): Unwinds to the first
6084 location in real source code.
6085
6086 Make conversion warnings work on NULL with -ftrack-macro-expansion
6087 * input.h (expansion_point_location_if_in_system_header): Declare
6088 new function.
6089 * input.c (expansion_point_location_if_in_system_header): Define it.
6090
6091 Fix -Wuninitialized for -ftrack-macro-expansion
6092 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
6093 declaration. Use linemap_location_before_p for source locations.
6094
6095 Strip "<built-in>" loc from displayed expansion context
6096 * input.c (expand_location_1): When expanding to spelling location
6097 in a context of a macro expansion, skip reserved system header
6098 locations. Update comments. * tree-diagnostic.c
6099 (maybe_unwind_expanded_macro_loc): Likewise.
6100
6101 Make expand_location resolve to locus in main source file
6102 * input.c (expand_location_1): New. Takes a parameter to choose
6103 whether to resolve the location to spelling or expansion point.
6104 Was factorized from ...
6105 (expand_location): ... here.
6106 (expand_location_to_spelling_point): New. Implemented in terms of
6107 expand_location_1.
6108 * diagnostic.c (diagnostic_build_prefix): Use the new
6109 expand_location_to_spelling_point instead of expand_location.
6110
6111 Fix PCH crash on GTYed pointer-to-scalar field of a struct
6112 * gengtype.c (write_types_process_field): Force second argument of
6113 the call to the PCH object hierarchy walker to be 'x'.
6114
6115 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
6116
6117 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
6118 predicate to discriminate types.
6119
6120 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6121
6122 * doc/invoke.texi (Wmissing-format-attribute): Document as an
6123 alias of Wsuggest-attribute=format.
6124 * c-typeck.c (convert_for_assignment): Replace
6125 Wmissing-format-attribute with Wsuggest-attribute=format.
6126 (digest_init): Likewise.
6127
6128 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6129
6130 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
6131 * common.opt (Wmissing-noreturn): Alias of
6132 -Wsuggest-attribute=noreturn.
6133
6134 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
6135
6136 PR target/53156
6137 * config/cris/cris.md (andqu): New peephole2.
6138 (andu): Tweak head comment.
6139
6140 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6141 Steven Bosscher <steven@gcc.gnu.org>
6142 Maxim Kuvyrkov <maxim@codesourcery.com>
6143
6144 PR tree-optimization/38785
6145 * common.opt (ftree-partial-pre): New option.
6146 * doc/invoke.texi: Document it.
6147 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
6148 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
6149 benefit speed path.
6150 (execute_pre): Use flag_tree_partial_pre.
6151
6152 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6153
6154 PR target/52999
6155 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
6156 in constant pool.
6157
6158 2012-04-27 Ollie Wild <aaw@google.com>
6159
6160 * doc/invoke.texi (Wliteral-suffix): Document new option.
6161
6162 2012-04-27 Tom Tromey <tromey@redhat.com>
6163
6164 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
6165 (dwarf_tag_name): Use get_DW_TAG_name.
6166 (dwarf_attr_name): Use get_DW_AT_name.
6167 (dwarf_form_name): Use get_DW_FORM_name.
6168 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
6169
6170 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
6171
6172 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
6173 arguments are -1 and 0, by negating the result of the conditional.
6174
6175 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
6176
6177 PR target/53138
6178 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
6179
6180 2012-04-27 Richard Guenther <rguenther@suse.de>
6181
6182 * tree-flow.h (is_hidden_global_store): Remove.
6183 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
6184 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
6185 (stmt_may_clobber_global_p): Likewise.
6186 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
6187 (stmt_may_clobber_global_p): Likewise.
6188 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
6189 stmt_may_clobber_global_p.
6190 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
6191
6192 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
6193
6194 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
6195 place.
6196
6197 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
6198 reorganize some fields and update comments. Rename bit_test_uniq
6199 and bit_test_count to uniq resp. count. Remove bit_test_bb.
6200 (collect_switch_conv_info): New function, collects info about a
6201 GIMPLE_SWITCH into a struct switch_conv_info.
6202 (check_range): Simplify to use pre-recorded info. Fix think-o in
6203 range-branch ratio check.
6204 (check_process_case): Remove function.
6205 (check_all_empty_except_final): New function, verifies that all
6206 non-final basic blocks are empty.
6207 (process_switch): Simplify to use pre-recorded info. Call
6208 collect_switch_conv_info to do that. Assert that degenerate switch
6209 statements have been cleaned up.
6210
6211 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
6212
6213 PR middle-end/27139
6214 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
6215
6216 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6217
6218 PR c/53130
6219 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
6220
6221 2012-04-27 Tom de Vries <tom@codesourcery.com>
6222
6223 PR tree-optimization/51879
6224 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
6225 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
6226 of ...
6227 (defs_to_varying): ... here. Don't set use_processed.
6228 (visit_reference_op_call): Handle gimple_vdef.
6229 Handle case that lhs is NULL_TREE.
6230 (visit_use): Use mark_use_processed. Handle calls with side-effect
6231 using visit_reference_op_call.
6232
6233 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
6234
6235 * sched-deps.c (fixup_sched_groups): Rename to...
6236 (chain_to_prev_insn): ...this.
6237 (chain_to_prev_insn_p): New function.
6238 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
6239
6240 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
6241
6242 * sched-int.h (_haifa_insn_data): Move priority_status.
6243 Add model_index.
6244 (INSN_MODEL_INDEX): New macro.
6245 * haifa-sched.c (insn_delay): New function.
6246 (sched_regno_pressure_class): Update commentary.
6247 (mark_regno_birth_or_death): Pass the liveness bitmap and
6248 pressure array as arguments, instead of using curr_reg_live and
6249 curr_reg_pressure. Only update the pressure if the bit in the
6250 liveness set has changed.
6251 (initiate_reg_pressure_info): Always trust the live-in set for
6252 SCHED_PRESSURE_MODEL.
6253 (initiate_bb_reg_pressure_info): Update call to
6254 mark_regno_birth_or_death.
6255 (dep_list_size): Take the list as argument.
6256 (calculate_reg_deaths): New function, extracted from...
6257 (setup_insn_reg_pressure_info): ...here.
6258 (MODEL_BAR): New macro.
6259 (model_pressure_data, model_insn_info, model_pressure_limit)
6260 (model_pressure_group): New structures.
6261 (model_schedule, model_worklist, model_insns, model_num_insns)
6262 (model_curr_point, model_before_pressure, model_next_priority):
6263 New variables.
6264 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
6265 (MODEL_INSN_INFO, MODEL_INSN): New macros.
6266 (model_index, model_update_limit_points_in_group): New functions.
6267 (model_update_limit_points, model_last_use_except): Likewise.
6268 (model_start_update_pressure, model_update_pressure): Likewise.
6269 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
6270 (model_excess_cost, model_dump_pressure_points): Likewise.
6271 (model_set_excess_costs): Likewise.
6272 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
6273 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
6274 schedule as an alternative tie-breaker. Update the call to
6275 dep_list_size.
6276 (ready_sort): Call model_set_excess_costs.
6277 (update_register_pressure): Update call to mark_regno_birth_or_death.
6278 Rely on that function to check liveness rather than doing it here.
6279 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
6280 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
6281 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
6282 (model_record_pressure, model_record_pressures): New functions.
6283 (model_record_final_pressures, model_add_successors_to_worklist)
6284 (model_promote_predecessors, model_choose_insn): Likewise.
6285 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
6286 (model_start_schedule, model_finalize_pressure_group): Likewise.
6287 (model_end_schedule): Likewise.
6288 (schedule_insn): Say when we're scheduling the next instruction
6289 in the model schedule.
6290 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
6291 (queue_to_ready): Do not add instructions that are
6292 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
6293 Always allow the next instruction in the model schedule to be added.
6294 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
6295 and delay for SCHED_PRESSURE_MODEL too.
6296 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
6297 SCHED_PRIORITY_MODEL, but also take the DFA into account.
6298 (schedule_block): Call model_start_schedule and model_end_schedule.
6299 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
6300 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
6301 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
6302 region_ref_regs.
6303 (sched_finish): Update accordingly.
6304 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
6305 to SCHED_PRESSURE_MODEL.
6306 (add_jump_dependencies): Update call to dep_list_size.
6307 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
6308 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
6309 to SCHED_PRESSURE_MODEL.
6310 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
6311 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
6312 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
6313 handling to SCHED_PRESSURE_MODEL.
6314
6315 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
6316
6317 * common.opt (fsched-pressure-algorithm=): New option.
6318 * flag-types.h (sched_pressure_algorithm): New enum.
6319 * sched-int.h (sched_pressure_p): Replace with...
6320 (sched_pressure): ...this new variable.
6321 * haifa-sched.c (sched_pressure_p): Replace with...
6322 (sched_pressure): ...this new variable.
6323 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
6324 (update_reg_and_insn_max_reg_pressure, schedule_insn)
6325 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
6326 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
6327 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
6328 (sched_analyze_insn): Likewise.
6329 * sched-rgn.c (schedule_region): Likewise.
6330 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
6331
6332 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
6333
6334 * PR middle-end/52997
6335 * ira.c (find_moveable_pseudos): Call resize_reg_info.
6336
6337 PR middle-end/52940
6338 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
6339 * expr.c (convert_move): Honor unsignedp when extending partial int
6340 modes.
6341 * genmodes.c (complete_mode): Don't clear component field of partial
6342 int modes.
6343 (emit_mode_inner): Don't emit it however.
6344 (calc_wider_mode): Partial int modes widen to their component.
6345
6346 2012-04-26 David S. Miller <davem@davemloft.net>
6347
6348 * config/sparc/niagara4.md: New file.
6349 * config/sparc/sparc.md: Include it.
6350 * config/sparc/sparc.c (niagara4_costs): New processor costs.
6351 (sparc_option_override): Use it.
6352 (sparc_use_sched_lookahead): Return 2 for niagara4.
6353 (sparc_issue_rate): Likewise.
6354
6355 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
6356 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
6357 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
6358 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
6359 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
6360 alignaddrldi_vis): Set type to gsr.
6361 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
6362 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
6363 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
6364 v<vis3_shift_patname><mode>3, fmean16_vis,
6365 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
6366 fucmp<code>8<P:mode>_vis): Set type to fga.
6367 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
6368 * config/sparc/niagara.md: Likewise.
6369 * config/sparc/niagara2.md: Likewise.
6370 * config/sparc/ultra3.md: Likewise, and fix type matching for
6371 us3_ialuX reservation.
6372
6373 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6374
6375 * reload.c (find_reloads): Change the loop nesting when trying an
6376 alternative with swapped operands.
6377
6378 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6379
6380 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
6381 comment. Delete unused parameter first_exp_point_map.
6382 (virt_loc_aware_diagnostic_finalizer): Update call.
6383
6384 2012-04-26 Michael Hope <michael.hope@linaro.org>
6385 Richard Earnshaw <rearnsha@arm.com>
6386
6387 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
6388 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
6389 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
6390 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
6391
6392 2012-04-25 Sriraman Tallam <tmsriram@google.com>
6393
6394 * doc/extend.texi: Document avx2 support.
6395 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
6396
6397 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
6398
6399 PR target/53120
6400 * config/cris/cris.md ("*andhi_lowpart_v32")
6401 ("*andqi_lowpart_v32"): Change first input-only operand from
6402 a (match_operand ...) to (match_dup 0). Drop alternatives with
6403 const_int-matching constraints for redundancy.
6404 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
6405 three-operand alternative.
6406
6407 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6408
6409 PR target/53110
6410 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
6411 instead expand it as zero extension.
6412
6413 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
6414
6415 PR debug/52857
6416 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
6417
6418 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6419
6420 * common.opt (flag_debug_types_section): Default to 0.
6421 (dwarf_version): Default to 4.
6422 (dwarf_record_gcc_switches): Default to 1.
6423 (dwarf_strict): Default to 0.
6424 * toplev.c (process_options): Don't handle dwarf_strict
6425 or dwarf_version here.
6426 * config/vxworks.c (vxworks_override_options): Don't
6427 test whether dwarf_strict or dwarf_version are negative,
6428 instead test !global_options_set.x_dwarf_*.
6429 * config/darwin.c (darwin_override_options): Default to
6430 dwarf_version 2.
6431 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
6432 and -fno-debug-types-section are now the default.
6433
6434 2012-04-25 Jan Hubicka <jh@suse.cz>
6435
6436 * cgraphunit.c: Update toplevel comment.
6437 (tree_rest_of_compilation): Merge into cgraph_expand_function.
6438 (cgraph_analyze_function): Make static.
6439 (cgraph_decide_is_function_needed): Make static.
6440 (cgraph_add_new_function): Use expand_function instead of
6441 rest_of_compilation.
6442 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6443 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6444 Move to cgraph.c
6445 (cgraph_inline_p): Remove.
6446 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
6447 (init_cgraph): Add comment.
6448 * cgraphbuild.c (record_reference, mark_address, mark_load,
6449 mark_store): Do not call analyze_expr hook.
6450 * cgraph.c: Update toplevel comment.
6451 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6452 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6453 Move fere from cgraphunit.c
6454 (cgraph_mark_force_output_node): Move to cgraph.h
6455 * cgraph.h: Reorder so the comments match the function placement.
6456 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
6457 (cgraph_mark_force_output_node): Move here from cgraph.c
6458 * tree.c (free_lang_data): Do not clear analyze_expr hook.
6459 * ipa-inline-transform.c (preserve_function_body_p): New function.
6460 (inline_transform): Update.
6461 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
6462 * langhooks.h (lang_hooks_for_callgraph): Remove.
6463 (lang_hooks): Remove callgraph.
6464 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
6465 * varpool.c: Remove out of date comment.
6466 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
6467 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
6468
6469 2012-04-25 Jan Hubicka <jh@suse.cz>
6470
6471 PR middle-end/53089
6472 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
6473 forward declaration.
6474 (cgraph_finalize_function): Finalize them here.
6475 * symtab.c (dump_symtab): Dump ctors and dtors.
6476
6477 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6478
6479 PR middle-end/52979
6480 * stor-layout.c (get_best_mode): Don't return mode with bitsize
6481 larger than maxbits. Don't compute maxbits modulo align.
6482 Also check that unit bytes long store at bitpos / unit * unit
6483 doesn't affect bits beyond bitregion_end.
6484 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
6485 would not fit into bitregion_start ... bitregion_end + 1 bit region.
6486 (store_split_bit_field): Decrease unit close to end of bitregion_end
6487 if access is restricted in order to avoid mutual recursion.
6488
6489 PR tree-optimization/53058
6490 * double-int.h (double_int_max_value, double_int_min_value): New
6491 prototypes.
6492 * double-int.c (double_int_max_value, double_int_min_value): New
6493 functions.
6494 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
6495 or GT_EXPR with double_int_max_value instead of double_int_mask.
6496
6497 2012-04-25 Richard Guenther <rguenther@suse.de>
6498
6499 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6500 * tree-vect-loop.c (vect_transform_loop): Adjust.
6501 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
6502 the maximum number of iterations for the epilogue loop.
6503 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
6504
6505 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6506
6507 PR c/52880
6508 * c-typeck.c (set_nonincremental_init,
6509 set_nonincremental_init_from_string): Pass true instead of false
6510 as IMPLICIT to add_pending_init.
6511
6512 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6513
6514 * c-typeck.c (pop_init_level): Improve diagnostics.
6515
6516 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
6517
6518 * compare-elim.c (try_eliminate_compare): Also handle operands with
6519 implicit extensions.
6520
6521 2012-04-25 Alan Modra <amodra@gmail.com>
6522
6523 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
6524 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
6525 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
6526 (no_global_regs_above): Delete.
6527 (no_global_regs): New function.
6528 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
6529 value for load multiple test.
6530 (savres_routine_syms): Increase size.
6531 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
6532 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
6533 rather than a number of boolean flags. Update all callers.
6534 (rs6000_savres_routine_name): Generate vector save/restore names.
6535 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
6536 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
6537 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
6538 and using_store_multiple. Expand uses. Don't always use r11 as
6539 frame reg when needed for out-of-line saves. Set up initial offset
6540 for out-of-line vector saves when buying stack frame. Handle pointer
6541 reg setup for out-of-line fp save. Emit call to out-of-line vector
6542 save function. Choose r11 or r12 for vrsave reg when available for
6543 better scheduling.
6544 (rs6000_output_function_prologue): Don't emit .extern for ELF.
6545 (rs6000_emit_epilogue): Choose a better frame reg when restoring
6546 from back-chain to suit out-of-line vector restore functions. Emit
6547 call to out-of-line vector restore function. Adjust register used
6548 for cr restore. Tweak pointer register setup for gpr restore.
6549 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
6550 FIXED_R13.
6551 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
6552 (V_SAVE_INLINE): Define.
6553 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
6554
6555 2012-04-25 Alan Modra <amodra@gmail.com>
6556
6557 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
6558 out-of-line save/restore for large frames. Don't disable
6559 out-of-line saves on ABI_AIX when using static chain reg.
6560 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
6561 clobber static chain reg, and tweak for out-of-line gpr saves
6562 that use r1.
6563
6564 2012-04-25 Alan Modra <amodra@gmail.com>
6565
6566 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
6567 (rs6000_emit_prologue): Use the above to catch register overlap.
6568
6569 2012-04-25 Alan Modra <amodra@gmail.com>
6570
6571 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
6572 decl. Move logic selecting update reg to callers. Update all callers.
6573 (rs6000_emit_allocate_stack): Add copy_off param.
6574 (emit_frame_save): Don't handle reg+reg addressing.
6575 (ptr_regno_for_savres): New function, extracted from..
6576 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
6577 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
6578 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
6579 frame offset adjustment for out-of-line save with copy from sp.
6580 Simplify condition controlling whether cr is saved early or
6581 late. Use ptr_regno_for_savres to verify correct reg is set
6582 up for out-of-line saves. Pass the actual pointer reg used to
6583 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
6584 function. Rearrange spe vars so code is similar to that
6585 elsewhere in this function. Don't update frame_off when spe
6586 save code will restore r11. Use emit_frame_save for spe and
6587 gpr saves. Consolidate darwin out-of-line gpr setup with that
6588 for other abis. Don't assume frame_offset is zero and frame
6589 reg is sp when setting up altivec reg saves, and calculate
6590 exact offset requirement.
6591 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
6592 spe restore code. Consolidate darwin out-of-line gpr setup
6593 with that for other abis.
6594
6595 2012-04-25 Alan Modra <amodra@gmail.com>
6596
6597 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
6598 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
6599 the replacement.
6600 (emit_frame_save): Delete frame_ptr param. Rename total_size to
6601 frame_reg_to_sp.
6602 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
6603 and emit_frame_save calls. Cope with possibly missing note.
6604
6605 2012-04-24 Sriraman Tallam <tmsriram@google.com>
6606
6607 * config/i386/i386.c (build_processor_model_struct): New function.
6608 (make_var_decl): New function.
6609 (fold_builtin_cpu): New function.
6610 (ix86_fold_builtin): New function.
6611 (make_cpu_type_builtin): New function.
6612 (ix86_init_platform_type_builtins): New function.
6613 (ix86_expand_builtin): Expand new builtins by folding them.
6614 (ix86_init_builtins): Make new builtins to detect CPU type.
6615 (TARGET_FOLD_BUILTIN): New macro.
6616 (IX86_BUILTIN_CPU_INIT): New enum value.
6617 (IX86_BUILTIN_CPU_IS): New enum value.
6618 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
6619 * config/i386/i386-builtin-types.def: New function type.
6620 * testsuite/gcc.target/builtin_target.c: New testcase.
6621 * doc/extend.texi: Document builtins.
6622
6623 2012-04-24 Olivier Hainque <hainque@adacore.com>
6624
6625 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
6626 * toplev.c (process_options): Default to dwarf_version 2.
6627 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
6628 and dwarf_version 2.
6629
6630 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6631
6632 * tree-pretty-print.h (default_tree_printer): Do not declare.
6633 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
6634 intl.h.
6635 (default_tree_diagnostic_starter): Make static.
6636 (default_tree_printer): Move to here. Make static.
6637 (tree_diagnostics_defaults): New.
6638 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
6639 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
6640 * toplev.c: Do not include tree-pass.h.
6641 (default_tree_printer): Move from here.
6642 (general_init): Use tree_diagnostics_defaults.
6643
6644 2012-04-24 Chao-ying Fu <fu@mips.com>
6645
6646 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
6647 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
6648 * config/mips/gnu-user.h
6649 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
6650 (GNU_USER_TARGET_LINK_SPEC): New define.
6651 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6652 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
6653 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
6654 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
6655 GNU_USER_TARGET_ENDFILE_SPEC.
6656 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
6657 (GNU_USER_TARGET_LINK_SPEC): New define.
6658 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6659 * config/mips/linux-common.h: New file.
6660
6661 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6662
6663 PR target/47197
6664 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
6665 (altivec_build_resolved_builtin): Call fully_fold_convert.
6666
6667 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
6668
6669 PR target/53065
6670 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
6671
6672 2012-04-24 Richard Guenther <rguenther@suse.de>
6673
6674 PR tree-optimization/53085
6675 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
6676 stores.
6677
6678 2012-04-24 Richard Guenther <rguenther@suse.de>
6679
6680 * tree-if-conv.c (main_tree_if_conversion): Move bb under
6681 ENABLE_CHECKING.
6682
6683 2012-04-24 Jim Meyering <meyering@redhat.com>
6684
6685 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
6686 absence of an define_enum call.
6687
6688 2012-04-24 Richard Guenther <rguenther@suse.de>
6689
6690 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
6691 the epilogue loop is not re-used as unvectorized version
6692 record the its maximum number of iterations.
6693
6694 2012-04-24 Andrew Pinski <apinski@cavium.com>
6695
6696 * tree-ssa-forwprop.c (simplify_bitwise_binary):
6697 Don't directly use def1/def2.
6698
6699 2012-04-24 Richard Guenther <rguenther@suse.de>
6700
6701 PR tree-optimization/53098
6702 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
6703 comparison sign.
6704
6705 2012-04-24 Andrew Pinski <apinski@cavium.com>
6706
6707 PR tree-opt/33512
6708 * tree-ssa-forwprop.c (defcodefor_name): New function.
6709 (simplify_bitwise_binary): Use defcodefor_name instead of manually
6710 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
6711 Simplify "(~X | Y) & X" to "X & Y" and
6712 "(~X & Y) | X" to "X | Y".
6713
6714 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6715
6716 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
6717 validate_change to add clobbers if IN_GROUP is nonzero.
6718 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
6719 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
6720 prototype.
6721 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
6722 set to false.
6723 * config/s390/s390.c (insn_invalid_p): Likewise.
6724
6725 2012-04-24 Jakub Jelinek <jakub@redhat.com>
6726
6727 PR middle-end/53084
6728 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
6729 (output_addressed_constants): Likewise.
6730
6731 PR middle-end/52999
6732 * varasm.c (get_section): Don't ICE for section conflicts with
6733 built-in section kinds.
6734
6735 2012-04-23 DJ Delorie <dj@redhat.com>
6736
6737 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
6738 (LIBSTDCXX): Change to CPP2.
6739
6740 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
6741
6742 PR bootstrap/52878
6743 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
6744 extra_masks.
6745
6746 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
6747
6748 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
6749 (*addsi_2_zext): Ditto.
6750 (*add<mode>_3): Ditto.
6751 (*addsi_3_zext): Ditto.
6752 (*add<mode>_5): Ditto.
6753
6754 2012-04-23 Andrew Pinski <apinski@cavium.com>
6755
6756 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
6757 (C & B) to (A OP0) & B.
6758
6759 2012-04-23 Martin Jambor <mjambor@suse.cz>
6760
6761 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
6762 temporaries created for a bitfield (reverting revision 122014).
6763
6764 2012-04-23 Richard Guenther <rguenther@suse.de>
6765
6766 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
6767 the condition using is_gimple_condexpr and avoid the not necessary
6768 boolification.
6769 (set_prologue_iterations): Likewise.
6770 (vect_loop_versioning): Likewise.
6771
6772 2012-04-23 Richard Guenther <rguenther@suse.de>
6773
6774 PR tree-optimization/53070
6775 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
6776 (main_tree_if_conversion): Verify we succeeded in that.
6777
6778 2012-04-23 Jan Hubicka <jh@suse.cz>
6779
6780 * lto-symtab.c (lto_cgraph_replace_node): Do not call
6781 mark_reahcable_node.
6782 * cgraph.c (cgraph_remove_node): Do not clear reachable.
6783 (cgraph_mark_reachable_node): Remove.
6784 (cgraph_mark_force_output_node): Do not set reachable.
6785 (dump_cgraph_node): Do not dump reachable.
6786 (cgraph_create_virtual_clone): Do not set reachable.
6787 * cgraph.h (cgraph_node): Remove reachable flag.
6788 (varpool_node): Remove reachable flag.
6789 (cgraph_mark_if_needed): Remove.
6790 (cgraph_mark_reachable_node): Remove.
6791 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
6792 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
6793 reachable.
6794 (cgraph_add_new_function): Likewise.
6795 (cgraph_mark_if_needed): Remove.
6796 (cgraph_analyze_function): Do not set target as reachable.
6797 (process_function_and_variable_attributes): Do not care about
6798 dllexport.
6799 (cgraph_analyze_functions): Do not set reachable flags.
6800 (cgraph_mark_functions_to_output): Do not check reachability.
6801 (cgraph_copy_node_for_versioning): Do not set reachable flag.
6802 (dbxout_expand_expr): Update.
6803 * c-decl.c (merge_decls): Do not track changed externs.
6804 * ipa.c: Include pointer-set.h
6805 (enqueue_cgraph_node): Use reachable pointer set.
6806 (process_references): Likewise.
6807 (cgraph_remove_unreachable_nodes): Likewise.
6808 (whole_program_function_and_variable_visibility): Do not recompute
6809 reachable.
6810 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
6811
6812 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
6813
6814 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
6815
6816 2012-04-23 Richard Guenther <rguenther@suse.de>
6817
6818 PR c/53060
6819 * c-typeck.c (build_binary_op): Fix typo.
6820
6821 2012-04-23 Jakub Jelinek <jakub@redhat.com>
6822
6823 PR tree-optimizations/52891
6824 * tree-vect-patterns.c (adjust_bool_pattern): Use
6825 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
6826 but with non-standard precision.
6827
6828 2012-04-22 Jan Hubicka <jh@suse.cz>
6829
6830 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
6831 tree refs.
6832
6833 2012-04-22 Jan Hubicka <jh@suse.cz>
6834
6835 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
6836 * cgraphbuild.c (record_reference, record_type_list, mark_address,
6837 mark_load, mark_store): Do not mark varpool nodes as needed.
6838 * cgraph.c (cgraph_new_nodes): Remove.
6839 (cgraph_create_function_alias): Do not mark nodes as reachable.
6840 (cgraph_add_thunk): Likewise.
6841 (cgraph_mark_reachable_node): Do not manage the queue.
6842 * cgraph.h (cgraph_node): Remove next_needed.
6843 (varpool_nodes_queue): Remove next_needed and prev_needed.
6844 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
6845 (cgraph_new_nodes): Declare.
6846 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
6847 (varpool_analyze_pending_decls): Remove.
6848 (varpool_analyze_node): New.
6849 (varpool_mark_needed_node): Remove.
6850 (varpool_first_variable, varpool_next_variable): New inlines.
6851 (varpool_first_static_initializer, varpool_next_static_initializer):
6852 Update.
6853 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
6854 (varpool_first_defined_variable): New inline.
6855 (varpool_next_defined_variable): New inline
6856 (FOR_EACH_VARIABLE): Reimplement.
6857 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
6858 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
6859 needed flag.
6860 * cgraphunit.c (cgraph_new_nodes): Declare here.
6861 (enqueue_node): New function.
6862 (cgraph_process_new_functions): update for new
6863 node set; when constructing cgraph enqueue node for processing.
6864 (cgraph_add_new_function): Use new node set.
6865 (process_function_and_variable_attributes): Do not set varpool needed
6866 flags.
6867 (referred_to_p): New function.
6868 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
6869 when varpool is in construction.
6870 (cgraph_analyze_functions): Rewrite.
6871 (cgraph_expand_all_functions): Update.
6872 (cgraph_output_in_order): Do not analyze pending decls; do not set
6873 needed flags.
6874 (cgraph_optimize): Do not analyze pending decls.
6875 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
6876 in other partition; do not mark node as needed.
6877 * dwarf2out.c (reference_to_unused): Use analyzed flag.
6878 (premark_types_used_by_global_vars_helper): Likewise.
6879 * ipa.c (process_references): Do not call varpool_mark_needed_node.
6880 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
6881 cgrpah queues.
6882 (function_and_variable_visibility): Do not mark node as needed.
6883 (whole_program_function_and_variable_visibility): Likewise.
6884 * Makefile.in (gt-varpool.h): No longer needed.
6885 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
6886 (ipa_write_summaries): Do not use needed flag.
6887 * varpool.c: Do not include gt-varpool.h
6888 (x_varpool_nodes_queue, x_varpool_last_needed_node,
6889 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
6890 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
6891 Remove.
6892 (varpool_remove_node): Do not update the lists.
6893 (dump_varpool_node): Do not dump needed flag.
6894 (varpool_enqueue_needed_node): Remove.
6895 (varpool_mark_needed_node): Remove.
6896 (varpool_reset_queue): Remove.
6897 (varpool_finalize_decl): Move to cgraphunit.c
6898 (varpool_analyze_node): New functions based on former
6899 varpool_analyze_pending_decls.
6900 (varpool_analyze_pending_decls): Remove.
6901 (varpool_assemble_decl): Do not update the lists.
6902 (enqueue_node): New function.
6903 (varpool_remove_unreferenced_decls): Rewrite.
6904 (varpool_empty_needed_queue): Remove.
6905 (add_new_static_var): Do not mark node as needed.
6906 (varpool_create_variable_alias): Handle expansion state
6907 creation.
6908 * except.c (output_ttype): Do not mark node as needed.
6909 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
6910 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
6911 Likewise.
6912 * tree-switch-conversion.c (build_one_array): Likewise.
6913
6914 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6915
6916 PR c/44774
6917 * doc/invoke.texi (pedantic): Rename to Wpedantic.
6918 * common.opt (Wpedantic): New.
6919 (pedantic): Alias Wpedantic.
6920 * diagnostic.c (warning_at): Likewise.
6921 * c-decl.c (diagnose_mismatched_decls): Likewise.
6922 (build_array_declarator): Likewise.
6923 (mark_forward_parm_decls):
6924 (check_bitfield_type_and_width): Likewise.
6925 (grokdeclarator): Likewise.
6926 (grokfield): Likewise.
6927 (finish_struct): Likewise.
6928 (build_enumerator): Likewise.
6929 (store_parm_decls_oldstyle): Likewise.
6930 (declspecs_add_qual): Likewise.
6931 (declspecs_add_type): Likewise.
6932 (finish_declspecs): Likewise.
6933 * c-typeck.c (composite_type): Likewise.
6934 (comp_target_types): Likewise.
6935 (build_array_ref): Likewise.
6936 (pointer_diff): Likewise.
6937 (build_unary_op): Likewise.
6938 (build_conditional_expr): Likewise.
6939 (build_c_cast): Likewise.
6940 (convert_for_assignment): Likewise.
6941 (maybe_warn_string_init): Likewise.
6942 (digest_init): Likewise.
6943 (pop_init_level): Likewise.
6944 (set_init_index): Likewise.
6945 (c_finish_goto_label): Likewise.
6946 (c_finish_return): Likewise.
6947 (do_case): Likewise.
6948 (build_binary_op): Likewise.
6949 * c-parser.c (static): Likewise.
6950 (c_parser_external_declaration): Likewise.
6951 (c_parser_declaration_or_fndef): Likewise.
6952 (c_parser_static_assert_declaration_no_se): Likewise.
6953 (c_parser_enum_specifier): Likewise.
6954 (c_parser_struct_or_union_specifier): Likewise.
6955 (c_parser_struct_declaration): Likewise.
6956 (c_parser_alignas_specifier): Likewise.
6957 (c_parser_braced_init): Likewise.
6958 (c_parser_initelt): Likewise.
6959 (c_parser_compound_statement_nostart): Likewise.
6960 (c_parser_conditional_expression): Likewise.
6961 (c_parser_alignof_expression): Likewise.
6962 (c_parser_postfix_expression): Likewise.
6963 (c_parser_postfix_expression_after_paren_): Likewise.
6964 (c_parser_objc_class_instance_variables): Likewise.
6965 (c_parser_objc_method_definition): Likewise.
6966 (c_parser_objc_methodprotolist): Likewise.
6967
6968 2012-04-22 Ian Lance Taylor <iant@google.com>
6969
6970 * godump.c (go_output_typedef): Dump size of structs.
6971
6972 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
6973
6974 Correcting transform_to_exit_first_loop + fix to PR46886
6975 * tree-parloops.c (transform_to_exit_first_loop): Remove
6976 setting of number of iterations according to the loop pattern.
6977 Duplicate from entry to exit->src instead of loop->latch.
6978 (pallelize_loops): Remove the condition preventing do-while loops.
6979 * tree-cfg.c (bool bb_in_region_p): New.
6980 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
6981 Adjust redirection of the duplicated iteration.
6982
6983 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
6984
6985 PR bootstrap/53021
6986 * rtl.def (ADDRESS): Use "i" rather than "w".
6987 * rtl.h (find_base_term): Delete.
6988 (may_be_sp_based_p): Declare.
6989 * rtl.c (rtx_code_size): Remove ADDRESS special case.
6990 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
6991 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
6992 * alias.c: ...here.
6993 (find_base_term): Make static.
6994 (may_be_sp_based_p): New function.
6995 * dse.c (record_store): Use it.
6996 * store-motion.c (store_killed_in_insn): Likewise.
6997
6998 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
6999
7000 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
7001
7002 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7003
7004 PR 35441
7005 * c-typeck.c (inform_declaration): New.
7006 (build_function_call_vec): Do not pretty-print
7007 expressions when caret is enabled.
7008 (convert_arguments): Use inform_declaration.
7009
7010 2012-04-20 Jim Meyering <meyering@redhat.com>
7011
7012 * genmodes.c (make_complex_modes): Don't truncate a mode name of
7013 length 7 or more when prepending a "C". Suggested by Richard Guenther.
7014
7015 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7016
7017 PR rtl-optimization/44214
7018 * fold-const.c (exact_inverse): New function.
7019 (fold_binary_loc): Fold vector and complex division by constant into
7020 multiply by recripocal with flag_reciprocal_math; fold vector division
7021 by constant into multiply by reciprocal with exact inverse.
7022
7023 2012-04-20 Jan Hubicka <jh@suse.cz>
7024
7025 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
7026 force flags.
7027 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
7028 (cgraph_remove_node): Update.
7029 (cgraph_mark_needed_node): Remove.
7030 (cgraph_mark_force_output_node): New.
7031 (dump_cgraph_node): Do not dump needed flag.
7032 (cgraph_node_cannot_be_local_p_1): Update.
7033 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
7034 * cgraph.h (symtab_node_base): Add force_output flag.
7035 (cgraph_node): Remove needed flag.
7036 (varpool_node): Remove force_output flag.
7037 (cgraph_mark_needed_node): Remove.
7038 (cgraph_mark_force_output_node): New.
7039 (cgraph_only_called_directly_or_aliased_p,
7040 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
7041 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
7042 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
7043 (cgraph_add_new_function): Update.
7044 (cgraph_mark_if_needed): Update.
7045 (verify_cgraph_node): Update.
7046 (cgraph_analyze_function): Alias target is reachable.
7047 (process_function_and_variable_attributes): Update: externally_visible
7048 flag makes function reachable.
7049 (cgraph_analyze_functions): Update dumping.
7050 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7051 input_overwrite_node, input_varpool_node): Update streaming.
7052 * lto-streamer-out.c (produce_symtab): Use force_output.
7053 * ipa.c (process_references): Weakrefs must be processed.
7054 (cgraph_remove_unreachable_nodes): Likewise; update for new
7055 force_output flag.
7056 (varpool_externally_visible_p): Weakrefs are externally visible
7057 even if they are not.
7058 (function_and_variable_visibility): Update; when processing alias
7059 pair force the targets to be output.
7060 (whole_program_function_and_variable_visility): Use
7061 mark_reachable_node.
7062 * trans-mem.c (ipa_tm_mark_needed_node): Remove
7063 (ipa_tm_mark_force_output_node): New function.
7064 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
7065 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
7066 aliases.
7067 * varasm.c (mark_decl_referenced): Update.
7068 (find_decl_and_mark_needed): Remove.
7069 (find_decl): New function.
7070 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
7071 alias targets as needed.
7072 (dump_tm_clone_pairs): Update.
7073 * tree-inline.c (copy_bb): Update check.
7074 * symtab.c (dump_symtab_base): Dump force_output.
7075 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
7076 * passes.c (execute_todo): Fix dumping.
7077 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
7078 (varpool_analyze_pending_decls): Alias target is reachable.
7079 (varpool_create_variable_alias): Finalize weakrefs.
7080
7081 2012-04-20 Jakub Jelinek <jakub@redhat.com>
7082
7083 PR bootstrap/53021
7084 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
7085 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
7086 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
7087 macros instead of constants.
7088 * dse.c (record_store): Check for SP ADDRESS by comparing
7089 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
7090 XEXP to be stack_pointer_rtx.
7091
7092 2012-04-20 Richard Guenther <rguenther@suse.de>
7093
7094 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
7095 update_call_from_tree when propagating into a call.
7096
7097 2012-04-20 Alan Modra <amodra@gmail.com>
7098
7099 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
7100 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
7101 sp_offset to frame_off. Move world save code earlier.
7102
7103 2012-04-20 Richard Guenther <rguenther@suse.de>
7104
7105 PR tree-optimization/53050
7106 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
7107 Do only one transform on COND_EXPRs at the same time.
7108
7109 2012-04-19 Jan Hubicka <jh@suse.cz>
7110
7111 * symtab.c (dump_symtab_base): Revert accidental checkin.
7112
7113 2012-04-20 Alan Modra <amodra@gmail.com>
7114
7115 PR target/53040
7116 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
7117 static chain, set REST_INLINE_FPRS too.
7118
7119 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
7120
7121 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
7122 nodes.
7123
7124 2012-04-20 Richard Guenther <rguenther@suse.de>
7125
7126 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
7127 loops that can never run more often than the vectorization factor.
7128
7129 2012-04-19 Jan Hubicka <jh@suse.cz>
7130
7131 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
7132
7133 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
7134
7135 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
7136
7137 2012-04-19 Jim Meyering <meyering@redhat.com>
7138
7139 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
7140 We verified above that the string(including trailing NUL) fits in buf,
7141 so just use memcpy.
7142
7143 2012-04-19 Richard Guenther <rguenther@suse.de>
7144
7145 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
7146 for dumping DECL_SECTION_NAME.
7147
7148 2012-04-19 Michael Matz <matz@suse.de>
7149
7150 PR middle-end/52977
7151 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
7152 (struct tree_vector): Adjust GTY length.
7153 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
7154
7155 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
7156 members.
7157 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
7158 caller emitted the length calulation already.
7159 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
7160 before handling any of the fields for structs.
7161
7162 2012-04-19 Richard Guenther <rguenther@suse.de>
7163
7164 PR tree-optimization/53031
7165 * tree-vrp.c (adjust_range_with_scev): Revert back to
7166 using max_loop_iterations.
7167
7168 2012-04-19 Michael Matz <matz@suse.de>
7169
7170 * diagnostic.c (emit_diagnostic): Move va_end call after user
7171 of the va_list.
7172 (warning, warning_at, pedwarn, permerror): Ditto.
7173
7174 2012-04-19 Richard Guenther <rguenther@suse.de>
7175
7176 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
7177 array access.
7178
7179 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
7180
7181 PR target/53033
7182 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
7183 the case *(X+const).
7184
7185 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7186
7187 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
7188
7189 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
7190
7191 PR c/52283/37985
7192 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
7193 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
7194
7195 2012-04-19 Richard Guenther <rguenther@suse.de>
7196
7197 PR rtl-optimization/44688
7198 * loop-iv.c (determine_max_iter): Only return max_iter.
7199 (iv_number_of_iterations): Also use the recorded loop bound
7200 on the maximum number of iterations.
7201 * loop-unroll.c (decide_unroll_runtime_iterations): Use
7202 max_iter to avoid unrolling loops that do not roll.
7203 (decide_unroll_stupid): Likewise.
7204
7205 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
7206
7207 * targhooks.c (default_case_values_threshold): Fix code style nit.
7208
7209 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
7210 case range and type folding from here...
7211 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
7212 type, as documented in tree.def.
7213
7214 2012-04-18 Jan Hubicka <jh@suse.cz>
7215
7216 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
7217 Declare.
7218 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
7219 cgraph hash and same comdat groups.
7220 (cgraph_optimize): Verify symbol table.
7221 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
7222 (dissolve_same_comdat_group_list): Work on symtab nodes.
7223 (function_and_variable_visibility): Dissolve variable same comdat group
7224 lists, too.
7225 * symtab.c: Include timevar.h
7226 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
7227
7228 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
7229
7230 * tree-switch-conversion.c (info): Remove global pass info.
7231 (check_range, check_process_case, check_final_bb, create_temp_arrays,
7232 free_temp_arrays, gather_default_values, build_constructors,
7233 array_value_type, build_one_array, build_arrays, gen_def_assigns,
7234 fix_phi_nodes, gen_inbound_check): Pass info around from ...
7235 (process_switch): ... here. Unify message format. Return a const
7236 char pointer to the failure reason message.
7237 (do_switchconv): Unify message format. Update process_switch usage.
7238
7239 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
7240 * tree-cfg.c (edge_to_cases): Fix documentation.
7241
7242 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
7243
7244 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
7245
7246 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7247
7248 PR tree-optimization/52976
7249 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
7250 (possibly_move_powi): New function.
7251 (rewrite_expr_tree): Call possibly_move_powi.
7252 (rewrite_expr_tree_parallel): Likewise.
7253 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
7254 call add_to_ops_vec instead.
7255
7256 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7257
7258 PR tree-optimization/52976
7259 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
7260 (decrement_power): Likewise.
7261 (propagate_op_to_single_use): Likewise.
7262 (zero_one_operation): Handle __builtin_pow* calls in linearized
7263 expression trees; factor logic into propagate_op_to_single_use.
7264 (undistribute_ops_list): Allow operands with repeat counts > 1.
7265
7266 2012-04-18 Richard Guenther <rguenther@suse.de>
7267
7268 PR tree-optimization/44688
7269 * cfgloop.h (record_niter_bound): Declare.
7270 * tree-ssa-loop-niter.c (record_niter_bound): Export.
7271 Update the estimation with the upper bound here...
7272 (estimate_numbers_of_iterations_loop): ... instead of here.
7273 Do not forcefully reset a recorded upper bound.
7274 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
7275 Record the maximum number of loop iterations of the prologue loop.
7276
7277 2012-04-18 Jan Hubicka <jh@suse.cz>
7278
7279 * lto-symtab.c (lto_cgraph_replace_node): Update.
7280 * cgraphbuild.c (record_reference, record_type_list,
7281 record_eh_tables, mark_address, mark_load, mark_store): Update.
7282 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
7283 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
7284 Update.
7285 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
7286 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
7287 * reload.c: Fix typo in comment.
7288 * rtlanal.c: Likewise.
7289 * tree-emultls.c (gen_emutls_addr): Update.
7290 * ipa-reference.c (analyze_function): Update.
7291 * cgraphunit.c (cgraph_analyze_function,
7292 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
7293 Update.
7294 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
7295 (ipa_remove_reference): Likewise.
7296 (ipa_remove_all_refering): Rename to ...
7297 (ipa_remove_all_referring): ... this one; update.
7298 (ipa_dump_references): Update.
7299 (ipa_dump_referring): Update.
7300 (ipa_clone_references): Update.
7301 (ipa_clone_refering): Rename to ...
7302 (ipa_clone_referring): ... this one; update.
7303 (ipa_ref_cannot_lead_to_return): Update.
7304 (ipa_ref_has_aliases_p): Update.
7305 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
7306 forward typedefs.
7307 (ipa_ref_type): Remove.
7308 (ipa_ref_ptr_u): Remove.
7309 (ipa_ref): Remove referencing, refered, refered_index, refering_type
7310 and refered_type; add referring, referred and referred_index.
7311 (ipa_ref_list): Rename refering to referring.
7312 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
7313 ipa_clone_references, ipa_clone_referring): Update prototypes.
7314 * lto-cgraph.c (referenced_from_other_partition_p): Update.
7315 (lto_output_ref): Update.
7316 (add_references): Update.
7317 (input_varpool_node): Update.
7318 (input_refs): Update.
7319 * ipa-ref-inline.h (ipa_ref_node): Update.
7320 (ipa_ref_varpool_node): Update.
7321 (ipa_ref_referring_node): Update.
7322 (ipa_ref_referring_varpool_node): Update.
7323 (ipa_ref_referring_ref_list): Update.
7324 (ipa_ref_referred_ref_list): Update.
7325 (ipa_ref_list_first_referring): Update.
7326 (ipa_empty_ref_list): Update.
7327 (ipa_ref_list_refering_iterate): Rename to ...
7328 (ipa_ref_list_referring_iterate): ... this one.
7329 * cse.c: Update comment.
7330 * ipa-utils.c (ipa_reverse_postorder): Update.
7331 * tree-ssa-alias.c: Update.
7332 * ipa-inline.c (reset_edge_caches): Update.
7333 (update_caller_keys): Update.
7334 * ipa-inline.h: Update comments.
7335 * jump.c: Update comment.
7336 * alias.c: Likewise.
7337 * ipa.c (process_references): Update.
7338 (cgraph_remove_unreachable_nodes): Likewise.
7339 (ipa_discover_readonly_nonaddressable_var): Likewise.
7340 (cgraph_address_taken_from_non_vtable_p): Likewise.
7341 * trans-mem.c (ipa_tm_execute): Update.
7342 * simplify-rtx.c: Fix comment.
7343 * rtl.c: Fix comment.
7344 * symtab.c (symtab_unregister_node): Update.
7345 * varpool.c (dump_varpool_node): Update.
7346 (varpool_analyze_pending_decls): Update.
7347 (assemble_aliases): Update.
7348 (varpool_for_node_and_aliases): Update.
7349
7350 2012-04-18 Richard Guenther <rguenther@suse.de>
7351
7352 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
7353 use_undefined_p parameter.
7354 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
7355 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
7356 Likewise.
7357 (estimate_numbers_of_iterations): Likewise.
7358 (estimated_loop_iterations): Adjust.
7359 (max_loop_iterations): Likewise.
7360 (scev_probably_wraps_p): Likewise.
7361 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
7362 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
7363 not max_loop_iterations.
7364 (execute_vrp): Remove explicit number of iterations estimation.
7365
7366 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
7367
7368 * config/i386/linux-common.h: New.
7369
7370 * config.gcc: Add i386/linux-common.h before
7371 all i386/linux.h and i386/linux64.h usages.
7372
7373 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
7374 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
7375 * config/i386/gnu-user64.h: Likewise.
7376
7377 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
7378 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
7379 (GNU_USER_TARGET_MATHFILE_SPEC): New.
7380 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
7381
7382 2012-04-18 Jan Hubicka <jh@suse.cz>
7383
7384 * cgraph.c (cgraph_node_name): Remove.
7385 (dump_cgraph_node): Use dump_symtab_base; reformat.
7386 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
7387 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
7388 Declare.
7389 (cgraph_node_name, varpool_node_name): Remove.
7390 (cgraph_node_asm_name, varpool_node_asm_name,
7391 cgraph_node_name, varpool_node_name): New.
7392 * tree-pass.h (TODO_dump_cgraph): Rename to ...
7393 (TODO_dump_symtab): ... this one.
7394 * ipa-cp (pass_ipa_cp): Update.
7395 * ia-reference.c (generate_summary, read_write_all_from_decl,
7396 propagate, ipa_reference_read_optimization_summary): Update.
7397 * cgraphunit.c (cgraph_analyze_functions): Update.
7398 (cgraph_optimize): Update.
7399 * ipa-ref.c (ipa_dump_references): Update.
7400 (ipa_dump_refering): Update.
7401 * ipa-inline.c (pass_ipa_inline): Update.
7402 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
7403 * ipa.c (pass_ipa_function_visibility,
7404 pass_ipa_whole_program_visibility): Update.
7405 * tree-sra.c (pass_early_ipa_sra): Update.
7406 * symtab.c: Include langhooks.h
7407 (symtab_node_asm_name): New.
7408 (symtab_node_name): New.
7409 (symtab_type_names): New static var.
7410 (dump_symtab_base): New.
7411 (dump_symtab_node, dump_symtab): New.
7412 (debug_symtab_node, debug_symtab): New.
7413 * tree-ssa-structalias.c: Dump symbol table.
7414 * pases.c (execute_todo): Handle TODO_dump_symtab instead
7415 of TODO_dump_cgraph.
7416 * varpoo.c (varpool_node_name): Remove.
7417 (dump_varpool_node): Use dump_symtab_base; reformat.
7418
7419 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
7420
7421 * doc/invoke.texi (Language Independent Options): @item should be
7422 before @opindex.
7423
7424 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7425
7426 PR bootstrap/53021
7427 * rtl.c (rtx_code_size): Handle ADDRESS.
7428
7429 2012-04-17 Tom de Vries <tom@codesourcery.com>
7430
7431 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
7432 is not a STMT_LIST.
7433
7434 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
7435
7436 PR target/53020
7437 * config/i386/sync.md (atomic_<code><mode>): Rename to
7438 atomic_<logic><mode>.
7439
7440 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7441
7442 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
7443 * alias.c (reg_base_value): Expand and update comment.
7444 (arg_base_value): New variable.
7445 (unique_id): Move up file.
7446 (unique_base_value, unique_base_value_p, known_base_value_p): New.
7447 (find_base_value): Use arg_base_value and known_base_value_p.
7448 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
7449 (find_base_term): Use known_base_value_p.
7450 (base_alias_check): Use unique_base_value_p.
7451 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
7452 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
7453
7454 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
7455
7456 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
7457
7458 2012-04-17 Michael Matz <matz@suse.de>
7459
7460 PR tree-optimization/18437
7461 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
7462 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
7463 (vect_check_strided_load): Declare.
7464 * tree-vect-data-refs.c (vect_check_strided_load): New function.
7465 (vect_analyze_data_refs): Use it to accept strided loads.
7466 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
7467
7468 2012-04-17 Richard Guenther <rguenther@suse.de>
7469
7470 PR middle-end/53011
7471 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
7472 loops when redirecting an entry or latch edge.
7473
7474 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
7475
7476 * sel-sched.c (sel_global_init): Revert previous change.
7477
7478 2012-04-17 Richard Guenther <rguenther@suse.de>
7479
7480 * tree-flow.h (array_at_struct_end_p): Move declaration ...
7481 * tree.h (array_at_struct_end_p): ... here.
7482 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
7483 * expr.c (array_at_struct_end_p): ... here. Rewrite.
7484
7485 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
7486
7487 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
7488 COST_TABLE): Remove.
7489 (estimate_case_costs): Remove.
7490 (expand_case): Do not call estimate_case_costs
7491 to set use_cost_table.
7492 (balance_case_nodes): Do not use use_cost_table.
7493
7494 2012-04-16 Jan Hubicka <jh@suse.cz>
7495
7496 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
7497 (hash_node, eq_node): Remove.
7498 (cgraph_create_node): Do not handle hashtable.
7499 (cgraph_get_node): Remove.
7500 (cgraph_insert_node_to_hashtable): Remove.
7501 (hash_node_by_assembler_name): Remove.
7502 (eq_assembler_name): Remove.
7503 (cgraph_node_for_asm): Rewrite.
7504 (cgraph_find_replacement_node): Break out from ...
7505 (cgraph_remove_node): ... here; do not maintain hashtables.
7506 (change_decl_assembler_name): Remove.
7507 (cgraph_clone_node): Do not maintain hashtables.
7508 * cgraph.h (const_symtab_node): New typedef.
7509 (cgraph_insert_node_to_hashtable): Remove.
7510 (symtab_get_node, symtab_node_for_asm,
7511 symtab_insert_node_to_hashtable): Declare.
7512 (cgraph_find_replacement_node): Declare.
7513 (cgraph_get_node, varpool_get_node): Turn into inlines.
7514 (cgraph, varpool): Work sanely on NULL pointers.
7515 (FOR_EACH_SYMBOL): New walker.
7516 * ipa-inline-transform.c (save_inline_function_body): Use
7517 symtab_insert_node_to_hashtable.
7518 * symtab.c: Include ggc.h and diagnostics.h
7519 (symtab_hash, assembler_name_hash): New static vars;
7520 (hash_node, eq_node, hash_node_by_assembler_name,
7521 eq_assembler_name, insert_to_assembler_name_hash,
7522 unlink_from_assembler_name_hash): New.
7523 (symtab_register_node): Update hashtables.
7524 (symtab_insert_node_to_hashtable): New.
7525 (symtab_unregister_node): Update hashtables.
7526 (symtab_get_node): New.
7527 (symtab_node_for_asm): New.
7528 (change_decl_assembler_name): New.
7529 * Makefile.in (symtab.o): Needs GTY.
7530 * varpool.c (varpool_hash): Remove.
7531 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
7532 (varpool_node): Rewrite using varpool_get_node.
7533 (varpool_remove_node): DO not maintain hashtables.
7534 (varpool_node_for_asm): Rewrite.
7535
7536 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
7537
7538 * doc/invoke.texi: Copy-edit to put verbs in the present tense
7539 when describing the current behavior of GCC.
7540
7541 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
7542
7543 * genemit.c (gen_exp): Remove ADDRESS handling.
7544 * genoutput.c (scan_operands): Likewise.
7545 * genpeep.c (match_rtx): Likewise.
7546 * genrecog.c (add_to_sequence): Likewise.
7547
7548 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
7549
7550 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
7551
7552 2012-04-16 Martin Jambor <mjambor@suse.cz>
7553
7554 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
7555 bit-fields.
7556
7557 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
7558
7559 PR target/51819
7560 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
7561 hints for 'A' operand types.
7562
7563 2012-04-16 Jan Hubicka <jh@suse.cz>
7564
7565 * cgraph.h (symtab_node_base): Add next and previous pointers.
7566 (cgraph_node): Remove next and preivous pointers.
7567 (varpool_node): Likewise; remove next/previous GTY marker;
7568 it is not type safe.
7569 (symtab_node_def): Update GTY marker
7570 (x_cgraph_nodes, cgraph_nodes): Remove.
7571 (symtab_nodes): New function.
7572 (cgraph_order): Rename to ...
7573 (symtab_order): ... this one.
7574 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
7575 Declare.
7576 (x_varpool_nodes, varpool_nodes): Remove.
7577 (FOR_EACH_STATIC_VARIABLE): Update.
7578 (symtab_function_p, symtab_variable_p): New function.
7579 (FOR_EACH_VARIABLE): Update.
7580 (varpool_first_variable, varpool_next_variable): New functions.
7581 (FOR_EACH_VARIABLE): Update.
7582 (cgraph_first_defined_function): Update.
7583 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
7584 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
7585 (cgraph_first_function, cgraph_next_function): New.
7586 (FOR_EACH_FUNCTION): Update.
7587 (cgraph_first_function_with_gimple_body,
7588 cgraph_next_function_with_gimple_body): Update.
7589 * symtab.c: New file.
7590 * cgraph.c: Update copyright dates.
7591 (x_cgraph_nodes, cgraph_order): Remove.
7592 (NEXT_FREE_NODE): Update.
7593 (SET_NEXT_FREE_NODE): New.
7594 (cgraph_create_node_1): Remove common code.
7595 (cgraph_create_node): Remove common code; call symtab_register_node.
7596 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
7597 (cgraph_add_asm_node): Update.
7598 (cgraph_clone_node): Register new node.
7599 * cgraphunit.c (process_function_and_variable_attributes): Update.
7600 (cgraph_analyze_functions): Update.
7601 (cgraph_analyze_functions): Update.
7602 (cgraph_output_in_order): Update.
7603 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
7604 Update.
7605 * ipa-inline.c (recursive_inlining): Update.
7606 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
7607 * ipa.c (cgraph_remove_unreachable_nodes): Update.
7608 * Makefile.in: Add symtab.o
7609 * varpool.c (x_varpool_nodes): Remove
7610 (varpool_node): Remove common code; call symtab_register_node.
7611 (varpool_remove_node): Remove common code; call symtab_unregister_node.
7612
7613 2012-04-16 Richard Guenther <rguenther@suse.de>
7614
7615 PR middle-end/52977
7616 * tree.h (VECTOR_CST_NELTS): Adjust.
7617 (struct tree_vector): Add explicit length field.
7618 (make_vector_stat): Declare.
7619 (make_vector): Define.
7620 * tree.c (make_vector_stat): New function.
7621 (build_vector_stat): Use it.
7622 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
7623
7624 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7625
7626 PR tree-optimization/52976
7627 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
7628 (undistribute_ops_list): Ops with repeat counts aren't eligible for
7629 undistribution.
7630 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
7631
7632 2012-04-16 Jan Hubicka <jh@suse.cz>
7633
7634 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
7635 New macros.
7636 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
7637 walkers to walk cgraph and varpool.
7638 * cgraph.c (cgraph_node_for_asm): Likewise.
7639 (dump_cgraph): Likewise.
7640 * value-prof.c (init_node_map): Likewise.
7641 * tree.c (free_lang_data_in_cgraph): Likewise.
7642 * tree-emutls.c: (ipa_lower_emutls): Likewise.
7643 * ipa-reference.c (generate_summary, propagate): Likewise.
7644 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
7645 cgraph_mark_functions_to_output, cgraph_output_in_order,
7646 output_weakrefs, cgraph_materialize_all_clones,
7647 cgraph_optimize): Likewise.
7648 * lto-cgraph.c (merge_profile_summaries): Likewise.
7649 (input_cgraph): Likewise.
7650 * ipa-pure-const.c (generate_summary): Likewise.
7651 (propagate): Likwise.
7652 * ipa-utils.c (ipa_reduced_postorder): Likewise.
7653 (ipa_free_postorder_info): Likewise.
7654 (ipa_reverse_postorder): Likewise.
7655 * ipa-inline.c (ipa_inline): Likewise.
7656 * matrix-reorg.c (find_matrices_decl): Likewise.
7657 (matrix_reorg): Likewise.
7658 * tree-vectorizer.c (increase_alignment): Likewise.
7659 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7660 (function_and_variable_visibility): Likewise.
7661 (whole_program_function_and_variable_visibility): Likewise.
7662 (ipa_cdtor_merge): Likewise.
7663 * trans-mem.c (ipa_tm_execute): Likewise.
7664 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
7665 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
7666 (ipa_print_all_params): Likewise.
7667 (ipa_update_after_lto_read): Likewise.
7668 * tree-profie.c (tree_profiling): Likewise.
7669 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7670 * passes.c (dump_passes): Likewise.
7671 (do_per_function): Likewise.
7672 (ipa_write_summaries): Likewise.
7673 * varpool.c (dump_varpool): Likewise.
7674 (varpool_node_for_asm): Likewise.
7675 (varpool_assemble_pending_decls): Likewise.
7676
7677 2012-04-16 Richard Guenther <rguenther@suse.de>
7678
7679 PR tree-optimization/52975
7680 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
7681 condition but always mark it with TRUTH_NOT_EXPR.
7682
7683 2012-04-16 Richard Guenther <rguenther@suse.de>
7684
7685 PR tree-optimization/52975
7686 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
7687 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
7688 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
7689 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
7690
7691 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
7692
7693 * config/i386/sse.md (ssse3_plusminus): New code iterator.
7694 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
7695 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
7696 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
7697 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
7698 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
7699 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
7700
7701 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
7702 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
7703 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
7704 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
7705 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
7706 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
7707
7708 (xop_plus): New code iterator.
7709 (macs): New code attribute.
7710 (macds): Ditto.
7711 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
7712 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
7713 iterator.
7714 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
7715 xop_plus code iterator.
7716 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
7717 xop_plus code iterator.
7718 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
7719 xop_plus code iterator.
7720 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
7721 xop_plus code iterator.
7722
7723 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
7724 any_extend code iterator.
7725 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
7726 any_extend code iterator.
7727 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
7728 any_extend code iterator.
7729 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
7730 any_extend code iterator.
7731 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
7732 any_extend code iterator.
7733 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
7734 any_extend code iterator.
7735
7736 2012-04-14 Tom de Vries <tom@codesourcery.com>
7737
7738 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
7739 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
7740 DELETED_LABEL note, and move it to ...
7741 * cfgrtl.c (delete_insn): ... here. Change return type to void.
7742 (delete_insn_and_edges): Likewise.
7743 (delete_insn_chain): Handle new return type of delete_insn. Delete
7744 chain backwards rather than forwards.
7745 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
7746 void.
7747 * cfglayout.c (fixup_reorder_chain): Delete unused label.
7748
7749 2012-04-14 Jan Hubicka <jh@suse.cz>
7750
7751 * cgraph.h: Update copyrights;
7752 (symtab_node): Turn to union typedef.
7753 (symtab_node_base): New structure.
7754 (symtab_type): Add SYMTAB_SYMBOL tag.
7755 (cgraph_node): Annotate some pinters with nested_ptr.
7756 (varpool_node): Likewise.
7757 (cgraph_local_info): Remove lto_file_data
7758 and externally_visible.
7759 (cgraph_node): Remove decl; same_comdat_group list;
7760 aux; ref_list; order; address_taken; reachable_from_other_parittion,
7761 in_other_partition; resolution.
7762 (varpool_node): Remove decl; same_comdat_group;
7763 ref_list; lto_file_data; aux; order; resolution; externally_visible;
7764 used_from_other_partition; in_other_partition.
7765 (symtab_node_def): New union.
7766 (cgraph, varpool): Update.
7767 (varpool_first_static_initializer, varpool_next_static_initializer,
7768 cgraph_only_called_directly_or_aliased_p,
7769 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
7770 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
7771 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
7772 field references.
7773 * cgraph.c: Likewise.
7774 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
7775 * cgraphbuild.c: Likewise.
7776 * lto-symtab.c: Likewise.
7777 * c-gimplify.c: Likewise.
7778 * value-prof.c: Likewise.
7779 * tree.c: Likewise.
7780 * ipa-cp.c: Likewise.
7781 * tree-emutls.c: Likewise.
7782 * ipa-inline-transform.c: Likwise.
7783 * ipa-reference.c: Likewise.
7784 * cgraphunit.c: Likewise.
7785 * ipa-ref.c: Likewise.
7786 * lto-cgraph.c: Likewise.
7787 * ipa-ref-inline.h: Likewise.
7788 * ipa-pure-const.c: Likewise.
7789 * lto-streamer-out.c: Likewise.
7790 * ipa-utils.c: Likewise.
7791 * ipa-inline.c: Likewise.
7792 * matrix-reorg.c: Likewise.
7793 * tree-eh.c: Likewise.
7794 * tree-vectorizer.c: Likewise.
7795 * ipa-split.c: Likewise.
7796 * ipa.c: Likewise.
7797 * trans-mem.c: Likewise.
7798 * ipa-inline-analysis.c: Likewise.
7799 * gimplify.c: Likewise.
7800 * cfgexpand.c: Likewise.
7801 * tree-sra.c: Likewise.
7802 * ipa-prop.c: Likewise.
7803 * varasm.c: Likewise.
7804 * tree-nested.c: Likewise.
7805 * tree-inline.c: Likewise.
7806 * tree-profile.c: Likewise.
7807 * tree-ssa-structalias.c: Likewise.
7808 * passes.c: Likewise.
7809 * varpool.c: Likewise.
7810
7811 2012-04-14 Tom de Vries <tom@codesourcery.com>
7812
7813 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
7814 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
7815 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
7816 of find_edge.
7817 (gsi_advance_fw_nondebug_nonlocal): New function.
7818 (local_def): Removed function.
7819 (same_succ_hash): Use stmt_local_def.
7820 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
7821 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
7822
7823 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
7824
7825 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
7826 and __ILP32__ for x32.
7827
7828 2012-04-13 Martin Jambor <mjambor@suse.cz>
7829
7830 PR middle-end/52939
7831 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
7832 fold_ctor_reference returns a zero constant.
7833
7834 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
7835
7836 * config.gcc: Add i386/gnu-user-common.h before all
7837 i386/gnu-user.h and i386/gnu-user64.h usages.
7838
7839 * config/i386/gnu-user-common.h: New.
7840
7841 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
7842 (CC1_SPEC): Likewise.
7843 (ENDFILE_SPEC): Likewise.
7844 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
7845 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
7846 (TARGET_OS_CPP_BUILTINS): Likewise.
7847 (LIBGCC2_HAS_TF_MODE): Likewise.
7848 (LIBGCC2_TF_CEXT): Likewise.
7849 (TF_SIZE): Likewise.
7850 (TARGET_ASM_FILE_END): Likewise.
7851 (STACK_CHECK_MOVING_SP): Likewise.
7852 (STACK_CHECK_STATIC_BUILTIN): Likewise.
7853 * config/i386/gnu-user64.h: Likewise.
7854
7855 2012-04-13 Martin Jambor <mjambor@suse.cz>
7856
7857 * expr.c (expand_expr_real_1): Pass type, not the expression, to
7858 set_mem_attributes for a memory temporary. Do not call the function
7859 for the memory temporary created for a bitfield.
7860
7861 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
7862
7863 PR debug/48866
7864 * df.h (enum debug_temp_where): New.
7865 (dead_debug_init, dead_debug_finish) Declare.
7866 (dead_debug_add, dead_debug_insert_temp): Declare.
7867 (struct dead_debug_use, struct dead_debug): Moved from...
7868 * df-problems.c: ... here.
7869 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
7870 to a debug temp.
7871 (df_create_unused_note): Likewise.
7872 (df_set_dead_notes_for_mw): Move comment where it belongs.
7873 (dead_debug_init): Export.
7874 (dead_debug_reset_uses): New, factored out of...
7875 (dead_debug_finish): ...this. Export.
7876 (dead_debug_reset): Remove.
7877 (dead_debug_add): Export.
7878 (dead_debug_insert_before): Rename to...
7879 (dead_debug_insert_temp): ... this. Add where argument. Export.
7880 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
7881 Return insertion count.
7882 (df_note_bb_compute): Adjust.
7883 * dce.c (word_dce_process_block): Adjust dead debug uses.
7884 (dce_process_block): Likewise.
7885
7886 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
7887
7888 * df-problems.c (df_note_bb_compute): Do not take note of
7889 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
7890
7891 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
7892
7893 PR debug/51570
7894 * var-tracking.c (expand_depth): New type.
7895 (onepart_aux, expand_loc_callback_data): Change depth type to it.
7896 (loc_exp_dep_alloc): Adjust initializer.
7897 (update_depth): Use new type. Add entryvals.
7898 (vt_expand_var_loc_chain): Take note of expansions with
7899 ENTRY_VALUEs, but don't accept them right away. Run an optional
7900 second pass accepting the minimum ENTRY_VALUE count found in the
7901 first pass.
7902 (vt_expand_loc_callback, INIT_ELCD): Adjust.
7903
7904 2012-04-13 Tom de Vries <tom@codesourcery.com>
7905
7906 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
7907 parameters vuse and vuse_escaped.
7908 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
7909 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
7910 vuse1 != vuse2.
7911
7912 2012-04-13 Richard Guenther <rguenther@suse.de>
7913
7914 PR tree-optimization/52969
7915 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
7916 the condition for the COND_EXPR and handle predicate negation
7917 by swapping the COND_EXPR arms.
7918
7919 2012-04-13 Nick Clifton <nickc@redhat.com>
7920
7921 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
7922 TODO_dump_func flag.
7923
7924 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
7925
7926 PR rtl-optimization/52203
7927 PR rtl-optimization/52715
7928
7929 Revert the 2012-03-07 fix for PR 52203.
7930 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
7931 the insn does not modify DFA right before issuing, adjust
7932 issue_rate accordingly.
7933
7934 2012-04-13 Richard Guenther <rguenther@suse.de>
7935
7936 PR c/52549
7937 * c-typeck.c (pointer_diff): Remove bogus assert.
7938
7939 2012-04-13 Richard Guenther <rguenther@suse.de>
7940
7941 PR c/52862
7942 * convert.c (convert_to_pointer): Remove special-casing of zero.
7943
7944 2012-04-13 Joey Ye <joey.ye@arm.com>
7945
7946 * config/arm/constraints.md (Pe): New constraint.
7947 * config/arm/arm.md: New split for imm 256-510.
7948
7949 2012-04-13 Terry Guo <terry.guo@arm.com>
7950
7951 * config/arm/arm-cores.def: Added core cortex-m0plus.
7952 * config/arm/arm-tune.md: Regenerated.
7953 * config/arm/arm-tables.opt: Regenerated.
7954 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
7955
7956 2012-04-13 Alan Modra <amodra@gmail.com>
7957
7958 PR target/52828
7959 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
7960 tie regs on destination of sets. Delete forward declaration.
7961 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
7962 (rs6000_emit_prologue): Likewise.
7963 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
7964 and gen_stack_tie.
7965 (is_mem_ref): Use tie_operand to recognise stack ties.
7966 * config/rs6000/predicates.md (tie_operand): New.
7967 * config/rs6000/rs6000.md (restore_stack_block): Generate new
7968 stack tie rtl.
7969 (restore_stack_nonlocal): Likewise.
7970 (stack_tie): Update.
7971 (frame_tie): Delete.
7972
7973 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7974
7975 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
7976 HOST_WIDE_INT_PRINT_DEC in format strings.
7977
7978 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
7979
7980 PR target/52932
7981 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
7982 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
7983 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
7984 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
7985 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
7986 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
7987 avx2_permvarv8si using VI4F_256 mode iterator.
7988 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
7989 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
7990 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
7991 gen_avx2_permvarv8sf.
7992 (expand_vec_perm_pshufb): Ditto.
7993
7994 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7995
7996 PR target/52775
7997 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
7998 the list of options to enable the FCFID instruction.
7999 (TARGET_EXTRA_BUILTINS): Adjust comment.
8000
8001 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8002
8003 PR tree-optimization/18589
8004 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
8005 (operand_entry): Add count field.
8006 (add_repeat_to_ops_vec): New function.
8007 (completely_remove_stmt): Likewise.
8008 (remove_def_if_absorbed_call): Likewise.
8009 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
8010 (acceptable_pow_call): New function.
8011 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
8012 entries with repeat counts when found.
8013 (repeat_factor_d): New struct and associated typedefs.
8014 (repeat_factor_vec): New static vector variable.
8015 (compare_repeat_factors): New function.
8016 (get_reassoc_pow_ssa_name): Likewise.
8017 (attempt_builtin_powi): Likewise.
8018 (reassociate_bb): Call attempt_builtin_powi.
8019 (fini_reassoc): Two new calls to statistics_counter_event.
8020
8021 2012-04-12 Richard Guenther <rguenther@suse.de>
8022
8023 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
8024 * cgraph.h (tree_rest_of_compilation): Remove.
8025 * cgraph.c (cgraph_add_new_function): Move ...
8026 * cgraphunit.c (cgraph_add_new_function): ... here.
8027 (tree_rest_of_compilation): Make static.
8028 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
8029 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
8030 gate_all_early_local_passes, execute_all_early_local_passes,
8031 pass_early_local_passes, gate_all_early_optimizations,
8032 pass_all_early_optimizations): Move ...
8033 * passes.c (gate_all_optimizations, pass_all_optimizations,
8034 gate_all_early_local_passes, execute_all_early_local_passes,
8035 pass_early_local_passes, gate_all_early_optimizations,
8036 pass_all_early_optimizations): ... here.
8037 * tree-optimize.c (execute_free_datastructures): Remove.
8038 * tree-flow.h (execute_free_datastructures): Remove.
8039 * tree-optimize.c (execute_init_datastructures,
8040 pass_init_datastructures): Move ...
8041 * tree-ssa.c (execute_init_datastructures,
8042 pass_init_datastructures): ... here.
8043 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
8044 execute_free_datastructures.
8045
8046 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
8047
8048 * dbgcnt.def (ira_move): New counter.
8049 * ira-int.h (ira_create_new_reg): Declare function.
8050 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
8051 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
8052 no longer static. All callers changed.
8053 * ira.c: Include "dbgcnt.h".
8054 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
8055 move_unallocated_pseudos): New static functions.
8056 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
8057 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
8058 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
8059 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
8060 to the pseudos generated in find_moveable_pseudos.
8061 * Makefile.in (ira.o): Add $(DBGCNT_H).
8062
8063 2012-04-12 Richard Guenther <rguenther@suse.de>
8064
8065 PR tree-optimization/52943
8066 * tree-chrec.h (chrec_is_positive): Remove.
8067 * tree-scalar-evolution.c (chrec_is_positive): Move ...
8068 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
8069 Return false for a constant zero instead of negative.
8070 (analyze_siv_subscript_cst_affine): Handle zero difference
8071 in the initial condition explicitely.
8072
8073 2012-04-12 Richard Guenther <rguenther@suse.de>
8074
8075 * tree-parloops.c (parallelize_loops): Also consult the upper
8076 bound for the number of iterations.
8077 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
8078 (loop_prefetch_arrays): Likewise.
8079
8080 2012-04-12 Richard Guenther <rguenther@suse.de>
8081
8082 * cfgloop.h (estimated_loop_iterations_int): Ditch
8083 'conservative' parameter.
8084 (max_stmt_executions_int): Likewise.
8085 (estimated_loop_iterations): Likewise.
8086 (max_stmt_executions): Likewise.
8087 (max_loop_iterations): Declare.
8088 (max_loop_iterations_int): Likewise.
8089 (estimated_stmt_executions): Likewise.
8090 (estimated_stmt_executions_int): Likewise.
8091 * tree-ssa-loop-niter.c (estimated_loop_iterations):
8092 Split parts to ...
8093 (max_loop_iterations): ... this.
8094 (estimated_loop_iterations_int): Split parts to ...
8095 (max_loop_iterations_int): ... this.
8096 (max_stmt_executions_int): Split parts to ...
8097 (estimated_stmt_executions_int): ... this.
8098 (max_stmt_executions): Split parts to ...
8099 (estimated_stmt_executions): ... this.
8100 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
8101 * predict.c (predict_loops): Likewise.
8102 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
8103 (analyze_siv_subscript_cst_affine): Likewise.
8104 (compute_overlap_steps_for_affine_1_2): Likewise.
8105 (analyze_subscript_affine_affine): Likewise.
8106 (init_omega_for_ddr_1): Likewise.
8107 * tree-parloops.c (parallelize_loops): Likewise.
8108 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8109 (may_eliminate_iv): Likewise.
8110 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
8111 (loop_prefetch_arrays): Likewise.
8112 * tree-vrp.c (adjust_range_with_scev): Likewise.
8113
8114 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
8115
8116 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
8117 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
8118 Fix line width.
8119 (dump_table): Use bool type for need_align and have_df variables.
8120 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
8121 (regs_used): Remove register modifier.
8122 (barrier_align): Move variables slot, credit, jump_to_next
8123 into if block above for loop. Use bool type for jump_to_next.
8124 (sh_function_arg): Use NULL_RTX instead of 0.
8125
8126 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
8127
8128 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
8129 (bswapsi2): New expander.
8130
8131 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
8132
8133 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
8134 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
8135
8136 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
8137
8138 PR rtl-optimization/52876
8139 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
8140 Don't call mark_reg_pointer for incompatible pointer sign extension.
8141
8142 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
8143 directly.
8144
8145 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
8146
8147 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
8148 comparisons against TYPE_PRECISION.
8149 * tree-ssa-forwprop.c (combine_conversions): Likewise.
8150
8151 2012-04-11 Xinliang David Li <davidxl@google.com>
8152
8153 * tree-passes.h: Remove TODO_dump_func.
8154 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
8155 * trans-mem.c: Remove TODO_dump_func.
8156 * ira.c: Remove TODO_dump_func.
8157
8158 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
8159
8160 * config/i386/i386.c (ix86_option_override_internal): Check
8161 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
8162 after TARGET_64BIT is updated.
8163
8164 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
8165
8166 * config/sh/sh.h: Remove old secondary reload code.
8167
8168 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
8169
8170 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
8171 (ready_reorder): ... this function.
8172
8173 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
8174
8175 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
8176 sched_init calls.
8177
8178 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
8179 insns so that no other insn is queued for a time before them.
8180
8181 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
8182 unknown.
8183
8184 2012-04-11 Richard Guenther <rguenther@suse.de>
8185
8186 PR middle-end/52621
8187 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
8188 consider loop nesting.
8189 (evolution_function_is_univariate_p): Properly check the remainder
8190 for chrecs.
8191
8192 2012-04-11 Richard Guenther <rguenther@suse.de>
8193
8194 PR middle-end/52918
8195 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
8196
8197 2012-04-11 Nick Clifton <nickc@redhat.com>
8198
8199 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
8200 information, if requested.
8201
8202 * config/rx/rx.c (rx_expand_prologue): Likewise.
8203
8204 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
8205 Michael Matz <matz@suse.de>
8206
8207 PR target/16458
8208 * rtlanal.c (unsigned_reg_p): New function.
8209 Update copyright notice dates.
8210 * rtl.h (unsigned_reg_p): Prototype it.
8211 Update copyright notice dates.
8212 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
8213 Update comment.
8214 * expr.c (expand_expr_real_1): Set register attributes.
8215 * stmt.c (expand_case): Likewise.
8216
8217 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
8218
8219 PR target/50751
8220 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
8221 consider_sh2a and allow_zero.
8222 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
8223 (disp_addr_displacement): New function.
8224 (sh_address_cost): Use disp_addr_displacement function instead
8225 of DISP_ADDR_OFFSET.
8226 (sh_legitimate_address_p): Adapt to changed
8227 sh_legitimate_index_p declaration.
8228 (sh_find_mov_disp_adjust): Remove HImode check.
8229 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
8230 disp_addr_displacement and max_mov_insn_displacement.
8231 (max_mov_insn_displacement): Remove HImode check.
8232 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
8233 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
8234 * config/sh/constraints.md (K05, K13): New constraints.
8235 (K12): Correct comment.
8236 (Sdd): Do not use DISP_ADDR_P macro.
8237 (Snd, Sbw): Use satisfies_constraint_Sdd.
8238 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
8239 (*extendhisi2_compact, movhi_i): Remove.
8240 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
8241 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
8242 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
8243 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
8244 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
8245 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
8246 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
8247 CONST_OK_FOR_Kxx.
8248 Add new peepholes for HImode displacement addressing.
8249
8250 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
8251
8252 * config/sh/sh.h (SIDI_OFF): Remove.
8253 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
8254 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
8255 or operand_subword.
8256
8257 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
8258
8259 PR target/52624
8260 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
8261 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
8262 * doc/md.texi (Standard Names): Add bswap.
8263 * builtin-types.def (BT_UINT16): New primitive type.
8264 (BT_FN_UINT16_UINT16): New function type.
8265 * builtins.def (BUILT_IN_BSWAP16): New.
8266 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
8267 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
8268 expand_builtin_bswap.
8269 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
8270 (fold_builtin_1): Likewise.
8271 (is_inexpensive_builtin): Likewise.
8272 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
8273 missing bits for bswap to libcall code.
8274 * tree.c (build_common_tree_nodes): Build uint16_type_node.
8275 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
8276 (uint16_type_node): New define.
8277 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
8278 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
8279 above builtin.
8280 (rs6000_init_builtins): Likewise.
8281 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
8282
8283 2012-04-11 Tristan Gingold <gingold@adacore.com>
8284
8285 * doc/extend.texi (Type Attributes): Move paragraph.
8286
8287 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8288
8289 PR 24985
8290 * diagnostic.h (show_caret): Declare.
8291 (caret_max_width): Declare.
8292 (diagnostic_show_locus): Declare.
8293 * diagnostic.c (diagnostic_initialize): Initialize to false.
8294 (diagnostic_show_locus): New.
8295 (diagnostic_report_diagnostic): Call it.
8296 (getenv_columns): New.
8297 (adjust_line): New.
8298 (diagnostic_set_caret_max_width): New.
8299 * input.c (read_line): New.
8300 (location_get_source_line): New.
8301 * input.h (location_get_source_line): Declare.
8302 * toplev.c (general_init): Initialize show_caret from options.
8303 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
8304 * opts.c (common_handle_option): Likewise.
8305 * pretty-print.h (pp_get_prefix): New.
8306 (pp_base_get_prefix): New.
8307 * common.opt (fdiagnostics-show-caret): New option.
8308 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
8309
8310 2012-04-11 Richard Guenther <rguenther@suse.de>
8311
8312 PR rtl-optimization/52881
8313 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
8314
8315 2012-04-11 Richard Guenther <rguenther@suse.de>
8316
8317 PR tree-optimization/52912
8318 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
8319 manipulation code we are threading through a loop header
8320 to an exit destination.
8321
8322 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
8323
8324 * tree.h (warn_if_unused_value): Move declaration from here.
8325 * stmt.c (warn_if_unused_value): Move definition from here.
8326
8327 2012-04-10 Michael Matz <matz@suse.de>
8328
8329 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
8330 grouped_stores.
8331 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
8332 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
8333 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
8334 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
8335 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
8336 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
8337 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
8338 (vect_record_strided_load_vectors): Rename to
8339 vect_record_grouped_load_vectors.
8340 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8341 Rename use of above macros.
8342 (vect_verify_datarefs_alignment): Ditto.
8343 (vector_alignment_reachable_p): Ditto.
8344 (vect_peeling_hash_get_lowest_cost): Ditto.
8345 (vect_enhance_data_refs_alignment): Ditto.
8346 (vect_analyze_group_access): Ditto and rename stride to groupsize.
8347 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
8348 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
8349 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
8350 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
8351 (vect_record_strided_load_vectors): Rename to
8352 vect_record_grouped_load_vectors.
8353 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
8354 (destroy_loop_vec_info): Ditto.
8355 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
8356 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
8357 (vect_analyze_slp): Ditto.
8358 (new_bb_vec_info): Ditto.
8359 (destroy_bb_vec_info): Ditto.
8360 (vect_schedule_slp_instance): Ditto and rename strided_store to
8361 grouped_store.
8362 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
8363 vect_cost_group_size.
8364 (vect_model_store_cost): Rename use of above macros and call
8365 to vect_cost_strided_group_size.
8366 (vect_model_load_cost): Ditto.
8367 (vectorizable_store): Ditto, rename strided_store to grouped_store
8368 and calls to renamed tree-vectorizer.h functions.
8369 (vectorizable_load): Ditto.
8370 (vect_transform_stmt): Rename use of above macros and strided_store
8371 to grouped_store.
8372
8373 2012-04-10 Jan Hubicka <jh@suse.cz>
8374
8375 * cgraph.h: Remove misledaing comment on ipa-ref.h.
8376 (symtab_type): New enum.
8377 (symtab_node): New structure.
8378 (cgraph_node, varpool_node): Add symbol base type.
8379 (cgraph, varpool): New accestor functions.
8380 * cgraph.c (cgraph_create_node_1): Set symbol type.
8381 * varpool.c (varpool_node): Set symbol type.
8382
8383 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
8384 Richard Sandiford <rdsandiford@googlemail.com>
8385
8386 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
8387
8388 2012-04-10 Richard Guenther <rguenther@suse.de>
8389
8390 PR middle-end/52888
8391 * gimple-low.c (gimple_check_call_args): Properly account for
8392 compatible aggregate types.
8393
8394 2012-04-10 Richard Guenther <rguenther@suse.de>
8395
8396 * toplev.h (tree_rest_of_compilation): Remove.
8397 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8398 * cgraph.h (tree_rest_of_compilation): Declare.
8399 * tree-optimize.c (tree_rest_of_compilation): Move ...
8400 * cgraphunit.c (tree_rest_of_compilation): ... here.
8401 * cgraph.c (cgraph_add_new_function): Adjust.
8402 * Makefile.in (tree-optimize.o): Adjust.
8403 (cgraphunit.o): Likewise.
8404
8405 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
8406
8407 PR tree-optimization/52870
8408 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
8409 presumed pattern statement is within the same loop or basic block.
8410
8411 2012-04-10 Tristan Gingold <gingold@adacore.com>
8412
8413 * gengtype.c (main): Make uintptr_t a known type.
8414
8415 2012-04-10 Richard Guenther <rguenther@suse.de>
8416
8417 * tree-pass.h (tree_lowering_passes): Remove.
8418 * tree-optimize.c (tree_lowering_passes): Remove.
8419 * cgraph.c (cgraph_add_new_function): Inline relevant parts
8420 of tree_lowering_passes, avoid redundant call of early local passes.
8421 * cgraphunit.c (cgraph_lower_function): Fold into ...
8422 (cgraph_analyze_function): ... its single caller. Inline
8423 relevant parts of tree_lowering_passes.
8424
8425 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
8426
8427 PR other/52777
8428 * config/pa/pa.opt: Remove SIO and GNU_LD.
8429
8430 2012-04-09 Jan Hubicka <jh@suse.cz>
8431
8432 PR lto/52722
8433 PR lto/51765
8434 PR lto/52634
8435 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
8436 boundary, add its target too.
8437 * lto.c (add_references_to_partition): Add also aliased nodes.
8438 (add_cgraph_node_to_partition,
8439 add_varpool_node_to_partition): Work on nodes, not functions/variables;
8440 when adding alias, add also the aliased object.
8441
8442 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
8443
8444 PR target/52883
8445 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
8446 VOIDmode immediate operands.
8447 * config/i386/constraints.md (Wz): New constraint.
8448 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
8449
8450 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
8451
8452 PR target/52717
8453 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
8454 the DECL generated for the special GOT helper.
8455
8456 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
8457
8458 * config/sh/constraints.md: Update list of constraints in
8459 comment block.
8460 (Sr0): Remove unused memory constraint.
8461
8462 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8463
8464 * tree-pretty-print.h: Update comment.
8465
8466 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
8467
8468 * config/sh/sh.md: Use braced string notation where applicable.
8469 (*prefetch_i4, prefetch_m2a): Merge into ...
8470 (*prefetch): ... this new insn.
8471
8472 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
8473
8474 * config/sh/sh.h (high_life_started): Remove
8475 * config/sh/predicates.md (general_movdst_operand): Use
8476 'reload_in_progress' instead of 'high_life_started'.
8477 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
8478 divsi_inv_fp): Likewise.
8479
8480 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
8481
8482 * config/sh/sh-protos.h (prepare_move_operands): Return void
8483 instead of int.
8484 * config/sh/sh.c (prepare_move_operands): Likewise.
8485 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
8486
8487 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
8488
8489 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
8490 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
8491 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
8492 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
8493 commutative_float_operator, noncommutative_float_operator,
8494 sh_handle_pragma): Remove.
8495
8496 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
8497
8498 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
8499 Use @option markup on command-line options. Use @samp markup on
8500 literal keywords to options. Use @code markup on code fragments.
8501 Use other markup in preference to quotation marks in the text.
8502 Add markup to some passages without any.
8503
8504 2012-04-06 Mike Stump <mikestump@comcast.net>
8505
8506 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
8507
8508 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
8509
8510 * config/sh/sh.c (hi_const): Remove.
8511 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
8512 of hi_const.
8513
8514 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
8515
8516 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
8517 to bool.
8518 * config/sh/sh.c (sh_expand_t_scc): Likewise.
8519 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
8520 calling sh_expand_t_scc.
8521
8522 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
8523
8524 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
8525 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
8526 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
8527 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
8528 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
8529 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
8530 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
8531 sh2a_is_function_vector_call): Use bool as return type.
8532 (sh_pass_in_reg_p): Remove.
8533 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
8534 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
8535 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
8536 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
8537 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
8538 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
8539 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
8540 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
8541 sh_loads_bankedreg_p): Use bool as return type.
8542 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
8543 'register' modifier.
8544
8545 2012-04-06 Matt Turner <mattst88@gmail.com>
8546
8547 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
8548
8549 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
8550
8551 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
8552 of the destination isn't also a FP_REGS register.
8553
8554 2012-04-05 Teresa Johnson <tejohnson@google.com>
8555 H.J. Lu <hongjiu.lu@intel.com>
8556
8557 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
8558 * config/i386/i386.md (move immediate to memory peephole2):
8559 Add cases for HImode move when LCP stall avoidance is needed.
8560 * config/i386/i386.c (initial_ix86_tune_features): Initialize
8561 X86_TUNE_LCP_STALL entry.
8562
8563 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
8564
8565 PR target/52882
8566 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
8567 CONST_INT operands, zero-extended with AND.
8568
8569 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
8570
8571 PR target/50751
8572 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
8573 first argument instead of mode size. Move displacement calculations
8574 to ...
8575 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
8576 ... these new functions.
8577 (disp_adjust): Remove max_mov_disp field.
8578 (sh_legitimate_index_p): Use max_mov_insn_displacement and
8579 mov_insn_alignment_mask.
8580 (sh_address_cost): Use max_mov_insn_displacement.
8581
8582 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
8583
8584 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
8585 (arch_enabled): Handle new arch types.
8586 (one_cmpldi2): Add NEON support.
8587
8588 2012-04-05 Richard Guenther <rguenther@suse.de>
8589
8590 * gimple.c (walk_gimple_op): Compute val_only for the LHS
8591 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
8592 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
8593 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8594 ... here and make static.
8595 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8596 Remove.
8597
8598 2012-04-05 Richard Guenther <rguenther@suse.de>
8599
8600 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
8601 basic-block before removing it.
8602
8603 2012-04-05 Richard Guenther <rguenther@suse.de>
8604
8605 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
8606 version namespace as we release the freelist.
8607
8608 2012-04-05 Richard Guenther <rguenther@suse.de>
8609
8610 * tree-nrv.c (tree_nrv): Release VDEFs.
8611 * tree-sra.c (sra_modify_constructor_assign): Likewise.
8612 (sra_modify_assign): Likewise.
8613 * tree-vect-stmts.c (vect_remove_stores): Likewise.
8614 * tree-vect-loop.c (vect_transform_loop): Likewise.
8615 * tree-ssa-dom.c (optimize_stmt): Likewise.
8616 * tree-vect-slp.c (vect_schedule_slp): Likewise.
8617 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
8618
8619 2012-04-05 Richard Guenther <rguenther@suse.de>
8620
8621 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
8622 cleanup.
8623 * gimple.h (gsi_remove): Adjust.
8624 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
8625 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
8626 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
8627 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
8628 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
8629 * tree-ssa-pre.c (eliminate): Likewise.
8630
8631 2012-04-04 Mike Stump <mikestump@comcast.net>
8632
8633 * doc/rtl.texi (const_double): Document as sign-extending.
8634 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
8635 * emit-rtl.c (immed_double_int_const): Refine to state the
8636 value is signed.
8637 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
8638 CONST_DOUBLE integers.
8639 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
8640 negative values are converted. Fix conversions bigger than
8641 HOST_BITS_PER_WIDE_INT.
8642 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
8643 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
8644 * explow.c (plus_constant_mode): Add.
8645 (plus_constant): Implement with plus_constant_mode.
8646 * rtl.h (plus_constant_mode): Add.
8647
8648 2012-04-04 Richard Guenther <rguenther@suse.de>
8649
8650 PR tree-optimization/52808
8651 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
8652 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
8653
8654 2012-04-04 Tristan Gingold <gingold@adacore.com>
8655
8656 * expr.c (expand_expr_real_2): Handle larger sizetype in
8657 POINTER_PLUS_EXPR.
8658
8659 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
8660
8661 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
8662 to m2a-single instead of m2e.
8663
8664 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
8665
8666 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
8667 Change type of BITOFFSET to signed. Make sure the lower bound of
8668 the computed range is non-negative by adjusting OFFSET and BITPOS.
8669 (expand_assignment): Adjust call to get_bit_range.
8670
8671 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
8672
8673 * h8300/h8300.c (h8300_current_function_monitor_function_p):
8674 New function. Added to check monitor functions.
8675 (h8300_option_override): Modified to generate error/warning
8676 messages for invalid combinations of different command line
8677 options.
8678 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
8679 save EXR on stack for monitor function in case of H8S target
8680 when "-mno-exr" is passed.
8681 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
8682 Add prototype.
8683 * doc/invoke.texi: Document H8S options.
8684
8685 2012-04-03 Tristan Gingold <gingold@adacore.com>
8686
8687 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
8688 of gcc_AC_FUNC_MMAP_BLACKLIST.
8689 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
8690 * Makefile.in (aclocal_deps): Add mmap.m4.
8691 * configure: Regenerate.
8692 * aclocal.m4: Regenerate.
8693
8694 2012-04-03 Richard Guenther <rguenther@suse.de>
8695
8696 PR tree-optimization/52808
8697 * tracer.c (tail_duplicate): Return whether we have duplicated
8698 any block.
8699 (tracer): If we have duplicated any block, cleanup the CFG.
8700 * cfghooks.c (duplicate_block): If we duplicated a loop
8701 header but not its loop, destroy the loop because it now has
8702 multiple entries.
8703 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
8704 the cfg manipulation routines we are not creating a multiple
8705 entry loop.
8706
8707 2012-04-03 Tristan Gingold <gingold@adacore.com>
8708
8709 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
8710 'byte' alignment.
8711 (vms_c_common_override_options): Allow parameterless variadic
8712 functions.
8713
8714 2012-04-03 Jakub Jelinek <jakub@redhat.com>
8715
8716 PR tree-optimization/52835
8717 * tree-data-ref.c (build_rdg): Return NULL if
8718 compute_data_dependences_for_loop failed.
8719
8720 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
8721
8722 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
8723 for REAL_CST as well.
8724 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
8725 In the bitfield case, if the value is a REAL_CST, convert it first to
8726 an INTEGER_CST.
8727
8728 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
8729
8730 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
8731 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
8732 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
8733
8734 * config/i386/biarchx32.h: New.
8735
8736 2012-04-02 Anatoly Sokolov <aesok@post.ru>
8737
8738 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
8739 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8740 (arm_preferred_reload_class): New function.
8741
8742 2012-04-02 Richard Guenther <rguenther@suse.de>
8743
8744 PR tree-optimization/52756
8745 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
8746 (thread_through_loop_header): After threading through the loop latch
8747 remove the split part from the loop and clear further threading
8748 opportunities that would create a multiple entry loop.
8749
8750 2012-04-02 Richard Guenther <rguenther@suse.de>
8751
8752 PR rtl-optimization/52800
8753 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
8754 CLEANUP_CFG_CHANGED.
8755
8756 2012-04-02 Richard Guenther <rguenther@suse.de>
8757
8758 PR middle-end/52803
8759 * loop-init.c (gate_handle_loop2): Destroy loops here if
8760 we don't enter RTL loop optimizers.
8761
8762 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
8763
8764 Partially revert:
8765 2012-03-29 Richard Guenther <rguenther@suse.de>
8766
8767 * rtl.h (extended_count): Remove.
8768 * combine.c (extended_count): Remove.
8769
8770 2012-04-02 Dodji Seketeli <dodji@redhat.com>
8771
8772 PR c++/40942
8773 * pt.c (more_specialized_fn): Don't apply decay conversion to
8774 types of function parameters.
8775
8776 2012-04-02 Tristan Gingold <gingold@adacore.com>
8777
8778 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
8779 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
8780 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
8781 (ggc_pch_this_base): Use uintptr_t instead of size_t.
8782
8783 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8784
8785 PR bootstrap/52784
8786 * config/i386/i386.c (ix86_option_override_internal): Don't
8787 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
8788
8789 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
8790
8791 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
8792 (stmt_can_make_abnormal_goto): Use it.
8793 (is_ctrl_altering_stmt): Likewise.
8794
8795 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
8796 Kaz Kojima <kkojima@gcc.gnu.org>
8797
8798 * config/sh/sh.c (push_regs): Skip banked registers when
8799 resbank attribute is specified.
8800 (sh_expand_epilogue): Likewise.
8801
8802 2012-03-30 Richard Henderson <rth@redhat.com>
8803
8804 PR debug/52727
8805 * combine-stack-adj.c (prev_active_insn_bb): New.
8806 (next_active_insn_bb): New.
8807 (force_move_args_size_note): New.
8808 (combine_stack_adjustments_for_block): Use it.
8809
8810 2012-03-30 Richard Henderson <rth@redhat.com>
8811
8812 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
8813 (ix86_expand_vector_init_duplicate): Initialize it.
8814 (expand_vec_perm_palignr): Likewise.
8815 (ix86_expand_vec_perm_const): Likewise.
8816 (ix86_vectorize_vec_perm_const_ok): Likewise.
8817 (expand_vec_perm_blend): Use it.
8818 (expand_vec_perm_vpermil): Likewise.
8819 (expand_vec_perm_pshufb): Likewise.
8820 (expand_vec_perm_1): Likewise.
8821 (expand_vec_perm_pshuflw_pshufhw): Likewise.
8822 (expand_vec_perm_interleave2): Likewise.
8823 (expand_vec_perm_vpermq_perm_1): Likewise.
8824 (expand_vec_perm_vperm2f128): Likewise.
8825 (expand_vec_perm_interleave3): Likewise.
8826 (expand_vec_perm_vperm2f128_vblend): Likewise.
8827 (expand_vec_perm_vpshufb2_vpermq): Likewise.
8828 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
8829 (expand_vec_perm_broadcast): Likewise.
8830 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8831
8832 2012-03-30 Richard Henderson <rth@redhat.com>
8833
8834 * dwarf2out.c (gen_variable_die): Initialize off.
8835
8836 2012-03-30 Tristan Gingold <gingold@adacore.com>
8837
8838 * config/vms/vms-f.c: New file.
8839 * config/vms/t-vms (vms-f.o): New rule.
8840 * config.gcc (*-*-*vms*): Define fortran_target_objs.
8841
8842 2012-03-30 Richard Guenther <rguenther@suse.de>
8843
8844 PR tree-optimization/52754
8845 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8846 propagate arbitrary addresses into really plain dereferences.
8847
8848 2012-03-30 Richard Guenther <rguenther@suse.de>
8849
8850 PR middle-end/52772
8851 * except.c (emit_to_new_bb_before): Move loop updating ...
8852 (dw2_build_landing_pads): ... here. Use a proper block for
8853 querying the loop father.
8854
8855 2012-03-30 Tristan Gingold <gingold@adacore.com>
8856
8857 * config/ia64/ia64.c (ia64_section_type_flags): Remove
8858 common_object attribute handling.
8859 (SECTION_VMS_OVERLAY): Remove
8860 (ia64_vms_common_object_attribute): Replace abort with an assert.
8861 Do not set DECL_SECTION_NAME.
8862 (ia64_vms_output_aligned_decl_common): Handle common_object
8863 attribute.
8864 (ia64_vms_elf_asm_named_section): Remove.
8865 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
8866
8867 2012-03-30 Richard Guenther <rguenther@suse.de>
8868
8869 PR middle-end/52786
8870 * double-int.c (rshift_double): Remove not needed cast.
8871
8872 2012-03-30 Richard Guenther <rguenther@suse.de>
8873
8874 * tree-affine.h (print_aff): Remove.
8875 * tree-affine.c (print_aff): Make static.
8876 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
8877 (get_references_in_stmt): Likewise.
8878 (print_direction_vector): Likewise.
8879 (print_dir_vectors): Likewise.
8880 (print_dist_vectors): Likewise.
8881 (dump_subscript): Likewise.
8882 (dump_ddrs): Likewise.
8883 (dump_dist_dir_vectors): Likewise.
8884 (dump_data_references): Likewise.
8885 (dump_data_dependence_relation): Likewise.
8886 (dump_data_dependence_direction): Likewise.
8887 (dump_rdg_vertex): Likewise.
8888 (dump_rdg_component): Likewise.
8889 (debug_ddrs): Declare.
8890 (struct data_ref_loc_d): Move ...
8891 * tree-data-ref.c (struct data_ref_loc_d): ... here.
8892 (get_references_in_stmt): Make static.
8893 (dump_data_references): Likewise.
8894 (dump_subscript): Likewise.
8895 (print_direction_vector): Likewise.
8896 (print_dir_vectors): Likewise.
8897 (print_dist_vectors): Likewise.
8898 (dump_data_dependence_relation): Likewise.
8899 (dump_dist_dir_vectors): Likewise.
8900 (dump_ddrs): Likewise.
8901 (dump_rdg_vertex): Likewise.
8902 (dump_rdg_component): Likewise.
8903 (debug_ddrs): New function.
8904 (access_matrix_get_index_for_parameter): Remove.
8905
8906 2012-03-30 Tristan Gingold <gingold@adacore.com>
8907
8908 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
8909 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
8910 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
8911 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
8912 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
8913 (vms_patch_builtins): Handle new flags
8914 * config/vms/vms-crtlmap.map: Completed using nm on
8915 c and math system libraries.
8916 * config/vms/make-crtlmap.awk: Handle any number of flags.
8917
8918 2012-03-30 Martin Jambor <mjambor@suse.cz>
8919
8920 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
8921 is a builtin_stack_save in a dominating BB.
8922
8923 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
8924
8925 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
8926 crossing 128bit lane boundary.
8927
8928 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
8929
8930 * ira-color.c (setup_left_conflict_sizes_p): Process all
8931 conflicting objects.
8932
8933 2012-03-29 Jakub Jelinek <jakub@redhat.com>
8934
8935 PR tree-optimization/52760
8936 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
8937 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
8938
8939 2012-03-29 Richard Guenther <rguenther@suse.de>
8940
8941 * cgraph.h (cgraph_materialize_all_clones): Remove.
8942 (reset_inline_failed): Likewise.
8943 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
8944 * cgraphbuild.c (reset_inline_failed): Remove.
8945 * rtl.h (cse_main): Remove.
8946 (extended_count): Likewise.
8947 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
8948 (cse_main): Make static.
8949 * combine.c (extended_count): Remove.
8950 (dump_combine_stats): Mark as DEBUG_FUNCTION.
8951 * basic-block.h (reorder_basic_blocks): Remove.
8952 * bb-reorder.c (reorder_basic_blocks): Make static.
8953 * Makefile.in (dse.o): Remove dse.h dependency.
8954 * dse.h: Remove.
8955 * dse.c (gate_dse): Remove.
8956 (clear_alias_mode_eq): Likewise.
8957 (clear_alias_mode_hash): Likewise.
8958 (dse_record_singleton_alias_set): Likewise.
8959 (dse_invalidate_singleton_alias_set): Likewise.
8960
8961 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
8962
8963 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
8964 crtbegin_so%O%s for -shared.
8965 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
8966
8967 2012-03-29 Richard Guenther <rguenther@suse.de>
8968
8969 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
8970 (add_to_value): Remove.
8971 (print_value_expressions): Likewise.
8972 * tree-ssa-pre.c (add_to_value): Make static.
8973 (print_value_expressions): Likewise.
8974 * gimple.h (gimple_adjust_this_by_delta): Remove.
8975 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
8976
8977 2012-03-29 Richard Guenther <rguenther@suse.de>
8978
8979 PR middle-end/50708
8980 * double-int.h (rshift_double): Remove.
8981 * double-int.c (lshift_double): Use absu_hwi to make count positive.
8982 (rshift_double): Make static, take unsigned count argument,
8983 remove handling of negative count argument.
8984 (double_int_rshift): Dispatch to lshift_double.
8985
8986 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
8987
8988 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
8989 OPTION_MASK_ABI_64.
8990
8991 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
8992 (SPEC_X32): Likewise.
8993 (MULTILIB_DEFAULTS): Likewise.
8994
8995 * config/i386/i386.c (isa_opts): Remove -m64.
8996 (ix86_target_string): Properly handle -m32/-m64/-mx32.
8997 (ix86_option_override_internal): Properly
8998 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
8999 handle -m32, -m64 and -mx32.
9000
9001 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
9002 with OPTION_ABI_X32. Moved after TARGET_LP64.
9003 (TARGET_LP64): Changed to OPTION_ABI_64.
9004
9005 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
9006 (mx32): Replace ISA_X32 with ABI_X32.
9007
9008 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
9009
9010 * tree.c (tree_size) <VECTOR_CST>: New case.
9011
9012 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
9013
9014 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
9015 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
9016
9017 2012-03-28 Jakub Jelinek <jakub@redhat.com>
9018
9019 PR middle-end/52691
9020 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
9021 __builtin_va_start to __builtin_next_arg if the latter is
9022 builtin_decl_explicit_p rather than when it is not.
9023
9024 PR middle-end/52750
9025 * tree-vect-generic.c (vector_element): Perform multiplication
9026 for pos in bitsizetype type instead of idx type.
9027
9028 2012-03-28 Richard Guenther <rguenther@suse.de>
9029
9030 * loop-init.c (loop_optimizer_init): If loops are preserved
9031 perform incremental initialization of required loop features.
9032 (loop_optimizer_finalize): If loops are to be preserved only
9033 clean up optional loop features.
9034 (rtl_loop_done): Forcefully free loops here.
9035 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
9036 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
9037 to existing loops.
9038 (construct_init_block): Likewise.
9039 (construct_exit_block): Likewise.
9040 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
9041 the CFG after expanding.
9042 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
9043 If we needed to calculate them, free them afterwards.
9044 * tree-pass.h (PROP_loops): New define.
9045 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
9046 * basic-block.h (CLEANUP_CFG_CHANGED): New.
9047 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
9048 (cleanup_cfg): If we did something and have loops around, fix them up.
9049 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
9050 with CLEANUP_CFG_CHANGED.
9051 * cfghooks.c (merge_blocks): If we merge a loop header into
9052 its predecessor, update the loop structure.
9053 (duplicate_block): If we copy a loop latch, adjust loop state
9054 to note we may have multiple latches.
9055 (delete_basic_block): Mark loops for fixup if we remove a loop.
9056 * cfganal.c (forwarder_block_p): Protect loop latches, headers
9057 and preheaders.
9058 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
9059 (cfg_layout_can_merge_blocks_p): Likewise.
9060 * cprop.c (bypass_block): If we create a loop with multiple
9061 entries, mark it for removal.
9062 * except.c (emit_to_new_bb_before): Add the new basic-block
9063 to existing loops.
9064 * tree-eh.c (lower_resx): Likewise.
9065 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
9066 (expand_omp_taskreg): Likewise.
9067 * tree-inline.c (initialize_cfun): Likewise.
9068 * tree-mudflap.c (add_bb_to_loop): Prototype.
9069 (mf_build_check_statement_for): Properly add new basic-blocks
9070 to existing loops.
9071 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
9072 if we remove a loop.
9073 (thread_through_loop_header): Likewise.
9074 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
9075 new basic-blocks to existing loops.
9076 (expand_transaction): Likewise.
9077 * Makefile.in (except.o): Add $(CFGLOOP_H).
9078 (expr.o): Likewise.
9079 (cgraph.o): Likewise.
9080 (cprop.o): Likewise.
9081 (cfgexpand.o): Likewise.
9082 (cfganal.o): Likewise.
9083 (trans-mem.o): Likewise.
9084 (tree-eh.o): Likewise.
9085
9086 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
9087
9088 PR target/52692
9089 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
9090 (avr_builtin_decl): New static function.
9091 (struct avr_builtin_description, avr_bdesc): Move up.
9092 Add GTY marker. Add field fndecl. Remove redundant field id.
9093 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
9094 (avr_expand_builtin): Code cleanup because .id is removed.
9095
9096 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
9097
9098 PR target/52737
9099 * config.gcc (tm_file): Remove avr/multilib.h.
9100
9101 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
9102
9103 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
9104 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
9105 * config/avr/t-avr: Remove generation of multilib.h.
9106 * config/avr/t-multilib: Regenerate.
9107 * config/avr/multilib.h: Remove.
9108 * config/avr/avr.opt (-msp8): New option.
9109 (avr_sp8): New variable.
9110 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
9111 * config/avr/avr.h (AVR_HAVE_SPH): New define.
9112 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
9113 (avr_device_to_sp8): New prototype.
9114 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
9115 (DRIVER_SELF_SPECS): New define.
9116 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
9117 __AVR_SP8__, __AVR_HAVE_SPH__.
9118 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
9119 AVR_HAVE_8BIT_SP to decide if SP_H is present.
9120 (avr_file_start): Ditto.
9121
9122 2012-03-28 Jakub Jelinek <jakub@redhat.com>
9123
9124 PR target/52736
9125 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
9126 instead of 8 in adjust_address.
9127
9128 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
9129
9130 PR middle-end/51893
9131 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
9132 targets.
9133
9134 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
9135
9136 PR target/50751
9137 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
9138 Rearrange conditional logic. Move displacement address calculations
9139 to ...
9140 (sh_find_mov_disp_adjust): ... this new function.
9141
9142 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
9143
9144 * config/arm/arm.opt (mapcs): Remove MaskExists.
9145 * config/cris/linux.opt (mno-gotplt): Likewise.
9146 * config/i386/i386.opt (mhard-float): Likewise.
9147 (msse4): Likewise.
9148 (mno-sse4): Likewise.
9149 * config/m68k/m68k.opt (mhard-float): Likewise.
9150 * config/mep/mep.op (mcop32): Likewise.
9151 * config/pa/pa-hpux.opt (msio): Likewise.
9152 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
9153 * config/picochip/picochip.opt (mlittle): Likewise.
9154 * config/sh/sh.opt (mrenesas): Likewise.
9155 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
9156 * config/sparc/sparc.opt (mhard-float): Likewise.
9157 * config/v850/v850.opt (mv850es): Likewise.
9158 * config/vax/vax.opt (mg-float): Likewise.
9159
9160 2012-03-27 Martin Jambor <mjambor@suse.cz>
9161
9162 PR middle-end/52693
9163 * tree-sra.c (sra_modify_assign): Do not call
9164 load_assign_lhs_subreplacements when working with an unscalarizable
9165 region.
9166
9167 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
9168
9169 PR target/52698
9170 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
9171 New prototype.
9172 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
9173 * config/i386/i386.c: Include reload.h.
9174 (ix86_legitimize_reload_address): New function.
9175
9176 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
9177
9178 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
9179 hasn't been allocated. Define a target macro for Mask and
9180 InverseMask if it hasn't been defined. Remove MaskExists handling.
9181
9182 * doc/options.texi: Remove MaskExists.
9183
9184 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
9185
9186 PR target/52667
9187 * config/sh/sh.c (find_barrier): Add equality check of last_got
9188 to avoid going above orig insn. Update comments.
9189
9190 2012-03-27 Richard Guenther <rguenther@suse.de>
9191
9192 PR middle-end/52720
9193 * fold-const.c (try_move_mult_to_index): Handle &x.array more
9194 explicitely.
9195
9196 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
9197
9198 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
9199 of a unit before computing the offset in units.
9200 * expr.c (get_bit_range): Return the null range if the enclosing record
9201 is part of a larger bit field.
9202
9203 2012-03-27 Tristan Gingold <gingold@adacore.com>
9204
9205 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
9206 * config/ia64/ia64.md: Remove mode in template.
9207 Sign extend operand in expand_simple_binop.
9208 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
9209 CASE_VECTOR_MODE instead of TARGET_ILP32.
9210 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
9211
9212 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
9213
9214 * varasm.c (assemble_external): #if 0 out the new assert from the
9215 previous commit, it breaks the Java and Go front ends.
9216
9217 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
9218
9219 * toplev.c (check_global_declaration_1): Do not call assemble_external.
9220 * expr.c (emit_block_move_libcall_fn): Likewise.
9221 (clear_storage_libcall_fn): Likewise.
9222 (expand_expr_addr_expr_1): Likewise.
9223 (expand_expr_real_1): Likewise.
9224 * calls.c (rtx_for_function_call): Likewise.
9225
9226 * varasm.c (assemble_external): Assert this function is only called
9227 during or after expanding to RTL.
9228
9229 2012-03-26 Martin Jambor <mjambor@suse.cz>
9230
9231 PR tree-optimization/50052
9232 * tree-sra.c (tree_non_aligned_mem_p): Removed.
9233 (tree_non_aligned_mem_for_access_p): Likewise.
9234 (build_accesses_from_assign): Removed strict alignment requirements
9235 checks.
9236 (access_precludes_ipa_sra_p): Likewise.
9237
9238 2012-03-26 Richard Guenther <rguenther@suse.de>
9239
9240 PR tree-optimization/52701
9241 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
9242 compute and set the evolution part of PHI nodes.
9243
9244 2012-03-26 Richard Guenther <rguenther@suse.de>
9245
9246 PR tree-optimization/52721
9247 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
9248
9249 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
9250
9251 PR tree-optimization/52686
9252 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
9253 WIDEN_LSHIFT_EXPR.
9254
9255 2012-03-26 Tristan Gingold <gingold@adacore.com>
9256
9257 * config/alpha/vms.h (LINK_SPEC): Simplify.
9258 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
9259 (NAME__MAIN, SYMBOL__MAIN): Remove.
9260 (VMS_DEBUG_MAIN_POINTER): Remove.
9261 * config/ia64/vms.h: Likewise.
9262 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
9263 code to vms.c. Call vms_start_function.
9264 * config/ia64/ia64.c (ia64_start_function): Likewise.
9265 * config/vms/vms-protos.h (vms_start_function): Declare.
9266 * config/vms/vms.c (vms_start_function): New function.
9267 * config/vms/vms.h (MATH_LIBRARY): Define.
9268 (VMS_DEBUG_MAIN_POINTER): Define.
9269
9270 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
9271
9272 PR rtl-optimization/52629
9273 * reload1.c (count_pseudo): Short-circuit common case.
9274 (count_spilled_pseudo): Return early for pseudos without hard regs.
9275 Assert that the pseudo has got a hard reg before manipulating it.
9276
9277 2012-03-24 Jan Hubicka <jh@suse.cz>
9278
9279 PR lto/51663
9280 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
9281 (decide_is_variable_needed): Do not handle toplevel reorder here.
9282 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
9283 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
9284 even at -O0.
9285
9286 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
9287
9288 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
9289 and str_bitsize instead of more convoluted expressions.
9290
9291 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
9292
9293 PR target/52610
9294 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
9295
9296 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
9297
9298 PR target/52656
9299 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
9300
9301 2012-03-23 Martin Jambor <mjambor@suse.cz>
9302
9303 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
9304
9305 2012-03-23 Richard Guenther <rguenther@suse.de>
9306
9307 PR tree-optimization/52678
9308 * tree-vectorizer.h (struct _stmt_vec_info): Add
9309 loop_phi_evolution_part member.
9310 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
9311 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
9312 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
9313 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
9314 Use the cached evolution part and the PHI nodes value from
9315 the loop preheader edge instead of re-analyzing the evolution.
9316
9317 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9318
9319 * config/mips/mips-tables.opt: Update.
9320 * config/mips/mips.md (processor): Add xlp.
9321 * config/mips/mips-cpus.def: Add xlp.
9322 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
9323 5KF for now.
9324 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
9325 * doc/invoke.texi: Mention XLP.
9326
9327 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9328
9329 PR middle-end/52547
9330 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
9331 on any new_local_var_chain vars declared during recursing on
9332 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
9333
9334 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
9335
9336 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
9337 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
9338 (ASM_OUTPUT_LOCAL): Ditto.
9339 (ASM_OUTPUT_COMMON): Remove.
9340 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
9341 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
9342
9343 2012-03-22 Jan Hubicka <jh@suse.cz>
9344
9345 PR middle-end/51737
9346 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
9347 parameter.
9348 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
9349 * ipa-inline-transform.c (save_inline_function_body): Remove
9350 copied clone if needed.
9351 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
9352
9353 2012-03-22 Richard Guenther <rguenther@suse.de>
9354
9355 PR middle-end/52666
9356 * fold-const.c (fold_ternary_loc): Fix typo.
9357
9358 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
9359
9360 PR target/52496
9361 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
9362 (unspecv): Add UNSPECV_MEMORY_BARRIER.
9363 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
9364 (delay_cycles_1, delay_cycles_2): Ditto.
9365 (delay_cycles_3, delay_cycles_4): Ditto.
9366 (nopv, *nopv): Ditto.
9367 (sleep, *sleep): Ditto.
9368 (wdr, *wdr): Ditto.
9369
9370 2012-03-22 Richard Guenther <rguenther@suse.de>
9371
9372 PR tree-optimization/52548
9373 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
9374 because of clobbers.
9375 (prune_clobbered_mems): New function.
9376 (compute_antic_aux): Use it to prune ANTIC_OUT.
9377 (compute_partial_antic_aux): Use it to prune PA_IN.
9378 (compute_avail): Only insert expressions into EXP_GEN that are not
9379 invalidated when translated up to the beginning of the block.
9380
9381 2012-03-22 Richard Guenther <rguenther@suse.de>
9382
9383 PR tree-optimization/52638
9384 * tree-vect-stmts.c (vect_init_vector_1): New function, split
9385 out from ...
9386 (vect_init_vector): ... here. Handle scalar vector inits.
9387 (vect_get_vec_def_for_operand): Adjust.
9388 (vectorizable_load): Likewise.
9389
9390 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
9391
9392 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
9393 (alpha*-*-freebsd*): Ditto.
9394 (alpha*-*-netbsd*): Ditto.
9395 (alpha*-*-openbsd*): Ditto.
9396 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
9397 (DWARF2_DEBUGGING_INFO): Remove.
9398 (PREFERRED_DEBUGGING_TYPE): Remove.
9399 (ASM_FINAL_SPEC): Remove.
9400 (IDENT_ASM_OP): Remove.
9401 (ASM_OUTPUT_IDENT): Remove.
9402 (SKIP_ASM_OP): Remove.
9403 (ASM_OUTPUT_SKIP): Remove.
9404 (ALIGN_ASM_OP): Remove.
9405 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9406 (ASM_OUTPUT_CASE_LABEL): Remove.
9407 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
9408 (COMMON_ASM_OP): Remove.
9409 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
9410 (ASCII_DATA_ASM_OP): Remove.
9411 (READONLY_DATA_SECTION_ASM_OP): Remove.
9412 (INIT_SECTION_ASM_OP): Remove.
9413 (FINI_SECTION_ASM_OP): Remove.
9414 (ASM_SECTION_START_OP): Remove.
9415 (ASM_OUTPUT_SECTION_START_FILE): Remove.
9416 (TARGET_ASM_NAMED_SECTION): Remove.
9417 (TARGET_ASM_SELECT_SECTION): Remove.
9418 (MAKE_DECL_ONE_ONLY): Remove.
9419 (TYPE_ASM_OP): Remove.
9420 (SIZE_ASM_OP): Remove.
9421 (ASM_WEAKEN_LABEL): Remove.
9422 (TYPE_OPERAND_FMT): Remove.
9423 (ASM_DECLARE_RESULT): Remove.
9424 (ASM_DECLARE_OBJECT_NAME): Remove.
9425 (ASM_FINISH_DECLARE_OBJECT): Remove.
9426 (ELF_ASCII_ESCAPES): Remove.
9427 (ELF_STRING_LIMIT): Remove.
9428 (STRING_ASM_OP): Remove.
9429 (ASM_OUTPUT_EXTERNAL): Remove.
9430 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
9431 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
9432 before define.
9433 (ASM_DECLARE_FUNCTION_NAME): Ditto.
9434 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
9435 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
9436 (ASM_OUTPUT_SKIP): Ditto.
9437 (READONLY_DATA_SECTION_ASM_OP): Remove.
9438 (USER_LABEL_PREFIX): Remove.
9439 (ASM_OUTPUT_ASCII): Remove.
9440 (ASM_OUTPUT_CASE_LABEL): Remove.
9441 (NO_DOLLAR_IN_LABEL): Undefine.
9442
9443 2012-03-22 Richard Guenther <rguenther@suse.de>
9444
9445 PR tree-optimization/52459
9446 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
9447 PHI insertion for calls.
9448
9449 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
9450
9451 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
9452 find_sets_in_insn, canonicalize_insn): Split out from ...
9453 (cse_insn): ... here.
9454 (invalidate_from_clobbers): Take an insn instead of the pattern.
9455
9456 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
9457
9458 PR target/52479
9459 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
9460 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
9461 * config/sh/sh.md (sindf2, cosdf2): Remove.
9462
9463 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
9464
9465 PR target/52642
9466 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
9467 prologue for unwinder and profiler.
9468
9469 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
9470
9471 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
9472 Introduce emul_name to select the right linker emulation for
9473 powerpc64-*-freebsd*.
9474 * configure: Regenerate.
9475 * config.gcc: Add bits to support powerpc64-*-freebsd*.
9476 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
9477 * config/rs6000/freebsd64.h: New file.
9478 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
9479 POWERPC_FREEBSD.
9480 (rs6000_savres_strategy): Likewise.
9481 (rs6000_savres_routine_name): Likewise.
9482 (rs6000_elf_file_end): Likewise.
9483 * config/rs6000/t-freebsd64: New file.
9484 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
9485 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
9486
9487 * config/rs6000/freebsd64.h: Remove duplicated entries from last
9488 commit.
9489 * config/rs6000/t-freebsd64: Likewise.
9490
9491 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
9492
9493 PR rtl-optimization/52543
9494 PR target/52461
9495 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
9496 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
9497 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
9498 (avr_load_libgcc_p): Restrict to __flash loads.
9499 (avr_out_lpm): Only handle 1-byte loads from __flash.
9500 (avr_load_lpm): New function.
9501 (avr_find_unused_d_reg): Remove.
9502 (avr_out_lpm_no_lpmx): Remove.
9503 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
9504 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
9505 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
9506 (load_<mode>, load_<mode>_clobber): New insns.
9507 (mov<mode>): For multi-byte move from non-generic
9508 16-bit address spaces: Expand to load_<mode> resp.
9509 load_<mode>_clobber.
9510 (load<mode>_libgcc): Remove expander.
9511 (split-lpmx): Remove split.
9512
9513 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
9514
9515 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
9516 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
9517 All callers changed.
9518 (Fixed_core_reg): New feature.
9519 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
9520 disassembly.
9521 * neon-testgen.ml: Handle Fixed_core_reg.
9522
9523 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
9524
9525 * config/arm/arm.c (thumb2_reorg): Add complete support
9526 for 16-bit instructions.
9527 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
9528
9529 2012-03-21 Richard Guenther <rguenther@suse.de>
9530
9531 PR tree-optimizer/52636
9532 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
9533 to the appropriate type.
9534
9535 2012-03-21 Richard Guenther <rguenther@suse.de>
9536
9537 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
9538 dependencies.
9539 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
9540 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9541 * passes.c (init_optimization_passes): Remove pass_init_function,
9542 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9543 * tree-pass.h (pass_init_function): Remove.
9544 (pass_jump): Remove.
9545 (pass_initial_value_sets): Remove.
9546 (pass_unshare_all_rtl): Remove.
9547 * integrate.c (pass_initial_value_sets): Remove.
9548 * emit-rtl.c (pass_unshare_all_rtl): Remove.
9549 * tree.h (init_function_for_compilation): Remove.
9550 * function.c (init_function_for_compilation): Remove.
9551 (pass_init_function): Remove.
9552 * cfgcleanup.c (rest_of_handle_jump): Remove.
9553 (pass_jump): Remove.
9554
9555 2012-03-20 Jason Merrill <jason@redhat.com>
9556
9557 * tree-streamer-in.c (streamer_alloc_tree): Call
9558 ggc_alloc_zone_cleared_tree_node instead of
9559 ggc_alloc_zone_cleared_tree_node_stat.
9560
9561 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
9562
9563 * doc/extend.texi (Template Instantiation): Remove anachronisms.
9564
9565 2012-03-20 Jakub Jelinek <jakub@redhat.com>
9566
9567 PR target/52607
9568 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
9569 (ix86_expand_vec_perm_const_1): Call it.
9570
9571 * config/i386/i386.c (vselect_insn): New variable.
9572 (init_vselect_insn): New function.
9573 (expand_vselect, expand_vselect_insn): Add testing_p argument.
9574 Call init_vselect_insn if vselect_insn is NULL. Adjust
9575 PATTERN (vselect_insn), instead of creating a new insn each time,
9576 only emit a copy of it if not testing and recog has been successful.
9577 (expand_vec_perm_pshufb, expand_vec_perm_1,
9578 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
9579 callers.
9580
9581 PR target/52607
9582 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
9583 ("enabled" attribute): Handle avx2 and noavx2 isas.
9584 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
9585 New insns.
9586 (vec_dup<mode>): Add avx2 =x,x alternative.
9587 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
9588 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
9589 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
9590 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
9591 for V8SFmode.
9592 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
9593 if possible, handle also V8SFmode.
9594
9595 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
9596
9597 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
9598 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
9599 reg_or_zero_operand predicate.
9600 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
9601
9602 2012-03-20 Jakub Jelinek <jakub@redhat.com>
9603
9604 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
9605 If operand isn't UNSPEC, return 0.
9606
9607 2012-03-20 Richard Guenther <rguenther@suse.de>
9608
9609 * tree-pass.h (pass_rtl_eh): Remove.
9610 * except.c (gate_handle_eh): Likewise.
9611 (rest_of_handle_eh): Likewise.
9612 (pass_rtl_eh): Likewise.
9613 (finish_eh_generation): Export.
9614 * except.h (finish_eh_generation): Declare.
9615 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
9616 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
9617 after expanding stack alignment. Instead of compacting blocks
9618 call cleanup_cfg.
9619
9620 2012-03-20 Richard Guenther <rguenther@suse.de>
9621
9622 * stor-layout.c (finish_bitfield_representative): Fallback
9623 to conservative maximum size if the padding up to the next
9624 field cannot be computed as a constant.
9625 (finish_bitfield_layout): If we cannot compute the distance
9626 between the start of the bitfield representative and the
9627 bitfield member start a new representative.
9628 * expr.c (get_bit_range): The distance between the start of
9629 the bitfield representative and the bitfield member is zero
9630 if the field offsets are not constants.
9631
9632 2012-03-20 Tristan Gingold <gingold@adacore.com>
9633
9634 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
9635 convert in lowercase.
9636 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
9637 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
9638 * stor-layout.c (sizetype_tab): Adjust.
9639 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
9640 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
9641 instead of type_kind_last.
9642 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
9643 instead of size_int_kind.
9644 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
9645 * doc/tm.texi: Regenerate.
9646 * defaults.h (SIZETYPE): Provide a default value.
9647 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
9648 (SIZETYPE): Define.
9649
9650 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
9651
9652 * config/sh/sh.md: Use braced string notation where applicable.
9653
9654 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9655
9656 * config/i386/i386.md (allocate_stack): Simplify.
9657
9658 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9659
9660 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
9661 copy_to_mode_reg (Pmode, ...).
9662 (expand_builtin_frame_address): Ditto.
9663 * expr.c (emit_block_move_via_libcall): Ditto.
9664 (set_storage_via_libcall): Ditto.
9665
9666 * config/i386/i386.c (ix86_expand_movmem): Ditto.
9667 (ix86_expand_setmem): Ditto.
9668 (ix86_trampoline_init): DItto.
9669 * config/i386/i386.md (cmpstrnsi): Ditto.
9670
9671 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
9672
9673 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
9674 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
9675 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
9676 (SH Options): Likewise.
9677
9678 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9679
9680 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
9681 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
9682 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
9683 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
9684 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
9685
9686 Revert:
9687 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9688
9689 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9690 * config/i386/i386.c (ix86_decompose_address): Use
9691 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9692 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9693 thread pointer to a register.
9694
9695 Revert:
9696 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
9697
9698 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
9699 if Pmode != word_mode.
9700 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
9701 Pmode == SImode for TARGET_X32.
9702
9703 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
9704 (tls_initial_exec_x32): Likewise.
9705
9706 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
9707
9708 PR target/50751
9709 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
9710 DISP_ADDR_OFFSET): New macros.
9711 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
9712 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
9713 (sh_legitimize_address): Add QImode displacement handling.
9714 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
9715 vector subregs.
9716 (sh_secondary_reload): Add QImode displacement handling.
9717 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
9718 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
9719 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
9720 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
9721 to register operands only.
9722 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
9723 (extendqihi2): Change insn to expander.
9724 (*extendqihi2_compact_reg): New insn.
9725 (movqi_i, movqi): Replace with ...
9726 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
9727 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
9728 Add new peepholes for QImode displacement addressing.
9729
9730 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
9731
9732 PR c++/14710
9733 * doc/invoke.texi: Document -Wuseless-cast.
9734
9735 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
9736
9737 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
9738 * tree.h (handled_component_p): Reorder cases.
9739 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
9740 not initialize unsignedp.
9741 (loc_list_from_tree): Likewise.
9742 (fortran_common): Likewise.
9743 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9744
9745 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9746
9747 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
9748 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
9749 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
9750 (ix86_split_long_move): Ditto.
9751 (legitimize_tls_address): Use ix86_gen_sub3.
9752 (construct_plt_address): Assert that Pmode == DImode.
9753
9754 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
9755
9756 * config/i386/i386.md: Remove empty predicates and/or constraints.
9757 * config/i386/sync.md: Ditto.
9758 * config/i386/sse.md: Ditto.
9759 * config/i386/mmx.md: Ditto.
9760 * config/i386/pentium.md: Ditto.
9761 * config/i386/athlon.md: Ditto.
9762
9763 2012-03-16 Richard Guenther <rguenther@suse.de>
9764
9765 PR tree-optimization/52603
9766 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
9767 comment.
9768
9769 Revert
9770 2012-03-14 Richard Guenther <rguenther@suse.de>
9771
9772 PR tree-optimization/52571
9773 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9774 flag_section_anchors check ...
9775 (vect_can_force_dr_alignment_p): ... here.
9776
9777 2012-03-16 Martin Jambor <mjambor@suse.cz>
9778
9779 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
9780 memory through MEM_REFs by calling extract_bit_field.
9781
9782 2012-03-16 Richard Guenther <rguenther@suse.de>
9783
9784 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
9785 and REFERENCE_TYPE interpretations.
9786 (can_native_interpret_type_p): New function.
9787 (fold_ternary_loc): Use native encode/interpret to fold
9788 BIT_FIELD_REFs of constants.
9789
9790 2012-03-16 Richard Guenther <rguenther@suse.de>
9791
9792 PR middle-end/52584
9793 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
9794 of vector constants and constructors.
9795
9796 2012-03-16 Richard Guenther <rguenther@suse.de>
9797
9798 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9799 VIEW_CONVERT_EXPR to convert constants.
9800 (vect_is_simple_use): Treat all constants as vec_constant_def.
9801
9802 2012-03-16 Richard Guenther <rguenther@suse.de>
9803 Kai Tietz <ktietz@redhat.com>
9804
9805 PR middle-end/48814
9806 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
9807 side-effects completely in the pre-queue and use a temporary
9808 for the result.
9809
9810 2012-03-16 Richard Guenther <rguenther@suse.de>
9811
9812 * stor-layout.c (finish_bitfield_representative): Fall back
9813 to the conservative maximum size if we cannot compute the
9814 size of the tail padding.
9815
9816 2012-03-16 Tristan Gingold <gingold@adacore.com>
9817
9818 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
9819 __CRTL_VER and __VMS_VER.
9820 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
9821 and vms_c_get_vms_ver.
9822 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
9823 functions.
9824 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
9825 (VMS_DEFAULT_VMS_VER): Define.
9826 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
9827 (VMS_DEFAULT_VMS_VER): Define.
9828
9829 2012-03-16 Richard Guenther <rguenther@suse.de>
9830
9831 * tree-vect-loop.c (get_initial_def_for_induction): Use
9832 build_constructor directly.
9833 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9834 build_vector_from_val.
9835 * tree.c (build_vector_from_val): Avoid creating a constructor
9836 first when we want a constant vector.
9837
9838 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9839
9840 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
9841
9842 2012-03-16 Richard Guenther <rguenther@suse.de>
9843
9844 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
9845 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
9846 (struct tree_vector): Remove elements member, add variable size
9847 elts array member.
9848 (build_vector_stat): Declare.
9849 (build_vector): Define in terms of build_vector_stat.
9850 * tree.c (build_vector): Rename to ...
9851 (build_vector_stat): ... this. Take array of trees as parameter.
9852 (build_vector_from_ctor): Adjust.
9853 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
9854 initializer_zerop): Adjust.
9855 * cfgexpand.c (expand_debug_expr): Likewise.
9856 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
9857 const_vector_from_tree): Likewise.
9858 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
9859 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
9860 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
9861 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
9862 (lto_input_ts_vector_tree_pointers): Adjust.
9863 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
9864 (write_ts_vector_tree_pointers): Adjust.
9865 * varasm.c (const_hash_1, compare_constant, copy_constant,
9866 output_constant): Adjust.
9867 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
9868 * print-tree.c (print_node): Adjust.
9869 * tree-pretty-print.c (dump_generic_node): Adjust.
9870 * tree-vect-generic.c (uniform_vector_p, vector_element,
9871 lower_vec_perm): Adjust.
9872 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
9873 * tree-vect-slp.c (vect_get_constant_vectors,
9874 vect_transform_slp_perm_load): Adjust.
9875 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
9876 * expmed.c (make_tree): Adjust.
9877 * config/i386/i386.c (ix86_expand_builtin): Adjust.
9878 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
9879 and implementation.
9880 (sparc_fold_builtin): Adjust.
9881
9882 2012-03-16 Tristan Gingold <gingold@adacore.com>
9883
9884 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
9885 * config/vms/vms-stdint.h: New file.
9886
9887 2012-03-16 Tristan Gingold <gingold@adacore.com>
9888
9889 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
9890 (ia64-hp-*vms*): Replaced by ...
9891 (*-*-*vms*): ... This new entry.
9892
9893 2012-03-15 Jakub Jelinek <jakub@redhat.com>
9894
9895 PR target/52568
9896 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
9897 (ix86_expand_vec_perm_const_1): Use it.
9898
9899 PR target/52568
9900 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
9901 (avx2_permv4df): Remove.
9902 (avx2_permv4di): Macroize into...
9903 (avx2_perm<mode>): ... this using VI8F_256 iterator.
9904 (avx2_permv4di_1): Macroize into...
9905 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
9906
9907 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
9908
9909 * combine.c (apply_distributive_law): Do not distribute SUBREG.
9910
9911 2012-03-15 Ira Rosen <irar@il.ibm.com>
9912 Ulrich Weigand <ulrich.weigand@linaro.org>
9913
9914 * tree-vect-patterns.c (widened_name_p): Rename to ...
9915 (type_conversion_p): ... this. Add new argument to determine
9916 if it's a promotion or demotion operation. Check for
9917 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
9918 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
9919 widened_name_p.
9920 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
9921 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
9922 Likewise.
9923 (vect_recog_mixed_size_cond_pattern): Likewise and allow
9924 non-constant then and else clauses.
9925
9926 2012-03-15 Ira Rosen <irar@il.ibm.com>
9927 Ulrich Weigand <ulrich.weigand@linaro.org>
9928
9929 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
9930 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
9931 vect_pattern_recog.
9932 * tree-vect-patterns.c (widened_name_p): Pass basic block
9933 info to vect_is_simple_use.
9934 (vect_recog_dot_prod_pattern): Fail for basic blocks.
9935 (vect_recog_widen_sum_pattern): Likewise.
9936 (vect_handle_widen_op_by_const): Support basic blocks.
9937 (vect_operation_fits_smaller_type,
9938 vect_recog_over_widening_pattern): Likewise.
9939 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
9940 Update call to vect_is_simple_use.
9941 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
9942 Add printing.
9943 (check_bool_pattern): Add an argument, update call to
9944 vect_is_simple_use and the recursive calls.
9945 (vect_recog_bool_pattern): Update relevant function calls.
9946 Add printing.
9947 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
9948 (vect_pattern_recog_1): Check for reduction only in loops.
9949 (vect_pattern_recog): Add new argument. Support basic blocks.
9950 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
9951 info to vect_is_simple_use_1.
9952 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
9953 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
9954
9955 2012-03-15 Jakub Jelinek <jakub@redhat.com>
9956 Andrew Pinski <apinski@cavium.com>
9957
9958 PR middle-end/52592
9959 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
9960 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
9961 calls instead of __builtin_ir{int,ound}*.
9962
9963 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9964
9965 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
9966 documentation.
9967
9968 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9969
9970 * config.gcc (target_type_format_char): New. Document it. Set it for
9971 arm*-*-* .
9972 * configure.ac (gnu_unique_option): Use target_type_format_char
9973 in test. Comment rationale.
9974 * configure: Regenerate .
9975
9976 2012-03-15 Jakub Jelinek <jakub@redhat.com>
9977
9978 PR tree-optimization/52267
9979 * tree-vrp.c (masked_increment): New function.
9980 (register_edge_assert_for_2): Derive ASSERT_EXPRs
9981 from (X & CST1) cmp CST2 tests.
9982
9983 2012-03-15 Richard Guenther <rguenther@suse.de>
9984
9985 PR middle-end/52580
9986 * tree-data-ref.c (subscript_dependence_tester_1): Check
9987 all dimensions for non-conflicting access functions.
9988
9989 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9990
9991 PR c++/44783
9992 * doc/invoke.texi [C++ Language Options]: Document
9993 -ftemplate-backtrace-limit.
9994
9995 2012-03-15 Tristan Gingold <gingold@adacore.com>
9996
9997 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
9998 before a parameter.
9999
10000 2012-03-15 Tristan Gingold <gingold@adacore.com>
10001
10002 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
10003 use DW_OP_call_frame_cfa.
10004
10005 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
10006
10007 PR target/50797
10008 * config/i386/i386-opts.h (pmode): New.
10009
10010 * config/i386/i386.c (ix86_option_override_internal): Properly
10011 check and set ix86_pmode.
10012
10013 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
10014
10015 * config/i386/i386.opt (maddress-mode=): New.
10016
10017 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
10018
10019 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10020
10021 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
10022 (dwarf2out_do_cfi_asm): Likewise.
10023 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
10024 handling.
10025 (add_data_member_location_attribute): Likewise.
10026 (gen_array_type_die): Likewise.
10027 (gen_subprogram_die): Likewise.
10028 (gen_producer_string): Likewise.
10029 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
10030 Remove MIPS_DEBUGGING_INFO handling.
10031 (sdb_debug_hooks): Likewise.
10032 (sdbout_begin_block): Likewise.
10033 (sdbout_end_block): Likewise.
10034 (sdbout_begin_prologue): Likewise.
10035 (sdbout_start_source_file): Likewise.
10036 (sdbout_end_source_file): Likewise.
10037 (sdbout_init): Likewise.
10038 * system.h (MIPS_DEBUGGING_INFO): Poison.
10039
10040 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10041
10042 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
10043 (alpha_file_start) [MS_STAMP]: Remove.
10044
10045 * config/alpha/elf.h (TARGET_GAS): Remove.
10046 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
10047 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
10048 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
10049 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
10050 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
10051 (alpha*-*-freebsd*): Likewise.
10052 (alpha*-*-netbsd*): Likewise.
10053 (alpha*-*-openbsd*): Likewise.
10054 (alpha*-*-*): Remove target_cpu_default2.
10055 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
10056 handling.
10057 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
10058 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
10059 * config/alpha/alpha.c (print_operand): Always assume
10060 TARGET_AS_SLASH_BEFORE_SUFFIX.
10061 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
10062 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
10063 ("*builtin_setjmp_receiver_er_1"): Remove.
10064 * config/alpha/alpha.opt (malpha-as): Remove.
10065 (mgas): Ignore.
10066 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
10067 -malpha-as, -mgas.
10068 Remove DEC Unix reference.
10069
10070 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
10071 (EXTENDED_COFF): Remove.
10072 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
10073 (EXTENDED_COFF): Don't undef.
10074 * config/alpha/alpha.c (alpha_file_start): Always assume
10075 OBJECT_FORMAT_ELF.
10076 Don't set targetm.asm_file_start_file_directive.
10077 [!OBJECT_FORMAT_ELF]: Remove.
10078 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10079
10080 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
10081 (DBX_DEBUGGING_INFO): Remove.
10082 (MIPS_DEBUGGING_INFO): Remove.
10083 (PREFERRED_DEBUGGING_TYPE): Remove.
10084 (DBX_OUTPUT_SOURCE_LINE): Remove.
10085 (SDB_OUTPUT_SOURCE_LINE): Remove.
10086 (DBX_CONTIN_LENGTH): Remove.
10087 (NO_DBX_FUNCTION_END): Remove.
10088 (ASM_STABS_OP): Remove.
10089 (ASM_STABN_OP): Remove.
10090 (ASM_STABD_OP): Remove.
10091 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
10092 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
10093 (PUT_SDB_DEF): Remove.
10094 (PUT_SDB_PLAIN_DEF): Remove.
10095 (PUT_SDB_TYPE): Remove.
10096 (sdb_label_count): Remove.
10097 (PUT_SDB_BLOCK_START): Remove.
10098 (PUT_SDB_BLOCK_END): Remove.
10099 (PUT_SDB_FUNCTION_START): Remove.
10100 (PUT_SDB_FUNCTION_END): Remove.
10101 (PUT_SDB_EPILOGUE_END): Remove.
10102 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
10103 (MIPS_DEBUGGING_INFO): Don't undef.
10104 (DBX_DEBUGGING_INFO): Don't undef.
10105 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
10106 (MIPS_DEBUGGING_INFO): Don't undef.
10107 (DBX_DEBUGGING_INFO): Don't undef.
10108 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
10109 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
10110 handling.
10111 (alpha_start_function): Likewise.
10112 (sdb_label_count): Remove.
10113 (alpha_output_filename): Remove DBX_DEBUG handling.
10114 (alpha_file_start): Likewise.
10115
10116 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10117
10118 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
10119 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
10120 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
10121 Solaris 8 support.
10122 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
10123 (ld_tls_support): Remove Solaris 8 references.
10124 (lwp_dir, lwp_spec): Remove support for alternate thread library.
10125 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
10126 * configure: Regenerate.
10127 * config.in: Regenerate.
10128
10129 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
10130 * config/i386/sol2.h: Remove Solaris 8 references.
10131
10132 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
10133 (i?86-*-solaris2.9): ... this.
10134 Remove Solaris 8 references.
10135 (Specific, *-*-solaris2*): Document Solaris 8 removal.
10136 Remove Solaris 8 references.
10137
10138 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10139
10140 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
10141 (mips-sgi-irix6.5*): Remove.
10142 * config.host (mips-sgi-irix*): Remove.
10143 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
10144 (set_have_as_tls): Remove *-*-irix6*.
10145 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
10146 * configure: Regenerate.
10147
10148 * config/mips/iris6.h: Remove.
10149 * config/mips/iris6.opt: Remove.
10150 * config/mips/t-irix6: Remove.
10151
10152 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
10153 (TARGET_IRIX6): Remove.
10154 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
10155 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
10156 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
10157 handling.
10158 (mips_file_start): Likewise.
10159 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
10160
10161 * config/mips/driver-native.c [__sgi__]: Remove.
10162 (host_detect_local_cpu) [__sgi__]: Remove.
10163
10164 * config/mips/gnu-user.h: Remove iris5.h reference.
10165
10166 * config/mips/mips-modes.def: Remove IRIX 6 reference.
10167 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
10168 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
10169 Remove.
10170
10171 * gcc.c (main): Move asm_debug initialization ...
10172 (asm_debug): ... here.
10173
10174 * ginclude/stddef.h (__STDDEF_H__): Don't define.
10175
10176 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
10177 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
10178 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
10179 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
10180 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
10181 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
10182 Remove.
10183 * doc/tm.texi: Regenerate.
10184
10185 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
10186 IRIX 6 reference.
10187 (MIPS Options, -march): Remove IRIX reference.
10188 * doc/install.texi (Binaries, SGI IRIX): Remove.
10189 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
10190 of section.
10191 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
10192
10193 2012-03-14 Martin Jambor <mjambor@suse.cz>
10194
10195 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
10196 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
10197 (expand_expr_real_1): Do not handle misalignment if modifier is
10198 EXPAND_WRITE.
10199
10200 2012-03-14 Richard Guenther <rguenther@suse.de>
10201
10202 PR middle-end/52584
10203 * tree-vect-generic.c (type_for_widest_vector_mode): Take
10204 element type instead of mode, use build_vector_type_for_mode
10205 instead of the langhook, build a vector of proper signedness.
10206 (expand_vector_operations_1): Adjust.
10207
10208 2012-03-14 Richard Guenther <rguenther@suse.de>
10209
10210 PR middle-end/52582
10211 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
10212 a cgraph node for a FUNCTION_DECL that comes from a constructor.
10213 (gimple_get_virt_method_for_binfo): Likewise.
10214
10215 2012-03-14 Richard Guenther <rguenther@suse.de>
10216
10217 PR tree-optimization/52571
10218 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
10219 flag_section_anchors check ...
10220 (vect_can_force_dr_alignment_p): ... here. Do not re-align
10221 DECL_COMMON variables.
10222
10223 2012-03-14 Richard Guenther <rguenther@suse.de>
10224
10225 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
10226 * stor-layout.c (start_bitfield_representative): New function.
10227 (finish_bitfield_representative): Likewise.
10228 (finish_bitfield_layout): Likewise.
10229 (finish_record_layout): Call finish_bitfield_layout.
10230 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
10231 for QUAL_UNION_TYPE fields.
10232 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
10233 Stream DECL_BIT_FIELD_REPRESENTATIVE.
10234 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
10235
10236 PR middle-end/52080
10237 PR middle-end/52097
10238 PR middle-end/48124
10239 * expr.c (get_bit_range): Unconditionally extract bitrange
10240 from DECL_BIT_FIELD_REPRESENTATIVE.
10241 (expand_assignment): Adjust call to get_bit_range.
10242
10243 2012-03-14 Richard Guenther <rguenther@suse.de>
10244
10245 PR middle-end/52578
10246 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
10247 the outermost conversion is a sign-change only.
10248 (fold_binary_loc): Disregard widening and sign-changing
10249 conversions when we determine if two variables are equal
10250 for reassociation.
10251 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
10252 (T1)x if the outermost conversion is a sign-change only.
10253
10254 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
10255
10256 Revert:
10257 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
10258
10259 * config/i386/predicates.md (constant_call_address_operand): Declare
10260 as special predicate. Update all uses.
10261
10262 2012-03-13 Jakub Jelinek <jakub@redhat.com>
10263
10264 PR c/52577
10265 * c-parser.c (c_parser_postfix_expression)
10266 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
10267
10268 * config/i386/smmintrin.h: Avoid /* within a comment.
10269 * config/i386/nmmintrin.h: Likewise.
10270
10271 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10272
10273 * config/i386/i386.md (xbegin): Remove constraint from expander.
10274
10275 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10276
10277 * config/i386/predicates.md (constant_call_address_operand): Declare
10278 as special predicate. Update all uses.
10279 * config/i386/i386.md: Remove mode from constant_call_address_operand
10280 predicates.
10281 * config/i386/i386.c (ix86_output_call_insn): Call
10282 constant_call_address_operand with VOIDmode.
10283
10284 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10285
10286 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
10287 AND zero extended address correctly.
10288
10289 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10290
10291 * config/i386/predicates.md (tls_symbolic_operand): Declare as
10292 special predicate.
10293 (tls_modbase_operand): Ditto.
10294 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
10295 tls_modbase_operand predicates.
10296
10297 2012-03-13 Martin Jambor <mjambor@suse.cz>
10298
10299 * expr.c (expand_assignment): Handle misaligned scalar writes to
10300 memory through top-level MEM_REFs by calling store_bit_field.
10301
10302 2012-03-13 Richard Guenther <rguenther@suse.de>
10303
10304 PR middle-end/52134
10305 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
10306 if Y is a constant multiple of 1 << CST.
10307
10308 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
10309
10310 PR target/52488
10311 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
10312 offset (size) to a value the insns can deal with.
10313 (expand_epilogue): Ditto.
10314
10315 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10316
10317 * config/arm/neon.ml (ops): Fixup expected instructions for
10318 unsigned vector compares.
10319
10320 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10321
10322 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
10323 addresses only when %reg is not in word mode.
10324
10325 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10326
10327 * config/microblaze/microblaze.md: Fix typo.
10328 * tree-if-conv.c: Likewise.
10329 * tree-vect-patterns.c: Likewise.
10330
10331 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10332
10333 * config.gcc (extra_passes): Remove.
10334 * configure.ac (extra_passes): Don't substitute.
10335 * configure: Regenerate.
10336 * Makefile.in (EXTRA_PASSES): Remove.
10337 (GCC_PASSES): Remove $(EXTRA_PASSES).
10338 (MOSTLYCLEANFILES): Likewise.
10339 (native): Likewise.
10340 (install-common): Likewise.
10341
10342 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10343
10344 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
10345 * config/i386/i386.c (ix86_decompose_address): Use
10346 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
10347 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
10348 thread pointer to a register.
10349
10350 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
10351
10352 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
10353 on tls_symbolic_operand.
10354 (tls_global_dynamic_64_<mode>): Likewise.
10355
10356 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
10357
10358 PR other/52545
10359 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
10360 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
10361
10362 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
10363
10364 PR target/52499
10365 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
10366 type from reg_class_t to enum reg_class.
10367 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
10368
10369 2012-03-12 Andrew Pinski <apinski@cavium.com>
10370
10371 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
10372 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
10373 (value_replacement): Likewise.
10374 (empty_block_p): Check also if the PHIs for the block are empty.
10375
10376 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
10377
10378 PR target/52148
10379 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
10380 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
10381 r184615 from 2012-02-28.
10382
10383 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
10384
10385 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
10386 (ix86_gen_tls_local_dynamic_base_64): Likewise.
10387 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
10388 and ix86_gen_tls_local_dynamic_base_64.
10389 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
10390 ix86_gen_tls_local_dynamic_base_64.
10391
10392 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
10393 (*tls_global_dynamic_64_<mode>): This.
10394 (tls_global_dynamic_64): Renamed to ...
10395 (tls_global_dynamic_64_<mode>): This.
10396 (*tls_local_dynamic_base_64): Renamed to ...
10397 (*tls_local_dynamic_base_64_<mode>): This.
10398 (tls_local_dynamic_base_64): Renamed to ...
10399 (tls_local_dynamic_base_64_<mode>): This.
10400
10401 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
10402
10403 * config/i386/i386.c (ix86_option_override_internal): Properly
10404 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
10405 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
10406 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
10407 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10408
10409 * config/i386/sse.md (sse3_monitor64): Renamed to ...
10410 (sse3_monitor64_<mode>): This.
10411
10412 2012-03-12 Tristan Gingold <gingold@adacore.com>
10413
10414 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
10415 (ia64_function_arg_advance): Ditto.
10416
10417 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10418
10419 * config.gcc (mips*-*-openbsd*): Remove.
10420 * config/mips/openbsd.h: Remove.
10421 * config/mips/sdb.h: Remove.
10422
10423 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
10424 * config/mips/mips.c (sdb_label_count): Remove.
10425 (mips_debugger_offset): Remove #if 0 code.
10426 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
10427 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
10428
10429 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10430
10431 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
10432 binutils reference.
10433 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
10434 Update binutils references.
10435 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
10436 Update binutils reference.
10437 Update Sun as/GNU ld caveat.
10438 Document binutils largefile requirement for LTO plugin.
10439 Remove reference to alternate libpthread.
10440
10441 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10442
10443 * config.gcc (alpha*-dec-osf5.1*): Remove.
10444 * config.host (alpha*-dec-osf*): Remove.
10445 * configure.ac (*-*-osf*): Remove.
10446 (alpha*-dec-osf*): Remove.
10447 * configure: Regenerate.
10448
10449 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
10450 config/alpha/va_list.h, config/alpha/x-osf: Remove.
10451
10452 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
10453 * config/alpha/alpha.c (struct machine_function): Update comment.
10454 (alpha_start_function): Remove Tru64 UNIX as handling for
10455 max_frame_size.
10456 * config/alpha/alpha.md ("exception_receiver"): Remove
10457 TARGET_LD_BUGGY_LDGP.
10458 ("*exception_receiver_2"): Likewise.
10459 * except.c (finish_eh_generation): Remove Tru64 reference.
10460 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
10461 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
10462 * target.def (handle_pragma_extern_prefix): Remove.
10463
10464 * Makefile.in (mips-tfile.o-warn): Remove.
10465 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
10466 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
10467 * mips-tdump.c, mips-tfile.c: Remove.
10468
10469 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
10470 extern_prefix.
10471 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
10472 (Specific, alpha*-dec-osf5.1): Note removal.
10473 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
10474 Remove.
10475 * doc/tm.texi: Regenerate.
10476 * doc/trouble.texi (Cross-Compiler Problems): Remove.
10477
10478 2012-03-12 Richard Guenther <rguenther@suse.de>
10479
10480 * config/arm/arm.c (neon_dereference_pointer): Do not call
10481 covert during RTL expansion.
10482
10483 2012-03-12 Tristan Gingold <gingold@adacore.com>
10484
10485 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
10486 Options. Mention -mpointer-size.
10487
10488 2012-03-12 Richard Guenther <rguenther@suse.de>
10489
10490 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
10491 build_nonstandard_integer_type.
10492
10493 2012-03-12 Richard Guenther <rguenther@suse.de>
10494
10495 * tree.c (signed_or_unsigned_type_for): Use
10496 build_nonstandard_integer_type.
10497 (signed_type_for): Adjust documentation.
10498 (unsigned_type_for): Likewise.
10499 * tree-pretty-print.c (dump_generic_node): Use standard names
10500 for non-standard integer types if available.
10501
10502 2012-03-12 Tristan Gingold <gingold@adacore.com>
10503
10504 * config/vms/vms.opt: Add vms-opts.h header.
10505 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
10506 target mask.
10507 (-mvms-return-codes): Document.
10508 (-mpointer-size): New option.
10509 (vms_pointer_size): Add enumeration.
10510 * config/vms/vms-opts.h: New file.
10511 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
10512 __INITIAL_POINTER_SIZE.
10513 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
10514 (C_COMMON_OVERRIDE_OPTIONS): Define.
10515 (DWARF2_ADDR_SIZE): Define.
10516 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
10517 * config/vms/vms-protos.h (vms_c_common_override_options):
10518 New prototype.
10519 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
10520 if -mno-pointer-size.
10521 (vms_c_common_override_options): New function.
10522 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10523 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10524 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
10525 and flag_vms_pointer_size.
10526 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
10527 * config.gcc (*-*-*vms*): Define xm_file.
10528 (alpha*-dec-*vms*): Do not define xm_file.
10529 (alpha64-dec-*vms*): Remove.
10530 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
10531 and tmake_file.
10532
10533 2012-03-12 Jakub Jelinek <jakub@redhat.com>
10534
10535 PR tree-optimization/51721
10536 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
10537 if (int) unsvar cmp CST.
10538
10539 2012-03-12 Richard Guenther <rguenther@suse.de>
10540
10541 * tree-sra.c (create_access_replacement): Only rename the replacement
10542 if we can rewrite it into SSA form. Properly mark register typed
10543 replacements that we cannot rewrite with TREE_ADDRESSABLE.
10544 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
10545 for aggregate or BLKmode results.
10546
10547 2012-03-12 Jakub Jelinek <jakub@redhat.com>
10548
10549 PR tree-optimization/52533
10550 * tree-vrp.c (register_edge_assert_for_2): Use double_int
10551 type for mask, only handle shifts by non-zero in-range
10552 shift count, for LE_EXPR and GT_EXPR if new_val is
10553 maximum, don't add the assertion.
10554
10555 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
10556
10557 * doc/invoke.texi: Document -mrtm option.
10558 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
10559 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
10560 (ix86_handle_option): Handle OPT_mrtm.
10561 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
10562 xtestintrin.h.
10563 (x86_64-*-*): Ditto.
10564 * i386-builtin-types.def (INT_FTYPE_VOID): New.
10565 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10566 __RTM__ if needed.
10567 (ix86_target_string): Define -mrtm option.
10568 (PTA_RTM): New.
10569 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
10570 Handle new option.
10571 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
10572 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
10573 IX86_BUILTIN_XTEST.
10574 (bdesc_special_args): Ditto.
10575 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
10576 (ix86_expand_special_args_builtin): Handle new built-in type.
10577 (ix86_expand_builtin): Handle XABORT instruction.
10578 * config/i386/i386.h (TARGET_RTM): New.
10579 * config/i386/i386.md (UNSPECV_XBEGIN): New.
10580 (UNSPECV_XEND): Ditto.
10581 (UNSPECV_XABORT): Ditto.
10582 (UNSPECV_XTEST): Ditto.
10583 (xbegin): Ditto.
10584 (xbegin_1): Ditto.
10585 (xend): Ditto.
10586 (xabort): Ditto
10587 (xtest): Ditto.
10588 (xtest_1): Ditto.
10589 * config/i386/i386.opt (mrtm): New.
10590 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
10591 * config/i386/rtmintrin.h: New header.
10592 * config/i386/xtestintrin.h: Ditto.
10593
10594 2012-03-12 Tristan Gingold <gingold@adacore.com>
10595
10596 * ginclude/stddef.h: Adjust previous patch.
10597 Use __VMS__ instead of VMS.
10598
10599 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
10600
10601 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
10602 Also convert sequences with CC setting arithmetic instruction.
10603
10604 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
10605
10606 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
10607 from C Language Options to Preprocessor Options.
10608 (C Dialect Options): Move -no-integrated-cpp documentation
10609 from here...
10610 (Preprocessor Options): ...to here. Rewrite the description
10611 so it makes more sense, and remove discussion of merging front ends.
10612
10613 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10614
10615 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
10616 needed for loop.
10617 (ix86_expand_setmem): Likewise.
10618
10619 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
10620
10621 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
10622 convert_to_mode.
10623
10624 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10625
10626 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
10627 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
10628
10629 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10630
10631 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
10632
10633 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10634
10635 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
10636 TARGET_64BIT.
10637
10638 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10639 Uros Bizjak <ubizjak@gmail.com>
10640
10641 * config/i386/predicates.md (call_insn_operand): Allow
10642 constant_call_address_operand in Pmode only.
10643 (sibcall_insn_operand): Ditto.
10644 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
10645 (*call_vzeroupper): Ditto.
10646 (*sibcall): Ditto.
10647 (*sibcall_vzeroupper): Ditto.
10648 (*call_value): Ditto.
10649 (*call_value_vzeroupper): Ditto.
10650 (*sibcall_value): Ditto.
10651 (*sibcall_value_vzeroupper): Ditto.
10652 (*indirect_jump): Ditto.
10653 (*tablejump_1): Ditto.
10654 (indirect_jump): Convert memory address to word mode for TARGET_X32.
10655 (tablejump): Ditto.
10656 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
10657 to word mode.
10658
10659 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
10660
10661 PR target/51244
10662 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
10663 Use movrt_negc instead of negc pattern for non-SH2A.
10664 (*movnegt): Remove.
10665 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
10666
10667 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
10668
10669 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
10670 if Pmode != word_mode.
10671 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
10672 Pmode == SImode for TARGET_X32.
10673
10674 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
10675 (tls_initial_exec_x32): Likewise.
10676
10677 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
10678
10679 PR rtl-optimization/52528
10680 * combine.c (can_combine_p): Add setting of subst_low_luid
10681 before call to expand_field_assignment().
10682
10683 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
10684
10685 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
10686 and related program names.
10687
10688 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
10689
10690 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
10691
10692 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
10693
10694 PR target/52530
10695 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
10696 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
10697 to set code to 'q'.
10698 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
10699 (*movdi_internal_rex64): Use %E operand modifier for lea.
10700 (*movsi_internal): Ditto.
10701 (*lea_1): Ditto.
10702 (*lea<mode>_2): Ditto.
10703 (*lea_{3,4,5,6}_zext): Ditto.
10704 (*tls_global_dynamic_32_gnu): Ditto.
10705 (*tls_global_dynamic_64): Ditto.
10706 (*tls_dynamic_gnu2_lea_32): Ditto.
10707 (*tls_dynamic_gnu2_lea_64): Ditto.
10708 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
10709
10710 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10711
10712 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
10713 redefine to be NULL if the current bit-size is different from the
10714 configured bit-size.
10715
10716 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
10717 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
10718 set the default tuning. Add asserts to make sure the cpu and tune
10719 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
10720 test whether the index is set, instead of > 0.
10721 (rs6000_file_start): Do not reset the default cpu if the current
10722 bit-size is different from the configured bit-size.
10723
10724 2012-03-09 Tristan Gingold <gingold@adacore.com>
10725
10726 * config/vms/vms-crtlmap.map: Add comments.
10727 Add entries needed to build Ada RTS.
10728
10729 2012-03-09 Tristan Gingold <gingold@adacore.com>
10730
10731 * ginclude/stddef.h: Do not define __size_t on VMS.
10732
10733 2012-03-09 Tristan Gingold <gingold@adacore.com>
10734
10735 * c-tree.h (c_default_pointer_mode): New variable.
10736 * c-decl.c (c_default_pointer_mode): New variable.
10737 (c_build_pointer_type): New function.
10738 (grokdeclarator): Call c_build_pointer_type instead
10739 of build_pointer_type.
10740
10741 * config/vms/vms-c.c: Include c-tree.h
10742 (saved_pointer_mode): New variable.
10743 (handle_pragma_pointer_size): New function.
10744 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
10745 (vms_c_register_pragma): Register __pointer_size and
10746 __required_pointer_size pragmas.
10747
10748 2012-03-09 Tristan Gingold <gingold@adacore.com>
10749
10750 * config/vms/vms-c.c (vms_construct_include_filename): New function.
10751 (vms_c_register_includes): Reference it.
10752
10753 2012-03-09 Andrew Pinski <apinski@cavium.com>
10754
10755 PR middle-end/51988
10756 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
10757 print_generic_expr.
10758 (tree_ssa_phiopt_worker): Go through all the PHIs for
10759 value_replacement instead of just the singleton one.
10760 (value_replacement): Change return type to int. Return 0 instead of
10761 false.
10762 Allow the middle basic block to contain more than just the defining
10763 statement.
10764 Handle non empty middle basic blocks.
10765 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
10766
10767 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
10768
10769 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
10770 array reference and component reference.
10771 (analyze_scalar_evolution_for_address_of): New.
10772
10773 2012-03-08 Jie Zhang <jzhang918@gmail.com>
10774
10775 PR target/49862
10776 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
10777 (hwloop_pattern_reg): Fix set but not used warning.
10778 (bfin_reorg_loops): Remove unused parameter.
10779 (bfin_reorg): Update use of bfin_reorg_loops.
10780
10781 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
10782
10783 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
10784 with integer parameters in registers.
10785 (gen_push): Push register in word_mode instead of Pmode.
10786 (ix86_emit_save_regs): Likewise.
10787 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
10788 (gen_pop): Pop register in word_mode instead of Pmode.
10789 (ix86_emit_restore_regs_using_pop): Likewise.
10790 (ix86_expand_prologue): Replace Pmode with word_mode for push
10791 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
10792 restore RAX and R10 in word_mode.
10793 (ix86_emit_restore_regs_using_mov): Restore integer registers
10794 in word_mode.
10795 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
10796 word_mode.
10797 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
10798 (ix86_split_long_move): Likewise.
10799
10800 * config/i386/i386.md (W): New.
10801 (*push<mode>2_prologue): Replace :P with :W.
10802 (*pop<mode>1): Likewise.
10803 (*pop<mode>1_epilogue): Likewise.
10804 (push/pop peephole2): Use word_mode scratch registers.
10805
10806 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
10807
10808 * config/i386/predicates.md (indirect_branch_operand): Simplify.
10809
10810 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
10811
10812 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
10813 for constants in [-63,63].
10814
10815 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
10816
10817 PR target/52530
10818 Revert:
10819 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10820
10821 * config/i386/i386.c (ix86_print_operand_address): Only handle
10822 zero-extended DImode addresses.
10823
10824 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10825
10826 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
10827 * configure: Regenerate.
10828
10829 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
10830
10831 PR target/52496
10832 * config/avr/avr.c (avr_mem_clobber): New static function.
10833 (avr_expand_delay_cycles): Add memory clobber operand to
10834 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
10835 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
10836 (enable_interrupt, disable_interrupt): New expander.
10837 (nopv, sleep, wdr): New expanders.
10838 (delay_cycles_1): Add memory clobber.
10839 (delay_cycles_2): Add memory clobber.
10840 (delay_cycles_3): Add memory clobber.
10841 (delay_cycles_4): Add memory clobber.
10842 (cli_sei): New insn from former "enable_interrupt",
10843 "disable_interrupt" with memory clobber.
10844 (*wdt): New insn from former "wdt" with memory clobber.
10845 (*nopv): Similar, but for "nopv".
10846 (*sleep): Similar, but for "sleep".
10847
10848 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
10849 Kaz Kojima <kkojima@gcc.gnu.org>
10850
10851 PR target/52503
10852 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
10853 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
10854 (SUBTARGET_OVERRIDE_OPTIONS): Define.
10855
10856 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
10857
10858 * config/i386/predicates.md (x86_64_zext_general_operand): New.
10859 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
10860 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
10861
10862 2012-03-07 Walter Lee <walt@tilera.com>
10863
10864 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
10865 REG_CFA_* notes for the stack pointer.
10866 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
10867 EH_RETURN_STACKADJ_RTX.
10868 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
10869 generate REG_CFA_* notes for the stack pointer.
10870 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
10871 by EH_RETURN_STACKADJ_RTX.
10872
10873 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10874
10875 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
10876 when __AVR_3_BYTE_PC__ is defined.
10877
10878 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
10879
10880 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
10881 (ix86_print_operand): Handle '^'.
10882 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
10883 using P mode iterator. Add %^ to asm template to conditionally emit
10884 addr32 prefix.
10885 (*rep_movdi_rex64): Ditto.
10886 (*strsetdi_rex_1): Ditto.
10887 (*rep_stosdi_rex64): Ditto.
10888 (*strmov{si,hi,qi}_1): Add %^ to asm template to
10889 conditionally emit addr32 prefix.
10890 (*rep_mov{si,qi}): Ditto.
10891 (*strset{si,hi,qi}): Ditto.
10892 (*rep_stos{si,qi}): Ditto.
10893 (*cmpstrnqi_nz_1): Ditto.
10894 (*cmpstrnqi_1): Ditto.
10895 (*strlenqi_1): Ditto.
10896
10897 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
10898
10899 * config/i386/i386.c (function_value_64): Return pointers in
10900 word_mode instead of Pmode.
10901 (ix86_promote_function_mode): Likewise.
10902
10903 2012-03-07 Richard Guenther <rguenther@suse.de>
10904
10905 * coverage.c (get_gcov_type): Use type_for_mode.
10906 (get_gcov_unsigned_t): Likewise.
10907 * expr.c (store_constructor): Use type_for_mode.
10908 (try_casesi): Likewise.
10909 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
10910 (add_standard_iv_candidates): Use standard type trees.
10911 * dojump.c (do_jump): Remove dead code.
10912
10913 2012-03-07 Richard Guenther <rguenther@suse.de>
10914
10915 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
10916
10917 2012-03-07 Richard Guenther <rguenther@suse.de>
10918
10919 * convert.c (strip_float_extensions): Move ...
10920 * tree.c (strip_float_extensions): ... here.
10921
10922 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10923
10924 PR target/52484
10925 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
10926
10927 2012-03-07 Richard Guenther <rguenther@suse.de>
10928
10929 * omp-low.c (extract_omp_for_data): Use signed_type_for.
10930 (expand_omp_for_generic): Likewise.
10931 (expand_omp_for_static_nochunk): Likewise.
10932 (expand_omp_for_static_chunk): Likewise.
10933 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
10934 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10935 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10936 Use unsigned_type_for.
10937 (vect_create_cond_for_align_checks): Use signed_type_for.
10938
10939 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
10940
10941 PR rtl-optimization/52203
10942 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
10943 all callers to pass NULL except ...
10944 (reset_sched_cycles_in_current_ebb): ... here, save the value
10945 in new variable 'empty'. Increase issue_rate only for
10946 non-empty insns.
10947
10948 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
10949
10950 PR target/51417
10951 * Makefile.in: Let install-gcc-ar depend on installdirs,
10952 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
10953 Don't double canonicalize if cross-compiling.
10954
10955 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10956
10957 PR target/52506
10958 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
10959 to: RAMPZ, RAMPY, RAMPX, RAMPD.
10960 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
10961
10962 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10963
10964 PR target/52505
10965 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
10966 from RAM.
10967 * config/avr/avr.md (xload_8): Adjust insn length.
10968
10969 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10970
10971 PR target/52461
10972 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
10973 if RAMPZ affects reading from RAM.
10974
10975 2012-03-07 Richard Guenther <rguenther@suse.de>
10976
10977 PR pch/52518
10978 PR pch/38987
10979 * doc/invoke.texi (Precompiled Headers): Remove sentence that
10980 suggests you can include PCHs from inside another header.
10981
10982 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
10983
10984 PR middle-end/52515
10985 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
10986
10987 2012-03-07 Kai Tietz <ktietz@redhat.com>
10988
10989 * doc/invoke.texi (fwritable-relocated-rdata): Document
10990 new Cygwin/MinGW target option.
10991 * config/i386/winnt.c (i386_pe_unique_section): Ignore
10992 reloc if flag -fwritable-relocated-rdata is not set.
10993 (i386_pe_section_type_flags): Likewise.
10994 * config/i386/cygming.opt (fwritable-relocated-rdata):
10995 Add new flag variable flag_writable_rel_rdata.
10996
10997 2012-03-07 Richard Guenther <rguenther@suse.de>
10998
10999 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
11000 precision against gimple constraints.
11001
11002 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
11003
11004 PR middle-end/52372
11005 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
11006 variables.
11007 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
11008 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
11009 variables.
11010 (init_emit_regs): Move associated initialization to...
11011 (init_emit_once): ...here.
11012
11013 2012-03-06 Richard Henderson <rth@redhat.com>
11014
11015 * config/m68k/m68k.h (ISA_HAS_TAS): New.
11016 * config/m68k/sync.md (atomic_test_and_set): Use it.
11017 (atomic_test_and_set_1): Likewise.
11018
11019 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11020
11021 PR target/50310
11022 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
11023 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
11024 (vector_ltgt<mode>): Likewise.
11025 (vector_ordered<mode>): Likewise.
11026 (vector_unordered<mode>): Likewise.
11027 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
11028
11029 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
11030
11031 * trans-mem.c: New typedef for tm_region_p.
11032 Define vector types for tm_region_p.
11033 (tm_region_init): Replace region_worklist to a vector called
11034 bb_regions.
11035
11036 2012-03-06 Richard Guenther <rguenther@suse.de>
11037
11038 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
11039 MEM_REF with constant pointer operand.
11040
11041 2012-03-06 Richard Guenther <rguenther@suse.de>
11042
11043 PR middle-end/52493
11044 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
11045
11046 2012-03-06 Tristan Gingold <gingold@adacore.com>
11047
11048 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
11049 (external_model_kind): Improve documentation.
11050 (vms_pragma_extern_model): Handle relaxed_redef.
11051 (vms_c_register_pragma): Allow expansion for nomember_alignment.
11052
11053 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
11054
11055 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
11056 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
11057 Some more notes on EIND usage and reorder EIND subsection.
11058
11059 2012-03-06 Tristan Gingold <gingold@adacore.com>
11060
11061 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
11062 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
11063
11064 2012-03-06 Tristan Gingold <gingold@adacore.com>
11065
11066 * config/vms/t-vmsnative (version): Define.
11067 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
11068
11069 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
11070
11071 PR rtl-optimization/52250
11072 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
11073 to put note list into. Unconditionally call move_bb_info.
11074 (move_bb_info): Do not assert the blocks being in the same region,
11075 just drop the note list if they are not.
11076
11077 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11078
11079 PR target/51244
11080 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
11081 and use unified expansion logic.
11082 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
11083 closer to the existing movt insn.
11084 (negc): Rename insn to *negc. Add new expander.
11085 (movnegt): Use xor pattern for T bit negation. Reserve helper
11086 constant for negc pattern.
11087 (*movnegt): New insn and splitter.
11088
11089 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
11090
11091 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
11092 PLUS_EXPR.
11093
11094 2012-03-05 Richard Henderson <rth@redhat.com>
11095
11096 * genemit.c (main): Include "target.h" in insn-emit.c.
11097 * Makefile.in (insn-emit.o): Depend on TARGET_H.
11098 * config/sh/sync.md (atomic_test_and_set): Reference
11099 targetm.atomic_test_and_set_trueval instead of
11100 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
11101
11102 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
11103
11104 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
11105 Make static.
11106
11107 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
11108
11109 * langhooks.c (add_builtin_type): New function.
11110 * langhooks.h (add_builtin_type): Export it.
11111 * config/mep/mep.c (mep_init_builtins): Use it.
11112 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
11113
11114 2012-03-05 Jakub Jelinek <jakub@redhat.com>
11115
11116 PR debug/51902
11117 * tree.h (BLOCK_SAME_RANGE): Define.
11118 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
11119 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
11120 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
11121 isn't equal to supercontext fragment's fragment chain.
11122 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
11123 fragment origin.
11124 (blocks_nreverse_all): Likewise.
11125 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
11126 BLOCK_SUPERCONTEXT to supercontext fragment instead of
11127 supercontext fragment's fragment origin.
11128 * dwarf2out.c (add_high_low_attributes): If stmt has the same
11129 range as its parent (or parents thereof etc.), use the parent's
11130 DW_AT_ranges value instead of creating a new .debug_ranges range.
11131
11132 2012-03-05 Richard Henderson <rth@redhat.com>
11133
11134 PR tree-opt/52242
11135 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
11136 * omp-low.c (expand_omp_atomic): Assume anything aligned to
11137 BIGGEST_ALIGNMENT is aligned.
11138
11139 2012-03-05 Richard Henderson <rth@redhat.com>
11140
11141 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
11142 * config/sh/sh.c: ... here.
11143
11144 2012-03-05 Richard Henderson <rth@redhat.com>
11145
11146 PR target/52481
11147 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
11148 instead of calling negqi2 directly.
11149
11150 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
11151
11152 PR middle-end/52463
11153 * trans-mem.c (tm_region_init): Use last_basic_block.
11154
11155 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
11156
11157 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
11158 * config/sh/sync.md (atomic_test_and_set): New expander.
11159 (tasb, atomic_test_and_set_soft): New insns.
11160 * config/sh/sh.opt (menable-tas): New option.
11161 * doc/invoke.texi (SH Options): Document it.
11162
11163 2012-03-05 Richard Guenther <rguenther@suse.de>
11164
11165 * cfgloop.c (verify_loop_structure): Verify dominators before
11166 using them.
11167 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
11168 dominators from here.
11169 * graphite-scop-detection.c (create_sese_edges): Likewise.
11170 * loop-doloop.c (doloop_optimize_loops): Likewise.
11171 * loop-init.c (loop_optimizer_init): Likewise.
11172 * loop-unroll.c (unroll_and_peel_loops): Likewise.
11173 * loop-unswitch.c (unswitch_loops): Likewise.
11174 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
11175 * tree-parloops.c (parallelize_loops): Likewise. Verify
11176 only when checking is enabled.
11177 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
11178
11179 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
11180
11181 * genautomata.c (parse_automata_opt): New static function.
11182 (initiate_automaton_gen): Remove all option handling code. Remove
11183 argc argument. All callers changed.
11184 (main): Call init_rtx_reader_args_cb with the new function as argument.
11185
11186 2012-03-05 Richard Guenther <rguenther@suse.de>
11187
11188 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
11189 * tree-if-conv.c (combine_blocks): Free post-dominator info
11190 after breaking it.
11191 * tree-parloops.c (create_parallel_loop): Free and re-compute
11192 dominator info after breaking it.
11193
11194 2012-03-05 Richard Guenther <rguenther@suse.de>
11195
11196 PR middle-end/52353
11197 * optabs.h (trapv_unoptab_p): New function.
11198 (trapv_binoptab_p): Likewise.
11199 * optabs.c (expand_binop): Use emit_libcall_block_1 with
11200 a proper equiv_may_trap argument.
11201 (expand_unop): Likewise.
11202 (emit_libcall_block_1): Take extra argument whether the
11203 instruction may trap. Renamed from ...
11204 (emit_libcall_block): ... this. New wrapper.
11205
11206 2012-03-05 Jakub Jelinek <jakub@redhat.com>
11207
11208 PR tree-optimization/51721
11209 * tree-vrp.c (register_edge_assert_for_2): If comparing
11210 lhs of right shift by constant with an integer constant,
11211 add ASSERT_EXPRs for the rhs1 of the right shift.
11212
11213 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
11214
11215 2012-03-05 Richard Guenther <rguenther@suse.de>
11216
11217 * tree.c (integer_zerop): Handle VECTOR_CSTs.
11218 (integer_onep): Likewise.
11219 (integer_all_onesp): Likewise.
11220
11221 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
11222
11223 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
11224
11225 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
11226
11227 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
11228 instead of TARGET_64BIT.
11229
11230 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
11231
11232 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
11233 adjust_stack_insn.
11234
11235 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
11236
11237 * config/i386/i386.c (ix86_print_operand_address): Only handle
11238 zero-extended DImode addresses.
11239
11240 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
11241
11242 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
11243 taken and cputaken as bool.
11244
11245 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
11246
11247 * config/i386/constraints.md (Ya): New internal constraint.
11248 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
11249 (*zero_extendsidi2_rex64): Add x,x alternative.
11250 (*zero_extendsidi2): Ditto. Add o,0 alternative.
11251 Remove flags reg clobber. Adjust corresponding splits.
11252 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
11253 zero_extendqisi2 expanders using SWI12 mode iterator.
11254 (zero_extend<mode>si2_and): Macroize insn from
11255 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
11256 splitters.
11257 (*zero_extend<mode>si2): Macroize insn from
11258 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
11259 (*zero_extend*2_movzbl_and): Remove insn patterns.
11260 (zero_extendqihi2_and): Merge corresponding splitter.
11261 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
11262 (*zero_extend*2_movzbl_and): Remove insn patterns.
11263 (*anddi_1): Split TYPE_IMOVX instructions.
11264 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
11265 (*andhi_1): Ditto.
11266 (and->zext splitter): Add splitter pattern.
11267 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
11268
11269 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
11270
11271 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
11272 x86-specific text.
11273 (Debugging Options): Likewise.
11274 (Optimize Options): Likewise.
11275 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
11276 with other architectures. Use official processor names with correct
11277 spelling/capitalization. Fix formatting and grammar issues.
11278 (i386 and x86-64 Windows Options): Similar cleanup here.
11279
11280 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
11281
11282 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
11283
11284 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
11285
11286 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
11287 DBX_REGISTER_NUMBER.
11288
11289 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
11290
11291 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
11292 operand is CONST_INT. Take COSTS_N_INSNS into account.
11293 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
11294 of shiftcosts.
11295
11296 2012-03-02 Richard Henderson <rth@redhat.com>
11297
11298 * optabs.c (expand_atomic_test_and_set): Honor
11299 atomic_test_and_set_trueval even when atomic_test_and_set
11300 optab is not in use.
11301
11302 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
11303
11304 PR target/48596
11305 PR target/48806
11306 * config/sh/sh.c (sh_register_move_cost): Increase cost between
11307 GENERAL_REGS and FP_REGS for SImode.
11308
11309 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
11310
11311 PR target/49486
11312 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
11313 (absdi2): New expander.
11314 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
11315
11316 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
11317
11318 * config/sh/sync.md (atomic_exchange<mode>): New expander.
11319 (atomic_exchange<mode>_soft): New insn.
11320
11321 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
11322
11323 * config/sh/sync.md: Update copyright notice dates.
11324 (atomic_compare_and_swap<mode>): Use SImode for return value instead
11325 of QImode.
11326 (atomic_compare_and_swap<mode>_soft): Likewise.
11327
11328 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
11329
11330 PR target/31640
11331 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
11332 * config/sh/sh.c: Update copyright notice dates.
11333 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
11334 alignment for TARGET_HARD_SH4.
11335 (sh_option_override): Reduce default function alignment. Set
11336 loop alignment to 4 bytes when not optimizing for size.
11337
11338 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
11339
11340 PR middle-end/50335
11341 * doc/invoke.texi (floop-flatten): Remove.
11342 * toplev.c (process_options): Remove references to flag_loop_flatten.
11343 * tree-ssa-loop.c (gate_graphite_transform): Same.
11344 * common.opt (floop-flatten): Obsolete.
11345 * graphite-poly.c (apply_poly_transforms): Remove reference to
11346 flag_loop_flatten.
11347 * Makefile.in (graphite-flattening.o): Remove.
11348 * graphite-flattening.c: Remove.
11349
11350 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
11351
11352 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
11353 having mode compatible with the mode of previous compare. Substitute
11354 compare mode of previous compare with the mode, compatible
11355 with eliminated and previous compare.
11356
11357 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
11358
11359 * config/rs6000/dfp.md (floatdidd2): New define_insn.
11360
11361 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
11362
11363 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
11364 compatible with CCGOCmode and CCGCmode.
11365
11366 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
11367
11368 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
11369
11370 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11371
11372 * config/arm/arm.c (arm_sat_operator_match): New function.
11373 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
11374 * config/arm/arm.md ("insn" attribute): Add "sat" value.
11375 ("SAT", "SATrev"): New code iterators.
11376 ("SATlo", "SAThi"): New code iterator attributes.
11377 ("*satsi_<SAT:code>"): New pattern.
11378 ("*satsi_<SAT:code>_shift"): Likewise.
11379 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
11380 and "shift" attributes.
11381 ("arm_usatsihi"): Add "insn" attribute.
11382 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
11383 by powers of two. Do not allow shift by 32.
11384
11385 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
11386
11387 PR target/46716
11388 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
11389 to pass the argument in the register of "natural" mode.
11390
11391 2012-03-02 Richard Guenther <rguenther@suse.de>
11392
11393 PR tree-optimization/52406
11394 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
11395 (struct indices): Add unconstrained_base member.
11396 (struct dr_alias): Remove unused vops member.
11397 (DR_UNCONSTRAINED_BASE): New define.
11398 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
11399 add indices to allow their disambiguation. Make DR_BASE_OBJECT
11400 be an artificial access that covers the whole indexed object,
11401 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
11402 plain decl base-objects to their MEM_REF variant.
11403 (dr_may_alias_p): When the base-object of either data reference
11404 has unknown size use only points-to information.
11405 (compute_affine_dependence): Make dumps easier to read and
11406 more verbose.
11407 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
11408 DR_REF when looking for packed references.
11409 (vect_supportable_dr_alignment): Likewise.
11410
11411 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
11412
11413 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
11414 Improve conditions for peepholes of loads followed by commutative
11415 operators.
11416 * config/arm/ldmstm.md: Regenerated.
11417
11418 2012-03-02 Richard Guenther <rguenther@suse.de>
11419
11420 * BASE-VER: Set to 4.8.0.
11421
11422 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
11423
11424 * config.gcc (obsolete): Add all ARM targets using the FPA.
11425 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
11426 * doc/install.texi: Avoid references to obsolete ARM ports.
11427
11428 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
11429
11430 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
11431
11432 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
11433 Joern Rennecke <joern.rennecke@embecosm.com>
11434
11435 * doc/extend.texi: Expand and update information on interrupt
11436 attribute for Epiphany.
11437
11438 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11439
11440 * config/sh/sh-protos.h: Update copyright notice dates.
11441 * config/sh/sh.h: Likewise.
11442 * config/sh/sh.md: Likewise.
11443 * config/sh/constraints.md: Likewise.
11444 * config/sh/predicates.md: Likewise.
11445
11446 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11447
11448 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
11449 * config/sh/sh.c (tertiary_reload_operand): Likewise.
11450
11451 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11452
11453 * config/sh/constraints.md: Fix comment typo.
11454
11455 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11456
11457 PR target/52408
11458 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
11459 unsigned HOST_WIDE_INT.
11460 (zvdep_imm64): Likewise.
11461 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
11462 (vdepi_and): Likewise.
11463 Likewise for unamed 64-bit patterns.
11464 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
11465
11466 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
11467
11468 PR debug/52001
11469 PR rtl-optimization/52417
11470 * cselib.c (cselib_any_perm_equivs): New variable.
11471 (cselib_reset_table): Check that it's not set when not
11472 preserving constants.
11473 (cselib_add_permanent_equiv): Set it.
11474 (cselib_have_permanent_equivalences): New.
11475 (cselib_init, cselib_finish): Reset it.
11476 * cselib.h (cselib_have_permanent_equivalences): Declare.
11477 * alias.c (get_addr): Restore earlier behavior when there
11478 aren't permanent equivalences.
11479
11480 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
11481
11482 * config/mn10300/mn10300-modes.def: Fix copyright notice.
11483 * config/v850/v850-modes.def: Fix copyright notice.
11484
11485 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
11486
11487 * doc/extend.texi (AVR Built-in Functions): Document
11488 __builtin_avr_flash_segment.
11489
11490 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
11491 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
11492 (*split.flash_segment): New insn-and-split.
11493 * config/avr/avr.c (avr_init_builtins): Add local variables:
11494 const_memx_void_node, const_memx_ptr_type_node,
11495 char_ftype_const_memx_ptr.
11496
11497 2012-03-01 Jakub Jelinek <jakub@redhat.com>
11498
11499 PR tree-optimization/52445
11500 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
11501 add ssa_name_ver, offset and size fields and change store field
11502 to bool.
11503 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
11504 (add_or_mark_expr): Likewise. Only consider previous stores
11505 with the same size and offset.
11506 (nt_init_block): Only look at gimple_assign_single_p stmts,
11507 doesn't look at rhs2.
11508
11509 2012-03-01 Richard Guenther <rguenther@suse.de>
11510
11511 PR middle-end/52443
11512 * tree-cfg.c (verify_gimple_assign_unary): Allow any
11513 conversions from integral types to pointer types.
11514
11515 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
11516
11517 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
11518 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
11519 unintentionally removed in r184616.
11520
11521 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11522
11523 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
11524 3DNow from bdver1.
11525
11526 2012-02-29 Jakub Jelinek <jakub@redhat.com>
11527 Uros Bizjak <ubizjak@gmail.com>
11528
11529 PR target/52437
11530 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
11531 alternatives, add "e" constraint to the new last alternative
11532 and ! to last 3 alternatives.
11533
11534 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
11535
11536 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
11537 DW_AT_artificial attributes at the end of the processing.
11538 (gen_array_type_die): Likewise.
11539 (gen_enumeration_type_die): Likewise.
11540 (gen_struct_or_union_type_die): Likewise.
11541 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
11542 the parent type.
11543
11544 2012-02-29 Jakub Jelinek <jakub@redhat.com>
11545
11546 PR middle-end/52419
11547 * expr.c (expand_assignment): If doing misaligned store that doesn't
11548 cover all mode bits, perform a RMW cycle.
11549
11550 PR tree-optimization/52429
11551 * tree-parloops.c (separate_decls_in_region_debug): Return early
11552 if var is LABEL_DECL.
11553
11554 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11555
11556 PR tree-optimization/52424
11557 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
11558 calling dom_thread_across_edge.
11559
11560 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11561
11562 * config/avr/avr.c: Move definition of TARGET macros to end of file.
11563
11564 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11565
11566 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
11567 * config/avr/avr.c (avr_output_bld): Remove unused function.
11568 (avr_out_sbxx_branch): Use "%T" to print bit position.
11569
11570 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11571
11572 * config/avr/avr.md: Untabify.
11573
11574 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11575
11576 * config/avr/avr.md (eqne): New code iterator.
11577 (*dec-and-branchsi): Use it in text peephole's condition.
11578 (*dec-and-branchhi): Ditto.
11579 (*dec-and-branchqi): Ditto.
11580
11581 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11582
11583 PR target/49939
11584 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
11585 the device does not have the skip-bug.
11586
11587 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
11588
11589 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
11590 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
11591 -mpretend-cmove): New.
11592
11593 2012-02-29 Jakub Jelinek <jakub@redhat.com>
11594
11595 PR bootstrap/52397
11596 * df.h (struct df_d): Adjust comment that hard_regs_live_count
11597 doesn't count DEBUG_INSN refs.
11598 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
11599 for DEBUG_INSN refs.
11600
11601 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11602
11603 Partially revert:
11604
11605 2012-02-20 Richard Guenther <rguenther@suse.de>
11606 PR tree-optimization/52298
11607 * tree-vect-stmts.c (vectorizable_load): Properly use
11608 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
11609
11610 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
11611
11612 PR middle-end/51752
11613 * gimple.h (gimple_in_transaction): New.
11614 (gimple_set_in_transaction): New.
11615 (struct gimple_statement_base): Add in_transaction field.
11616 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
11617 transaction loads.
11618 (tree_ssa_lim_initialize): Compute transaction bits.
11619 * tree.h (compute_transaction_bits): Protoize.
11620 * trans-mem.c (tm_region_init): Use the heap to store BB
11621 auxilliary data.
11622 (compute_transaction_bits): New.
11623
11624 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11625
11626 * gcc.c (display_help): Document --help=common and sort entries
11627 alphabetically.
11628
11629 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11630
11631 * doc/install.texi: Document check-$LANG specific shortcuts
11632
11633 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11634
11635 PR target/51534
11636 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
11637 and vcgtu.
11638 * config/arm/arm_neon.h: Regenerate.
11639 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
11640 (neon_vcgeu): New insn.
11641 (neon_vcgtu): Likewise.
11642 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
11643 (ops): Unsigned comparison intrinsics call a different builtin.
11644
11645 2012-02-28 Richard Guenther <rguenther@suse.de>
11646
11647 PR target/52407
11648 * config/i386/i386.c (ix86_expand_vector_set): Fix element
11649 ordering for the VEC_CONCAT for two element vectors for
11650 V2SFmode, V2SImode and V2DImode.
11651
11652 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
11653
11654 PR target/49448
11655 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
11656 detecting big-endian triplets.
11657
11658 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
11659
11660 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
11661 mode if there is no type information available.
11662
11663 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
11664
11665 PR tree-optimization/53207
11666 * doc/invoke.texi: Document as experimental and relying on graphite.
11667
11668 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11669
11670 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
11671 of initializer to changes from r184614.
11672
11673 2012-02-28 Richard Guenther <rguenther@suse.de>
11674
11675 PR tree-optimization/52395
11676 * tree-sra.c (build_ref_for_offset): Also look at the base
11677 TYPE_ALIGN when figuring out the alignment of the replacement.
11678
11679 2012-02-28 Richard Guenther <rguenther@suse.de>
11680
11681 PR tree-optimization/52402
11682 * ipa-prop.c (ipa_modify_call_arguments): Properly use
11683 mis-aligned types when creating the accesses at the call site.
11684
11685 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11686
11687 * config/avr/builtins.def: New file.
11688 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
11689 * config/avr/avr.c (enum avr_builtin_id): Use it.
11690 (avr_init_builtins): Use it. And use avr_bdesc.
11691 (bdesc_1arg): Remove.
11692 (bdesc_2arg): Remove.
11693 (bdesc_3arg): Remove.
11694 (struct avr_builtin_description): Add field n_args.
11695 (avr_bdesc): New static variable using builtins.def.
11696 (avr_expand_builtin): Use it.
11697 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
11698 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
11699 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
11700
11701 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11702
11703 PR target/52148
11704 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
11705 match only one single hard register with respective hard reg rtx.
11706 (movmemx_<mode>): Ditto.
11707 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
11708 insn anatomy of movmem[x]_<mode>.
11709 (avr_out_movmem): Same for printing assembler and operand usage.
11710
11711 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11712
11713 PR target/49868
11714 PR target/52261
11715 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
11716 address spaces located outside of device flash.
11717
11718 * config/avr/avr.h (base_arch_s): Remove field n_segments.
11719 (mcu_type_s): Add field n_flash.
11720 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
11721 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
11722 (AVR_MCU): Add N_FLASH argument.
11723 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
11724 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
11725 macro __FLASH<n> if that address space makes sense for the device.
11726 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
11727 outside of target flash.
11728 (avr_asm_named_section): Ditto.
11729 (avr_asm_select_section): Ditto.
11730 (avr_addr_space_convert): Ditto.
11731 (avr_emit_movmemhi): Ditto.
11732 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
11733 address space is outside of device flash.
11734 (avr_insert_attributes): Ditto.
11735 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
11736 avr_current_arch->n_segments.
11737
11738 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
11739
11740 PR target/52352
11741 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
11742 (*movabs<mode>_2): Likewise.
11743
11744 2012-02-27 Jakub Jelinek <jakub@redhat.com>
11745
11746 PR target/52375
11747 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
11748 s_register_operand in the test instead of REG_P. Don't call
11749 gen_reg_rtx if it won't be used.
11750
11751 PR tree-optimization/52376
11752 * ipa-split.c (split_function): Ignore CLOBBER stmts.
11753
11754 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
11755
11756 * ifcvt.c (noce_get_condition): Check condition variable is not
11757 small_register_classes_for_mode_p before accepting.
11758
11759 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
11760
11761 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
11762
11763 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11764
11765 Revert:
11766 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11767 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
11768 tuning parameters.
11769 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
11770
11771 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
11772
11773 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
11774
11775 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
11776
11777 * config/sh/predicates.md: Remove blank lines.
11778 * config/sh/sh.c: Fix typos in comments.
11779 * config/sh/constraints.md: Likewise.
11780 * config/sh/sh.md: Remove blank lines.
11781 Fix typos in comments. Use ;; as comment characters.
11782
11783 2012-02-26 Walter Lee <walt@tilera.com>
11784
11785 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
11786 (replace_mov_pcrel_step2): Ditto.
11787
11788 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
11789
11790 PR debug/52001
11791 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
11792 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
11793 and locs that reference values newer than the non-canonical value
11794 at hand. Return the canonical value as a worst case.
11795 (memrefs_conflict_p): Walk canonical value's locs.
11796
11797 PR debug/52001
11798 * cselib.c (preserve_only_constants): Rename to...
11799 (preserve_constants_and_equivs): ... this. Split out...
11800 (invariant_or_equiv_p): ... this. Preserve plus expressions
11801 of other preserved expressions too.
11802 (cselib_reset_table): Adjust.
11803 * var-tracking.c (reverse_op): Use canonical value to build
11804 reverse operation.
11805
11806 2012-02-23 Kai Tietz <ktietz@redhat.com>
11807
11808 * config/i386/i386.c (ix86_delegitimize_address): Handle
11809 UNSPEC_PCREL plus displacement.
11810
11811 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
11812
11813 PR target/52261
11814 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
11815 to test for unusedness in st X addressing.
11816
11817 2012-02-24 Richard Guenther <rguenther@suse.de>
11818
11819 PR middle-end/52361
11820 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
11821 (is_gimple_reg_type): Move inline ...
11822 * gimple.h (is_gimple_reg_type): ... here.
11823
11824 2012-02-24 Richard Guenther <rguenther@suse.de>
11825
11826 PR middle-end/52361
11827 * passes.c (execute_function_todo): When verifying SSA form
11828 verify gimple form first.
11829 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
11830
11831 2012-02-24 Richard Guenther <rguenther@suse.de>
11832
11833 PR middle-end/52355
11834 * fold-const.c (fold_addr_of_array_ref_difference): New function.
11835 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
11836
11837 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11838
11839 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
11840
11841 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11842
11843 * tree-phinodes.c (make_phi_node): Mark static.
11844 * tree-flow.h (make_phi_node): Remove extern decl.
11845 * doc/gimple.texi (make_phi_node): Remove documentation.
11846
11847 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11848
11849 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
11850 * tree-ssa-sccvn.c (print_scc): Ditto.
11851
11852 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11853
11854 * doc/passes.texi (Full redundancy elimination): Fix typo.
11855
11856 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11857
11858 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
11859
11860 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
11861
11862 PR bootstrap/52287
11863 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
11864
11865 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
11866
11867 PR c/52290
11868 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
11869
11870 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
11871
11872 * config/avr/avr.md (code_stdname): Add ior, xor.
11873 (xior): New code iterator.
11874 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
11875 (*<code_stdname><mode>qi.byte1-3): Ditto.
11876
11877 2012-02-23 Jakub Jelinek <jakub@redhat.com>
11878
11879 PR tree-optimization/52019
11880 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
11881 CLOBBER stmts.
11882
11883 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11884
11885 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
11886 HAVE_INITFINI_ARRAY to work around namespace pollution in
11887 certain versions of newlib system headers.
11888 * config.in: Regenerate.
11889 * configure: Regenerate.
11890 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
11891 instead of HAVE_INITFINI_ARRAY.
11892
11893 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
11894
11895 PR target/52330
11896 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
11897 is not offsettable memory reference.
11898
11899 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
11900
11901 PR target/18145
11902 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
11903 setting avr_need_clear_bss_p for __gnu_lto* symbols.
11904
11905 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
11906
11907 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
11908 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
11909
11910 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11911
11912 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
11913 library on Solaris 8 even without TLS support.
11914 * configure: Regenerate.
11915
11916 2012-02-22 Richard Guenther <rguenther@suse.de>
11917
11918 PR middle-end/52329
11919 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
11920 for GIMPLE_DEBUG stmts.
11921
11922 2012-02-22 Martin Jambor <mjambor@suse.cz>
11923
11924 PR middle-end/51782
11925 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
11926 according to the base object.
11927
11928 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
11929
11930 PR rtl-optimization/50063
11931 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
11932 and 2 (8-bit SP) in operand 2.
11933 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
11934 setup to use movhi_sp_r instead of vanilla move to write SP.
11935 Adjust REG_CFA notes to superseed unspec.
11936 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
11937 of vanilla move.
11938 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
11939 known to be off) only with TARGET_NO_INTERRUPTS. Never use
11940 irq_state 1 (IRQ known to be on) here.
11941
11942 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
11943
11944 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
11945 WORDS_BIG_ENDIAN.
11946 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
11947 assign_hard_reg): Likewise.
11948
11949 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
11950
11951 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
11952
11953 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
11954
11955 * config/avr/avr.md
11956 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
11957 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
11958
11959 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
11960
11961 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
11962 prototype from here to...
11963 * config/avr/avr.h: ...here.
11964
11965 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
11966
11967 PR target/52294
11968 * thumb2.md (thumb2_shiftsi3_short): Split register and
11969 immediate shifts. For register shifts tie operands 0 and 1.
11970 (peephole2 for above): Check that register-controlled shifts
11971 have suitably tied operands.
11972
11973 2012-02-21 Quentin Neill <quentin.neill@amd.com>
11974
11975 PR target/52137
11976 * config/i386/bdver1.md (bdver1_call, bdver1_push,
11977 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
11978 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
11979 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
11980 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
11981 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
11982 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
11983 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
11984 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
11985 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
11986 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
11987 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
11988 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
11989 bdver1_ssevector_avx256_unaligned_load,
11990 bdver1_ssevector_sse128_unaligned_load,
11991 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
11992 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
11993 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
11994 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
11995 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
11996 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
11997 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
11998 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
11999 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
12000 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
12001 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
12002 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
12003 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
12004 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
12005 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
12006 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
12007 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
12008 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
12009 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
12010 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
12011 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
12012 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
12013 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
12014 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
12015 bdver1_ssediv_double_load, bdver1_ssediv_double,
12016 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
12017 Add "bdver2" attribute.
12018
12019 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12020
12021 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
12022 default if possible and not specified otherwise.
12023
12024 2012-02-21 Richard Guenther <rguenther@suse.de>
12025
12026 PR middle-end/52314
12027 * gimplify.c (create_tmp_from_val): Use the main variant type
12028 for the type of the temporary we create.
12029
12030 2012-02-21 Richard Guenther <rguenther@suse.de>
12031
12032 PR tree-optimization/52324
12033 * gimplify.c (gimplify_expr): When re-gimplifying expressions
12034 do not gimplify a MEM_REF address operand if it is already
12035 in suitable form.
12036
12037 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12038
12039 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
12040 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
12041
12042 2012-02-21 Richard Guenther <rguenther@suse.de>
12043
12044 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
12045 nested_in_vect_loop.
12046
12047 2012-02-21 Jakub Jelinek <jakub@redhat.com>
12048
12049 PR tree-optimization/52318
12050 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
12051 vdef also to non-pure/const call stmts in the sequence.
12052
12053 2012-02-21 Tristan Gingold <gingold@adacore.com>
12054
12055 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
12056
12057 2012-02-20 David S. Miller <davem@davemloft.net>
12058
12059 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
12060 don't use the "rd %pc" instruction on v9 for PIC register loads.
12061
12062 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
12063
12064 PR middle-end/52141
12065 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
12066 in a transaction safe function.
12067
12068 2012-02-20 Kai Tietz <ktietz@redhat.com>
12069
12070 PR target/52238
12071 * stor-layout.c (place_field): Handle desired_align for
12072 ms-bitfields, too.
12073
12074 2012-02-20 Richard Guenther <rguenther@suse.de>
12075
12076 PR tree-optimization/52298
12077 * tree-vect-stmts.c (vectorizable_store): Properly use
12078 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
12079 outer loops.
12080 (vectorizable_load): Likewise.
12081 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
12082 Access DR_STEP after ensuring it is not NULL.
12083
12084 2012-02-20 Jakub Jelinek <jakub@redhat.com>
12085
12086 PR tree-optimization/52286
12087 * fold-const.c (fold_binary_loc): For (X & C1) | C2
12088 optimization use double_int_to_tree instead of build_int_cst_wide,
12089 rewrite to use double_int vars.
12090
12091 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12092
12093 PR target/50166
12094 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
12095 Define _start.
12096 Remove -e 0 from $gcc_cv_ld invocation.
12097 Only use __GLIBC_PREREQ if defined.
12098 Enable on Solaris since Solaris 8 patch.
12099 (gcc_SUN_LD_VERSION): New macro.
12100 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
12101 gcc_SUN_LD_VERSION for version number format.
12102 * configure: Regenerate.
12103 * varasm.c (get_elf_initfini_array_priority_section): Set
12104 SECTION_NOTYPE for non-default priority.
12105 Use get_section instead of get_unnamed_section to emit
12106 .init_array/.fini_array with default priority.
12107
12108 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
12109
12110 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
12111 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
12112 (mips_start_unique_function, mips_output_mips16_rdhwr)
12113 (mips_code_end): New functions.
12114 (TARGET_ASM_CODE_END): Define.
12115
12116 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
12117
12118 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
12119 to stubs with non-sibling calls.
12120
12121 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
12122
12123 * doc/invoke.texi (-fira-* options): Copy-edit.
12124 (ira-* parameters): Copy-edit.
12125
12126 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
12127
12128 * doc/invoke.texi: Minor copy-edits to bring into conformance with
12129 GCC coding conventions.
12130
12131 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
12132
12133 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
12134 when used as adjectives.
12135
12136 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
12137
12138 * doc/invoke.texi: Clean up "that"/"which" confusion.
12139
12140 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
12141
12142 * system.h: Poison SMALL_REGISTER_CLASSES
12143 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
12144 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
12145
12146 2012-02-16 Jakub Jelinek <jakub@redhat.com>
12147
12148 PR tree-optimization/52285
12149 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
12150 when deciding if a call is a tail call or tail recursion.
12151
12152 2012-02-16 Kai Tietz <ktietz@redhat.com>
12153
12154 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
12155 interger-constant displacement for UNSPEC_PCREL.
12156
12157 2012-02-16 Jakub Jelinek <jakub@redhat.com>
12158
12159 PR rtl-optimization/52208
12160 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
12161 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
12162
12163 PR tree-optimization/52255
12164 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
12165 loop->header has virtual PHI, but exit_e->dest doesn't, add
12166 virtual PHI to exit_e->dest and adjust all uses after the loop.
12167
12168 PR debug/52260
12169 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
12170 children with clone_tree_hash, not after it.
12171
12172 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
12173
12174 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
12175 extended identifiers.
12176
12177 2012-02-16 Jakub Jelinek <jakub@redhat.com>
12178
12179 PR middle-end/51929
12180 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
12181 a same_body_alias, also test whether e->callee isn't a former
12182 or current clone of the decl this is a same body alias of.
12183
12184 PR translation/52264
12185 * cgraphunit.c (verify_cgraph_node): Fix a typo.
12186
12187 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
12188
12189 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
12190
12191 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12192
12193 PR target/52199
12194 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
12195 force_reg instead of copy_to_reg for better optimization. Force
12196 non-register or memory operands into a register.
12197
12198 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
12199
12200 * extend.texi: Reserve upper bits of memory model for future use.
12201
12202 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
12203 Anatoly Sokolov <aesok@post.ru>
12204 Eric Weddington <eric.weddington@atmel.com>
12205
12206 PR target/52261
12207 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
12208 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
12209 Rewrite initializers for .macro.
12210 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
12211 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
12212 atxmega32d4, atxmega32x1.
12213 avrxmega4: atxmega64a3, atxmega64d3.
12214 avrxmega5: atxmega64a1, atxmega64a1u.
12215 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
12216 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
12217 avrxmega7: atxmega128a1, atxmega128a1u.
12218 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
12219 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
12220 (struct base_arch_s): Rename reserved to xmega_p.
12221 Rename reserved2 to have_rampd.
12222 (AVR_XMEGA): New define.
12223 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
12224 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
12225 * config/avr/predicates.md (io_address_operand): Take into
12226 account SFR offset.
12227 (low_io_address_operand): Ditto.
12228 (high_io_address_operand): Ditto.
12229 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
12230 (enabled, movhi_sp_r): Use them.
12231 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
12232 cpp_define_formatted to built-in define __AVR_ARCH__.
12233 (__AVR_XMEGA__): New built-in define.
12234 (__AVR_HAVE_RAMPD__): New built-in define.
12235 (__AVR_HAVE_RAMPX__): New built-in define.
12236 (__AVR_HAVE_RAMPY__): New built-in define.
12237 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
12238
12239 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
12240 (avr_option_override): Initialize them.
12241 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
12242 (avr_init_expanders): Initialize them. No more block several calls.
12243 (emit_push_sfr): New static function.
12244 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
12245 Handle AVR_XMEGA.
12246 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
12247 (avr_print_operand): Print addreeses as symbols for
12248 RAMPX, RAMPY, RAMPD, CCP.
12249 (output_movhi): Handle AVR_XMEGA when writing to SP.
12250 (avr_out_movhi_mr_r_xmega): New static function.
12251 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
12252 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
12253 __RAMPD__, __CCP__ as needed.
12254
12255 * config/avr/multilib.h: Regenerate.
12256 * config/avr/t-multilib: Regenerate.
12257 * config/avr/avr-tables.opt: Regenerate.
12258
12259 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
12260
12261 PR tree-optimization/50561
12262 * graphite-flattening.c (lst_project_loop): Do not
12263 remove old scattering dimensions after flattening.
12264 (lst_do_flatten): Likewise.
12265
12266 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
12267
12268 * doc/extend.texi (AVR Built-in Functions): Remove doc for
12269 __builtin_avr_map8, __builtin_avr_map16.
12270 Document __builtin_avr_insert_bits.
12271
12272 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
12273 (insert_bits): New insn.
12274 (adjust_len.map_bits): Rename to insert_bits.
12275 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
12276 * avr-protos.h (avr_out_map_bits): Remove.
12277 (avr_out_insert_bits, avr_has_nibble_0xf): New.
12278 * config/avr/constraints.md (Cxf,C0f): New.
12279 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
12280 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
12281 New built-in define __BUILTIN_AVR_INSERT_BITS.
12282 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
12283 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
12284 (avr_move_bits): Rewrite.
12285 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
12286 functions.
12287 (avr_map_op_t): New typedef.
12288 (avr_map_op): New static variable.
12289 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
12290 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
12291 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
12292 (bdesc_3arg, avr_expand_triop_builtin): New.
12293 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
12294 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
12295 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
12296 (avr_map_equal_p, avr_map_sig_p): Remove.
12297 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
12298 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
12299 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
12300 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
12301 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
12302 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
12303
12304 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
12305
12306 * config/c6x/c6x.md (reserve_cycles): New attribute.
12307 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
12308 don't reserve functional units after the branch occurs.
12309
12310 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
12311
12312 PR middle-end/52142
12313 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
12314 functions into non-tm_pure functions.
12315
12316 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
12317
12318 PR lto/52178
12319 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
12320 (iterative_hash_canonical_type): Likewise.
12321 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
12322 the dead edges.
12323
12324 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
12325
12326 * haifa-sched.c (prune_ready_list): Ensure that if there is a
12327 sched-group insn, it either remains alone or the entire list is pruned.
12328
12329 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
12330
12331 * doc/install.texi (Prerequisites): Fix grammar.
12332 (Configuration): Likewise.
12333
12334 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
12335
12336 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
12337 MPC as part of GCC before describing configuring with --with-gmp etc.
12338 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
12339 sources are present.
12340
12341 2012-02-14 Jakub Jelinek <jakub@redhat.com>
12342
12343 PR debug/51950
12344 * dwarf2out.c (clone_tree_hash): New function.
12345 (copy_decls_walk): Use it instead of clone_tree.
12346
12347 2012-02-14 Richard Guenther <rguenther@suse.de>
12348
12349 PR tree-optimization/52244
12350 PR tree-optimization/51528
12351 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
12352 replacements for integral types.
12353
12354 2012-02-14 Walter Lee <walt@tilera.com>
12355
12356 * config.gcc: Handle tilegx and tilepro.
12357 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
12358 tilegx and tilepro.
12359 Add HAVE_AS_TLS check for tilegx and tilepro.
12360 * configure: Regenerate.
12361 * doc/contrib.texi: Add Mat Hostetter and self.
12362 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
12363 Document instruction intrinsics and network accessing intrinsics.
12364 (TILEPro Built-in Functions): New node. Document instruction
12365 intrinsics and network accessing intrinsics.
12366 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
12367 (Specific, tilepro-*-linux*): Likewise.
12368 * doc/invoke.texi (TILE-Gx Options): New section.
12369 (TILEPro Options): New section.
12370 * doc/md.texi (TILE-Gx): New section.
12371 (TILEPro): New section.
12372 * common/config/tilegx/tilegx-common.c: New file.
12373 * common/config/tilepro/tilepro-common.c: New file.
12374 * config/tilegx/constraints.md: New file.
12375 * config/tilegx/linux.h: New file.
12376 * config/tilegx/mul-tables.c: New file.
12377 * config/tilegx/predicates.md: New file.
12378 * config/tilegx/sync.md: New file.
12379 * config/tilegx/t-tilegx: New file.
12380 * config/tilegx/tilegx-builtins.h: New file.
12381 * config/tilegx/tilegx-c.c: New file.
12382 * config/tilegx/tilegx-generic.md: New file.
12383 * config/tilegx/tilegx-modes.def: New file.
12384 * config/tilegx/tilegx-multiply.h: New file.
12385 * config/tilegx/tilegx-protos.h: New file.
12386 * config/tilegx/tilegx.c: New file.
12387 * config/tilegx/tilegx.h: New file.
12388 * config/tilegx/tilegx.md: New file.
12389 * config/tilegx/tilegx.opt: New file.
12390 * config/tilepro/constraints.md: New file.
12391 * config/tilepro/gen-mul-tables.cc: New file.
12392 * config/tilepro/linux.h: New file.
12393 * config/tilepro/mul-tables.c: New file.
12394 * config/tilepro/predicates.md: New file.
12395 * config/tilepro/t-tilepro: New file.
12396 * config/tilepro/tilepro-builtins.h: New file.
12397 * config/tilepro/tilepro-c.c: New file.
12398 * config/tilepro/tilepro-generic.md: New file.
12399 * config/tilepro/tilepro-modes.def: New file.
12400 * config/tilepro/tilepro-multiply.h: New file.
12401 * config/tilepro/tilepro-protos.h: New file.
12402 * config/tilepro/tilepro.c: New file.
12403 * config/tilepro/tilepro.h: New file.
12404 * config/tilepro/tilepro.md: New file.
12405 * config/tilepro/tilepro.opt: New file.
12406
12407 2012-02-14 Jakub Jelinek <jakub@redhat.com>
12408
12409 PR tree-optimization/52210
12410 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
12411 vect_model_simple_cost with two entry vect_def_type array instead
12412 of an address of dt.
12413
12414 2012-02-14 Richard Guenther <rguenther@suse.de>
12415
12416 PR lto/52178
12417 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12418 Do not stream DECL_QUALIFIER.
12419 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12420 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
12421 (find_decls_types_r): Do not walk DECL_QUALIFIER.
12422
12423 2012-02-14 Jakub Jelinek <jakub@redhat.com>
12424
12425 PR c/52181
12426 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
12427 newdecl.
12428
12429 2012-02-13 Jakub Jelinek <jakub@redhat.com>
12430
12431 PR bootstrap/52172
12432 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
12433 * cselib.c (cselib_subst_to_values_from_insn): New function.
12434 * sched-deps.c (add_insn_mem_dependence,
12435 sched_analyze_1, sched_analyze_2): Use it.
12436
12437 2012-02-13 Jan Hubicka <jh@suse.cz>
12438
12439 PR middle-end/52214
12440 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
12441
12442 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
12443
12444 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
12445 (GTM_SELF_SPECS): Define if not already defined.
12446 (driver_self_specs): Add GTM_SELF_SPECS.
12447 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
12448 (GTM_SELF_SPECS): Define.
12449 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
12450 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
12451
12452 2012-02-13 Jakub Jelinek <jakub@redhat.com>
12453
12454 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
12455 away if seen.
12456
12457 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
12458
12459 PR middle-end/52230
12460 * omp-low.c (expand_omp_for): If a static schedule without chunk size
12461 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
12462
12463 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
12464
12465 PR c/52190
12466 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
12467
12468 2012-02-13 Richard Guenther <rguenther@suse.de>
12469
12470 PR translation/52211
12471 * passes.c (enable_disable_pass): Fix typo.
12472
12473 2012-02-13 Jakub Jelinek <jakub@redhat.com>
12474
12475 PR middle-end/52209
12476 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
12477 XOR for reduce_bit_field if type is unsigned.
12478
12479 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
12480
12481 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
12482 disallow changes from SFmode to mode with different size in FP regs.
12483
12484 2012-02-12 Robert Millan <rmh@gnu.org>
12485 Gerald Pfeifer <gerald@pfeifer.com>
12486
12487 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
12488 Tweak comment.
12489
12490 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
12491
12492 PR rtl-optimization/52175
12493 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
12494 to frame-related instructions.
12495
12496 2012-02-10 Jason Merrill <jason@redhat.com>
12497
12498 PR c++/51910
12499 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
12500 (demangle_new_symbols): Fill it.
12501 (scan_linker_output): Walk it.
12502 (start_tweaking): Split out from scan_linker_output.
12503 (maybe_tweak): Update sym->chosen.
12504 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
12505
12506 2012-02-11 Jakub Jelinek <jakub@redhat.com>
12507
12508 PR debug/52132
12509 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
12510
12511 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
12512
12513 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
12514 having the same mode as previous compare.
12515
12516 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
12517
12518 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
12519 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
12520 (nonlocal_goto_internal): Likewise.
12521 (nonlocal_goto): Emit a use and an indirect jump directly.
12522
12523 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
12524
12525 PR c/52190
12526 * doc/extend.texi : Update comments for __atomic_compare_exchange and
12527 __atomic_{is,always}_lock_free.
12528
12529 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
12530
12531 PR target/52146
12532 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
12533 negative constant address for TARGET_X32.
12534
12535 2012-02-10 Richard Henderson <rth@redhat.com>
12536
12537 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
12538 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
12539 for GIMPLE_TRANSACTION. Tidy if's into a switch.
12540
12541 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12542 Ira Rosen <irar@il.ibm.com>
12543
12544 PR tree-optimization/50031
12545 * targhooks.c (default_builtin_vectorization_cost): Handle
12546 vec_promote_demote.
12547 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
12548 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
12549 all types of reduction and pattern statements.
12550 (vect_estimate_min_profitable_iters): Likewise.
12551 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
12552 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
12553 for explicit realigns.
12554 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
12555 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
12556 vec_promote_demote.
12557 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12558 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
12559 vec_perm for VSX and handle vec_promote_demote.
12560
12561 2012-02-10 Jakub Jelinek <jakub@redhat.com>
12562
12563 PR middle-end/52177
12564 * builtins.c (fold_builtin_atomic_always_lock_free,
12565 expand_builtin_atomic_always_lock_free,
12566 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
12567 Return and/or test boolean_true_node/boolean_false_node instead of
12568 integer_one_node/integer_zero_node.
12569
12570 2012-02-10 Jan Hubicka <jh@suse.cz>
12571
12572 PR middle-end/48600
12573 * predict.c (predict_paths_for_bb): Prevent looping.
12574 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
12575
12576 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
12577
12578 * config/arm/arm.c (output_move_double): In one case properly
12579 count number of instructions that will be emitted.
12580
12581 2012-02-10 Richard Guenther <rguenther@suse.de>
12582
12583 PR translation/52193
12584 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
12585
12586 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
12587
12588 PR middle-end/52140
12589 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
12590
12591 2012-02-09 Jakub Jelinek <jakub@redhat.com>
12592
12593 PR debug/52165
12594 * var-tracking.c (emit_note_insn_var_location): If
12595 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
12596 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
12597 non-NOTE_DURING_CALL_P insn.
12598
12599 2012-02-09 Bin Cheng <bin.cheng@arm.com>
12600
12601 PR middle-end/51867
12602 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
12603
12604 2012-02-08 Magnus Granberg <zorry@gentoo.org>
12605
12606 PR driver/48524
12607 * gcc.c (switch_matches) Support switches with separated form,
12608 -D and -U.
12609
12610 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
12611
12612 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
12613 (SP_ADDR): Ditto.
12614 (RAMPZ_ADDR): Ditto.
12615 * config/avr/avr.c (avr_addr_t): New typedef.
12616 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
12617 (avr_init_expanders): Initialize it.
12618 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
12619 SREG_ADDR.
12620 (expand_epilogue): Ditto.
12621 (avr_print_operand): Ditto.
12622 (avr_file_start): Ditto.
12623 (avr_emit_movmemhi): Ditto.
12624
12625 2012-02-08 Richard Guenther <rguenther@suse.de>
12626
12627 PR tree-optimization/46886
12628 * tree-flow.h (do_while_loop_p): Declare.
12629 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
12630 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
12631
12632 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
12633
12634 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
12635 always succeed for integers larger than a native word.
12636
12637 2012-02-08 Richard Guenther <rguenther@suse.de>
12638
12639 PR rtl-optimization/52170
12640 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
12641 properly handle integer vector modes.
12642
12643 2012-02-08 Jakub Jelinek <jakub@redhat.com>
12644
12645 PR gcov-profile/52150
12646 * coverage.c: Include target.h.
12647 (build_var): Call targetm.strip_name_encoding on the assembler name.
12648 Change one _ into . or $ if the target allows it.
12649 * Makefile.in (coverage.o): Depend on $(TARGET_H).
12650
12651 PR rtl-optimization/52139
12652 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
12653 is a BARRIER after emit_insn_after_noloc, move BB_END
12654 to the last non-BARRIER insn before it.
12655
12656 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
12657
12658 PR middle-end/24306
12659 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
12660 (mips_gimplify_va_arg_expr): Call it instead of
12661 std_gimplify_va_arg_expr.
12662
12663 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12664
12665 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
12666 message for -mno-pointers-to-nested-function.
12667
12668 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
12669
12670 PR middle-end/51994
12671 * expr.c (get_inner_reference): If there is an offset, add a negative
12672 bit position to it (if any).
12673
12674 2012-02-07 Jakub Jelinek <jakub@redhat.com>
12675
12676 PR rtl-optimization/52060
12677 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
12678 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
12679 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
12680 and/or i0src_copy2 when needed.
12681
12682 2012-02-07 Jakub Jelinek <jakub@redhat.com>
12683
12684 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
12685 or LTOPLUGINSONAME if have_c.
12686
12687 * config/freebsd-spec.h: Add comment about what macros can be defined
12688 in this header.
12689 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
12690 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
12691 here instead.
12692
12693 2012-02-07 Richard Guenther <rguenther@suse.de>
12694
12695 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
12696 newline in -alias dumps.
12697
12698 2012-02-07 Kai Tietz <ktietz@redhat.com>
12699 Dave Korn <dave.korn.cygwin@gmail.com>
12700
12701 PR target/40068
12702 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
12703 Take care that typinfo gets dllexport-attribute.
12704
12705 2012-02-07 Jakub Jelinek <jakub@redhat.com>
12706
12707 PR middle-end/52074
12708 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
12709 if modifier < EXPAND_SUM call force_operand on the result.
12710
12711 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
12712
12713 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
12714 adding __forwarder_dst__ prefix if a forwarder_section attribute is
12715 present.
12716 (epiphany_function_type): Replace types for specific interrupts with
12717 EPIPHANY_FUNCTION_INTERRUPT.
12718 (EPIPHANY_INTERRUPT_P): Update.
12719 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
12720 New static function.
12721 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
12722 <disinterrupt>: Affects type identity.
12723 (epiphany_handle_interrupt_attribute): Handle variable number of
12724 arguments.
12725 (epiphany_compute_function_type): Update for new
12726 epiphany_function_type definition.
12727 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
12728 handlers with a longcall forwarder.
12729 (epiphany_start_function): Handle multiple interrupt arguments and/or
12730 forwarder_section attribute.
12731
12732 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
12733 libgloss.
12734
12735 2012-02-07 Alan Modra <amodra@gmail.com>
12736
12737 PR target/52107
12738 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
12739 subregs of TFmode.
12740
12741 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12742
12743 PR tree-optimization/50969
12744 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
12745 use vec_perm rather than vector_stmt.
12746 (vect_model_load_cost): Likewise.
12747 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
12748 vec_perm to be the same as other vector statements.
12749 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
12750 cost of vec_perm for TARGET_VSX.
12751
12752 2012-02-06 Richard Guenther <rguenther@suse.de>
12753
12754 PR tree-optimization/52115
12755 * tree-sra.c (access_has_replacements_p): New function.
12756 (sra_modify_assign): Use it to decide whether a use is uninitialized.
12757
12758 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
12759
12760 PR middle-end/52047
12761 * trans-mem.c (expand_call_tm): Add an assertion.
12762 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
12763 functions.
12764
12765 2012-02-06 Richard Guenther <rguenther@suse.de>
12766
12767 PR tree-optimization/50955
12768 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
12769 raise cost of expressions that replace an address with an
12770 expression based on a different pointer.
12771
12772 2012-02-06 Jakub Jelinek <jakub@redhat.com>
12773
12774 PR target/52129
12775 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
12776 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
12777
12778 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12779
12780 PR c++/48680
12781 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
12782 -Weffc++ and specify guidelines come from second edition.
12783
12784 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
12785
12786 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
12787 (sibcall_value_multiple_internal, call_split, call_internal_direct)
12788 (call_direct_split, call_value_split, call_value_internal_direct)
12789 (call_value_direct_split, call_value_multiple_split): Use jal and
12790 jal_macro attributes.
12791
12792 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
12793
12794 * reload1.c (reload_regs_reach_end_p): Replace with...
12795 (reload_reg_rtx_reaches_end_p): ...this function.
12796 (new_spill_reg_store): Update commentary.
12797 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
12798 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
12799 before setting new_spill_reg_store.
12800 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
12801 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
12802 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
12803 for non-spill reload registers.
12804
12805 2012-02-05 Ira Rosen <irar@il.ibm.com>
12806
12807 PR tree-optimization/52091
12808 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
12809 (vect_is_simple_use_1): Likewise.
12810 * tree-vect-loop.c (vectorizable_reduction): Update calls
12811 to vect_is_simple_use_1 and vect_is_simple_use.
12812 (vectorizable_live_operation): Likewise.
12813 * tree-vect-patterns.c (widened_name_p,
12814 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
12815 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
12816 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12817 vectorizable_shift,vectorizable_operation, vectorizable_store,
12818 vectorizable_load): Likewise.
12819 (vect_is_simple_cond): Add an argument, pass it to
12820 vect_is_simple_use_1.
12821 (vectorizable_condition): Update calls to vect_is_simple_cond,
12822 vect_is_simple_use.
12823 (vect_is_simple_use): Add an argument, the statement in which
12824 OPERAND is used. Check that if OPERAND's def stmt is a double
12825 reduction phi node, the use is a phi node too.
12826 (vect_is_simple_use_1): Add an argument, pass it to
12827 vect_is_simple_use.
12828 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
12829 to vect_is_simple_use.
12830
12831 2012-02-04 Jakub Jelinek <jakub@redhat.com>
12832
12833 PR rtl-optimization/52095
12834 * modulo-sched.c (dump_insn_locator): New function.
12835 (loop_canon_p, sms_schedule): Use it.
12836
12837 PR rtl-optimization/52113
12838 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
12839 even for decomposable shift/zext insns.
12840
12841 2012-02-03 Jakub Jelinek <jakub@redhat.com>
12842 Zdenek Dvorak <ook@ucw.cz>
12843
12844 PR rtl-optimization/52092
12845 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
12846 on get_iv_value result.
12847
12848 2012-02-02 Andrew Pinski <apinski@cavium.com>
12849
12850 PR middle-end/47982
12851 PR middle-end/43967
12852 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
12853
12854 2012-02-02 Jakub Jelinek <jakub@redhat.com>
12855
12856 PR middle-end/48071
12857 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
12858
12859 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
12860
12861 PR rtl-optimization/49800
12862 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
12863 (sched_finish): Call regstat_free_n_sets_and_refs.
12864
12865 2012-02-02 Jia Liu <proljc@gmail.com>
12866
12867 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
12868 than operand 2.
12869
12870 2012-02-02 Jan Hubicka <jh@suse.cz>
12871 Tom de Vries <tom@codesourcery.com>
12872
12873 PR middle-end/51998
12874 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
12875 * varpool.c (varpool_analyze_pending_decls): Likewise.
12876
12877 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
12878 Jayant R Sonar <jayant.sonar@kpitcummins.com>
12879
12880 * config.gcc: Add cr16-* support.
12881
12882 * doc/extend.texi: Document cr16 extensions.
12883 * doc/install.texi: Document cr16 install.
12884 * doc/invoke.texi: Document cr16 options.
12885 * doc/md.texi: Document cr16 constraints.
12886
12887 * common/config/cr16/cr16-common.c: New file.
12888 * config/cr16/cr16.c: New file.
12889 * config/cr16/cr16.h: New file.
12890 * config/cr16/cr16.md: New file.
12891 * config/cr16/cr16.opt: New file.
12892 * config/cr16/cr16-protos.h: New file.
12893 * config/cr16/predicates.md: New file.
12894 * config/cr16/constraints.md: New file.
12895 * config/cr16/t-cr16: New file.
12896
12897 2012-02-02 Jakub Jelinek <jakub@redhat.com>
12898
12899 PR target/52086
12900 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
12901 that operands[2] is either immediate, or q_regs_operand.
12902
12903 PR tree-optimization/52073
12904 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
12905 a pattern stmt for pattern uses, ignore uses outside of the loop.
12906
12907 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
12908
12909 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
12910 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
12911 (OUT_AS1, OUT_AS2): Remove.
12912
12913 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
12914
12915 PR rtl-optimization/51374
12916 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
12917 to cross other volatile_refs_p insns.
12918
12919 2012-02-01 Richard Guenther <rguenther@suse.de>
12920
12921 * doc/invoke.texi (fno-inline): Clarify documentation.
12922 (finline-small-functions): Likewise.
12923 (finline-functions): Likewise.
12924 * common.opt (finline): Adjust comment and documentation.
12925 (finline-small-functions): Clarify documentation.
12926 (finline-functions): Likewise.
12927 (finline-functions-called-once): Likewise.
12928
12929 2012-02-01 Tristan Gingold <gingold@adacore.com>
12930
12931 * c-typeck.c (composite_type): Keep mode for pointers.
12932
12933 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
12934
12935 * function.h (regno_reg_rtx): Adjust comment.
12936 * reginfo.c (init_reg_modes_target): Only use the previous mode
12937 if it fits within one register. Remove MIPS comment.
12938
12939 2012-01-31 Jakub Jelinek <jakub@redhat.com>
12940
12941 PR bootstrap/52058
12942 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
12943
12944 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12945
12946 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
12947 to srak instruction.
12948
12949 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12950
12951 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
12952
12953 2012-01-31 Jakub Jelinek <jakub@redhat.com>
12954
12955 PR bootstrap/52041
12956 PR bootstrap/52039
12957 PR target/51974
12958 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
12959
12960 2012-01-31 Richard Guenther <rguenther@suse.de>
12961
12962 PR tree-optimization/51528
12963 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
12964 assigns.
12965
12966 2012-01-31 Jakub Jelinek <jakub@redhat.com>
12967
12968 PR bootstrap/52041
12969 PR bootstrap/52039
12970 PR target/51974
12971 * ree.c (add_removable_extension): Change def_map argument
12972 to unsigned *, store in def_map 1 + offset into *insn_list vector
12973 instead of pointers into the vector.
12974 (find_removable_extensions): Adjust caller.
12975
12976 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
12977
12978 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
12979 Transform all "* quoted-c-code" to { c-code }.
12980 Remove redundant test for "optimize" in combine patterns.
12981 Move (include "avr-dimode.md") to end of file.
12982
12983 2012-01-30 Bin Cheng <bin.cheng@arm.com>
12984
12985 PR target/51835
12986 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12987 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
12988
12989 2012-01-30 Richard Guenther <rguenther@suse.de>
12990
12991 PR tree-optimization/52028
12992 * tree-loop-distribution.c (ldist_gen): Properly update
12993 virtual SSA form.
12994
12995 2012-01-30 Jakub Jelinek <jakub@redhat.com>
12996
12997 PR debug/52027
12998 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
12999 set_cur_line_info_table if not emitting debug info.
13000
13001 PR tree-optimization/52046
13002 * tree-vect-patterns.c (check_bool_pattern): Give up if
13003 a comparison could throw.
13004
13005 PR debug/52048
13006 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
13007
13008 2012-01-30 Richard Guenther <rguenther@suse.de>
13009
13010 PR tree-optimization/52045
13011 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
13012 SSA form if cfgcleanup did anything.
13013
13014 2012-01-30 Richard Guenther <rguenther@suse.de>
13015
13016 PR tree-optimization/52045
13017 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
13018 before computing final todo.
13019
13020 2012-01-30 Richard Guenther <rguenther@suse.de>
13021
13022 PR tree-optimization/51528
13023 * tree-sra.c (sra_modify_assign): Re-factor in preparation
13024 for PR51528 fix.
13025
13026 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
13027
13028 * df-problems.c (df_kill_notes): Check that the use refers
13029 to the note under examination.
13030
13031 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
13032
13033 PR target/51920
13034 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
13035 parameter and use short-lived pseudos.
13036 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
13037 (sparc_expand_vector_init): Const-ify local variables and adjust
13038 calls to above functions.
13039
13040 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
13041
13042 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
13043
13044 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
13045
13046 * doc/invoke.texi: Make usage of "compile time" and
13047 "run time"/"runtime" consistent throughout the file.
13048
13049 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
13050
13051 * config/alpha/alpha.c (alpha_option_override): Default to
13052 full IEEE compliance mode for Go language.
13053
13054 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
13055
13056 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
13057 (LINK_SSP_SPEC): Define.
13058
13059 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13060
13061 PR target/51871
13062 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
13063 stubs.
13064
13065 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
13066
13067 * doc/invoke.texi: Correct hyphenation of "floating point",
13068 "double precision", and related terminology throughout the file.
13069
13070 2012-01-28 Jakub Jelinek <jakub@redhat.com>
13071
13072 PR target/52006
13073 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
13074 arm_general_register_operand predicate for operand 2 instead of
13075 register_operand.
13076
13077 2012-01-27 Ian Lance Taylor <iant@google.com>
13078
13079 PR go/47656
13080 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
13081 * builtins.c (expand_builtin_init_trampoline): Add onstack
13082 parameter. Change caller.
13083 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
13084 * tree.c (build_common_builtin_nodes): Declare
13085 __builtin_init_heap_trampoline.
13086
13087 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
13088
13089 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
13090 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
13091 * config/avr/avr.c: Ditto.
13092 (avr_regnames): Remove because unused.
13093 * config/avr/avr.md (*cpse.ne): New peephole.
13094 (*cpse.eq): New peephole from former cpse peepholes.
13095
13096 2012-01-27 Michael Eager <eager@eagercon.com>
13097
13098 * config/microblaze.c (microblaze_emit_compare): Correct
13099 test after pcmp instruction.
13100
13101 2012-01-27 Richard Guenther <rguenther@suse.de>
13102
13103 PR tree-optimization/52020
13104 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
13105
13106 2012-01-27 Richard Guenther <rguenther@suse.de>
13107
13108 * ipa-pure-const.c (check_stmt): Clobbers do not make a
13109 function non-const/pure.
13110
13111 2012-01-27 Richard Guenther <rguenther@suse.de>
13112
13113 PR tree-optimization/50444
13114 * tree-sra.c (build_ref_for_offset): Properly adjust the
13115 MEM_REF type for unaligned accesses.
13116
13117 2012-01-27 Richard Guenther <rguenther@suse.de>
13118
13119 PR tree-optimization/50444
13120 * expr.c (mem_ref_refers_to_non_mem_p): New function.
13121 (expand_assignment): Use it. Properly handle misaligned
13122 bases when expanding stores to component references.
13123 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
13124 refactor that case.
13125
13126 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
13127
13128 PR middle-end/51389
13129 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
13130 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
13131 * tree-data-ref.c (find_data_references_in_loop): Make static.
13132 (compute_all_dependences): Change return type to bool. Bail out
13133 for too many datarefs in a loop. Move the hunk resetting the data
13134 dependences vector from ...
13135 (compute_data_dependences_for_loop): ... here. Account for
13136 compute_all_dependences returning false.
13137 (compute_data_dependences_for_bb): Likewise.
13138 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
13139 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
13140
13141 2012-01-27 Richard Guenther <rguenther@suse.de>
13142
13143 PR middle-end/51959
13144 * expr.c (store_field): Use the alias-set of the scratch memory
13145 for storing to it.
13146
13147 2012-01-27 Tom de Vries <tom@codesourcery.com>
13148
13149 PR tree-optimization/51990
13150 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13151 WITH_SIZE_EXPR.
13152 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
13153
13154 2012-01-27 Jakub Jelinek <jakub@redhat.com>
13155
13156 PR debug/52001
13157 * var-tracking.c (reverse_op): Don't add any reverse operation
13158 if V already has any constant locations.
13159
13160 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
13161
13162 * doc/invoke.texi: Correct usage of "command line" (noun)
13163 vs "command-line" (adjective) throughout.
13164
13165 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
13166
13167 * doc/invoke.texi (Language Independent Options): Move
13168 -Wcoverage-mismatch blurb from here....
13169 (Warning Options): ...to here.
13170
13171 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
13172
13173 * config/rs6000/rs6000.c (rs6000_option_override_internal):
13174 Set rs6000_always_hint to false for 476.
13175
13176 2012-01-27 Matthias Klose <doko@ubuntu.com>
13177
13178 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
13179 system root.
13180 * incpath.c (add_standard_paths): Likewise.
13181
13182 2012-01-27 Richard Henderson <rth@redhat.com>
13183
13184 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
13185 * config/m68k/sync.md (atomic_test_and_set): Rename from
13186 sync_test_and_setqi and adjust the operands.
13187 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
13188 and unconditionally enable.
13189
13190 2012-01-27 Richard Henderson <rth@redhat.com>
13191
13192 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
13193 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
13194 (ldstub): Rename from ldstubqi.
13195 (ldstub<I24MODE>): Remove.
13196
13197 2012-01-27 Richard Henderson <rth@redhat.com>
13198
13199 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
13200 * c-cppbuiltin.c (cpp_atomic_builtins): Define
13201 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
13202 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
13203 * doc/tm.texi: Rebuild.
13204
13205 2012-01-27 Richard Henderson <rth@redhat.com>
13206
13207 * optabs.c (gen_atomic_test_and_set): Remove default.
13208 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
13209
13210 2012-01-26 Jakub Jelinek <jakub@redhat.com>
13211
13212 PR rtl-optimization/51978
13213 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
13214 (combine_reaching_defs): Likewise.
13215 (struct re_info): Remove.
13216 (add_removable_extension): Remove x and data arguments,
13217 add insn, insn_list and def_map. Use the arguments directly
13218 instead of using struct re_info.
13219 (find_removable_extensions): Don't call add_removable_extension
13220 through note_stores, instead just call it with single_set
13221 result if non-NULL.
13222 (find_and_remove_re): Pass curr_cand->expr instead of
13223 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
13224
13225 2012-01-26 Michael Matz <matz@suse.de>
13226
13227 PR tree-optimization/46590
13228 * cfgexpand.c: Revert last change (r183305).
13229 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
13230 regs.
13231 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
13232 checking for emptiness.
13233
13234 2012-01-26 Jakub Jelinek <jakub@redhat.com>
13235
13236 PR middle-end/51895
13237 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
13238 non-addressable non-BLKmode base correctly.
13239
13240 2012-01-26 Michael Matz <matz@suse.de>
13241
13242 PR tree-optimization/48794
13243 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
13244 regions referenced from RESX/EH_DISPATCH.
13245
13246 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13247
13248 * config/s390/s390.h: Make BRANCH_COST an option.
13249 * config/s390/s390.opt: New option -mbranch-cost.
13250
13251 2012-01-26 Richard Henderson <rth@redhat.com>
13252
13253 Revert 2012-01-24 change:
13254 * trans-mem.c (requires_barrier): Do not instrument thread local
13255 variables and emit save/restore for them.
13256
13257 2012-01-25 Jakub Jelinek <jakub@redhat.com>
13258
13259 PR middle-end/51986
13260 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
13261 for pat == 0.
13262
13263 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
13264
13265 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
13266 ASM_OPERANDS.
13267
13268 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
13269
13270 PR target/49868
13271 Rename __pgm to __flash.
13272 Rename __pgm1 to __flash1.
13273 Rename __pgm2 to __flash2.
13274 Rename __pgm3 to __flash3.
13275 Rename __pgm4 to __flash4.
13276 Rename __pgm5 to __flash5.
13277 Rename __pgmx to __memx.
13278 * doc/extend.texi (AVR Named Address Spaces)
13279 Rename address space names as indicated above.
13280 * config/avr/avr.c (avr_addrspace): Ditto.
13281
13282 * config/avr/avr-protos.h
13283 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
13284 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
13285 * config/avr/predicates.md: Ditto.
13286 * config/avr/avr.c Ditto, and
13287 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
13288 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
13289
13290 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
13291 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
13292 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
13293 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
13294 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
13295 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
13296 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
13297 * config/avr/avr.c: Ditto.
13298 * config/avr/avr.md: Ditto.
13299
13300 2012-01-25 Jason Merrill <jason@redhat.com>
13301
13302 PR c++/51992
13303 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
13304
13305 2012-01-25 Jakub Jelinek <jakub@redhat.com>
13306
13307 PR tree-optimization/51987
13308 * tree-data-ref.c (get_references_in_stmt): Handle references in
13309 non-volatile GIMPLE_ASM.
13310
13311 2012-01-25 Richard Guenther <rguenther@suse.de>
13312
13313 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
13314 bases are dereferenced.
13315
13316 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
13317
13318 PR rtl-optimization/48374
13319 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
13320
13321 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
13322
13323 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
13324 compute_data_dependences_for_loop returns false.
13325 * tree-parloops.c (loop_parallel_p): Likewise.
13326
13327 2012-01-25 Richard Guenther <rguenther@suse.de>
13328
13329 * tree.h (get_pointer_alignment_1): Declare.
13330 * builtins.c (get_pointer_alignment_1): New function.
13331 (get_pointer_alignment): Use it.
13332
13333 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13334
13335 PR rtl-optimization/48308
13336 * combine.c (enum undo_kind): Add UNDO_LINKS.
13337 (struct undo): Add member l to other_contents and where.
13338 (do_SUBST_LINK): New.
13339 (SUBST_LINK): New.
13340 (try_combine): Handle LOG_LINKS for the dummy i1 case.
13341 (undo_all): Handle UNDO_LINKS.
13342
13343 2012-01-25 Richard Henderson <rth@redhat.com>
13344
13345 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
13346 mem inputs.
13347
13348 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13349
13350 * optabs.c (gen_atomic_test_and_set): Use each argument.
13351
13352 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13353
13354 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
13355 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
13356 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
13357 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
13358 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
13359 TARGET_PAIRED_SINGLE_FLOAT.
13360
13361 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13362
13363 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
13364 (in_struct, return_val): Remove MEM documentation.
13365 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
13366 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
13367 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
13368 and MEM_SCALAR.
13369 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13370 * cfgexpand.c (add_alias_set_conflicts): Likewise.
13371 * expr.c (store_field): Likewise.
13372 * function.c (assign_stack_temp_for_type): Likewise.
13373 * ifcvt.c (noce_try_cmove_arith): Likewise.
13374 * reload1.c (reload): Likewise.
13375 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
13376 (alpha_set_memflags): Likewise.
13377 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
13378
13379 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13380
13381 * rtl.h (true_dependence, canon_true_dependence): Remove varies
13382 parameter.
13383 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
13384 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
13385 (true_dependence_1, true_dependence, canon_true_dependence): Remove
13386 varies parameter.
13387 * cselib.c (cselib_rtx_varies_p): Delete.
13388 (cselib_invalidate_mem): Update call to canon_true_dependence.
13389 * dse.c (record_store, check_mem_read_rtx): Likewise.
13390 (scan_reads_nospill): Likewise.
13391 * cse.c (check_dependence): Likewise.
13392 (cse_rtx_varies_p): Delete.
13393 * expr.c (safe_from_p): Update call to true_dependence.
13394 * ira.c (validate_equiv_mem_from_store): Likewise.
13395 (memref_referenced_p): Likewise.
13396 * postreload-gcse.c (find_mem_conflicts): Likewise.
13397 * sched-deps.c (sched_analyze_2): Likewise.
13398 * store-motion.c (load_kills_store): Likewise.
13399 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
13400 * gcse.c (mems_conflict_for_gcse_p): Likewise.
13401 (compute_transp): Update call to canon_true_dependence.
13402
13403 2012-01-25 Richard Henderson <rth@redhat.com>
13404
13405 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
13406 (maybe_emit_atomic_test_and_set): New.
13407 (expand_sync_lock_test_and_set): Use it.
13408 (expand_atomic_test_and_set): Likewise.
13409 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
13410 the implementation; clarify implementation defined details.
13411 * doc/md.texi (atomic_test_and_set): Document.
13412
13413 2012-01-25 Richard Henderson <rth@redhat.com>
13414
13415 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
13416
13417 2012-01-25 Richard Henderson <rth@redhat.com>
13418
13419 PR target/51968
13420 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
13421 to effect no-op split.
13422
13423 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
13424
13425 PR lto/51698
13426 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
13427 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
13428 (BT_FN_VOID_PTR_INT_SIZE): New.
13429 (BT_FN_UINT_UINT_VAR): Remove.
13430 (BT_FN_UINT32_UINT32_VAR): New.
13431 (BT_FN_DOUBLE_VPTR): Remove.
13432 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
13433
13434 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
13435 (_ITM_changeTransactionMode): Same.
13436 (_ITM_memmoveRtWt): Change return type to void.
13437 (_ITM_memcpyRtWt): Same.
13438 (_ITM_memsetW): Same.
13439 (_ITM_RaRD): Change types to double.
13440 (_ITM_RD): Same.
13441 (_ITM_RaWD): Same.
13442 (_ITM_RfWD): Same.
13443
13444 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
13445
13446 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
13447 Patrick Marlier <patrick.marlier@gmail.com>
13448
13449 * trans-mem.c (requires_barrier): Do not instrument thread local
13450 variables and emit save/restore for them.
13451
13452 2012-01-24 Jason Merrill <jason@redhat.com>
13453
13454 PR c++/51812
13455 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
13456 output static aliases.
13457
13458 2012-01-24 Jakub Jelinek <jakub@redhat.com>
13459
13460 PR driver/47249
13461 * common.opt (-pie, -shared, pie, shared): Change from Common to
13462 Driver.
13463 * gcc.c (display_help): Display help for -pie and -shared.
13464
13465 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
13466
13467 PR target/49868
13468 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
13469 Remove note on size/offset limitation.
13470 (AVR Variable Attributes): Add example how to read data located
13471 with progmem. Refer to named address spaces.
13472 * doc/invoke.texi (AVR Options): Fix typo.
13473
13474 2012-01-24 Richard Guenther <rguenther@suse.de>
13475
13476 Forward-port to trunk
13477 2010-09-21 Jakub Jelinek <jakub@redhat.com>
13478
13479 PR middle-end/45678
13480 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
13481 op0 isn't sufficiently aligned and there is movmisalignM
13482 insn for mode, use it to load op0 into a temporary register.
13483
13484 2012-01-24 Jakub Jelinek <jakub@redhat.com>
13485
13486 PR target/51957
13487 * target.def (const_not_ok_for_debug_p): New hook.
13488 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
13489 documentation.
13490 * doc/tm.texi: Regenerated.
13491 * dwarf2out.c (const_ok_for_output_1): If
13492 targetm.const_not_ok_for_debug_p returns true, fail.
13493 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
13494 function.
13495 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
13496
13497 2012-01-23 Kai Tietz <ktietz@redhat.com>
13498
13499 PR target/51900
13500 * config/i386/predicates.md (symbolic_operand): Allow
13501 UNSPEC_PCREL as PIC expression for lea.
13502 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
13503 * config/i386/i386.c (ix86_delegitimize_address): Handle
13504 UNSPEC_PCREL for none-MEM, too.
13505
13506 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
13507
13508 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
13509 (ipa_tm_create_version_alias): Same.
13510
13511 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
13512
13513 PR libitm/51830
13514 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
13515 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
13516
13517 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
13518 Patrick Marlier <patrick.marlier@gmail.com>
13519 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13520
13521 PR lto/51916
13522 * lto-wrapper.c (run_gcc): Pass the LTO section name to
13523 simple_object_start_read.
13524
13525 2012-01-23 Richard Guenther <rguenther@suse.de>
13526
13527
13528 PR tree-optimization/51895
13529 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
13530 parameter decomposition into BLKmode components.
13531
13532 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
13533
13534 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
13535 fake variables for restrict-qualified pointers whose pointed-to type
13536 contains a placeholder.
13537
13538 2012-01-23 Richard Guenther <rguenther@suse.de>
13539
13540 PR tree-optimization/51949
13541 * ipa-split.c (execute_split_functions): Do not split malloc functions.
13542
13543 2012-01-23 Jakub Jelinek <jakub@redhat.com>
13544
13545 PR rtl-optimization/51933
13546 * ree.c (transform_ifelse): Return true right away if dstreg is
13547 already wider or equal to cand->mode.
13548 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
13549 (make_defs_and_copies_lists): Remove defs_list and copies_list
13550 arguments, add state argument, just truncate state->work_list
13551 instead of always allocating and freeing the vector. Assert that
13552 get_defs succeeds instead of returning 2. Changed return type to bool.
13553 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
13554 have ext_src_mode, see if it has been modified already with the
13555 right kind of extension and has been extended before from the
13556 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
13557 just return true. Remember the original mode in state->modified array.
13558 (combine_reaching_defs): Add state argument. Don't allocate and
13559 free here def_list, copied_list and vec vectors, instead just
13560 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
13561 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
13562 Add state variable, clear vectors in it, initialize state.modified
13563 if needed. Free all the vectors at the end and state.modified too.
13564 Don't skip a candidate if the extension expression has been modified.
13565
13566 2012-01-22 Douglas B Rupp <rupp@gnat.com>
13567
13568 PR target/47096
13569 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
13570 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
13571 (extra_options) interix.opt -> i386/interix.opt"
13572 (extra_objs):Add winnt-stubs.o
13573 * configure.ac: Add interix to target_os .comm on PE check.
13574 * configure: Regenerate.
13575 * config/interix3.h: Delete and move bits to..
13576 * config/interix.h: Delete and move bits to..
13577 * config/i386/i386-interix3.h: Delete and move bits to..
13578 * config/i386/i386-interix.h: ..here.
13579 (TARGET_CPU_DEFAULT): Remove redefinition.
13580 (TARGET_ASM_CONSTRUCTOR): Undefine.
13581 (SUBTARGET_SWITCHES): Define for ms-bitfields.
13582 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
13583 (PTRDIFF_TYPE): Define.
13584 (LONG_DOUBLE_TYPE_SIZE): Define.
13585 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
13586 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13587 (TARGET_SECTION_TYPE_FLAGS): Define.
13588 (ASM_DECLARE_FUNCTION_NAME): Define.
13589 (ASM_OUTPUT_EXTERNAL): Define.
13590 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
13591 (ASM_OUTPUT_ALIGNED_BSS): Define.
13592 (PCC_BITFIELD_TYPE_MATTERS): Define.
13593 (USE_CONST_SECTION): Define.
13594 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
13595 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13596 (SUPPORTS_ONE_ONLY): Remove.
13597 (I386_PE_STRIP_ENCODING): Define.
13598 * config/interix.opt: Delete and move bits to..
13599 * config/i386/interix.opt: ..here. New.
13600 (mpe-aligned-commons): Add.
13601 * config/i386/t-interix: Add copyright header.
13602 (winnt-stubs.o): Add rule.
13603
13604 2012-01-22 Jason Merrill <jason@redhat.com>
13605
13606 PR c++/51832
13607 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
13608 for extra name aliases.
13609
13610 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
13611
13612 PR rtl-optimization/51924
13613 * ree.c (combine_set_extension): Improve debugging message.
13614 (combine_reaching_defs): Likewise.
13615 (get_defs): Rename confusingly named variable.
13616 (find_and_remove_re): Skip a candidate if the extension expression has
13617 been modified.
13618
13619 2012-01-21 Robert Millan <rmh@gnu.org>
13620 Gerald Pfeifer <gerald@pfeifer.com>
13621
13622 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
13623 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
13624
13625 2012-01-20 Jakub Jelinek <jakub@redhat.com>
13626
13627 PR tree-optimization/51914
13628 * tree-vect-stmts.c (vectorizable_conversion): For
13629 cvt_type && modifier == WIDEN, put temporary with cvt_type
13630 at the beginning of vec_dsts and set vec_dest to temporary
13631 with vectype_out.
13632
13633 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
13634
13635 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
13636
13637 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
13638
13639 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
13640 * config/rs6000/rs6000.c: Likewise.
13641
13642 2012-01-20 Jakub Jelinek <jakub@redhat.com>
13643
13644 PR target/51915
13645 * config/arm/arm.c (arm_count_output_move_double_insns): Call
13646 output_move_double on a copy of operands array.
13647
13648 2012-01-20 Cary Coutant <ccoutant@google.com>
13649 Dodji Seketeli <dodji@redhat.com>
13650
13651 PR debug/45682
13652 * dwarf2out.c (copy_declaration_context): Return ref to parent
13653 of declaration DIE, if necessary.
13654 (remove_child_or_replace_with_skeleton): Add new parameter; update
13655 caller. Place skeleton DIE under parent DIE of original declaration.
13656 Move call to copy_declaration_context to here ...
13657 (break_out_comdat_types): ... from here.
13658
13659 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13660
13661 PR rtl-optimization/51856
13662 * reload.c (find_reloads_subreg_address): Set the address_reloaded
13663 flag to reloaded.
13664
13665 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13666
13667 PR target/51819
13668 * config/arm/arm.c (arm_print_operand): Correct output of alignment
13669 hints for neon loads and stores.
13670
13671 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
13672
13673 PR target/49868
13674 PR target/50887
13675 * doc/extend.texi (Named Address Spaces): Split into subsections.
13676 (AVR Named Address Spaces): New subsection.
13677 (M32C Named Address Spaces): New subsection.
13678 (RL78 Named Address Spaces): New subsection.
13679 (SPU Named Address Spaces): New subsection.
13680 (Variable Attributes): New anchor "AVR Variable Attributes".
13681 (AVR Variable Attributes): Rewrite and avoid wording
13682 "address space" in this context.
13683 * doc/invoke.texi (AVR Options): Rewrite and add documentation
13684 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
13685 (AVR Built-in Macros): New subsubsection therein.
13686 * doc/md.texi (AVR constraints): Remove "C04", "R".
13687
13688 2012-01-20 Richard Guenther <rguenther@suse.de>
13689
13690 PR tree-optimization/51903
13691 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
13692 when removing stmts.
13693
13694 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13695
13696 PR target/50313
13697 * config/arm/arm.c (arm_load_pic_register): Use
13698 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
13699 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
13700 (arm_pic_static_addr): Likewise.
13701 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
13702 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
13703 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
13704 (pic_load_addr_unified): New.
13705
13706 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
13707
13708 PR target/51106
13709 * function.c (instantiate_virtual_regs_in_insn): Use
13710 delete_insn_and_edges when removing a wrong asm insn.
13711
13712 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
13713
13714 PR rtl-optimization/40761
13715 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
13716 Add new member loop_num.
13717 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
13718 (ira_build): Remove the parameter.
13719
13720 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
13721 (ira.c): Do not build CFG loops for one region allocation. Remove
13722 argument from ira_build call.
13723
13724 * ira-build.c (init_loop_tree_node): New function.
13725 (create_loop_tree_nodes): Use it. Separate the case when CFG
13726 loops are not built.
13727 (more_one_region_p): Check current_loops.
13728 (finish_loop_tree_nodes): Separate the case when CFG loops are not
13729 built.
13730 (add_loop_to_tree): Process loop equal to NULL too.
13731 (form_loop_tree): Separate the case when CFG loops are not built.
13732 Use explicitly number for the root.
13733 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
13734 an assertion.
13735 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
13736 instead of loop->num.
13737 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
13738 (mark_all_loops_for_removal): Ditto.
13739 (remove_unnecessary_regions): Separate the case when CFG loops
13740 are not built.
13741 (ira_build): Remove the parameter. Use explicit number of regions
13742 when CFG loops are not built.
13743
13744 * ira-color.c (print_loop_title): Separate the case for the root node.
13745 Use loop_num instead of loop->num.
13746 (move_spill_restore): Use loop_num instead of loop->num.
13747
13748 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
13749 (change_loop): Ditto.
13750 (change_loop): Use loop_num instead of loop->num.
13751
13752 * ira-lives.c (process_bb_node_lives): Ditto.
13753
13754 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
13755
13756 * ira-conflicts.c (print_allocno_conflicts): Ditto.
13757
13758 2012-01-19 Jakub Jelinek <jakub@redhat.com>
13759
13760 PR libmudflap/40778
13761 * tree-mudflap.c (mf_artificial): New function.
13762 (execute_mudflap_function_ops, execute_mudflap_function_decls,
13763 mx_register_decls, mudflap_enqueue_decl): Use it.
13764
13765 PR target/51876
13766 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
13767 numbers in the insn pattern.
13768
13769 2012-01-19 Michael Matz <matz@suse.de>
13770
13771 PR tree-optimization/46590
13772 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
13773 use it in remembering which conflicts we already created.
13774 (add_scope_conflicts): Adjust call to above, (de)allocate helper
13775 bitmap.
13776
13777 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
13778
13779 PR lto/51280
13780 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
13781 (merge_and_complain): Same.
13782
13783 2012-01-19 Jakub Jelinek <jakub@redhat.com>
13784
13785 PR bootstrap/50237
13786 * config/initfini-array.h: Guard content of the header
13787 with #ifdef HAVE_INITFINI_ARRAY.
13788 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
13789 Add initfini-array.h to tm_file here.
13790 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
13791 * config.gcc: Don't add initfini-array.h to tm_file here.
13792 * configure: Regenerated.
13793
13794 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
13795
13796 PR rtl-optimization/51505
13797 * df-problems.c (df_kill_notes): New parameter live. Update comment.
13798 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
13799 (df_note_bb_compute): Update the call to df_kill_notes.
13800
13801 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
13802
13803 * trans-mem.c (requires_barrier): Remove call to is_global_var.
13804
13805 2012-01-18 Richard Guenther <rguenther@suse.de>
13806
13807 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
13808 of conversions to void *.
13809
13810 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13811 Richard Sandiford <rdsandiford@googlemail.com>
13812
13813 PR middle-end/50325
13814 PR middle-end/51192
13815 * optabs.h (simplify_expand_binop): Declare.
13816 * optabs.c (simplify_expand_binop): Make global.
13817 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
13818 endian targets if the source cannot be exactly covered by word
13819 mode chunks.
13820
13821 2012-01-17 Jakub Jelinek <jakub@redhat.com>
13822
13823 PR bootstrap/51872
13824 * hard-reg-set.h (struct hard_reg_set_container): New type.
13825 * target.h (struct hard_reg_set_container): Forward declare.
13826 * target.def (set_up_by_prologue): New target hook.
13827 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
13828 * doc/tm.texi: Regenerated.
13829 * function.c (thread_prologue_and_epilogue_insns): Change
13830 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
13831 Call targetm.set_up_by_prologue on it.
13832 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
13833 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
13834
13835 2012-01-17 Nick Clifton <nickc@redhat.com>
13836
13837 * config/rx/rx.c (rx_can_use_simple_return): New function.
13838 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
13839 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
13840
13841 2012-01-17 Richard Guenther <rguenther@suse.de>
13842
13843 PR middle-end/51782
13844 * expr.c (expand_assignment): Take address-space information
13845 from the address operand of MEM_REF and TARGET_MEM_REF.
13846 (expand_expr_real_1): Likewise.
13847
13848 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13849
13850 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
13851 reload dump is requested.
13852
13853 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
13854
13855 PR other/51165
13856 * trans-mem.c (requires_barrier): Call may_be_aliased.
13857
13858 2012-01-17 Jakub Jelinek <jakub@redhat.com>
13859
13860 PR tree-optimization/51877
13861 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
13862 call arguments and fndecls compare equal, instead return false if they
13863 don't. Return true only if lhs1 and lhs2 are either both NULL, or
13864 both SSA_NAMEs that are valueized the same, or they satisfy
13865 operand_equal_p.
13866
13867 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13868
13869 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
13870 Solaris 11+.
13871 * configure: Regenerate.
13872
13873 2012-01-16 Jan Hubicka <jh@suse.cz>
13874
13875 PR c/12245
13876 PR c++/14179
13877 * convert.c (convert_to_integer): Use fold_convert for
13878 converting an INTEGER_CST to integer type.
13879
13880 2012-01-16 Jason Merrill <jason@redhat.com>
13881
13882 PR c++/14179
13883 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
13884
13885 2012-01-16 Jakub Jelinek <jakub@redhat.com>
13886
13887 PR bootstrap/51860
13888 * config/s390/s390.c (s390_chunkify_start): Don't skip
13889 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
13890 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
13891 If insn is followed by NOTE_INSN_VAR_LOCATION or
13892 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
13893 Don't use location of note insns.
13894
13895 PR tree-optimization/51865
13896 * tree-inline.c (tree_function_versioning): Call remap_decl
13897 on DECL_RESULT whenever it has VOID_TYPE_P type.
13898
13899 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
13900
13901 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
13902 for calls to locally-binding MIPS16 functions if only the return
13903 type uses float regs.
13904
13905 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
13906 Richard Sandiford <rdsandiford@googlemail.com>
13907
13908 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
13909 (SYMBOL_32_HIGH): Likewise.
13910 (mips_output_tls_reloc_directive): Declare.
13911 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
13912 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
13913 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
13914 (mips_lo_relocs, mips_hi_relocs): Make extern.
13915 (mips16_stub_function): Move up file.
13916 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
13917 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
13918 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
13919 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
13920 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
13921 (mips_get_tp): Add MIPS16 support.
13922 (mips_legitimize_tls_address): Remove MIPS16 sorry().
13923 Generalize DTPREL and TPREL handling.
13924 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
13925 Add MIPS16 TLS support.
13926 (mips_output_tls_reloc_directive): New function.
13927 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
13928 * config/mips/predicates.md (symbolic_operand_with_high)
13929 (tls_reloc_operand): New predicates.
13930 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
13931 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
13932 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
13933 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
13934 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
13935 (*tls_get_tp_mips16_call_<mode>): Likewise.
13936
13937 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
13938
13939 PR rtl-optimization/51821
13940 * recog.c (peep2_find_free_register): Determine clobbered registers
13941 from insn pattern.
13942
13943 2012-01-14 Denis Chertykov <chertykov@gmail.com>
13944
13945 PR target/50925
13946 * config/avr/avr-protos.h: Revert change of 2012-01-09.
13947 * config/avr/avr.c: Likewise.
13948 * config/avr/avr.h: Likewise.
13949
13950 2012-01-13 Ian Lance Taylor <iant@google.com>
13951
13952 PR c++/50012
13953 * tree.h (TYPE_QUALS): Add cast to int.
13954 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
13955
13956 2012-01-13 Ian Lance Taylor <iant@google.com>
13957
13958 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
13959 comparing param_index to VEC_length result.
13960
13961 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
13962
13963 * c-decl.c: Do not include tree-mudflap.h
13964 * tree-optimize.c: Likewise.
13965 * Makefile.in: Update dependencies.
13966
13967 2012-01-13 Richard Guenther <rguenther@suse.de>
13968
13969 PR middle-end/8081
13970 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
13971 variable-sized result always use RSO.
13972
13973 2012-01-12 DJ Delorie <dj@redhat.com>
13974
13975 * cfgexpand.c (convert_debug_memory_address): Allow any valid
13976 pointer type, not just the default pointer type.
13977
13978 2012-01-09 Richard Henderson <rth@redhat.com>
13979 Denis Chertykov <chertykov@gmail.com>
13980
13981 PR target/50925
13982 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
13983 * config/avr/avr.c (avr_can_eliminate): Simplify.
13984 (avr_initial_elimination_offset): Likewise.
13985 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
13986 (expand_epilogue): Likewise.
13987 (avr_legitimize_address): Gut.
13988 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
13989 (avr_hard_regno_nregs): New.
13990 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
13991 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
13992 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
13993 add soft frame pointer.
13994 (CALL_USED_REGISTERS): Likewise.
13995 (REG_CLASS_CONTENTS): Likewise.
13996 (REGISTER_NAMES): Likewise.
13997 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
13998 (HARD_FRAME_POINTER_REGNUM): New.
13999 (FRAME_POINTER_REGNUM): Use soft frame pointer.
14000 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
14001 remove the HARD_FRAME_POINTER self-elimination.
14002
14003 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
14004
14005 PR target/51756
14006 * config/avr/avr.c (avr_encode_section_info): Test for absence of
14007 DECL_EXTERNAL when checking for initializers of progmem variables.
14008
14009 2012-01-12 Ira Rosen <irar@il.ibm.com>
14010
14011 PR tree-optimization/51799
14012 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
14013 that the last operation is a type demotion.
14014
14015 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
14016
14017 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
14018 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
14019
14020 2012-01-11 Jakub Jelinek <jakub@redhat.com>
14021
14022 PR bootstrap/51796
14023 * combine.c (distribute_notes): If i3 is a noreturn call,
14024 allow old_size to be equal to args_size and make sure the
14025 noreturn call gets REG_ARGS_SIZE note.
14026 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
14027 on noreturn calls even when the delta is 0.
14028
14029 2012-01-11 Nathan Sidwell <nathan@acm.org>
14030
14031 * gcov.c (STRING_SIZE): Remove.
14032 (generate_results): Erase annotations for source files with no
14033 coverage information.
14034 (read_line): New.
14035 (output_lines): Use it.
14036
14037 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
14038
14039 * gimple.h (gimplify_body): Remove first argument.
14040 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
14041 pointer set here, instead just pass DATA to walk_tree.
14042 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
14043 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
14044 (unvisit_body): Likewise, but with unmark_visited.
14045 (gimplify_body): Remove BODY_P argument and adjust.
14046 (gimplify_function_tree): Adjust call to gimplify_body.
14047 * omp-low.c (finalize_task_copyfn): Likewise.
14048
14049 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
14050
14051 * tree.h (build_function_decl_skip_args): Add boolean parameter.
14052 (build_function_type_skip_args): Delete.
14053 * tree.c (build_function_type_skip_args): Make static and add
14054 SKIP_RETURN parameter. Fix thinko in the handling of variants.
14055 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
14056 pass it to build_function_type_skip_args.
14057 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
14058 (tree_function_versioning): Likewise.
14059 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
14060 build_function_decl_skip_args.
14061 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
14062 and pass it to build_function_decl_skip_args/tree_function_versioning.
14063 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
14064 * ipa-inline-transform.c (save_inline_function_body): Likewise.
14065 * trans-mem.c (ipa_tm_create_version): Likewise.
14066 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
14067 * tree-inline.c (declare_return_variable): Remove always-true test.
14068 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
14069 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
14070 * ipa-split.c (split_function): Skip the return value for the split
14071 part if it doesn't return.
14072
14073 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14074
14075 PR tree-optimization/49642
14076 * ipa-split.c (forbidden_dominators): New variable.
14077 (check_forbidden_calls): New function.
14078 (dominated_by_forbidden): Likewise.
14079 (consider_split): Check for forbidden dominators.
14080 (execute_split_functions): Initialize and free forbidden
14081 dominators info; call check_forbidden_calls.
14082
14083 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14084
14085 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
14086
14087 2012-01-11 Nick Clifton <nickc@redhat.com>
14088
14089 * config/rx/rx.md (return): Define pattern.
14090
14091 2012-01-11 Richard Guenther <rguenther@suse.de>
14092
14093 * doc/extend.texi (malloc attribute): Adjust according to
14094 implementation.
14095
14096 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
14097 Patrick Marlier <patrick.marlier@gmail.com>
14098
14099 PR middle-end/51516
14100 * trans-mem.c (get_cg_data): Traverse aliases if requested.
14101 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
14102 (ipa_tm_note_irrevocable): Same.
14103 (ipa_tm_scan_irr_block): Same.
14104 (ipa_tm_decrement_clone_counts): Same.
14105 (ipa_tm_scan_irr_function): Same.
14106 (ipa_tm_create_version_alias): Same.
14107 (ipa_tm_create_version): Same.
14108 (ipa_tm_transform_calls_redirect): Same.
14109 (ipa_tm_transform_calls): Same.
14110 (ipa_tm_transform_transaction): Same.
14111 (ipa_tm_execute): Same.
14112
14113 2012-01-10 Richard Guenther <rguenther@suse.de>
14114
14115 PR middle-end/51806
14116 * opts.c (common_handle_option): Handle -Werror.
14117
14118 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
14119
14120 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
14121 operand number.
14122
14123 2012-01-10 Jason Merrill <jason@redhat.com>
14124
14125 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
14126 information.
14127
14128 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14129
14130 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
14131 supports R_386_TLS_GD_PLT reloc.
14132 (gcc_cv_as_ix86_tlsldmplt): Check if linker
14133 supports R_386_TLS_LDM_PLT reloc.
14134 * configure: Regenerate.
14135 * config.in: Regenerate.
14136
14137 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
14138
14139 PR target/49868
14140 Extend __pgmx semantics to linearize memory.
14141 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
14142 determine if code comes inline or from libgcc.
14143 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
14144 (movmem_qi, movmem_qi): Set constraint #2 to "n".
14145 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
14146 (movmemx_qi, movmemx_hi): New insns.
14147 (xload_<mode>_libgcc): Rewrite to new insn condition.
14148 (xload_<mode>): Remove insns.
14149 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
14150 cases that don't satisfy avr_xload_libgcc_p().
14151 (avr_addr_space_convert): Allow converting in any direction.
14152 (avr_addr_space_subset_p): Return always true.
14153 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
14154 (avr_emit_movmemhi): Ditto.
14155 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
14156 (avr_out_movmem): Ditto.
14157 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
14158 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
14159 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
14160 (avr_encode_section_info): Encode 'progmem' in symbol flags.
14161 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
14162
14163 2012-01-10 Richard Guenther <rguenther@suse.de>
14164
14165 PR tree-optimization/50913
14166 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
14167 Require data-refs to be representable by Graphite with respect
14168 to any loop nest.
14169
14170 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
14171
14172 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
14173 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
14174
14175 2012-01-10 Tom de Vries <tom@codesourcery.com>
14176
14177 PR rtl-optimization/51271
14178 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
14179 handling annulled branch.
14180
14181 2012-01-10 Richard Henderson <rth@redhat.com>
14182
14183 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
14184 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
14185 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
14186 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
14187 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
14188 arm_expand_vec_perm_const): New.
14189 * config/arm/arm-protos.h: Update.
14190 * config/arm/neon.md (UNSPEC_VCONCAT): New.
14191 (*neon_vswp<VDQX>): New.
14192 (neon_vcombine<VDX>): Use neon_split_vcombine.
14193 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
14194 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
14195 (vec_perm<VE>): New.
14196
14197 2012-01-10 Richard Henderson <rth@redhat.com>
14198
14199 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
14200 use it if reload_completed.
14201 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
14202 arm_output_asm_insn, arm_process_output_memory_barrier,
14203 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
14204 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
14205 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
14206 arm_process_output_sync_insn, arm_output_sync_insn,
14207 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
14208 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
14209 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
14210 (emit_unlikely_jump): New.
14211 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
14212 (arm_split_atomic_op): New.
14213 * config/arm/arm-protos.h: Update.
14214 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
14215 (struct arm_sync_generator): Remove.
14216 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
14217 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
14218 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
14219 (VUNSPEC_LL, VUNSPEC_SC): New.
14220 (sync_result, sync_memory, sync_required_value, sync_new_value,
14221 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
14222 (attr length): Don't use arm_sync_loop_insns.
14223 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
14224 (movsfcc, movdfcc): Likewise.
14225 * config/arm/constraints.md (Ua): New.
14226 * config/arm/prediates.md (mem_noofs_operand): New.
14227 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
14228 (sync_clobber, sync_t2_reqd): Remove.
14229 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
14230 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
14231 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
14232 (arm_sync_compare_and_swap<SIDI>): Remove.
14233 (arm_sync_compare_and_swap<NARROW>): Remove.
14234 (arm_sync_lock_test_and_set<SIDI>): Remove.
14235 (arm_sync_lock_test_and_set<NARROW>): Remove.
14236 (arm_sync_new_<syncop><SIDI>): Remove.
14237 (arm_sync_new_<syncop><NARROW>): Remove.
14238 (arm_sync_new_nand<SIDI>): Remove.
14239 (arm_sync_new_nand<NARROW>): Remove.
14240 (arm_sync_old_<syncop><SIDI>): Remove.
14241 (arm_sync_old_<syncop><NARROW>): Remove.
14242 (arm_sync_old_nand<SIDI>): Remove.
14243 (arm_sync_old_nand<NARROW>): Remove.
14244 (*memory_barrier): Merge arm_output_memory_barrier.
14245 (atomic_compare_and_swap<QHSD>): New.
14246 (atomic_compare_and_swap<NARROW>_1): New.
14247 (atomic_compare_and_swap<SIDI>_1): New.
14248 (atomic_exchange<QHSD>): New.
14249 (cas_cmp_operand, cas_cmp_str): New.
14250 (atomic_op_operand, atomic_op_str): New.
14251 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
14252 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
14253 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
14254 (arm_load_exclusive<NARROW>): New.
14255 (arm_load_exclusivesi, arm_load_exclusivedi): New.
14256 (arm_store_exclusive<QHSD>): New.
14257
14258 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
14259
14260 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
14261 reload patterns if -mvsx-scalar-memory.
14262
14263 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
14264 generated, even -mno-vsx-scalar-double was used.
14265 (vsx_xscvdpsp_scalar): Likewise.
14266 (vsx_xscvspdp_scalar2): Likewise.
14267
14268 2012-01-09 Tom de Vries <tom@codesourcery.com>
14269 Andrew Pinski <apinski@cavium.com>
14270
14271 PR debug/51471
14272 * reorg.c (fill_slots_from_thread): Don't speculate
14273 frame-related insns.
14274
14275 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14276
14277 * sched-int.h (bb_note): Move to...
14278 * basic-block.h: ...here.
14279 * haifa-sched.c (bb_note): Move to...
14280 * cfgrtl.c: ...here.
14281 * function.c (next_block_for_reg): New function.
14282 (move_insn_for_shrink_wrap): Likewise.
14283 (prepare_shrink_wrap): Rewrite to use the above.
14284
14285 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
14286
14287 * gimple.c (is_gimple_non_addressable): Remove.
14288 * gimple.h: Remove is_gimple_non_addressable.
14289 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
14290 is_gimple_non_addressable.
14291 * trans-mem.c (expand_assign_tm): Same.
14292
14293 2012-01-09 Richard Guenther <rguenther@suse.de>
14294
14295 PR tree-optimization/51775
14296 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
14297 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
14298
14299 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14300
14301 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
14302 tuning parameters.
14303 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
14304
14305 2012-01-09 Richard Guenther <rguenther@suse.de>
14306
14307 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
14308
14309 2012-01-08 Jan Hubicka <jh@suse.cz>
14310
14311 PR tree-optimize/51680
14312 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
14313 on when known_vals needs to be computed; cleanup.
14314
14315 2012-01-08 Jan Hubicka <jh@suse.cz>
14316
14317 PR tree-optimize/51694
14318 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
14319
14320 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
14321
14322 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
14323 for -std=c++98 and -std=c++11 too.
14324
14325 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
14326
14327 * cfgloop.c (cancel_loop): Add free() of bbs array.
14328
14329 2012-01-07 Jan Hubicka <jh@suse.cz>
14330
14331 PR tree-optimization/51600
14332 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
14333 that benefits small functions.
14334
14335 2012-01-07 Jan Hubicka <jh@suse.cz>
14336
14337 * ipa-inline.c (want_inline_small_function_p): Fix formating.
14338
14339 2012-01-07 Jan Hubicka <jh@suse.cz>
14340
14341 PR tree-optimization/51680
14342 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
14343 whose inlining reduce unit size.
14344
14345 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
14346
14347 PR bootstrap/51725
14348 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
14349 Add canonical node to containing_mem chain after the non-canonical
14350 one, even if there weren't any locs to propagate.
14351 (remove_useless_values): Keep only canonical values.
14352 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
14353 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
14354 canonicalize mem_chain elements that are not discarded.
14355
14356 2012-01-06 Jakub Jelinek <jakub@redhat.com>
14357
14358 PR target/47333
14359 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
14360 before emitting functions.
14361
14362 PR gcov-profile/50127
14363 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
14364 clear_aux_for_blocks.
14365
14366 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
14367
14368 PR debug/51746
14369 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
14370
14371 2012-01-06 Arnaud Charlet <charlet@adacore.com>
14372
14373 * c-decl.c (ext_block): Moved up.
14374 (collect_all_refs, for_each_global_decl): Take ext_block into account.
14375
14376 2012-01-06 Han Shen <shenhan@google.com>
14377
14378 Translate built-in include paths for sysroot.
14379 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
14380 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
14381
14382 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
14383 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
14384
14385 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
14386 control whether sysroot should be prepended to gxx include dir.
14387
14388 * configure: Regenerate.
14389
14390 2012-01-06 Torvald Riegel <triegel@redhat.com>
14391
14392 PR rtl-optimization/51771
14393 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
14394 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
14395
14396 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
14397
14398 PR tree-optimization/51315
14399 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
14400 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
14401
14402 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
14403
14404 PR target/51681
14405 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
14406 for shrp pattern. Correctly handle and fixup shift variable.
14407 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
14408
14409 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14410
14411 PR debug/51762
14412 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
14413 note when !ACCUMULATE_OUTGOING_ARGS.
14414
14415 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
14416
14417 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
14418 condition.
14419 (extract_range_from_unary_expr_1): Avoid useless computations.
14420
14421 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14422
14423 PR rtl-optimization/51767
14424 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
14425 of jump_block and add an extra edge for degenerated asm gotos.
14426
14427 PR middle-end/51768
14428 * stmt.c (check_unique_operand_names): Don't ICE during error
14429 reporting if i is from labels chain.
14430
14431 PR middle-end/44777
14432 * profile.c (branch_prob): Split bbs that have exit edge
14433 and need a fake entry edge too.
14434
14435 2012-01-05 Jan Hubicka <jh@suse.cz>
14436
14437 PR middle-end/49710
14438 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
14439 unlooping loops.
14440
14441 2012-01-05 Richard Guenther <rguenther@suse.de>
14442
14443 PR lto/50490
14444 * tree-streamer-out.c (write_ts_optimization): New function.
14445 (streamer_write_tree_body): Call it.
14446 * tree-streamer-in.c (lto_input_ts_optimization): New function.
14447 (streamer_read_tree_body): Call it.
14448 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
14449
14450 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14451
14452 PR middle-end/51761
14453 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
14454 * gimplify.c (gimplify_cleanup_point_expr): Save and set
14455 in_cleanup_point_expr before gimplify_stmt call and restore it
14456 afterwards.
14457 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
14458 in_cleanup_point_expr is false.
14459
14460 2012-01-05 Richard Guenther <rguenther@suse.de>
14461
14462 PR middle-end/51764
14463 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
14464 to c.opt.
14465 * toplev.c (process_options): Reject combining mudflap and LTO.
14466 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
14467
14468 2012-01-05 Richard Guenther <rguenther@suse.de>
14469
14470 PR tree-optimization/51760
14471 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
14472 not VARYING.
14473 (bit_value_unop): Handle UNDEFINED operands.
14474 (bit_value_binop): Likewise.
14475
14476 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
14477
14478 * config/avr/avr.c (avr_replace_prefix): Remove.
14479 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
14480 (avr_asm_function_rodata_section): Ditto.
14481 (avr_asm_select_section): Ditto.
14482
14483 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14484
14485 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
14486 insertion.
14487
14488 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14489
14490 PR bootstrap/51648
14491 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
14492 calls that have any non-fake successor edges.
14493
14494 PR debug/51746
14495 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
14496
14497 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
14498
14499 PR tree-optimization/51624
14500 * tree-sra.c (build_ref_for_model): When replicating a chain of
14501 COMPONENT_REFs, stop as soon as the offset would become negative.
14502
14503 2012-01-04 Jakub Jelinek <jakub@redhat.com>
14504
14505 PR debug/51695
14506 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
14507 in .debug_loc on the floor.
14508
14509 2012-01-04 Andrew Pinski <apinski@cavium.com>
14510
14511 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
14512
14513 2012-01-04 Andrew Pinski <apinski@cavium.com>
14514 Adam Nemet <anemet@caviumnetworks.com>
14515
14516 * config/mips/mips.md (size): Add SI and DI.
14517 (SIZE): New mode attribute.
14518 (U): New code attribute.
14519 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
14520 (mips_lbux_<mode>): Delete.
14521 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
14522 (mips_lhx): Use gen_mips_lhx_extsi.
14523 (mips_lhx_<mode>): Delete.
14524 (mips_lwx): Delete.
14525 (mips_l<size>x): New expand.
14526 (mips_lwx_<mode>): Delete.
14527 (mips_l<GPR:size>x_<P:mode>): New pattern.
14528 (*mips_lw<u>x_<P:mode>_ext): Likewise.
14529 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
14530 * config/mips/mips.c (mips_lx_address_p): New function.
14531 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
14532 (dsp64): New availability predicate.
14533 (mips_builtins): Add an entry for __builtin_mips_ldx.
14534 * config/mips/mips.h (ISA_HAS_LBX): New define.
14535 (ISA_HAS_LBUX): Likewise.
14536 (ISA_HAS_LHX): Likewise.
14537 (ISA_HAS_LHUX): Likewise.
14538 (ISA_HAS_LWX): Likewise.
14539 (ISA_HAS_LWUX): Likewise.
14540 (ISA_HAS_LDX): Likewise.
14541 * doc/extend.texi (__builtin_mips_ldx): Document.
14542
14543 2012-01-04 Tristan Gingold <gingold@adacore.com>
14544
14545 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
14546 when long pointers are used.
14547 * config.build (*-*-*vms*): Handle all OpenVMS targets.
14548 (alpha64-dec-*vms*, alpha*-dec-*vms*)
14549 (ia64-hp-*vms*): Remove.
14550 * config/vms/xm-vms64.h: Delete.
14551
14552 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
14553
14554 PR middle-end/51472
14555 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
14556
14557 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
14558
14559 * opts.c (finish_options): Remove duplicate sorry.
14560
14561 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
14562
14563 PR middle-end/51696
14564 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
14565 correctly.
14566
14567 2012-01-04 Richard Guenther <rguenther@suse.de>
14568
14569 PR middle-end/51750
14570 * tree.c (size_low_cst): New function.
14571 * tree.h (size_low_cst): Declare.
14572 * fold-const.c (fold_comparison): Use it to extract the low
14573 part of the POINTER_PLUS_EXPR offset.
14574
14575 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
14576
14577 Fix clearing ZERO_REG
14578 * config/avr/avr.md (cc): Add alternative "ldi".
14579 (movqi_insn): Use it in cc attribute.
14580 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
14581 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
14582 (output_reload_insisf): Use ZERO_REG to pre-clear register.
14583
14584 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14585
14586 * configure: Regenerate.
14587
14588 2012-01-04 Richard Guenther <rguenther@suse.de>
14589
14590 PR tree-optimization/49651
14591 * tree-ssa-structalias.c (type_can_have_subvars): New function.
14592 (var_can_have_subvars): Use it.
14593 (get_constraint_for_1): Only consider subfields if there can be any.
14594
14595 2012-01-03 Jakub Jelinek <jakub@redhat.com>
14596
14597 PR bootstrap/51725
14598 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
14599 to its new canonical_cselib_val and the cselib_val was in
14600 first_containing_mem chain, but the canonical_cselib_val was not,
14601 add the latter into the chain.
14602 (cselib_invalidate_mem): Compare canonical_cselib_val of
14603 addr_list chain elt with v.
14604
14605 PR pch/51722
14606 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
14607 dwarf2out_undef): Allocate e.info using ggc_strdup instead
14608 of xstrdup.
14609 (output_macinfo_op): Don't ggc_strdup fd->filename.
14610 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
14611 then ggc_strdup it. Don't free inc->info or cur->info.
14612 (output_macinfo): Don't free ref->info or file->info.
14613
14614 2012-01-03 Ira Rosen <irar@il.ibm.com>
14615
14616 PR tree-optimization/51269
14617 * tree-vect-loop-manip.c (set_prologue_iterations): Make
14618 first_niters a pointer.
14619 (slpeel_tree_peel_loop_to_edge): Likewise.
14620 (vect_do_peeling_for_loop_bound): Update call to
14621 slpeel_tree_peel_loop_to_edge.
14622 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
14623 here. Remove it from the parameters list.
14624 (vect_do_peeling_for_alignment): Update calls and compute
14625 wide_prolog_niters.
14626
14627 2012-01-03 Richard Guenther <rguenther@suse.de>
14628
14629 PR tree-optimization/51070
14630 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
14631 Properly handle calls.
14632
14633 2012-01-03 Richard Guenther <rguenther@suse.de>
14634
14635 PR tree-optimization/51692
14636 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
14637 the LHS of allocation stmts.
14638
14639 2012-01-03 Olivier Hainque <hainque@adacore.com>
14640
14641 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
14642
14643 2012-01-03 Olivier Hainque <hainque@adacore.com>
14644
14645 * collect2.c (main): In AIX specific computations for vector
14646 insertions, use CONST_CAST2 to cast from char ** to const char **.
14647
14648 2012-01-03 Richard Guenther <rguenther@suse.de>
14649
14650 PR debug/51650
14651 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
14652 the context of a limbo DIE when it does not already exist.
14653
14654 2012-01-03 Jakub Jelinek <jakub@redhat.com>
14655
14656 PR tree-optimization/51719
14657 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
14658 but direct call is, clear direct call's lhs and don't add fallthrough
14659 edge from dcall_bb to join_bb and PHIs.
14660
14661 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14662
14663 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
14664 the instructions emitted by the pattern.
14665 ("*TDC_insn_<mode>"): Add comment.
14666
14667 2012-01-03 Richard Guenther <rguenther@suse.de>
14668
14669 PR middle-end/51730
14670 * fold-const.c (fold_comparison): Properly canonicalize
14671 tree offset and HOST_WIDE_INT bit position.
14672
14673 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
14674
14675 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
14676 operands for extzv pattern.
14677
14678 2012-01-02 Jakub Jelinek <jakub@redhat.com>
14679
14680 PR bootstrap/51725
14681 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
14682 on mem_elt first.
14683
14684 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
14685
14686 * doc/invoke.texi (-flto and related options): Copy-edit.
14687
14688 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14689
14690 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
14691
14692 2012-01-02 Jakub Jelinek <jakub@redhat.com>
14693
14694 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
14695 New patterns.
14696
14697 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14698
14699 * expr.h (move_by_pieces_ninsns): Declare.
14700 * expr.c (move_by_pieces_ninsns): Make external.
14701 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
14702 (mips_store_by_pieces_p): Likewise.
14703 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
14704 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
14705 * config/mips/mips.c (mips_move_by_pieces_p): New function.
14706 (mips_store_by_pieces_p): Likewise.
14707
14708 2012-01-02 Jakub Jelinek <jakub@redhat.com>
14709
14710 * passes.c (register_one_dump_file): Free full_name.
14711
14712 * reload1.c (reload): Don't allocate reg_max_ref_width here.
14713 (calculate_elim_costs_all_insns): Free offsets_at and
14714 offsets_known_at at the end and clear the pointers.
14715
14716 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14717
14718 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
14719 this option introduced in r180739.
14720
14721 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14722
14723 PR target/51345
14724 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
14725 (tmake_file target=avr): Add avr/t-multilib.
14726
14727 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
14728 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
14729 * config/avr/genmultilib.awk: New file.
14730 * config/avr/t-multilib: New auto-generated file.
14731 * config/avr/multilib.h: New auto-generated file.
14732 * config/avr/t-avr (AVR_MCUS): New variable.
14733 (genopt.sh): Use it.
14734 (s-mlib): Depend on t-multilib.
14735 (t-multilib, multilib.h): New dependencies.
14736 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
14737 (MULTILIB_OPTIONS): Remove.
14738 (MULTILIB_MATCHES): Remove.
14739 (MULTILIB_DIRNAMES): Remove.
14740 (MULTILIB_EXCEPTIONS): Remove:
14741 * config/avr/genopt.sh: Don't use hard coded file name;
14742 pass AVR_MCUS from t-avr instead.
14743
14744 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14745
14746 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
14747
14748 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14749
14750 Implement light-weight DImode support.
14751 * config/avr/avr-dimode.md: New file.
14752 * config/avr/avr.md: Include it.
14753 (adjust_len): Add plus64, compare64.
14754 (HIDI): Remove code iterator.
14755 (code_stdname): New code attribute.
14756 (rotx, rotsmode): Remove DI.
14757 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
14758 as code iterator.
14759 * config/avr/avr-protos.h (avr_have_dimode): New.
14760 (avr_out_plus64, avr_out_compare64): New.
14761 * config/avr/avr.c (avr_out_compare): Handle DImode.
14762 (avr_have_dimode): New variable definition and initialization.
14763 (avr_out_compare64, avr_out_plus64): New functions.
14764 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
14765 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
14766 (avr_compare_pattern): Skip DImode comparisons.
14767
14768 2012-01-02 Revital Eres <revital.eres@linaro.org>
14769
14770 * ddg.c (def_has_ccmode_p): New function.
14771 (add_cross_iteration_register_deps,
14772 create_ddg_dep_from_intra_loop_link): Call it.
14773
14774 2012-01-02 Richard Guenther <rguenther@suse.de>
14775
14776 PR other/51679
14777 * invoke.texi (fassociative-math): Remove spurious paranthesis.
14778
14779 2012-01-01 Jakub Jelinek <jakub@redhat.com>
14780
14781 * gcc.c (process_command): Update copyright notice dates.
14782 * gcov.c (print_version): Likewise.
14783 * gcov-dump.c (print_version): Likewise.
14784 * mips-tfile.c (main): Likewise.
14785 * mips-tdump.c (main): Likewise.
14786
14787 2012-01-01 Ira Rosen <irar@il.ibm.com>
14788
14789 PR tree-optimization/51704
14790 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
14791 a use is inside the basic block or loop before accessing its vect info.
14792
14793 2012-01-01 Jan Hubicka <jhjh@suse.cz>
14794
14795 PR rtl-optimization/51069
14796 * cfgloopmanip.c (remove_path): Removing path making irreducible
14797 region unconditional makes BB part of the region.
14798
14799 2012-01-01 Jakub Jelinek <jakub@redhat.com>
14800
14801 PR tree-optimization/51683
14802 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
14803 calls with side-effects.
14804 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14805 \f
14806 Copyright (C) 2012 Free Software Foundation, Inc.
14807
14808 Copying and distribution of this file, with or without modification,
14809 are permitted in any medium without royalty provided the copyright
14810 notice and this notice are preserved.