tree-ssa-live.c (remove_unused_scope_block_p): Remove again DECL_IGNORED_P non-reg...
[gcc.git] / gcc / ChangeLog
1 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
2
3 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
4 DECL_IGNORED_P non-reg vars even if they are used.
5
6 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
7
8 PR debug/53671
9 PR debug/49888
10 * var-tracking.c (vt_get_canonicalize_base): New.
11 (vt_canonicalize_addr, vt_stack_offset_p): New.
12 (vt_canon_true_dep): New.
13 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
14 (clobber_overlaping_mems): Use vt_canonicalize_addr.
15
16 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
17
18 PR debug/53671
19 PR debug/49888
20 * var-tracking.c (vt_initialize): Record initial offset between
21 arg pointer and stack pointer.
22
23 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
24
25 PR debug/53671
26 PR debug/49888
27 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
28 CFA base.
29
30 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
31
32 PR debug/53671
33 PR debug/49888
34 * alias.c (memrefs_conflict_p): Improve handling of AND for
35 alignment.
36
37 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
38
39 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
40
41 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
42
43 PR debug/53682
44 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
45
46 2012-06-21 Meador Inge <meadori@codesourcery.com>
47
48 PR c/53702
49 * c-decl.c (c_push_function_context): Restore the behavior to reuse
50 the language function allocated for -Wunused-local-typedefs.
51 (c_pop_function_context): If necessary, clear the language function
52 created in c_push_function_context. Always clear out the
53 x_cur_stmt_list field of the restored language function.
54
55 2012-06-21 Sterling Augustine <saugustine@google.com>
56 Cary Coutant <ccoutant@google.com>
57
58 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
59 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
60 (comdat_type_struct): New field 'skeleton_die'.
61 (breakout_comdat_types): Update it.
62 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
63 is_namespace_die. Fix minor style violation. Call want_pubnames.
64 (add_pubname_string): Call want_pubnames.
65 (add_pubtype): Rework logic for calculating type name. Call
66 is_namespace_die. Call want_pubnames.
67 (output_pubnames): Move conditional logic deciding when to produce the
68 section from dwarf2out_finish. Use new skeleton_die field.
69 (base_type_die): Call add_pubtype.
70 (gen_enumeration_type_die): Unconditionally call add_pubtype.
71 (gen_subprogram_die): Adjust calls to add_pubname.
72 (gen_namespace_die): Call add_pubname_string.
73 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
74 produce pubnames and pubtypes sections to output_pubnames.
75 (common.opt): New option '-gpubnames'.
76 (invoke.texi): Document it.
77
78 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
79
80 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
81
82 2012-06-21 Michael Matz <matz@suse.de>
83
84 PR middle-end/53688
85 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
86 with correct size.
87
88 2012-06-21 Richard Guenther <rguenther@suse.de>
89
90 * tree-inline.c (estimate_num_insns): Estimate call cost for
91 tailcalls properly.
92
93 2012-06-20 RĂ¼diger Sonderfeld <ruediger@c-plusplus.de>
94
95 * tree.h (DECL_SOURCE_COLUMN): New accessor.
96
97 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
98
99 * config/i386/i386.md (SINCOS): New int iterator.
100 (sincos): New int attribute.
101 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
102 SINCOS int iterator.
103 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
104 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
105
106 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
107
108 * config/i386/i386.md (RDFSGSBASE): New int iterator.
109 (WRFSGSBASE): Ditto.
110 (fsgs): New int attribute.
111 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
112 RDFSGSBASE int iterator.
113 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
114 WRFSGSBASE int iterator.
115
116 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
117
118 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
119 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
120 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
121 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
122 int iterator.
123
124 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
125
126 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
127
128 2012-06-20 Richard Guenther <rguenther@suse.de>
129
130 PR tree-optimization/30318
131 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
132 constants here.
133 (range_int_cst_singleton_p): But explicitely here.
134 (zero_nonzero_bits_from_vr): And here.
135 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
136 to cover all cases we can perform arbitrary precision
137 arithmetic with double-ints.
138 (intersect_ranges): Handle adjacent anti-ranges.
139
140 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
141
142 * config/i386/i386.md (rounding_insn): New int attribute.
143 (<rounding_insn>xf2): Macroize insn from
144 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
145 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
146
147 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
148
149 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
150 (ieee_maxmin): New int attribute.
151 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
152 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
153
154 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
155
156 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
157 * config/arm/arm.c: Do not include c-pragma.h.
158 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
159 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
160 to arm_emit_eabi_attribute.
161 * arm-c.c: Do not include output.h.
162 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
163 call to arm_emit_eabi_attribute.
164 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
165
166 2012-06-20 Richard Guenther <rguenther@suse.de>
167
168 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
169 Allow adjusting alignment of user-aligned decls again.
170
171 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
172
173 * config/rl78/rl78-c.c: Remove unnecessary includes.
174
175 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
176
177 * config/cris/cris.c: Include cgraph.h.
178 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
179
180 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
181
182 * emit-rtl.c (need_atomic_barrier_p): New function.
183 * emit-rtl.h (need_atomic_barrier_p): Declare it.
184 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
185 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
186 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
187 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
188 (mips_process_sync_loop): Use generic version instead.
189
190 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
191
192 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
193 it is used.
194
195 2012-06-19 Tom de Vries <vries@codesourcery.com>
196 Maxim Kuvyrkov <maxim@codesourcery.com>
197
198 * config/mips/constraints.md (ZR): New constraint.
199 * config/mips/predicates.md (mem_noofs_operand): New predicate.
200 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
201 * config/mips/mips.h (TARGET_XLP): Define.
202 (TARGET_SYNC_AFTER_SC): Update.
203 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
204 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
205 XLP-specific swap and ldadd patterns.
206 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
207
208 2012-06-19 Tom de Vries <vries@codesourcery.com>
209 Maxim Kuvyrkov <maxim@codesourcery.com>
210
211 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
212 (mips_emit_post_atomic_barrier_p): New static functions.
213 (mips_process_sync_loop): Use them. Emit sync memory barriers in
214 accordance with memory model semantics. Add return of CMP result for
215 compare_and_swap.
216 * config/mips/mips.md: Update comment.
217 (sync_cmp): New attribute.
218 (sync_memmodel): New attribute replacing sync_release_barrier.
219 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
220 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
221 (sync_lock_test_and_set, test_and_set_12): Update.
222 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
223 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
224
225 2012-06-19 Joseph Myers <joseph@codesourcery.com>
226
227 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
228 mov_si<mode>_e500_subreg0.
229 (*mov_si<mode>_e500_subreg0_elf_low)
230 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
231
232 2012-06-19 Richard Henderson <rth@redhat.com>
233
234 * config/alpha/alpha.c: Include params.h.
235 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
236 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
237
238 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
239
240 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
241 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
242 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
243 Remove.
244 * doc/tm.texi: Regenerate.
245 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
246 .objc_class_name_*.
247 * config/darwin-c.c: Include target.h.
248 (darwin_objc_declare_unresolved_class_reference): New function.
249 (darwin_objc_declare_class_definition): New function.
250 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
251 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
252
253 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
254
255 * target.def (output_ident): New hook.
256 * targhooks.h (default_asm_output_ident_directive): Add prototype.
257 * varasm.c (assemble_asm): Only prefix a tab if the string does not
258 already start with one.
259 (default_asm_output_ident_directive): New function to emit
260 .ident as a top-level asm node while parsing, or directly to
261 asm_out_file after parsing.
262 * toplev.c (compile_file): Print a GCC .ident with
263 targetm.asm_out.output_ident.
264 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
265 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
266 * doc/tm.texi: Update.
267
268 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
269 (TARGET_ASM_OUTPUT_IDENT): Define.
270 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
271 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
272 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
273 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
274 (TARGET_ASM_OUTPUT_IDENT): Define.
275 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
276 (TARGET_ASM_OUTPUT_IDENT): Define.
277
278 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
279 * config/cris/cris.c (cris_asm_output_ident): New function.
280 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
281
282 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
283 Add prototype.
284 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
285 (microblaze_asm_output_ident): Rewrite to work similar to
286 default_asm_output_ident_directive for front-end .idents.
287 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
288 (TARGET_ASM_OUTPUT_IDENT): Define.
289
290 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
291 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
292
293 * config/rx/rx.c: Include cgraph.h for add_asm_node.
294 (rx_asm_output_ident): New function, similar to
295 default_asm_output_ident_directive, but handle AS100 syntax also, so
296 that #ident also works for rx in AS100 syntax.
297 (TARGET_ASM_OUTPUT_IDENT): Define.
298 * config/rx/rx.h (IDENT_ASM_OP): Remove.
299
300 * Makefile.in: Fix dependencies for c-family/c-lex.o.
301
302 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
303
304 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
305 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
306 (ROUNDING): Ditto.
307 (*fist<mode>2_<rounding>_1): Macroize insn from
308 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
309 (fistdi2_<rounding>): Macroize insn from
310 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
311 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
312 corresponding splitters from fistdi2_{floor,ceil} and corresponding
313 splitters using FIST_ROUNDING int iterator.
314 (fist<mode>2_<rounding>): Macroize insn from
315 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
316 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
317 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
318 splitters using FIST_ROUNDING int iterator.
319 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
320 using FIST_ROUNDING int iterator.
321
322 2012-06-19 Richard Henderson <rth@redhat.com>
323
324 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
325 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
326 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
327 * config/i386/sse.md (sse2_mulv4si3): Delete.
328 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
329 nonimmediate_or_const_vector_operand.
330
331 2012-06-19 Richard Henderson <rth@redhat.com>
332
333 * expmed.c (struct init_expmed_rtl): Split ...
334 (init_expmed_one_mode): ... out of ...
335 (init_expmed): ... here. Initialize integer vector modes also.
336 (synth_mult): Handle integer vector modes.
337 (choose_mult_variant): Likewise.
338 (expand_mult_const): Likewise.
339 (expand_mult): Likewise.
340 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
341
342 2012-06-19 Richard Henderson <rth@redhat.com>
343
344 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
345 integral vector modes.
346
347 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
348
349 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
350 (rounding): New int attribute.
351 (ROUNDING): Ditto.
352 (frndintxf2_<rounding>): Macroize insn from
353 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
354 (frndintxf2_<rounding>_i387): Macroize insn from
355 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
356
357 2012-06-19 Richard Guenther <rguenther@suse.de>
358
359 * tree-vrp.c (union_ranges): New function.
360 (vrp_meet_1): Use union_ranges.
361 (vrp_meet): Dump what we union and call vrp_meet_1.
362
363 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
364
365 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
366 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
367 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
368 (attr write_conflict, attr core_cycles): Update.
369 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
370
371 2012-06-19 Richard Guenther <rguenther@suse.de>
372
373 * tree-vrp.c (intersect_ranges): Handle more cases.
374 (vrp_intersect_ranges): Dump what we intersect and call ...
375 (vrp_intersect_ranges_1): ... this.
376
377 2012-06-19 Richard Guenther <rguenther@suse.de>
378
379 PR tree-optimization/53708
380 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
381 user-supplied alignment and alignment of decls with the used
382 attribute.
383
384 2012-06-18 Lawrence Crowl <crowl@google.com>
385
386 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
387 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
388 (TV_PHASE_STREAM_IN): New.
389 (TV_PHASE_STREAM_OUT): New.
390 * timevar.c (validate_phases): New.
391 (timevar_print): Call validate_phases.
392 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
393 to TV_PHASE_OPT_GEN.
394 * langhooks.c (write_global_declarations): Rename use of
395 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
396 TV_PHASE_CHECK_DBGINFO.
397 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
398 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
399 lang_hooks.decls.final_write_globals.
400
401 2012-06-18 David Edelshn <dje.gcc@gmail.com>
402
403 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
404
405 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
406
407 PR target/53712
408 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
409 (*sse4_2_pcmpistr_unaligned): New.
410
411 2012-06-18 Ian Bolton <ian.bolton@arm.com>
412 Sameera Deshpande <sameera.deshpande@arm.com>
413 Greta Yorsh <greta.yorsh@arm.com>
414
415 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
416 * config/arm/arm.c (print_multi_reg): Remove.
417 (vfp_output_fldmd): Likewise.
418 (arm_output_epilogue): Likewise.
419 * config/arm/arm.md (epilogue_insns): Update condition and code.
420
421 2012-06-18 Ian Bolton <ian.bolton@arm.com>
422 Sameera Deshpande <sameera.deshpande@arm.com>
423 Greta Yorsh <greta.yorsh@arm.com>
424
425 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
426 * config/arm/arm.c (thumb2_expand_return): New function.
427 * config/arm/arm.md (return): Update condition and code.
428
429 2012-06-18 Ian Bolton <ian.bolton@arm.com>
430 Sameera Deshpande <sameera.deshpande@arm.com>
431 Greta Yorsh <greta.yorsh@arm.com>
432
433 * config/arm/arm-protos.h (output_return_instruction): New parameter
434 and int to bool change of parameter types.
435 * config/arm/arm.c (output_return_instruction): Likewise.
436 * config/arm/arm.md (arm_simple_return): New pattern.
437 (arm_return, cond_return, cond_return_inverted): Add new arguments.
438 * config/arm/thumb2.md (thumb2_return): Update condition and code.
439
440 2012-06-18 Ian Bolton <ian.bolton@arm.com>
441 Sameera Deshpande <sameera.deshpande@arm.com>
442 Greta Yorsh <greta.yorsh@arm.com>
443
444 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
445 * config/arm/arm.c (arm_expand_epilogue): New function.
446 * config/arm/arm.md (epilogue): Update condition and code.
447 (sibcall_epilogue): Likewise.
448
449 2012-06-18 Ian Bolton <ian.bolton@arm.com>
450 Sameera Deshpande <sameera.deshpande@arm.com>
451 Greta Yorsh <greta.yorsh@arm.com>
452
453 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
454 * config/arm/arm.md (arm_addsi3) Add an alternative.
455
456 2012-06-18 Ian Bolton <ian.bolton@arm.com>
457 Sameera Deshpande <sameera.deshpande@arm.com>
458 Greta Yorsh <greta.yorsh@arm.com>
459
460 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
461 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
462 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
463
464 2012-06-18 Ian Bolton <ian.bolton@arm.com>
465 Sameera Deshpande <sameera.deshpande@arm.com>
466 Greta Yorsh <greta.yorsh@arm.com>
467
468 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
469 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
470 (pop_multiple_with_return, ldr_with_return) Likewise.
471 * config/arm/predicates.md (pop_multiple_return) New special predicate.
472 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
473 * config/arm/arm.c (arm_output_multireg_pop) New function.
474 (arm_emit_multi_reg_pop): New function.
475
476 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
477
478 * config/arm/arm.c (ldm_stm_operation_p): Require SP
479 as base register for loads if SP is in the register list.
480
481 2012-06-18 Richard Guenther <rguenther@suse.de>
482
483 PR tree-optimization/53693
484 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
485 Reject operands with more than one use.
486
487 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
488
489 PR tree-optimization/53703
490 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
491 correctly set bb_for_def[12].
492
493 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
494
495 * config/vax/vax.h (VMS_TARGET): Remove.
496
497 2012-06-18 Richard Guenther <rguenther@suse.de>
498
499 * tree-vrp.c (extract_range_from_assert): Split out range
500 intersecting code.
501 (intersect_ranges): New function.
502 (vrp_intersect_ranges): Likewise.
503
504 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
505
506 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
507 r187965.
508
509 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
510
511 * doc/md.texi: Document int iterators.
512 * read-rtl.c (ints): New iterator group.
513 (find_int): Int iterator group callback.
514 (apply_int_iterator): Likewise.
515 (apply_iterators): Traverse int iterator table and add all the used
516 iterators to list.
517 (initialize_iterators): Initialize data structures and callbacks for
518 int iterators.
519 (read_rtx): Parse and read mappings for int iterators.
520 (read_rtx_code): Record int iterator usage.
521
522 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
523
524 PR middle-end/53698
525 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
526 performing an addition.
527
528 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
529
530 * output.h (split_double): Move prototype to rtl.h.
531 (constructor_static_from_elts_p): Move prototype to tree.c.
532 * rtl.h (split_double): Moved here from output.h.
533 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
534 * final.c (split_double): Move from here ...
535 * rtlanal.c (split_double): ... to here.
536 * expr.c: Do not include output.h.
537
538 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
539
540 * cfglayout.h: Remove.
541 * cfglayout.c: Remove.
542 * function.h (struct function): Remove x_last_location field.
543 * function.c: Do not include cfglayout.h.
544 (expand_function_start): Do not call no-op force_next_line_note.
545 (expand_function_end): Likewise.
546 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
547 (unlink_insn_chain): Moved here from cfglayout.c.
548 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
549 into_cfg_layout_mode, outof_cfg_layout_mode,
550 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
551 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
552 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
553 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
554 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
555 cfg_layout_finalize): Likewise.
556 (rtl_can_remove_branch_p): Likewise.
557 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
558 (duplicate_insn_chain): Likewise.
559 (force_next_line_note): Remove prototype.
560 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
561 (last_location): Remove #define to emit.x_last_location.
562 (force_next_line_note): Remove no-op function.
563 (init_emit): Don't set x_last_location.
564 (block_locators_locs, block_locators_blocks, locations_locators_locs,
565 locations_locators_vals, prologue_locator, epilogue_locator,
566 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
567 Move POD to here from cfglayout.c.
568 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
569 set_curr_insn_source_location, get_curr_insn_source_location,
570 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
571 locator_scope, insn_scope, locator_location, locator_line, insn_line,
572 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
573 * cfghooks.h: Remove double-include protection.
574 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
575 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
576 * final.c: Do not include cfglayout.h.
577 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
578 (reemit_insn_block_notes): Likewise. Make static.
579 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
580 operation_could_trap_p, tree_could_throw_p): Move from here...
581 * tree.h: ... to here.
582 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
583 * profile.c: Do not include cfghooks.h.
584 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
585 * modulo-sched.c: Likewise.
586 * loop-unswitch.c: Do not include cfglayout.h.
587 * sched-ebb.c: Likewise.
588 * tracer.c: Likewise.
589 * ddg.c: Likewise.
590 * tree-vect-loop-manip.c: Likewise.
591 * loop-init.c: Likewise.
592 * dwarf2out.c: Likewise.
593 * hw-doloop.c: Likewise.
594 * loop-unroll.c: Likewise.
595 * cfgcleanup.c: Likewise.
596 * bb-reorder.c: Likewise.
597 * sched-rgn.c: Likewise.
598 * tree-cfg.c: Likewise.
599 * config/alpha/alpha.c: Likewise.
600 * config/spu/spu.c: Likewise.
601 * config/sparc/sparc.c: Likewise.
602 * config/sh/sh.c: Likewise.
603 * config/c6x/c6x.c: Likewise.
604 * config/ia64/ia64.c: Likewise.
605 * config/rs6000/rs6000.c: Likewise.
606 * config/score/score.c: Likewise.
607 * config/mips/mips.c: Likewise.
608 * config/bfin/bfin.c: Likewise.
609 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
610 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
611 * config/spu/t-spu-elf (spu.o: $): Likewise.
612 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
613
614 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
615
616 * cfgloop.h: Do not include rtl.h.
617 (enum iv_extend_code): New.
618 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
619 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
620 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
621 an IV_EXTEND_CODE to an RTX_CODE.
622 (dump_iv_info): Update for rtx_iv field type change.
623 (iv_constant): Likewise.
624 (iv_subreg): Likewise.
625 (iv_extend): Likewise.
626 (iv_neg): Likewise.
627 (iv_add): Likewise.
628 (iv_mult): Likewise.
629 (iv_shift): Likewise.
630 (get_biv_step_1): Likewise.
631 (get_biv_step): Likewise.
632 (iv_analyze_biv): Likewise.
633 (get_iv_value): Likewise.
634 (shorten_into_mode): Likewise.
635 (canonicalize_iv_subregs): Likewise.
636 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
637 of MAY_HAVE_DEBUG_INSNS.
638 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
639 * tree-ssa-loop-prefetch.c: Likewise.
640
641 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
642
643 * expmed.c (ceil_log2): Move from here...
644 * hwint.c: ... to here for older GCCs...
645 * hwint.h: ... and here for newer GCCs.
646 * rtl.h (ceil_log2): Remove prototype.
647
648 * tree-phinodes.c: Do not include rtl.h.
649 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
650
651 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
652
653 * config/cris/cris.h (TARGET_ELF): Remove.
654 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
655 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
656 (LOCAL_LABEL_PREFIX): Likewise.
657 * config/cris/cris.c (cris_target_asm_named_section): Remove.
658 (cris_option_override): Simpify using TARGET_ELF==1.
659 (cris_file_start): Likewise.
660 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
661
662 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
663
664 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
665
666 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
667
668 PR middle-end/53590
669 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
670
671 2012-06-15 Easwaran Raman <eraman@google.com>
672
673 * passes.c (init_optimization_passes): Remove pass_call_cdce
674 from its current position and insert after pass_dce.
675
676 2012-06-15 Walter Lee <walt@tilera.com>
677
678 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
679
680 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
681
682 * arm.c (note_invalid_constants): Don't return a result.
683 (arm_memory_load_p): Delete function.
684 (arm_const_double_rtx): Delete iterator variable i;
685 (fp_immediate_constant): Likewise.
686 (fp_const_from_val): Likewise.
687
688 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
689
690 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
691
692 PR c++/51033
693 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
694 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
695
696 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
697
698 * config/avr/avr.c (avr_default_expand_builtin): New function.
699 (avr_expand_builtin): Use it.
700 (avr_expand_unop_builtin): Remove.
701 (avr_expand_binop_builtin): Remove.
702 (avr_expand_triop_builtin): Remove.
703
704 2012-06-15 Michael Matz <matz@suse.de>
705
706 PR middle-end/38474
707 * cfgexpand.c (add_alias_set_conflicts): Remove.
708 (expand_used_vars): Don't call it.
709 (aggregate_contains_union_type): Remove.
710 * function.c (n_temp_slots_in_use): New static data.
711 (make_slot_available, assign_stack_temp_for_type): Update it.
712 (init_temp_slots): Zero it.
713 (remove_unused_temp_slot_addresses): Use it for quicker removal.
714 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
715
716 2012-06-15 Michael Matz <matz@suse.de>
717
718 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
719 argument, don't emit assign statement if value is directly usable.
720 (gimplify_expr): Adjust.
721
722 2012-06-15 Michael Matz <matz@suse.de>
723
724 * gimplify.c (gimplify_modify_expr): Fold generated statements.
725 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
726
727 2012-06-15 Richard Guenther <rguenther@suse.de>
728
729 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
730 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
731 we assert for in set_value_range to VR_VARYING.
732
733 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
734
735 * arm.md (addsf3, adddf3): Use s_register_operand.
736 (subsf3, subdf3): Likewise.
737 (mulsf3, muldf3): Likewise.
738 (difsf3, divdf3): Likewise.
739 (movsfcc, movdfcc): Likewise.
740 * predicates.md (f_register_operand): Delete.
741 (arm_float_rhs_operand): Delete.
742 (arm_float_add_operand): Delete.
743 (arm_float_compare_operand): Use s_register_operand when
744 there's no VFP.
745 (cirrus_register_operand): Delete.
746 (cirrus_fp_register): Delete.
747 (cirrus_shift_const): Delete.
748 (cmpdi_operand): Remove Maverick support.
749 * constraints.md (f, v, H): Delete constraints.
750 (G): Update documentation.
751 * arm.c (fp_consts_inited): Convert to bool.
752 (strings_fp): Delete.
753 (values_fp): Delete.
754 (value_fp0): New variable.
755 (init_fp_table): Simplify logic.
756 (arm_const_double_rtx): Likewise.
757 (fp_immediate_constant): Likewise.
758 (fp_const_from_val): Likewise.
759 (neg_const_double_rtx_ok_for_fpa): Delete.
760 * doc/md.texi (ARM constraints): Update documentation.
761
762 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
763
764 PR tree-optimization/53636
765 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
766 stride when doing basic-block vectorization.
767
768 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
769
770 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
771 into VEC_PERM_EXPR.
772
773 2012-06-15 Jakub Jelinek <jakub@redhat.com>
774
775 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
776 allocate and free bbs array for the SLP case.
777
778 PR tree-optimization/51581
779 * expr.h (choose_multiplier): New prototype.
780 * expmed.c (choose_multiplier): No longer static.
781 Change multiplier_ptr from rtx * to UHWI *.
782 (expand_divmod): Adjust callers.
783 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
784 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
785 argument to new_stmt_vec_info. Attempt to optimize also divisions
786 by non-pow2 constants if integer vector division isn't supported.
787 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
788 don't look at pattern stmts and sequences.
789
790 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
791
792 PR middle-end/53590
793 * common.opt (-fdelete-dead-exceptions): New switch.
794 * doc/invoke.texi (Code Gen Options): Document it.
795 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
796 insn_could_throw_p predicate. Do not skip an insn that could throw
797 if dead exceptions can be deleted.
798 (insn_live_p): Likewise, do not return true in that case.
799 * dce.c (can_alter_cfg): New flag.
800 (deletable_insn_p): Do not return false for an insn that can throw if
801 the CFG can be altered and dead exceptions can be deleted.
802 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
803 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
804 predicate. Do not preserve an insn that could throw if dead exceptions
805 can be deleted.
806 * function.h (struct function): Add can_delete_dead_exceptions flag.
807 * function.c (allocate_struct_function): Set it.
808 * lto-streamer-in.c (input_struct_function_base): Stream it.
809 * lto-streamer-out.c (input_struct_function_base): Likewise.
810 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
811 statement that could throw as necessary if dead exceptions can be
812 deleted.
813
814 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
815
816 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
817
818 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
819
820 PR target/53568
821 * config/sh/sh.md: Add peephole for swapbsi2.
822 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
823
824 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
825
826 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
827 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
828
829 2012-06-14 Jakub Jelinek <jakub@redhat.com>
830
831 PR target/53639
832 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
833
834 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
835
836 * arm.c (arm_cirrus_insn_p): Delete.
837 (cirrus_reorg): Delete.
838 (arm_reorg): Don't call cirrus_reorg.
839 (arm_final_prescan_insn_p): Don't check for cirrus insns.
840 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
841 (adddi3, subdi3): Remove Maverick support.
842 (arm_adddi3): Likewise.
843 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
844 (addsf3, adddf3): Likewise.
845 (subsf3, subdf3): Likewise.
846 (mulsf3, muldf3): Likewise.
847 (ashldi3, ashrdi3, lshrdi3): Likewise.
848 (floatsisf2, floatsidf2): Likewise.
849 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
850 (arm_movdi, thumb1_movdi_insn): Likewise.
851 (arm_cmpdi_insn): Likewise.
852 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
853 (cirrus.md): Don't include.
854 * cirrus.md: Delete file.
855 * t-arm (MD_INCLUDES): Remove cirrus.md.
856
857 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
858
859 * dwarf2out.c (function_possibly_abstracted_p): New static function.
860 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
861 cgraph_function_possibly_inlined_p.
862 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
863 (process_scope_var): Do not emit concrete instances of abstracted
864 nested functions from here.
865 (gen_decl_die): Emit the abstract instance if the function is possibly
866 abstracted and not only possibly inlined.
867 (dwarf2out_finish): Find the first non-abstract parent instance and
868 attach concrete instances on the limbo list to it.
869
870 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
871
872 * arm.md (divsf3, divdf3): Remove FPA support.
873 (negsf2, negdf2): Likewise.
874 (sqrtsf2, sqrtdf2): Likewise.
875 (movdfcc): Likewise.
876 (modsf3, moddf3, movxf): Delete.
877 (push_fp_multi): Delete.
878 (fpa.md): Don't include it.
879 * fpa.md: Delete file.
880 * t-arm (MD_INCLUDES): Remove fpa.md.
881
882 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
883
884 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
885 (cost_for_stmt): Remove decl.
886 (vect_get_single_scalar_iteration_cost): Correct typo in name.
887 * tree-vect-loop.c (vect_get_cost): Remove.
888 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
889 vect_get_stmt_cost rather than vect_get_cost.
890 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
891 vect_get_cost.
892 (vect_estimate_min_profitable_iters): Correct typo in call to
893 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
894 than vect_get_cost.
895 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
896 vect_get_cost.
897 (vect_model_induction_cost): Likewise.
898 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
899 typo in call to vect_get_single_scalar_iteration_cost.
900 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
901 (cost_for_stmt): Remove unnecessary function.
902 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
903
904 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
905
906 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
907 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
908 * arm-tables.opt: Regenerated.
909 * doc/invoke.texi: Remove references to deleted options.
910
911 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
912
913 * config/h8300/genmova.sh: Modified to add offset bits of
914 mova/Sz assembly instruction for memory access.
915 * config/h8300/h8300.c: Likewise.
916 * config/h8300/mova.md: Likewise.
917
918 2012-06-12 Christian Bruel <christian.bruel@st.com>
919
920 PR target/53621
921 * config/sh/sh.c (sh_option_override): Don't force
922 flag_omit_frame_pointer and maccumulate_outgoing_args.
923 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
924
925 2012-06-14 Richard Guenther <rguenther@suse.de>
926
927 * tree-vrp.c (VR_INITIALIZER): New define.
928 (ranges_from_anti_range): New function.
929 (extract_range_from_binary_expr_1): Decompose operations on
930 VR_ANTI_RANGEs to operations on VR_RANGE.
931 (extract_range_from_unary_expr_1): Likewise.
932 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
933 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
934 extract_range_from_cond_expr, adjust_range_with_scev,
935 vrp_visit_assignment_or_call, vrp_visit_phi_node,
936 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
937
938 2012-06-13 Richard Henderson <rth@redhat.com>
939
940 * hwint.h (HOST_WIDEST_INT_C): New.
941 (HOST_WIDE_INT_C): New.
942 (HOST_WIDE_INT_1): Use it.
943 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
944
945 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
946
947 PR debug/49888
948 * var-tracking.c: Include alias.h.
949 (overlapping_mems): New struct.
950 (drop_overlapping_mem_locs): New.
951 (clobber_overlapping_mems): New.
952 (var_mem_delete_and_set, var_mem_delete): Call it.
953 (val_bind): Likewise, but only if modified.
954 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
955 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
956
957 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
958
959 PR debug/47624
960 * var-tracking.c (loc_exp_dep_pool): New.
961 (vt_emit_notes): Create and release the pool.
962 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
963 (emit_notes_in_bb): Likewise.
964 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
965 (notify_dependents_of_changed_value): Likewise.
966 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
967 variables don't have a VAR_LOC_DEP_LST.
968 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
969 VALUEs or MEMs of VALUEs.
970
971 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
972
973 PR debug/52983
974 PR debug/48866
975 * dce.c (word_dce_process_block): Insert debug temps only if the
976 insn is not marked.
977 (dce_process_block): Likewise, and if debug.used is not empty,
978 and only after iterating over all DEFs that might mark the insn.
979
980 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
981
982 * common.opt (ftree-coalesce-inlined-vars): New.
983 (ftree-coalesce-vars): New.
984 * doc/invoke.texi: Document them.
985 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
986 Implement them.
987
988 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
989
990 * read-rtl.c (mapping): Remove index field. Add current_value field.
991 Define heap vectors.
992 (iterator_group): Fix long line. Remove num_builtins field and
993 uses_iterator fields. Make apply_iterator take a void * parameter.
994 (iterator_use, atttribute_use): New structures.
995 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
996 (current_iterators, iterator_uses, attribute_uses): New variables.
997 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
998 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
999 (map_attr_string, apply_iterator_to_string): Remove iterator
1000 and value parameters. Look through all current iterator values
1001 for a matching attribute.
1002 (mode_attr_index, apply_mode_maps): Delete.
1003 (apply_iterator_to_rtx): Replace with...
1004 (copy_rtx_for_iterators): ...this new function.
1005 (uses_iterator_p, apply_iterator_traverse): Delete.
1006 (apply_attribute_uses, add_current_iterators, apply_iterators): New
1007 functions.
1008 (add_mapping): Remove index field. Set current_value field.
1009 (initialize_iterators): Don't set num_builtins and uses_iterator_p
1010 fields.
1011 (find_iterator): Delete.
1012 (record_iterator_use, record_attribute_use): New functions.
1013 (record_potential_iterator_use): New function.
1014 (check_code_iterator): Remove handling of bellwether codes.
1015 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
1016 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
1017 parameter. Use the first code iterator value instead of the
1018 bellwether_codes array. Use record_potential_iterator_use for modes.
1019
1020 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
1021
1022 PR target/53568
1023 * config/sh/sh.md (bswapsi2): New expander.
1024 (swapbsi2): New insn.
1025
1026 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
1027
1028 PR target/53647
1029 * config/i386/i386.c (ix86_tune_cost): New variable.
1030 (ix86_option_override_internal): Set ix86_tune_cost. Use
1031 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
1032 l1_cache_size and l2_cache_size.
1033
1034 2012-06-13 Richard Guenther <rguenther@suse.de>
1035
1036 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
1037 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
1038 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
1039 VR_ANTI_RANGE with VR_ANTI_RANGE.
1040
1041 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
1042
1043 * config.gcc (unsupported): Move obsoleted FPA-based configurations
1044 here from ...
1045 (obsolete): ... here.
1046 (arm*-*-freebsd*): Remove.
1047 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
1048 (arm*-*-uclinux*): Likewise.
1049 (arm*-*-ecos-elf): Remove.
1050 (arm*-*-rtems*): Remove.
1051 (arm*-*-elf): Remove.
1052 (arm*-wince-pe*): Remove.
1053 (arm, --with-fpu): Remove support for fpa and Maverick variants.
1054 * arm/ecos-elf.h: Delete.
1055 * arm/t-strongarm-elf: Delete.
1056 * arm/rtems-elf.h: Delete.
1057 * arm/wince-pe.h: Delete.
1058 * arm/pe.c: Delete.
1059 * arm/pe.h: Delete.
1060 * arm/t-wince-pe: Delete.
1061
1062 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
1063
1064 PR tree-optimization/53647
1065 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
1066 targets with no defined cache line size.
1067
1068 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
1069
1070 * targhooks.c (default_builtin_vectorized_conversion): Handle
1071 vec_construct, using vectype to base cost on subparts.
1072 * target.h (enum vect_cost_for_stmt): Add vec_construct.
1073 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
1074 instead of scalar_to-vec.
1075 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
1076 vec_construct in same way as default for now.
1077 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1078 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1079 Handle vec_construct, including special case for 32-bit loads.
1080
1081 2012-06-13 Xinyu Qi <xyqi@marvell.com>
1082
1083 * config/arm/arm.c (FL_IWMMXT2): New define.
1084 (arm_arch_iwmmxt2): New variable.
1085 (arm_option_override): Enable use of iWMMXt with VFP.
1086 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
1087 Thumb mode. Set arm_arch_iwmmxt2.
1088 (arm_expand_binop_builtin): Accept VOIDmode op.
1089 (enum arm_builtins): Revise built-in fcode.
1090 (IWMMXT2_BUILTIN): New define.
1091 (IWMMXT2_BUILTIN2): Likewise.
1092 (iwmmx2_mbuiltin): Likewise.
1093 (builtin_description bdesc_2arg): Revise built in declaration.
1094 (builtin_description bdesc_1arg): Likewise.
1095 (arm_init_iwmmxt_builtins): Revise built in initialization.
1096 (arm_expand_builtin): Revise built in expansion.
1097 (arm_output_iwmmxt_shift_immediate): New function.
1098 (arm_output_iwmmxt_tinsr): Likewise.
1099 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
1100 (arm_output_iwmmxt_tinsr): Likewise.
1101 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
1102 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
1103 (rorv4hi3, rorv2si3, rordi3): Likewise.
1104 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
1105 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
1106 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
1107 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
1108 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
1109 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
1110 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
1111 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
1112 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
1113 (ror<mode>3, ror<mode>3_di): Likewise.
1114 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
1115 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
1116 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
1117 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
1118 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
1119 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
1120 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
1121 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
1122 (All instruction patterns): Add wtype attribute.
1123 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
1124 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
1125 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
1126 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
1127 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
1128 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
1129 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
1130 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
1131 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
1132 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
1133 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
1134 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
1135 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
1136 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
1137 (iwmmxt2.md): Include.
1138 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
1139 (TARGET_IWMMXT2): New define.
1140 (TARGET_REALLY_IWMMXT2): Likewise.
1141 (arm_arch_iwmmxt2): Declare.
1142 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
1143 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
1144 Use C name-mangling for intrinsics.
1145 (__v8qi): Redefine.
1146 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
1147 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
1148 (_m_from_int): Likewise.
1149 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
1150 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
1151 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
1152 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
1153 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
1154 (_mm_tbcst_pi32): Likewise.
1155 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
1156 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
1157 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
1158 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
1159 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
1160 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
1161 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
1162 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
1163 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
1164 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
1165 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
1166 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
1167 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
1168 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
1169 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
1170 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
1171 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
1172 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
1173 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
1174 (_m_to_int): New define.
1175 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
1176 * config/arm/arm-arches.def (iwmmxt2): Likewise.
1177 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
1178 iwmmxt2.md.
1179 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
1180 (arch): Add "iwmmxt2".
1181 (arch_enabled): Handle "iwmmxt2".
1182 (wtype): New attribute.
1183 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
1184 (UNSPEC_WALIGNI): New unspec.
1185 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
1186 * config/arm/iterators.md (VMMX2): New mode_iterator.
1187 * config/arm/marvell-f-iwmmxt.md: New file.
1188 * config/arm/iwmmxt2.md: New file.
1189
1190 2012-06-12 Jakub Jelinek <jakub@redhat.com>
1191
1192 PR c/53532
1193 PR c/51034
1194 PR c/53196
1195 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
1196 if type isn't complete.
1197
1198 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
1199
1200 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
1201
1202 2012-06-12 Richard Henderson <rth@redhat.com>
1203
1204 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
1205 iterator instead of INT.
1206
1207 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
1208
1209 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
1210 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
1211 declaration.
1212 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
1213 (tree_ssa_phiopt): Call gate_hoist_loads.
1214 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
1215 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
1216 hoist_adjacent_loads.
1217 (local_mem_dependence): New function.
1218 (hoist_adjacent_loads): Likewise.
1219 (gate_hoist_loads): Likewise.
1220 * common.opt (fhoist-adjacent-loads): New switch.
1221 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
1222
1223 2012-06-12 Michael Matz <matz@suse.de>
1224
1225 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
1226 (nonoverlapping_memrefs_p): Don't call it here ...
1227 (true_dependence_1): ... but here.
1228
1229 2012-06-12 Richard Guenther <rguenther@suse.de>
1230
1231 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
1232 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
1233 and MEM_SIZE only refines it. Reflect that and be less conservative
1234 if either of the latter is not known.
1235
1236 2012-06-12 Jakub Jelinek <jakub@redhat.com>
1237
1238 PR rtl-optimization/53589
1239 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
1240 discovery even when e->dest != target. If any LABEL_REF points
1241 to e->dest label, redirect it to target's label.
1242
1243 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
1244
1245 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
1246 condition for generating REG_FRAME_RELATED_EXPR note.
1247 (pop): Add code for generating REG_CFA_RESTORE,
1248 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
1249 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
1250 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
1251
1252 2012-06-11 Richard Henderson <rth@redhat.com>
1253
1254 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
1255 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
1256
1257 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
1258
1259 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
1260
1261 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
1262 Mention that this hook needs to be defined for native TLS.
1263 * doc/tm.texi: Regenerate.
1264
1265 2012-06-11 Mike Stump <mikestump@comcast.net>
1266
1267 * emit-rtl.c (init_emit_once): Iterate through the
1268 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
1269 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
1270 all the MIN_MODE_PARTIAL_INT modes anymore.
1271
1272 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
1273
1274 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
1275
1276 2012-06-11 Roland McGrath <mcgrathr@google.com>
1277
1278 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
1279 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
1280 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
1281 operand.
1282
1283 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
1284
1285 PR target/53511
1286 * config/sh/sh.md (fmasf4): New expander.
1287 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
1288 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
1289 * config/sh/sh.opt (mfused-madd): Remove.
1290 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
1291 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
1292 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
1293 as extra options.
1294 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
1295 descriptions.
1296
1297 2012-06-11 Richard Henderson <rth@redhat.com>
1298
1299 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
1300
1301 2012-06-11 Richard Guenther <rguenther@suse.de>
1302
1303 PR middle-end/53470
1304 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
1305 replace it with the first non-BLOCK context.
1306
1307 2012-06-11 Richard Guenther <rguenther@suse.de>
1308
1309 * alias.c (aliases_everything_p): Remove.
1310 (DIFFERENT_ALIAS_SETS_P): Likewise.
1311 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
1312 Do not use aliases_everything_p or special-case ANDs. Do not
1313 special-case BLKmode moves.
1314 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
1315 - for SCATCH only.
1316
1317 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
1318
1319 Fix CRIS build errors with --enable-build-with-cxx.
1320 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
1321 variable "and" to "andop".
1322 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
1323 temporary variable for memory model, passing C++-type-correct
1324 parameter type to expand_mem_thread_fence.
1325 ("atomic_compare_and_swap<mode>"): Ditto.
1326
1327 2012-06-09 Richard Henderson <rth@redhat.com>
1328
1329 PR c++/53602
1330 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
1331 (pass_jump): Rename from pass_jump2.
1332 (execute_jump2, pass_jump2): New.
1333 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
1334 perform cfg cleanup here. Move the test of PUSH_ROUNDING
1335 and ACCUMULATE_OUTGOING_ARGS test...
1336 (gate_handle_stack_adjustments): ... here.
1337 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
1338 Place new pass_jump2 after pass_stack_adjustments.
1339 * tree-pass.h (pass_jump): Declare.
1340
1341 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1342
1343 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
1344 count trucation.
1345
1346 2012-06-08 Richard Henderson <rth@redhat.com>
1347
1348 PR c++/53602
1349 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
1350 note to a clobber insn when no other insn is available.
1351
1352 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
1353
1354 * config/avr/avr.c (avr_case_values_threshold): Return 7.
1355
1356 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
1357
1358 * genhooks.c (main): Set progname.
1359 (emit_documentation): Remove variable found_start, always bail out
1360 when a place is missing.
1361 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
1362
1363 2012-06-07 Jakub Jelinek <jakub@redhat.com>
1364
1365 PR middle-end/53580
1366 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
1367 call walk_gimple_seq_mod instead of walk_gimple_seq.
1368 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
1369 scan_omp_for, scan_omp_sections, scan_omp_single,
1370 execute_lower_omp): Adjust callers.
1371 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
1372 returns false, replace stmt with GIMPLE_NOP.
1373 (check_omp_nesting_restrictions): Instead of issuing warnings,
1374 issue errors and return false if any errors were reported.
1375
1376 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1377
1378 * doc/invoke.texi (fconserve-space): Remove documentation.
1379
1380 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
1381
1382 * config/rs6000/rs6000-tables.opt: Regenerated.
1383
1384 2012-06-06 Richard Guenther <rguenther@suse.de>
1385
1386 PR tree-optimization/53081
1387 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
1388 (adjacent_dr_p): ... this and make it work for reads, too.
1389 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
1390 (struct partition_s): Change main_stmt to main_dr, add
1391 secondary_dr member.
1392 (build_size_arg_loc): Change to date data-reference and not
1393 gimplify here.
1394 (build_addr_arg_loc): New function split out from ...
1395 (generate_memset_builtin): ... here. Use it and simplify.
1396 (generate_memcpy_builtin): New function.
1397 (generate_code_for_partition): Adjust.
1398 (classify_partition): Streamline pattern detection. Detect memcpy.
1399 (ldist_gen): Adjust.
1400 (tree_loop_distribution): Adjust seed statements for memcpy
1401 recognition.
1402
1403 2012-06-06 Matt Turner <mattst88@gmail.com>
1404
1405 * config/arm/mmintrin.h (_mm_empty): New.
1406 (_m_empty): New.
1407
1408 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
1409
1410 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
1411 * common.opt (fsched-pressure-algorithm=): Remove.
1412 * flag-types.h (sched_pressure_algorithm): Move to...
1413 * sched-int.h (sched_pressure_algorithm): ...here.
1414 * params.def (sched-pressure-algorithm): New param.
1415 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
1416 * common/config/s390/s390-common.c (s390_option_optimization_table):
1417 Remove OPT_fsched_pressure_algorithm_ entry.
1418 * config/s390/s390.c (s390_option_override): Set a default value for
1419 PARAM_SCHED_PRESSURE_ALGORITHM.
1420
1421 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1422
1423 PR target/53487
1424 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
1425 doing an unsigned compare, make sure the second argument is not a
1426 negative constant.
1427 (rs6000_emit_cmove): Don't allow floating point comparisons when
1428 generating ISEL moves.
1429
1430 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
1431
1432 * config/rs6000/e5500.md: New file.
1433 * config/rs6000/e6500.md: New file.
1434 * config/rs6000/rs6000.c (processor_costs): Add new costs for
1435 e5500 and e6500.
1436 (rs6000_option_override_internal): Altivec and Spe options not
1437 allowed with e5500. Spe options not allowed with e6500. Increase
1438 move inline limit for e5500 and e6500. Disable string instructions
1439 for e5500 and e6500. Enable branch targets alignment for e5500 and
1440 e6500. Initialize rs6000_cost for e5500 and e6500.
1441 (rs6000_adjust_cost): Add extra scheduling cycles between compare
1442 and brnach for e5500 and e6500.
1443 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
1444 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
1445 e6500.
1446 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
1447 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
1448 ppce6500.
1449 Include e5500.md and e6500.md.
1450 * config/rs6000/rs6000-opt.h (processor_type): Add
1451 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
1452 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
1453 (powerpc*-*-*): Add new cores e5500, e6500.
1454 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
1455
1456 2012-06-05 Richard Guenther <rguenther@suse.de>
1457
1458 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
1459
1460 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
1461
1462 PR target/53575
1463 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
1464 is used for x86_64-*-*.
1465
1466 2012-06-05 Richard Guenther <rguenther@suse.de>
1467
1468 PR tree-optimization/30442
1469 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
1470 vectorization stop analysis at the first stmt we cannot compute
1471 a data-reference for instead of giving up completely.
1472
1473 2012-06-05 Richard Guenther <rguenther@suse.de>
1474
1475 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
1476 (partition_alloc): Initialize it.
1477 (partition_has_writes): New function.
1478 (rdg_flag_uses): Adjust.
1479 (rdg_flag_vertex): Likewise.
1480 (rdg_flag_vertex_and_dependent): Likewise.
1481 (rdg_flag_loop_exits): Likewise.
1482 (build_rdg_partition_for_component): Likewise.
1483 (rdg_build_partitions): Likewise.
1484
1485 2012-06-05 Richard Guenther <rguenther@suse.de>
1486
1487 PR tree-optimization/53081
1488 * tree-loop-distribution.c (generate_memset_builtin): Handle all
1489 kinds of byte-sized stores.
1490 (classify_partition): Likewise.
1491 (tree_loop_distribution): Adjust seed statements used for
1492 !flag_tree_loop_distribution.
1493
1494 2012-06-05 Alan Modra <amodra@gmail.com>
1495
1496 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
1497 (rs6000_emit_prologue): Ensure register used for inline saves
1498 of vector regs is not the static chain register. Revise comment.
1499
1500 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
1501
1502 * doc/md.texi (Standard Pattern Names For Generation): Document
1503 sincos pattern.
1504
1505 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
1506
1507 PR bootstrap/53555
1508 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
1509
1510 2012-06-04 Jason Merrill <jason@redhat.com>
1511
1512 * dwarf2out.c (is_unit_die): New.
1513 (copy_declaration_context, copy_ancestor_tree): Use it.
1514 (copy_decls_walk): Likewise.
1515
1516 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
1517
1518 PR c++/53524
1519 * doc/invoke.texi (Wenum-compare): Update documentation.
1520
1521 2012-06-04 Dodji Seketeli <dodji@redhat.com>
1522
1523 PR preprocessor/53463
1524 * parser.c (cp_parser_assignment_expression): Use the location
1525 for the '=' as the default location for the expression.
1526
1527 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
1528
1529 PR target/53559
1530 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
1531 operands.
1532 (altivec_stvlxl): Ditto.
1533 (altivec_stvrx): Ditto.
1534 (altivec_stvrxl): Ditto.
1535
1536 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
1537
1538 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
1539 (ira_uniform_class_p): New macro.
1540
1541 * ira.c (setup_uniform_class_p): New function.
1542 (setup_allocno_and_important_classes): Call the function.
1543 (print_unform_and_important_classes): New function.
1544 (print_classes): Rename to print_translated_classes.
1545 (ira_debug_allocno_classes): Add call of
1546 print_unform_and_important_classes.
1547
1548 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
1549 classes instead of pressure classes.
1550
1551 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
1552
1553 PR middle-end/47530
1554 * trans-mem.c (expand_block_edges): Do not skip the first
1555 statement when resetting the BB.
1556
1557 2012-06-04 Richard Guenther <rguenther@suse.de>
1558
1559 * tree-data-ref.c (stores_from_loop): Remove.
1560 (stmt_with_adjacent_zero_store_dr_p): Likewise.
1561 (stores_zero_from_loop): Likewise.
1562 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
1563 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
1564 (adjacent_store_dr_p): New function.
1565 * tree-loop-distribution.c (generate_memset_builtin): Pass
1566 the RDG, use the already available data-reference.
1567 (generate_code_for_partition): Pass down RDG.
1568 (classify_partition): Inline parts of the former
1569 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
1570 (ldist_gen): Remember if there was any detected builtin and
1571 do less work if not and flag_tree_loop_distribution is not set.
1572 (tree_loop_distribution): Inline and fuse stores_from_loop
1573 and stores_zero_from_loop here.
1574
1575 2012-06-04 Richard Guenther <rguenther@suse.de>
1576
1577 PR middle-end/53471
1578 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
1579 create new assembler names.
1580
1581 2012-06-04 Richard Guenther <rguenther@suse.de>
1582
1583 * tree-data-ref.c (struct rdg_vertex_info): Remove.
1584 (rdg_vertex_for_stmt): Simplify using gimple_uid.
1585 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
1586 hashtable. Record stmt data-references.
1587 (hash_stmt_vertex_info): Remove.
1588 (eq_stmt_vertex_info): Likewise.
1589 (hash_stmt_vertex_del): Likewise.
1590 (build_empty_rdg): Simplify.
1591 (build_rdg): Adjust.
1592 (free_rdg): Likewise.
1593 (ref_base_address): Remove.
1594 (have_similar_memory_accesses): Likewise.
1595 * tree-data-ref.h (create_rdg_vertices): Remove.
1596 (struct rdg_vertex): Add datarefs member.
1597 (RDGV_DATAREFS): New define.
1598 (RDG_DATAREFS): Likewise.
1599 (have_similar_memory_accesses): Remove.
1600 (rdg_has_similar_memory_accesses): Likewise.
1601 * tree-loop-distribution.c (ref_base_address): Re-implement here.
1602 (similar_memory_accesses): Re-implement using existing data-references.
1603 (tree_loop_distribution): Initialize stmt uids for the stmt to
1604 RDG index mapping.
1605 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1606 access stmt vinfo for stmts in loop.
1607
1608 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
1609
1610 PR target/53461
1611 * config/m68k/m68k.md ("tablejump"): Fix check for
1612 CASE_VECTOR_PC_RELATIVE.
1613
1614 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1615
1616 * output.h (merge_weak, assemble_alias,
1617 initializer_constant_valid_p,
1618 initializer_constant_valid_for_bitfield_p): Move protos from here...
1619 * tree.h: ... to here.
1620 * cgraphclones.c: Do not include output.h.
1621 * gimplify.c: Likewise.
1622 * reload.c: Likewise.
1623 * recog.c: Likewise.
1624 * tree-ssa-loop-ivopts.c: Likewise.
1625 * tree-switch-conversion.c: Likewise.
1626 * c-parser.c: Likewise.
1627 * c-typeck.c: Likewise.
1628 * Makefile.in: Fix dependencies.
1629
1630 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
1631
1632 PR target/46261
1633 * config/avr/avr-stdint.h: New file.
1634 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
1635 newlib-stdint.h
1636
1637 2012-06-04 Jakub Jelinek <jakub@redhat.com>
1638
1639 PR tree-optimization/53550
1640 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
1641 is POINTER_TYPE_P, use sizetype as step type instead of type.
1642
1643 2012-06-04 Richard Guenther <rguenther@suse.de>
1644
1645 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
1646 (ref_base_address_1): Likewise.
1647 (remove_similar_memory_refs): Likewise.
1648 * tree-data-ref.h (remove_similar_memory_refs): Remove.
1649 * tree-loop-distribution.c (classify_partition): Do not classify
1650 as builtin if -ftree-loop-distribute-patterns is not enabled.
1651 (fuse_partitions_with_similar_memory_accesses): Inline ...
1652 (ldist_gen): ... here. Fuse all non-builtin partitions if
1653 -ftree-loop-distribution is not enabled. Properly return
1654 the number of created partitions. Do not update SSA form here but ...
1655 (tree_loop_distribution): ... once here for the whole function.
1656 Only walk innermost loops, constrain loops we consider here
1657 further. Do not call remove_similar_memory_refs.
1658 (distribute_loop): Do not check number of loop nodes here.
1659
1660 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1661
1662 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
1663
1664 2012-06-03 Martin Jambor <mjambor@suse.cz>
1665
1666 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
1667 (ipa_get_jf_known_type_base_type): Likewise.
1668 (ipa_get_jf_known_type_component_type): Likewise.
1669 (ipa_get_jf_constant): Likewise.
1670 (ipa_get_jf_pass_through_formal_id): Likewise.
1671 (ipa_get_jf_pass_through_operation): Likewise.
1672 (ipa_get_jf_ancestor_offset): Likewise.
1673 (ipa_get_jf_ancestor_type): Likewise.
1674 (ipa_get_jf_ancestor_formal_id): Likewise.
1675 (ipa_get_jf_member_ptr_pfn): Likewise.
1676 * ipa-prop.c (ipa_set_jf_known_type): New function.
1677 (ipa_set_jf_constant): Likewise.
1678 (ipa_set_jf_simple_pass_through): Likewise.
1679 (ipa_set_jf_arith_pass_through): Likewise.
1680 (ipa_set_ancestor_jf): Likewise.
1681 (fill_member_ptr_cst_jump_function): Moved up and renamed to
1682 ipa_set_jf_member_ptr_cst.
1683 (detect_type_change_1): Use the new jump function creation functions.
1684 (compute_complex_assign_jump_func): Likewise.
1685 (compute_complex_ancestor_jump_func): Likewise.
1686 (compute_known_type_jump_func): Likewise.
1687 (compute_scalar_jump_functions): Likewise.
1688 (compute_pass_through_member_ptrs): Likewise.
1689 (determine_cst_member_ptr): Likewise.
1690 (combine_known_type_and_ancestor_jfs): Likewise.
1691 (try_make_edge_direct_simple_call): Likewise.
1692 (try_make_edge_direct_virtual_call): Likewise.
1693 (update_indirect_edges_after_inlining): Likewise.
1694 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
1695 access functions. Incorporat NOP_EXPR and BINFO handling from its
1696 callers.
1697 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
1698 which was in its callers.
1699 (ipa_value_from_jfunc): Use jump function access functions. Some
1700 functionality moved to functions above.
1701 (propagate_vals_accross_ancestor): Likewise.
1702 (propagate_vals_accross_pass_through): Use jump function access
1703 functions.
1704 (propagate_accross_jump_function): Likewise.
1705 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
1706 access functions.
1707 (inline_merge_summary): Likewise.
1708
1709 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1710
1711 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
1712 * config/pa/pa.c (pa_attr_length_millicode_call): Use
1713 MAX_PCREL17F_OFFSET instead of fixed offset.
1714 (pa_attr_length_call): Likewise.
1715 (pa_attr_length_indirect_call): Likewise.
1716
1717 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
1718
1719 PR target/53512
1720 * config/sh/sh.opt (mfsca, mfsrra): New options.
1721 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
1722 condition.
1723 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
1724 (sinssf2, cossf2): Fold expanders to ...
1725 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
1726 TARGET_FSCA condition.
1727 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
1728 TARGET_FSCA.
1729 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
1730 -mno-fsca, -mfsrra, -mno-fsrra.
1731
1732 2012-06-03 Matt Turner <mattst88@gmail.com>
1733
1734 * config/mips/4600.md (r4700_imul_si): New.
1735 (r4700_imul_di): New.
1736 (r4700_fmul_single): New.
1737 (r4700_fmul_double): New.
1738 * config/mips/mips-cpus.def: Add r4700.
1739 * config/mips/mips.c: Likewise.
1740 * config/mips/mips.md: Likewise.
1741 * config/mips/mips-tables.opt: Regenerate.
1742
1743 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
1744
1745 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
1746 new function sparc_initial_elimination_offset.
1747 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
1748 function.
1749 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
1750 Prototype it.
1751
1752 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
1753
1754 * expmed.c (expand_mult, choose_multiplier): Change
1755 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
1756 * expr.c (convert_modes): Likewise.
1757 * explow.c (plus_constant): Likewise.
1758 * fixed-value.c (fixed_saturate1, fixed_saturate2)
1759 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
1760 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
1761 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
1762 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
1763 (do_fixed_shift, fixed_convert, fixed_convert)
1764 (fixed_convert_from_int, fixed_convert_from_int)
1765 (fixed_convert_from_real): Likewise.
1766 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
1767 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
1768 * varasm.c (output_constructor_bitfield): Likewise.
1769 * tree-vrp.c (register_edge_assert_for_2): Likewise.
1770 * double-int.c (rshift_double, lshift_double): Likewise.
1771 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
1772 Likewise.
1773 * simplify-rtx.c (mode_signbit_p)
1774 (simplify_const_unary_operation, simplify_binary_operation_1)
1775 (simplify_immed_subreg): Likewise.
1776 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
1777 * tree-vect-generic.c (build_replicated_const): Likewise.
1778 * dbxout.c (stabstr_O): Likewise.
1779 * emit-rtl.c (immed_double_int_const, immed_double_const)
1780 (gen_lowpart_common, init_emit_once): Likewise.
1781 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
1782 (widest_int_cst_value, upper_bound_in_type): Likewise.
1783 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
1784 (fixup_unsigned_type): Likewise.
1785 * real.c (real_to_integer2, real_from_integer): Likewise.
1786 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
1787 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
1788
1789 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
1790
1791 PR middle-end/53501
1792 * fold-const.c (fold_binary_loc): Refine previous change.
1793
1794 2012-06-01 Olivier Hainque <hainque@adacore.com>
1795
1796 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
1797 the "do {" part of the do-while(0) loop.
1798
1799 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1800
1801 * config/i386/i386.c (x86_sched_reorder): New function.
1802 Added new function x86_sched_reorder.
1803
1804 2012-06-01 Richard Guenther <rguenther@suse.de>
1805
1806 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1807 Handle PHIs.
1808 (classify_partition): Likewise.
1809
1810 2012-06-01 Richard Guenther <rguenther@suse.de>
1811
1812 * tree-loop-distribution.c (enum partition_kind): New enum.
1813 (struct partition_s): Add kind and main_stmt members.
1814 (partition_alloc): Initialize kind to PKIND_NORMAL.
1815 (partition_builtin_p): New function.
1816 (copy_loop_before): Remove failure path and assert instead.
1817 (generate_loops_for_partition): Likewise.
1818 (generate_memset_zero): Fold into ...
1819 (generate_memset_builtin): ... this.
1820 (classify_partition): New function with code from
1821 can_generate_builtin and generate_builtin.
1822 (generate_builtin): Remove.
1823 (can_generate_builtin): Likewise.
1824 (fuse_partitions_with_similar_memory_accesses): Call
1825 partition_builtin_p instead of can_generate_builtin.
1826 (rdg_build_partitions): Do not call
1827 fuse_partitions_with_similar_memory_accesses here...
1828 (ldist_gen): ... but here after classifying all partitions.
1829 Remove failure path of generate_code_for_partition.
1830 (generate_code_for_partition): Generate code according
1831 to partition classification.
1832
1833 2012-06-01 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
1834 Jonathan Wakely <jwakely.gcc@gmail.com>
1835
1836 PR c++/50134
1837 * doc/invoke.texi (Warning Options): Explain purpose and differences
1838 between -Wmissing-prototypes and -Wmissing-declarations.
1839
1840 2012-06-01 Christian Bruel <christian.bruel@st.com>
1841
1842 * gcc.c (save_switch): Add user_p parameter.
1843 (read_specs): Likewise.
1844 (set_specs): Likewise.
1845 (validate_switches): Likewise.
1846 (validate_switches_from_spec): Likewise.
1847 (validate_all_switches): Pass on user_p parameter.
1848 (struct spec_list): Add user_p field.
1849 (struct switchstr): Add known field.
1850 (save_switch): Add known parameter.
1851 (INIT_STATIC_SPEC): Initialize user_p;
1852 (driver_unknown_option_callbac): call save_switch if
1853 OPT_SPECIAL_unknown.
1854 (driver_handle_option): Propagate OPT_specs.
1855 (do_spec_1): Set validated only if known.
1856 (check_live_switch): Likewise.
1857 (validate_switches): Set validated if known or user_spec.
1858
1859 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
1860
1861 Add CRIS atomic patterns for 1, 2, and 4 bytes.
1862 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
1863 * config/cris/cris-protos.h: Declare it.
1864 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
1865 (TARGET_DEFAULT): Add alignment by 32.
1866 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
1867 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
1868 TARGET_CPU_DEFAULT == 32.
1869 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
1870 * config/cris/cris.md: Include sync.md. Avoid allocating specific
1871 numbers by replacing the define_constants for all UNSPECs with the
1872 equivalent define_c_enum construct.
1873 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
1874 * config/cris/sync.md: New file.
1875
1876 2012-05-31 Matt Turner <mattst88@gmail.com>
1877
1878 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
1879 (r4600_imul_di): New.
1880 (r4600_idiv_si): Rename from r4600_idiv.
1881 (r4600_idiv_di): New.
1882
1883 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1884
1885 * output.h (__gcc_host_wide_int__): Move to hwint.h.
1886 (decl_default_tls_model): Move to tree.h
1887 (dump_file): Move to system.h.
1888 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
1889 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
1890 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
1891 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
1892 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
1893 dbxout_stab_value_internal_label,
1894 dbxout_stab_value_internal_label_diff): Move from here ...
1895 * dbxout.h: ... to here.
1896 * system.h (dump_file): Moved here from output.h.
1897 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
1898 * tree.h (decl_default_tls_model): Moved here from output.h.
1899 * varasm.c (default_stabs_asm_out_destructor,
1900 default_stabs_asm_out_constructor): Move from here ...
1901 * dbxout.c: ... to here.
1902
1903 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
1904
1905 * collect2.h (dump_file): Rename to dump_ld_file.
1906 * collect2.c: Likewise.
1907 * tlink.c: Likewise.
1908
1909 * alias.c: Do not include output.h.
1910 * auto-inc-dec.c: Likewise.
1911 * bt-load.c: Likewise.
1912 * caller-save.c: Likewise.
1913 * cfg.c: Likewise.
1914 * cfgbuild.c: Likewise.
1915 * cfgcleanup.c: Likewise.
1916 * cfglayout.c: Likewise.
1917 * cfgloop.c: Likewise.
1918 * cfgloopanal.c: Likewise.
1919 * cfgloopmanip.c: Likewise.
1920 * cfgrtl.c: Likewise.
1921 * cgraph.c: Likewise.
1922 * cgraphclones.c: Likewise.
1923 * combine-stack-adj.c: Likewise.
1924 * combine.c: Likewise.
1925 * cprop.c: Likewise.
1926 * cse.c: Likewise.
1927 * cselib.c: Likewise.
1928 * dbgcnt.c: Likewise.
1929 * df-problems.c: Likewise.
1930 * df-scan.c: Likewise.
1931 * dojump.c: Likewise.
1932 * fwprop.c: Likewise.
1933 * gcse.c: Likewise.
1934 * graph.c: Likewise.
1935 * haifa-sched.c: Likewise.
1936 * hw-doloop.c: Likewise.
1937 * ipa-inline-transform.c: Likewise.
1938 * ipa-pure-const.c: Likewise.
1939 * ipa-reference.c: Likewise.
1940 * ipa-utils.c: Likewise.
1941 * ira-build.c: Likewise.
1942 * ira-emit.c: Likewise.
1943 * lcm.c: Likewise.
1944 * loop-doloop.c: Likewise.
1945 * loop-invariant.c: Likewise.
1946 * loop-iv.c: Likewise.
1947 * loop-unroll.c: Likewise.
1948 * loop-unswitch.c: Likewise.
1949 * lto-cgraph.c: Likewise.
1950 * lto-section-in.c: Likewise.
1951 * lto-streamer-in.c: Likewise.
1952 * mcf.c: Likewise.
1953 * mode-switching.c: Likewise.
1954 * postreload-gcse.c: Likewise.
1955 * postreload.c: Likewise.
1956 * predict.c: Likewise.
1957 * profile.c: Likewise.
1958 * ree.c: Likewise.
1959 * reg-stack.c: Likewise.
1960 * regcprop.c: Likewise.
1961 * regmove.c: Likewise.
1962 * regstat.c: Likewise.
1963 * reload1.c: Likewise.
1964 * sched-ebb.c: Likewise.
1965 * sel-sched-dump.c: Likewise.
1966 * simplify-rtx.c: Likewise.
1967 * stor-layout.c: Likewise.
1968 * store-motion.c: Likewise.
1969 * tracer.c: Likewise.
1970 * tree-affine.c: Likewise.
1971 * tree-cfg.c: Likewise.
1972 * tree-cfgcleanup.c: Likewise.
1973 * tree-dfa.c: Likewise.
1974 * tree-into-ssa.c: Likewise.
1975 * tree-nomudflap.c: Likewise.
1976 * tree-optimize.c: Likewise.
1977 * tree-pretty-print.c: Likewise.
1978 * tree-profile.c: Likewise.
1979 * tree-ssa-address.c: Likewise.
1980 * tree-ssa-ccp.c: Likewise.
1981 * tree-ssa-copy.c: Likewise.
1982 * tree-ssa-dom.c: Likewise.
1983 * tree-ssa-loop-ch.c: Likewise.
1984 * tree-ssa-loop-im.c: Likewise.
1985 * tree-ssa-loop-manip.c: Likewise.
1986 * tree-ssa-loop-niter.c: Likewise.
1987 * tree-ssa-loop-prefetch.c: Likewise.
1988 * tree-ssa-loop-unswitch.c: Likewise.
1989 * tree-ssa-loop.c: Likewise.
1990 * tree-ssa-propagate.c: Likewise.
1991 * tree-ssa-structalias.c: Likewise.
1992 * tree-ssa-tail-merge.c: Likewise.
1993 * tree-ssa-threadedge.c: Likewise.
1994 * tree-ssa-threadupdate.c: Likewise.
1995 * tree-ssa-uncprop.c: Likewise.
1996 * tree-ssa-uninit.c: Likewise.
1997 * tree-ssa.c: Likewise.
1998 * value-prof.c: Likewise.
1999 * var-tracking.c: Likewise.
2000 * web.c: Likewise.
2001
2002 * config/m32r/m32r.c: Include dbxout.h.
2003 * config/pa/pa.c: Likewise.
2004 * config/rs6000/rs6000.c: Likewise.
2005
2006 * Makefile.in: Fix dependencies.
2007 * config/rs6000/t-rs5000: Likewise.
2008
2009 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
2010
2011 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
2012 * gimple.h (block_in_transaction): Check for flag_tm.
2013
2014 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
2015
2016 PR tree-optimization/52558
2017 * cfg.c (alloc_aux_for_edge): Fix comment.
2018 (alloc_aux_for_edge): Remove static.
2019 * basic-block.h (alloc_aux_for_edge): Protoize.
2020 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
2021 (execute_sm_if_changed_flag): New.
2022 (execute_sm_if_changed_flag_set): New.
2023 (execute_sm): Do not generate data races unless requested.
2024 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
2025 (tree_ssa_lim_finalize): Call free_aux_for_edges.
2026 * gimple.h (block_in_transaction): New.
2027 (gimple_in_transaction): Use block_in_transaction.
2028
2029 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2030
2031 PR target/51345
2032 * config/avr/avr.opt (-msp8): Document it.
2033 * doc/invoke.texi (AVR Options): Ditto. And document related
2034 built-in macros.
2035
2036 2012-05-31 Diego Novillo <dnovillo@google.com>
2037
2038 * configure.ac (CXX_FOR_BUILD): Define and substitute.
2039 (BUILD_CXXFLAGS): Define and substitute.
2040 * Makefile.in (BUILD_CXXFLAGS): Define.
2041 (CXX_FOR_BUILD): Define.
2042 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
2043 (LINKER_FOR_BUILD): Likewise.
2044 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
2045 (BUILD_LINKERFLAGS): Likewise.
2046 * configure: Regenerate.
2047
2048 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2049
2050 * Makefile.in: Fix many dependencies.
2051 * tree-profile.c: Don't include regs.h.
2052 * tree-vectorizer.c: Don't include cfglayout.h.
2053 * tree-vect-stmts.c: Likewise.
2054 * tree-vect-slp.c: Likewise.
2055 * tree-vect-loop.c: Likewise.
2056 * reg-stack.c: Likewise.
2057 * tree-ssa-loop-manip.c: Likewise.
2058 * toplev.c: Likewise.
2059 * varasm.c: Don't include cfglayout.h, basic-block.h,
2060 and tree-iterator.h.
2061 * tree-cfgcleanup.c: Don't include cfglayout.h.
2062 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
2063 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
2064 * cgraphclones.c: Don't include plugin.h.
2065
2066 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2067
2068 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
2069 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
2070 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
2071
2072 2012-05-31 Richard Guenther <rguenther@suse.de>
2073
2074 * tree-loop-distribution.c (struct partition_s): New struct,
2075 typedef and vector type.
2076 (partition_alloc, partition_free): New functions.
2077 (generate_loops_for_partition, generate_builtin,
2078 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
2079 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2080 build_rdg_partition_for_component, can_generate_builtin,
2081 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
2082 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
2083 number_of_rw_in_partition, partition_contains_all_rw,
2084 ldist_gen): Use partition_t instead of bitmap.
2085
2086 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2087
2088 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
2089 * doc/avr-mmcu.texi: Regenerate.
2090
2091 2012-05-31 Richard Guenther <rguenther@suse.de>
2092
2093 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
2094 Use FOR_EACH_SSA_DEF_OPERAND.
2095 (generate_builtin): Adjust.
2096 (stmt_generated_in_another_partition): Remove.
2097 (add_scalar_computations_to_partition): Likewise.
2098 (rdg_build_partitions): Do not call
2099 add_scalar_computations_to_partition.
2100
2101 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
2102
2103 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
2104 double ints throughout.
2105 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
2106 Check that the position of the field is representable as an integer.
2107
2108 2012-05-31 Richard Guenther <rguenther@suse.de>
2109
2110 * tree-data-ref.c (dr_analyze_innermost): Properly convert
2111 the MEM_REF offset to sizetype.
2112
2113 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
2114
2115 * doc/invoke.texi (AVR Options): Fix typos.
2116
2117 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
2118
2119 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
2120 and -mcpu= options.
2121 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
2122 non-v32 into --march=v0_v10.
2123
2124 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2125
2126 * ira-int.h (target_ira_int): Rename x_move_cost to
2127 x_ira_register_move_cost, x_may_move_in_cost to
2128 x_ira_may_move_in_cost and x_may_move_out_cost to
2129 x_ira_may_move_out_cost. Delete the old fields with
2130 those names and also x_ira_max_register_move_cost,
2131 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
2132 (move_cost, may_move_in_cost, may_move_out_cost)
2133 (ira_max_register_move_cost, ira_max_may_move_in_cost)
2134 (ira_max_may_move_out_cost): Delete.
2135 * ira.c (init_move_cost): Rename to...
2136 (ira_init_register_move_cost): ...this, deleting the old
2137 function with that name. Apply above variable renamings.
2138 Retain asserts for null fields.
2139 (ira_init_once): Don't initialize register move costs here.
2140 (free_register_move_costs): Apply above variable renamings.
2141 Remove code for deleted fields.
2142
2143 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2144
2145 * ira.c (init_move_cost): Adjust choice of subclasses to match
2146 the current ira_init_register_move_cost choice. Use
2147 ira_class_subset_p instead of reg_class_subset_p.
2148 (ira_init_register_move_cost): Assert that move_cost,
2149 may_move_in_cost and may_move_out_cost already hold the desired
2150 values for their ira_* equivalents. For the latter two,
2151 ignore classes that can't store a register of the given mode.
2152
2153 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2154
2155 * ira.c (setup_allocno_and_important_classes): Use
2156 ira_class_hard_regs_num to check whether a class has any
2157 allocatable registers.
2158 (ira_init_register_move_cost): Likewise.
2159
2160 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2161
2162 * ira.c (init_move_cost): Adjust local variable names to match
2163 file conventions. Use ira_assert instead of gcc_assert.
2164
2165 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2166
2167 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
2168 Move these definitions and associated target_globals fields to...
2169 * ira-int.h: ...here.
2170 * rtl.h (init_move_cost): Delete.
2171 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
2172 * ira.c: ...here, making the latter static.
2173
2174 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2175
2176 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
2177 and ira_register_move_cost instead of init_move_cost and move_cost.
2178
2179 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
2180
2181 * ira.h (target_ira): Delete x_ira_available_class_regs.
2182 (ira_available_class_regs): Delete.
2183 * ira.c (setup_available_class_regs): Delete.
2184 (setup_alloc_classes): Don't call it.
2185 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
2186 ira_available_class_regs.
2187 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
2188 (model_spill_cost): Likewise.
2189 * ira-build.c (low_pressure_loop_node_p): Likewise.
2190 * ira-color.c (color_pass): Likewise.
2191 * ira-emit.c (change_loop): Likewise.
2192 * ira-lives.c (inc_register_pressure, dec_register_pressure)
2193 (single_reg_class, ira_implicitly_set_insn_hard_regs)
2194 (process_bb_node_lives): Likewise.
2195 * loop-invariant.c (gain_for_invariant): Likewise.
2196
2197 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2198
2199 PR target/52999
2200 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
2201 (pa_section_type_flags): New.
2202 (pa_legitimate_constant_p): Revert previous change.
2203
2204 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
2205
2206 * ira.c (allocate_initial_values): Make static.
2207
2208 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
2209
2210 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
2211 Generate tls_initial_exec_64_sun only when !TARGET_X32.
2212
2213 2012-05-30 Richard Guenther <rguenther@suse.de>
2214
2215 PR middle-end/53501
2216 * fold-const.c (fold_binary_loc): Make sure to call
2217 fold_plusminus_mult_expr with the original sign of operands.
2218
2219 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
2220
2221 * Makefile.in: Fix many dependencies.
2222 (DWARF2_H): Depend on dwarf2.def.
2223 (RTL_ERROR_H): Depend on rtl-error.h.
2224 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
2225 all gimple-pretty-print.h and tree-pretty-print.h references.
2226
2227 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
2228
2229 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
2230 concatenations.
2231
2232 2012-05-30 Richard Guenther <rguenther@suse.de>
2233
2234 PR middle-end/53522
2235 * tree-emutls.c (gen_emutls_addr): Do not add globals to
2236 referenced-vars.
2237
2238 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
2239
2240 * explow.c (probe_stack_range): Restore simple control flow and stop
2241 again when the probe cannot be generated if HAVE_check_stack.
2242
2243 2012-05-30 Jakub Jelinek <jakub@redhat.com>
2244
2245 PR rtl-optimization/53519
2246 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
2247 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
2248
2249 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2250
2251 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
2252
2253 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
2254
2255 PR debug/53453
2256 * doc/tm.texi: Update.
2257 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
2258 * target.def (force_at_comp_dir): New hook.
2259 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
2260 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
2261
2262 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
2263
2264 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
2265 Darwin >= 10.
2266 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
2267 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2268
2269 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
2270
2271 PR target/51340
2272 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
2273 flag_unsafe_math_optimizations is set.
2274 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
2275 Update description of -mfused-madd.
2276
2277 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
2278
2279 PR target/52941
2280 * config/sh/predicates.md (atomic_arith_operand,
2281 atomic_logical_operand): New predicates.
2282 * config/sh/sh.c (sh_option_override): Check atomic options.
2283 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
2284 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
2285 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
2286 UNSUPPORTED_HARD_ATOMIC_CPU.
2287 * config/sh/sync.md: Update description comments.
2288 (I12): New mode iterator.
2289 (fetchop_predicate, fetchop_constraint): New code attributes.
2290 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2291 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2292 atomic_fetch_<fetchop_name>si_hard,
2293 atomic_fetch_<fetchop_name><mode>_hard,
2294 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2295 atomic_<fetchop_name>_fetchsi_hard,
2296 atomic_<fetchop_name>_fetch<mode>_hard,
2297 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2298 atomic_test_and_set_hard): New insns.
2299 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
2300 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
2301 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
2302 atomic_test_and_set_soft): Use same formatting for the first line of
2303 the asm block as in new insns above.
2304 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
2305 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
2306 atomic_test_and_set): Integrate new *_hard insns into expanders.
2307 * config/sh/sh.opt (mhard-atomic): New option.
2308 * doc/invoke.texi (SH Options): Document it.
2309
2310 2012-05-29 Meador Inge <meadori@codesourcery.com>
2311
2312 * c-decl.c (c_push_function_context): Always create a new language
2313 function.
2314 (c_pop_function_context): Clear the language function created in
2315 c_push_function_context.
2316
2317 2012-05-29 Matt Turner <mattst88@gmail.com>
2318
2319 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
2320 (define_bypass "ev6_fcmov"): New.
2321
2322 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
2323
2324 * integrate.c: Remove.
2325 * integrate.h: Remove.
2326 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
2327 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
2328 * config/rs6000/t-rs6000: Likewise
2329 * config/spu/t-spu-elf: Likewise.
2330 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
2331 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
2332 from integrate.h to here.
2333 (initial_value_entry): New prototype.
2334 * reload.h (allocate_initial_values): Remove prototype.
2335 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
2336 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
2337 integrate.c.
2338 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
2339 set_decl_abstract_flags, set_block_abstract_flags): Move from
2340 integrate.c to here, the only user.
2341 * expmed.c (extract_fixed_bit_field): Remove outdated comment
2342 about integrate.c.
2343 * function.c: Don't include integrate.h.
2344 (struct initial_value_pair, struct initial_value_struct,
2345 get_hard_reg_initial_val, has_hard_reg_initial_val,
2346 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
2347 integrate.c to here.
2348 (initial_value_entry): New function.
2349 * genemit.c (main): Don't print integrate.h include line.
2350 * ira.c: Don't include integrate.h.
2351 (allocate_initial_values): Move from integrate.c to here.
2352 (ira): Update allocate_initial_values call.
2353 * tree-inline.c: Don't include integrate.h.
2354 (function_attribute_inlinable_p): Moved from integrate.c to here.
2355 * cfgexpand.c: Don't include integrate.h.
2356 * except.c: Likewise.
2357 * langhooks.c: Likewise.
2358 * passes.c: Likewise.
2359 * toplev.c: Likewise.
2360 * config/frv/frv.c: Likewise.
2361 * config/pa/pa.c: Likewise.
2362 * config/spu/spu.c: Likewise.
2363 * config/epiphany/epiphany.c: Likewise.
2364 * config/mep/mep.c: Likewise.
2365 * config/score/score.c: Likewise.
2366 * config/picochip/picochip.c: Likewise.
2367 * config/sh/sh.c: Likewise.
2368 * config/alpha/alpha.c: Likewise.
2369 * config/microblaze/microblaze.c: Likewise.
2370 * config/mips/mips.c: Likewise.
2371 * config/v850/v850.c: Likewise.
2372 * config/mmix/mmix.c: Likewise.
2373 * config/bfin/bfin.c: Likewise.
2374 * config/arm/arm.c: Likewise.
2375 * config/s390/s390.c: Likewise.
2376 * config/m32r/m32r.c: Likewise.
2377 * config/rs6000/rs6000.c: Likewise.
2378 * config/c6x/c6x.c: Include function.h instead of integrate.h.
2379 * config/tilegx/tilegx.c: Likewise.
2380 * config/tilepro/tilepro.c: Likewise.
2381
2382 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
2383
2384 * config/avr/t-avr (s-avr-mmcu-texi): Call
2385 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
2386
2387 2012-05-29 Michael Matz <matz@suse.de>
2388
2389 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
2390 assign_temp): Remove 'keep' argument.
2391 (mark_temp_addr_taken): Remove prototype.
2392 * tree.h (expand_decl): Remove prototype.
2393 * function.c (struct temp_slot): Remove addr_taken and keep member.
2394 (assign_stack_temp_for_type) Don't initialize above, remove
2395 keep argument.
2396 (assign_stack_temp, assign_temp): Remove keep argument.
2397 (mark_temp_addr_taken): Remove.
2398 (preserve_temp_slots): Remove handling of addr_taken and keep members.
2399 (free_temp_slots): Ditto.
2400 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
2401 dead code.
2402 * stmt.c (expand_asm_operands): Remove dead code.
2403 (expand_decl): Remove.
2404 * c-decl.c (finish_struct): Don't call expand_decl.
2405 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
2406 and assign_stack_temp.
2407 * calls.c (save_fixed_argument_area, initialize_argument_information,
2408 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
2409 * expmed.c (extract_bit_field_1): Ditto.
2410 * expr.c (emit_group_load_1, emit_group_store,
2411 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
2412 store_field, expand_constructor, expand_cond_expr_using_cmove,
2413 expand_expr_real_2, expand_expr_real_1): Ditto.
2414 * stmt.c (expand_asm_operands, expand_return): Ditto.
2415
2416 * function.c (pop_temp_slots): Call free_temp_slots.
2417 * calls.c (store_one_arg): Don't call preserve_temp_slots or
2418 free_temp_slots.
2419 * expr.c (expand_assignment): Don't call free_temp_slots.
2420
2421 * config/arm/arm.c (neon_expand_vector_init): Ditto.
2422 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
2423 (ix86_expand_vector_extract): Ditto.
2424 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
2425 ia64_expand_movxf_movrf): Ditto.
2426 * config/mips/mips.c (mips_expand_vi_general): Ditto.
2427 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
2428 extendsfdf2): Ditto.
2429 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
2430 rs6000_expand_vector_set, rs6000_expand_vector_extract,
2431 rs6000_allocate_stack_temp): Ditto.
2432 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
2433 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2434 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
2435 sparc_expand_vector_init): Ditto.
2436
2437 2012-05-29 Michael Matz <matz@suse.de>
2438
2439 * c-tree.h (c_expand_decl): Remove prototype.
2440
2441 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
2442 a kept temp.
2443 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
2444 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
2445 COMPOUND_LITERAL_EXPR.
2446 * function.c (expand_function_start): Don't call expand_decl,
2447 instead assert that we have RTL assigned.
2448 * tree-ssa-live.c (remove_unused_locals): Clear
2449 nonlocal_goto_save_area if its backing variable is removed.
2450 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
2451 as mem inputs.
2452 (expand_decl): Assert that this does nothing.
2453 * calls.c (expand_call): Don't call mark_temp_addr_taken.
2454
2455 2012-05-29 Richard Guenther <rguenther@suse.de>
2456
2457 PR tree-optimization/53516
2458 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
2459 bitfield accesses.
2460 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
2461
2462 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2463
2464 * LANGUAGES: Fix typos.
2465 * Makefile.in: Fix typos.
2466 * alias.c: Fix typos.
2467 * auto-inc-dec.c: Fix typos.
2468 * bb-reorder.c: Fix typos.
2469 * cfgcleanup.c: Fix typos.
2470 * cgraph.c: Fix typos.
2471 * cgraph.h: Fix typos.
2472 * cgraphunit.c: Fix typos.
2473 * collect2-aix.h: Fix typos.
2474 * collect2.c: Fix typos.
2475 * compare-elim.c: Fix typos.
2476 * config/alpha/vms.h: Fix typos.
2477 * config/arm/README-interworking: Fix typos.
2478 * config/arm/arm.c: Fix typos.
2479 * config/arm/iterators.md: Fix typos.
2480 * config/arm/vxworks.h: Fix typos.
2481 * config/avr/avr.c: Fix typos.
2482 * config/avr/avr.h: Fix typos.
2483 * config/avr/avr.md: Fix typos.
2484 * config/avr/builtins.def: Fix typos.
2485 * config/c6x/c6x.c: Fix typos.
2486 * config/cr16/cr16.c: Fix typos.
2487 * config/cr16/cr16.md: Fix typos.
2488 * config/cris/cris.md: Fix typos.
2489 * config/darwin.c: Fix typos.
2490 * config/darwin.opt: Fix typos.
2491 * config/i386/i386-c.c: Fix typos.
2492 * config/i386/i386.c: Fix typos.
2493 * config/ia64/ia64.c: Fix typos.
2494 * config/m68k/cf.md: Fix typos.
2495 * config/mep/mep.c: Fix typos.
2496 * config/microblaze/microblaze.c: Fix typos.
2497 * config/microblaze/microblaze.h: Fix typos.
2498 * config/mn10300/mn10300.c: Fix typos.
2499 * config/mn10300/mn10300.md: Fix typos.
2500 * config/pa/pa.c: Fix typos.
2501 * config/picochip/picochip.h: Fix typos.
2502 * config/rs6000/a2.md: Fix typos.
2503 * config/rs6000/rs6000.c: Fix typos.
2504 * config/rs6000/vector.md: Fix typos.
2505 * config/rx/rx.md: Fix typos.
2506 * config/rx/rx.opt: Fix typos.
2507 * config/s390/2097.md: Fix typos.
2508 * config/s390/s390.c: Fix typos.
2509 * config/s390/s390.h: Fix typos.
2510 * config/sh/sh.c: Fix typos.
2511 * config/sh/sh.md: Fix typos.
2512 * config/sparc/sync.md: Fix typos.
2513 * config/spu/spu.c: Fix typos.
2514 * config/spu/spu.md: Fix typos.
2515 * config/vms/vms.c: Fix typos.
2516 * config/vxworks-dummy.h: Fix typos.
2517 * config/vxworks.h: Fix typos.
2518 * cselib.c: Fix typos.
2519 * df-scan.c: Fix typos.
2520 * df.h: Fix typos.
2521 * doc/extend.texi: Fix typos.
2522 * doc/install.texi: Fix typos.
2523 * doc/invoke.texi: Fix typos.
2524 * doc/md.texi: Fix typos.
2525 * doc/plugins.texi: Fix typos.
2526 * doc/rtl.texi: Fix typos.
2527 * dse.c: Fix typos.
2528 * dwarf2asm.c: Fix typos.
2529 * dwarf2out.c: Fix typos.
2530 * except.h: Fix typos.
2531 * expr.c: Fix typos.
2532 * fold-const.c: Fix typos.
2533 * gcc.c: Fix typos.
2534 * gcse.c: Fix typos.
2535 * genautomata.c: Fix typos.
2536 * gengtype-state.c: Fix typos.
2537 * gengtype.c: Fix typos.
2538 * genhooks.c: Fix typos.
2539 * gimple-fold.c: Fix typos.
2540 * gimple-pretty-print.c: Fix typos.
2541 * gimple.c: Fix typos.
2542 * gimple.h: Fix typos.
2543 * gimplify.c: Fix typos.
2544 * graphite-interchange.c: Fix typos.
2545 * graphite-sese-to-poly.c: Fix typos.
2546 * ifcvt.c: Fix typos.
2547 * input.c: Fix typos.
2548 * ipa-cp.c: Fix typos.
2549 * ipa-inline-analysis.c: Fix typos.
2550 * ipa-inline-transform.c: Fix typos.
2551 * ipa-inline.c: Fix typos.
2552 * ipa-pure-const.c: Fix typos.
2553 * ipa-ref.h: Fix typos.
2554 * ipa-reference.c: Fix typos.
2555 * ipa-utils.c: Fix typos.
2556 * ipa.c: Fix typos.
2557 * ira-emit.c: Fix typos.
2558 * ira-lives.c: Fix typos.
2559 * lto-streamer.c: Fix typos.
2560 * lto-streamer.h: Fix typos.
2561 * lto-wrapper.c: Fix typos.
2562 * mcf.c: Fix typos.
2563 * mode-switching.c: Fix typos.
2564 * modulo-sched.c: Fix typos.
2565 * plugin.c: Fix typos.
2566 * postreload.c: Fix typos.
2567 * sched-deps.c: Fix typos.
2568 * sel-sched-ir.c: Fix typos.
2569 * sel-sched-ir.h: Fix typos.
2570 * sel-sched.c: Fix typos.
2571 * sese.c: Fix typos.
2572 * stor-layout.c: Fix typos.
2573 * target-hooks-macros.h: Fix typos.
2574 * target.def: Fix typos.
2575 * trans-mem.c: Fix typos.
2576 * tree-eh.c: Fix typos.
2577 * tree-predcom.c: Fix typos.
2578 * tree-sra.c: Fix typos.
2579 * tree-ssa-address.c: Fix typos.
2580 * tree-ssa-loop-ivopts.c: Fix typos.
2581 * tree-ssa-loop-niter.c: Fix typos.
2582 * tree-ssa-math-opts.c: Fix typos.
2583 * tree-ssa-pre.c: Fix typos.
2584 * tree-ssa-propagate.c: Fix typos.
2585 * tree-ssa-reassoc.c: Fix typos.
2586 * tree-ssa-sccvn.c: Fix typos.
2587 * tree-ssa-ter.c: Fix typos.
2588 * tree-ssa-uninit.c: Fix typos.
2589 * tree-ssanames.c: Fix typos.
2590 * tree-vect-generic.c: Fix typos.
2591 * tree-vect-slp.c: Fix typos.
2592 * tree.c: Fix typos.
2593 * tree.h: Fix typos.
2594 * varasm.c: Fix typos.
2595 * varpool.c: Fix typos.
2596
2597 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2598
2599 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
2600
2601 2012-05-29 Richard Guenther <rguenther@suse.de>
2602
2603 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
2604 for globals.
2605 (add_referenced_var_1): Re-organize. Assert we are not
2606 called for globals.
2607 (remove_referenced_var): Likewise.
2608 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
2609 * tree-mudflap.c (execute_mudflap_function_ops): Do not
2610 call add_referenced_var on globals.
2611 * matrix-reorg.c (transform_access_sites): Likewise.
2612
2613 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
2614
2615 * alias.c (reg_known_value): Make this a VEC.
2616 (reg_known_equiv_p): Make this an sbitmap.
2617 (reg_known_value_size): Remove.
2618 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
2619 set_reg_known_equiv_p): Update for reg_known_value and
2620 reg_known_value_size data structure change.
2621 (init_alias_analysis, end_alias_analysis): Likewise.
2622
2623 2012-05-29 Jakub Jelinek <jakub@redhat.com>
2624
2625 PR middle-end/53510
2626 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
2627 to avoid leaking memory. No need to handle memory allocation
2628 failure. Double string_len on each reallocation instead of adding 2.
2629 * gcov.c (read_line): Likewise.
2630
2631 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
2632
2633 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
2634 New macros.
2635 * config/cris/cris.md ("trap"): Define, enabled for
2636 TARGET_TRAP_USING_BREAK8.
2637 * config/cris/cris.opt (mtrap-using-break8): New option.
2638
2639 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2640
2641 PR c++/25137
2642 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
2643 for C++.
2644
2645 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
2646
2647 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
2648 (Standard Names): Fix typos in documentation of atomic patterns.
2649
2650 2012-05-27 Nathan Sidwell <nathan@acm.org>
2651
2652 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
2653
2654 2012-05-26 Jason Merrill <jason@redhat.com>
2655
2656 PR c++/53220
2657 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
2658 about array compound literals.
2659
2660 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
2661
2662 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
2663 if CLEANUP_NO_INSN_DEL.
2664 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
2665 from cfg_layout_merge_blocks.
2666 (emit_nop_for_unique_locus_between): New function.
2667 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
2668 (cfg_layout_merge_blocks): Likewise.
2669
2670 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
2671 Paolo Bonzini <bonzini@gnu.org>
2672
2673 * df-scan.c (df_def_record_1): Assert a parallel must contain an
2674 EXPR_LIST at this point. Receive the LOC and move its extraction...
2675 (df_defs_record): ... here. Change if-else to a switch statement.
2676 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
2677 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
2678 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
2679 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
2680 regs_invalidated_by_call.
2681 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
2682 df_get_call_refs().
2683
2684 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
2685
2686 PR lto/52178
2687 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
2688 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
2689
2690 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2691
2692 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
2693 software floating point emulation. No longer build the multilibs
2694 with -mstrict-align.
2695
2696 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
2697
2698 PR middle-end/53008
2699 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
2700 accessed indirectly.
2701 (ipa_tm_create_version): Same.
2702
2703 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
2704
2705 PR target/53474
2706 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
2707 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
2708
2709 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2710
2711 PR target/53435
2712 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
2713 (ix86_expand_vec_perm): Use int mode instead of float.
2714 (expand_vec_perm_pshufb): Remove handling of useseless type
2715 conversion.
2716
2717 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
2718
2719 PR ada/52362
2720 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
2721 gnu_ld variables to yes.
2722 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
2723 (HAVE_GNU_AS): Likewise.
2724 * config.in: Regenerate.
2725 * configure: Likewise.
2726
2727 2012-05-25 Tristan Gingold <gingold@adacore.com>
2728
2729 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
2730 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
2731 and preferred_alignment.
2732
2733 2012-05-25 Tristan Gingold <gingold@adacore.com>
2734
2735 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
2736
2737 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
2738
2739 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
2740 volatile bitfields case.
2741
2742 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
2743
2744 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
2745 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
2746 (adjacent_mem_locations): Move some code to and call...
2747 (get_memref_parts): ...new function.
2748 (mem_locations_overlap): New function.
2749 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
2750 (is_mem_ref): Rename to...
2751 (find_mem_ref): ...this. Return MEM rtx.
2752 (get_store_dest): Remove function.
2753 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
2754 new parameter and adjust calls.
2755 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
2756 mem refs overlap for true_store_to_load_dep_costly.
2757 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
2758 passed to adjacent_mem_locations.
2759 (is_costly_group): Walk resolved dependency list.
2760 (force_new_group): Emit group ending nop for Power6/Power7.
2761 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
2762 (group_ending_nop): New define_insn.
2763
2764 2012-05-24 Dodji Seketeli <dodji@redhat.com>
2765
2766 Make unwound macro expansion trace less redundant
2767 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
2768 context of macro definition in the trace, when it's redundant.
2769 Update comments.
2770
2771 2012-05-24 Richard Guenther <rguenther@suse.de>
2772
2773 PR middle-end/53460
2774 * tree-profile.c (tree_profiling): Cleanup the CFG if
2775 execute_fixup_cfg requests it.
2776
2777 2012-05-24 Richard Guenther <rguenther@suse.de>
2778
2779 * tree-flow.h (create_var_ann): Remove.
2780 * tree-dfa.c (create_var_ann): Remove and inline into its
2781 single caller ...
2782 (add_referenced_var_1): ... here.
2783 * varpool.c (add_new_static_var): Do not call add_referenced_var
2784 for global vars.
2785 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2786 * tree-switch-conversion.c (build_one_array): Likewise.
2787 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
2788 * tree-flow-inline.h (gimple_referenced_vars): Guard against
2789 NULL fn argument.
2790 * tree-inline.c (remap_gimple_op_r): Likewise. Check
2791 gimple_referenced_vars instead of gimple_in_ssa_p.
2792 (copy_tree_body_r): Likewise.
2793 (setup_one_parameter): Likewise.
2794 (declare_return_variable): Likewise.
2795 (tree_function_versioning): Likewise.
2796
2797 2012-05-24 Jakub Jelinek <jakub@redhat.com>
2798
2799 PR tree-optimization/53465
2800 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
2801 vr0 into *vr, then vrp_meet that.
2802 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
2803 have any equivalences.
2804 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
2805 first time.
2806
2807 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
2808
2809 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
2810 hard registers.
2811 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
2812 check end_regno - 1 is a hard register.
2813
2814 2012-05-24 Richard Guenther <rguenther@suse.de>
2815
2816 * varpool.c (add_new_static_var): Remove call to create_var_ann.
2817 * tree-ssa-operands.c (create_vop_var): Likewise.
2818
2819 2012-05-24 Richard Guenther <rguenther@suse.de>
2820
2821 PR bootstrap/53466
2822 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
2823 handle globals.
2824 (remove_unused_locals): Pass global_unused_vars to
2825 remove_unused_scope_block_p. Restore code walking all
2826 referenced vars and pruning them.
2827
2828 2012-05-23 Jan Hubicka <jh@suse.cz>
2829
2830 * tree.h (alias_diag_flags): Remove.
2831 (alias_pair): Remove emitted_diags.
2832 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
2833 symbol_alias_set_t, symbol_alias_set_destroy,
2834 symbol_alias_set_contains, propagate_aliases_backward): Remove.
2835 * toplev.c (compile_file): Do not call finish_aliases_2
2836 * cgraphunit.c (cgraph_process_new_functions): Do not call
2837 finish_aliases_1.
2838 (handle_alias_pairs): Output diagnostics about aliases to externals.
2839 (assemble_thunks_and_aliases): Use do_assemble_alias.
2840 (output_weakrefs): Likewise.
2841 (finalize_compilation_unit): Do not call finish_aliases_1.
2842 * ipa.c (symtab_remove_unreachable_nodes): De not call
2843 remove_unreachable_alias_pairs.
2844 * varasm.c (do_assemble_alias): Export.
2845 (symbol_alias_set_create, symbol_alias_set_destroy,
2846 symbol_alias_set_contains, symbol_alias_set_insert,
2847 propagate_aliases_forward, propagate_aliases_backward,
2848 propagate_aliases_backward, trivially_visible_alias,
2849 trivially_defined_alias, remove_unreachable_alias_pairs,
2850 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
2851 * output.h (do_assemble_alias): Declare.
2852 * varpool.c (varpool_remove_unreferenced_decls): Do not call
2853 finish_aliases_1.
2854
2855 2012-05-23 Martin Jambor <mjambor@suse.cz>
2856
2857 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
2858
2859 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
2860
2861 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
2862 size handling.
2863 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
2864 (iterative_hash_gimple_type): Adjust comment.
2865 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
2866 domain for an array type instead of the domain type itself.
2867
2868 2012-05-23 Richard Guenther <rguenther@suse.de>
2869
2870 PR tree-optimization/53438
2871 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
2872
2873 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
2874
2875 PR target/53448
2876 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
2877 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
2878 ASM_OUTPUT_ALIGN.
2879
2880 2012-05-23 Richard Guenther <rguenther@suse.de>
2881
2882 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
2883 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
2884 via the global_unused_vars bitmap.
2885 (remove_unused_locals): Handle global vars in local-decls via
2886 a global_unused_vars bitmap instead of the used flag in the
2887 var annotation. Simplify global variable handling and removal.
2888
2889 2012-05-22 Jan Hubicka <jh@suse.cz>
2890
2891 PR middle-end/53426
2892 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
2893 from other partitions.
2894
2895 2012-05-22 Jan Hubicka <jh@suse.cz>
2896
2897 PR middle-end/53161
2898 * symtab.c (symtab_register_node): Fix ordering issue.
2899
2900 2012-05-22 Steven Drake <sbd@NetBSD.org>
2901
2902 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
2903
2904 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
2905
2906 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
2907 Use strip_name_encoding target hook.
2908
2909 2012-05-22 Richard Guenther <rguenther@suse.de>
2910
2911 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
2912 (init_function_for_compilation): Remove.
2913 * tree-dfa.c (find_vars_r): Take struct function argument.
2914 (find_referenced_vars_in): Adjust.
2915 * tree-ssa-operands.c (clobber_stats): Remove.
2916 (create_vop_var): Take struct function argument. Mark
2917 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
2918 (init_ssa_operands): Take struct function argument.
2919 (fini_ssa_operands): Do not dump dead stats.
2920 * tree-ssa-operands.h (init_ssa_operands): Take struct function
2921 argument.
2922 * cgraphunit.c (init_lowered_empty_function): Adjust.
2923 * lto-streamer-in.c (input_cfg): Likewise.
2924 * tree-inline.c (initialize_cfun): Likewise.
2925 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
2926 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
2927 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
2928 virtual operands are not registers.
2929
2930 2012-05-22 Richard Guenther <rguenther@suse.de>
2931
2932 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
2933
2934 2012-05-22 Richard Guenther <rguenther@suse.de>
2935
2936 PR middle-end/53437
2937 * tree-inline.c (setup_one_parameter): Create a dummy init
2938 statement for unused parameters when not optimizing.
2939
2940 2012-05-22 Richard Guenther <rguenther@suse.de>
2941
2942 * tree-flow.h (add_referenced_var_1): Declare.
2943 (add_referenced_var): Define.
2944 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
2945 (add_referenced_var): Rename to ...
2946 (add_referenced_var_1): ... this. Take struct function argument.
2947
2948 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2949
2950 PR target/53334
2951 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
2952 * config/arm/arm.c (arm_validize_comparison): Define.
2953 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
2954 arm_validize_comparison.
2955 ("cbranchdi4"): Likewise.
2956 ("cstoredi4"): Likewise.
2957 ("movsicc"): Likewise.
2958 ("movsfcc"): Likewise.
2959 ("movdfcc"): Likewise.
2960
2961 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
2962
2963 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
2964 the mw_reg_pool size.
2965
2966 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
2967
2968 PR tree-optimization/53336
2969 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
2970 non-integer integral types to offset type and vice versa.
2971
2972 2012-05-22 Alan Modra <amodra@gmail.com>
2973
2974 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2975 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
2976 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
2977 V_SAVE_INLINE): Delete.
2978 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
2979 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
2980 For ELF targets, use out-of-line restores for -Os and any number
2981 of regs if the restore exits, and out-of-line gp save for two or
2982 more regs. Use save_reg_p to test for holes in reg restore set.
2983 Replace "#if" with "if".
2984
2985 2012-05-22 Alan Modra <amodra@gmail.com>
2986
2987 * config/rs6000/rs6000.c (save_reg_p): New function.
2988 (first_reg_to_save, first_fp_reg_to_save): Use it here.
2989 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
2990 (emit_frame_save): Use gen_frame_store.
2991 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
2992 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
2993 vrsave and toc.
2994 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
2995 vrsave, toc, gp and fp restores.
2996
2997 2012-05-22 Alan Modra <amodra@gmail.com>
2998
2999 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
3000 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
3001 Move function pointer variables after forward declarations.
3002 (rs6000_builtin_support_vector_misalignment): Make static.
3003 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
3004 (rs6000_function_value, rs6000_can_eliminate): Likewise.
3005
3006 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
3007
3008 PR rtl-optimization/53373
3009 * caller-save.c (save_call_clobbered_regs): Look into a possible
3010 PARALLEL manually rather than using single_set on a call insn.
3011
3012 2012-05-21 Jakub Jelinek <jakub@redhat.com>
3013
3014 PR tree-optimization/53436
3015 * omp-low.c (omp_build_component_ref): New function.
3016 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
3017
3018 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
3019
3020 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
3021 arguments to bool.
3022 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
3023 Do not print '.' here. Output operand lossage error for unhandled
3024 sizes. Move.
3025 <case '*'>: Move.
3026 <case '&'>: Ditto.
3027 <case 'Y'>: Ditto.
3028 <case 'z'>: Hardcode "code" argument into error strings.
3029 <case 'Z'>: Ditto.
3030 <case 'D'>: Merge AVX and non-AVX codes.
3031 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
3032 Update call to put_condition_code.
3033
3034 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
3035
3036 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
3037 CC_STATUS_INIT.
3038 (clzsi2): New expander.
3039 (*clzsi2_68k): New insn.
3040 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
3041
3042 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
3043
3044 * gimple.h (gimple_set_in_transaction): Remove.
3045 (gimple_in_transaction): Look in BB instead.
3046 (gimple_statement_base): Remove in_transaction field.
3047 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
3048 * trans-mem.c (compute_transaction_bits): Place transaction bit
3049 information into basic blocks.
3050
3051 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
3052
3053 * expr.c (get_def_for_expr_class): Define only if
3054 HAVE_conditional_move.
3055 (convert_tree_comp_to_rtx): Likewise.
3056
3057 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
3058
3059 PR target/53399
3060 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
3061 for TARGET_BMI.
3062 (ffssi2_no_cmove): Ditto.
3063 (*ffs<mode>_1): Remove insn pattern.
3064 (*tzcnt<mode>_1): New insn pattern.
3065 (*bsf<mode>1): Ditto.
3066
3067 2012-05-21 Richard Guenther <rguenther@suse.de>
3068
3069 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
3070 more referenced vars.
3071 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
3072 flag on variables that have a var-annotation.
3073
3074 2012-05-21 Joseph Myers <joseph@codesourcery.com>
3075
3076 PR c/53418
3077 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
3078 from folded operands before wrapping another around the
3079 conditional expression.
3080
3081 2012-05-21 Jakub Jelinek <jakub@redhat.com>
3082
3083 PR tree-optimization/53366
3084 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
3085 tests if complex_numbers == 2, but there are non-complex number loads
3086 too.
3087
3088 PR tree-optimization/53409
3089 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
3090 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
3091
3092 PR tree-optimization/53410
3093 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
3094 instead of build_int_cst (type, 0) where vector types might be
3095 involved. Instead of build_int_cst (type, 1) convert the original
3096 integer_onep argument to the desired type.
3097
3098 2012-05-21 Michael Matz <matz@suse.de>
3099
3100 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
3101 (simplify_test_exp): Handle one more case of distributive law,
3102 decrease cost threshold.
3103 (tests_attr_p, get_attr_order): New functions.
3104 (optimize_attrs): Use topological order, inline only cheap values.
3105 (write_attr_set): Reset our_known_true after some time.
3106
3107 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3108
3109 PR target/53425
3110 * config/i386/i386.c (type_natural_mode): Warn passing SSE
3111 vector argument without SSE enabled changes the ABI.
3112
3113 2012-05-21 Richard Guenther <rguenther@suse.de>
3114
3115 PR tree-optimization/53408
3116 * tree-vect-loop.c (vectorizable_induction): Properly check
3117 the restriction that we cannot handle induction results from
3118 the inner loop outside of the outer loop.
3119
3120 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
3121
3122 PR target/53416
3123 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
3124 (UNSPECV_RDRAND): This.
3125 (rdrand<mode>_1): Updated.
3126
3127 2012-05-21 Richard Guenther <rguenther@suse.de>
3128
3129 * tree-loop-distribution.c (can_generate_builtin): Reject
3130 volatile stmts.
3131
3132 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
3133
3134 * Makefile.in (options.c): Add options.h to included header
3135 files, before tm.h.
3136
3137 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
3138
3139 * tree-parloops.c : Add myself to contributors, update
3140 TODO list, add link to wiki.
3141
3142 2012-05-21 Alan Modra <amodra@gmail.com>
3143
3144 * config/rs6000/predicates.md (input_operand): Don't match
3145 constant pool addresses. Remove label_ref, high and plus from
3146 match_code list. Remove redundant CONSTANT_P test.
3147 (splat_input_operand): Similarly update match_code list.
3148 (small_toc_ref): New predicate.
3149 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
3150 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
3151 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
3152 register checks to..
3153 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
3154 generated by create_TOC_reference.
3155 (rs6000_legitimize_address): Update cerate_TOC_reference call.
3156 (rs6000_delegitimize_address): Handle new rtl for toc refs.
3157 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
3158 (use_toc_relative_ref): New function, split out from..
3159 (rs6000_emit_move): ..here. Remove redundant tests. Update
3160 create_TOC_reference calls.
3161 (rs6000_legitimize_reload_address): Formatting. Handle splitting
3162 of medium/large model toc addresses. Use use_toc_relative_ref.
3163 (print_operand): Formatting, style. Adjust for toc changes.
3164 (print_operand_address): Likewise.
3165 (rs6000_output_addr_const_extra): Likewise.
3166 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
3167 than a PLUS. Use this formulation for both high and low part
3168 of -mcmodel=medium/large toc reference too. Before reload,
3169 always use the small model formulation.
3170 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
3171 a PLUS in high part of addresses here.
3172 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3173 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3174 (largetoc_high, largetoc_low): Move earlier. Cope when no
3175 base reg available.
3176 (largetoc_high_plus): New insn.
3177 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
3178 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
3179 (tocref): ..instead do so here, new insn and split.
3180
3181 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
3182
3183 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3184 RDRND, F16C and FSGSBASE.
3185
3186 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3187
3188 PR rtl-optimzation/53373
3189 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
3190 call pattern. Update split patterns.
3191 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
3192 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
3193
3194 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
3195
3196 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
3197 for outer loops.
3198
3199 2012-05-18 Jan Hubicka <jh@suse.cz>
3200
3201 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
3202 (cgraph_process_new_functions): Process also aliases.
3203 * lto-streamer-out.c (struct sets): Remove.
3204 (trivally_defined_alias): Remove.
3205 (output_alias_pair_p): Remove.
3206 (output_unreferenced_globals): Remove.
3207 (produce_symtab); Do not handle alias pairs.
3208 (produce_asm_for_decls): Likewise.
3209 * lto-streamer-in.c (input_alias_pairs): Remove.
3210 (lto_read_body): Do not input alias pairs.
3211 (lto_input_constructors_and_inits): Remove.
3212
3213 2012-05-18 Jan Hubicka <jh@suse.cz>
3214
3215 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
3216 aliases.
3217
3218 2012-05-18 Jan Hubicka <jh@suse.cz>
3219
3220 * cgraphbuild.c (record_reference): Update.
3221 * lto-cgraph.c (lto_output_varpool_node): External vars
3222 are not in other partition even if they are not output
3223 in current partition.
3224 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
3225 argument; fix.
3226 (canonicalize_constructor_val): Take FROM_DECL argument.
3227 (fold_ctor_reference, fold_string_cst_ctor_reference,
3228 fold_array_ctor_reference, fold_nonarray_ctor_reference,
3229 fold_ctor_reference): Likewise.
3230 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
3231 * gimple.h (gimple_fold_builtin): Likewise.
3232
3233 2012-05-18 Olivier Hainque <hainque@adacore.com>
3234
3235 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
3236 $(libsubdir) as libexecsubdir.
3237
3238 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3239
3240 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
3241 relied on signed overflow behavior.
3242
3243 2012-05-18 Richard Guenther <rguenther@suse.de>
3244
3245 PR tree-optimization/53346
3246 * tree-loop-distribution.c (ldist_gen): Make sure to apply
3247 builtin transform even when only a single partition with
3248 all reads/writes exists.
3249
3250 2012-05-18 Richard Guenther <rguenther@suse.de>
3251
3252 PR tree-optimization/53390
3253 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
3254 strided loads.
3255
3256 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3257
3258 * tree-ssa-reassoc.c (bip_map): Remove decl.
3259 (completely_remove_stmt): Remove function.
3260 (remove_def_if_absorbed_call): Remove function.
3261 (remove_visited_stmt_chain): Remove __builtin_powi handling.
3262 (possibly_move_powi): Remove function.
3263 (rewrite_expr_tree): Remove calls to possibly_move_powi.
3264 (rewrite_expr_tree_parallel): Likewise.
3265 (attempt_builtin_powi): Build multiplies explicitly rather than
3266 relying on the ops vector and rank system.
3267 (transform_stmt_to_copy): New function.
3268 (transform_stmt_to_multiply): Likewise.
3269 (reassociate_bb): Handle leftover operations after __builtin_powi
3270 optimization; build a final multiply if necessary.
3271
3272 2012-05-18 Jan Hubicka <jh@suse.cz>
3273
3274 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
3275 (mark_functions_to_output): Fix sanity check.
3276 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
3277
3278 2012-05-18 Richard Guenther <rguenther@suse.de>
3279
3280 * tree-flow.h (mark_symbols_for_renaming): Remove.
3281 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
3282 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
3283 (copy_debug_stmt): Likewise.
3284 (expand_call_inline): Likewise.
3285 (declare_return_variable): Mark the return variable for renaming
3286 if necessary.
3287
3288 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
3289
3290 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
3291 prototype.
3292 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
3293 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
3294 (ashrdi3,lshrdi3): Likewise.
3295 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
3296
3297 2012-05-18 Meador Inge <meadori@codesourcery.com>
3298
3299 PR rtl-optimization/53352
3300 * cse.c (equiv_constant): Ignore paradoxical subregs.
3301
3302 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
3303
3304 PR rtl-optimization/53125
3305 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
3306 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
3307 die in the basic block. Correctly top off REG_FREQ and
3308 REG_FREQ_CALLS_CROSSED.
3309 Remove do_not_gen.
3310 (regstat_compute_ri): Allocate and free local_live_last_luid.
3311 Remove do_not_gen.
3312 (regstat_bb_compute_calls_crossed): Correctly top off
3313 REG_FREQ_CALLS_CROSSED.
3314
3315 2012-05-17 Jan Hubicka <jh@suse.cz>
3316
3317 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
3318 constructor over decl without.
3319 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
3320 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
3321 * cgraphunit.c (process_function_and_variable_attributes): Finalize
3322 extrnal decls.
3323 (mark_functions_to_output): Also accept bodies for functions with
3324 clones.
3325 (output_in_order): Skip external vars.
3326 * lto-cgraph.c (lto_output_node): External functions are never in other
3327 partition.
3328 (lto_output_varpool_node): Likewise.
3329 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
3330 forgotten initializers.
3331 * ipa.c (process_references): Handle external vars.
3332 (symtab_remove_unreachable_nodes): Update to handle external vars.
3333 (varpool_externally_visible_p): External vars are externally visible.
3334 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3335 * varpool.c (varpool_remove_node): Remove constructor.
3336 (decide_is_variable_needed): Handle externals.
3337 (varpool_remove_unreferenced_decls): Likewise.
3338
3339 2012-05-17 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
3340
3341 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
3342 (enable_warning_as_error): Do not special case Wuninitialized.
3343 * optc-gen.awk: Add sanity checks.
3344
3345 2012-05-17 Jan Hubicka <jh@suse.cz>
3346
3347 * ipa-reference.c (is_proper_for_analysis): Do not check flags
3348 that might change as result of global optimization.
3349 (analyze_function): Do not check analyzed and externally_visible
3350 flags; be happy about address dereferences.
3351 (propagate): Prune all_module_statics so it really contains just
3352 statics; prune all the local summaries.
3353 (ipa_reference_write_optimization_summary): Simplify.
3354
3355 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
3356
3357 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
3358 * config/m68k/m68k-tables.opt: Regenerated.
3359 * doc/invoke.texi (M680x0 Options): Document.
3360
3361 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
3362 Patrick Marlier <patrick.marlier@gmail.com>
3363
3364 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
3365 indirect calls.
3366
3367 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
3368
3369 * configure: Regenerated.
3370
3371 2012-05-16 Andrew Pinski <apinski@cavium.com>
3372
3373 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
3374 GIMPLE_ASSIGN.
3375
3376 2012-05-16 David S. Miller <davem@davemloft.net>
3377
3378 * jump.c (delete_related_insns): If we remove a CALL, make sure
3379 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
3380
3381 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3382
3383 PR tree-optimization/53217
3384 * tree-ssa-reassoc.c (bip_map): New static variable.
3385 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
3386 (attempt_builtin_powi): Save feeding multiplies on a stack.
3387 (reassociate_bb): Create and destroy bip_map.
3388
3389 2012-05-16 Olivier Hainque <hainque@adacore.com>
3390
3391 * Makefile.in (install-no-fixedincludes): New target, former toplevel
3392 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
3393 Add comments and improve stamp preservation across the whole sequence.
3394 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
3395
3396 2012-05-16 Richard Guenther <rguenther@suse.de>
3397
3398 * tree-inline.c (insert_init_stmt): Do not call
3399 mark_symbols_for_renaming.
3400 (setup_one_parameter): Avoid initializing unused parameters.
3401 (declare_return_variable): Properly handle DECL_BY_REFERENCE
3402 return vars in SSA form.
3403
3404 2012-05-16 Richard Guenther <rguenther@suse.de>
3405
3406 * tree-flow.h (get_virtual_var): Remove.
3407 * tree-dfa.c (get_virtual_var): Likewise.
3408
3409 2012-05-16 Richard Guenther <rguenther@suse.de>
3410
3411 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
3412 Remove set-only bitmap of new names.
3413 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
3414 CFG hooks.
3415 * tree-flow.h (ssa_names_to_replace): Remove.
3416 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
3417
3418 2012-05-16 Richard Guenther <rguenther@suse.de>
3419
3420 PR tree-optimization/53364
3421 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3422 detect a view-conversion of the decl.
3423
3424 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3425
3426 PR preprocessor/7263
3427 * c-tree.h (enum c_declspec_word): Declare new enum.
3428 (struct c_declspecs::locations): New member.
3429 (declspecs_add_qual, declspecs_add_scspec)
3430 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
3431 location parameter.
3432 * c-decl.c (build_null_declspecs): Initialize the new struct
3433 c_declspecs::locations member.
3434 (declspecs_add_addrspace): Take a location parameter for the
3435 address space. Store it onto declaration specifiers.
3436 (declspecs_add_qual): Likewise, take a location parameter for the
3437 qualifier.
3438 (declspecs_add_type): Likewise, take a location parameter for the
3439 type specifier.
3440 (declspecs_add_scspec): Likewise, take a location parameter for
3441 the storage class specifier.
3442 (declspecs_add_attrs): Likewise, take a location parameter for the
3443 first attribute.
3444 (declspecs_add_alignas): Likewise, take a location parameter for
3445 the alignas token.
3446 (finish_declspecs): For diagnostics, use the location of the
3447 relevant declspec, instead of the global input_location.
3448 * c-parser.c (c_parser_parameter_declaration): Pass the precise
3449 virtual location of the declspec to the declspecs-setters.
3450 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
3451 repeatedly.
3452
3453 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
3454
3455 * configure.ac: Stack protector enabling for Android targets.
3456 * configure: Regenerate.
3457
3458 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
3459
3460 * ira.c (pseudo_move_insn): Delete.
3461 (find_moveable_pseudos): Don't set it.
3462 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
3463 the definitions of the original pseudo. Delete all of them.
3464
3465 2012-05-16 Olivier Hainque <hainque@adacore.com>
3466
3467 * config/rs6000/rs6000-opts.h (enum processor_type): Add
3468 PROCESSOR_PPC8548.
3469 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
3470 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
3471 * config/rs6000/8540.md: indicate that the units/patterns apply to
3472 ppc8548 as well.
3473
3474 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
3475 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
3476 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
3477 related flags, check that what is queried is supported by the selected
3478 configuration. Rework the single/double_float and MASK_STRING resets to
3479 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
3480 costs for PROCESSOR_PPC8548 as well.
3481 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
3482 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
3483 statement instead of a sequence of ifs.
3484
3485 * config/rs6000/rs6000.h (TARGET_E500): Remove.
3486 (TARGET_NO_LWSYNC): Adjust accordingly.
3487 * config/rs6000/e500.h (TARGET_E500): Remove.
3488 (CHECK_E500_OPTIONS): Adjust accordingly.
3489 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
3490 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
3491 * config/rs6000/linuxspe.h: Likewise.
3492 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
3493 superfluous comments.
3494 * config/rs6000/e500-double.h: Remove.
3495
3496 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
3497 default to with_cpu=8548 if --enable-e500-double, and to 8540
3498 otherwise.
3499 (set misc flags section): For powerpc*|rs6000*, remove inclusion
3500 of e500-double.h for --enable-e500-double.
3501
3502 2012-05-16 Olivier Hainque <hainque@adacore.com>
3503
3504 * Makefile.in (s-header-vars): Resort to -n instead of trailing
3505 -e d in sed invocation.
3506
3507 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
3508
3509 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
3510 source-code.
3511 * doc/tm.texi: Regenerate.
3512
3513 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3514
3515 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
3516
3517 2012-05-15 Jakub Jelinek <jakub@redhat.com>
3518
3519 PR target/53358
3520 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
3521 that operands[2] is either immediate, or q_regs_operand.
3522
3523 2012-05-15 Richard Guenther <rguenther@suse.de>
3524
3525 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
3526 (assemble_thunk): Likewise. Manually rename and register
3527 function arguments.
3528
3529 2012-05-15 Richard Guenther <rguenther@suse.de>
3530
3531 PR tree-optimization/53355
3532 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
3533 by constants.
3534
3535 2012-05-15 Tristan Gingold <gingold@adacore.com>
3536
3537 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
3538
3539 2012-05-15 Richard Guenther <rguenther@suse.de>
3540
3541 * gimple.c (gimple_set_modified): Move ...
3542 * gimple.h (gimple_set_modified): ... here.
3543
3544 2012-05-15 Tristan Gingold <gingold@adacore.com>
3545
3546 * ira-color.c (move_spill_restore): Add a guard.
3547
3548 2012-05-15 Tristan Gingold <gingold@adacore.com>
3549
3550 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
3551 plus_constant.
3552
3553 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
3554
3555 * gimplify.c (gimplify_init_constructor): Do a block move for very
3556 small objects as well.
3557
3558 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
3559
3560 * ira.c (find_moveable_pseudos): Skip registers whose
3561 DF_REG_EQ_USE_COUNT is nonzero.
3562
3563 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
3564
3565 * doc/md.texi (fma): Define to only be applicable for single rounding.
3566
3567 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
3568
3569 PR target/46098
3570 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
3571 generate target register for "load" class builtins.
3572
3573 Revert:
3574 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
3575
3576 PR target/46098
3577 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3578 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3579 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3580 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3581 (<sse>_movu<ssemodesuffix>): New expander.
3582 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3583 (avx_movdqu<avxmodesuffix>): New expander.
3584 (*sse2_movdqu): Rename from sse2_movdqu.
3585 (sse2_movdqu): New expander.
3586
3587 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
3588
3589 PR target/52607
3590 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
3591 (canonicalize_perm): ... new function.
3592 (expand_vec_perm_2vperm2f128_vshuf): New function.
3593 (ix86_expand_vec_perm_const_1): Call it.
3594
3595 2012-05-14 Andrew Pinski <apinski@cavium.com>
3596 H.J. Lu <hongjiu.lu@intel.com>
3597 Jakub Jelinek <jakub@redhat.com>
3598
3599 PR target/53315
3600 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
3601 (xbegin): Updated.
3602
3603 2012-05-14 Jakub Jelinek <jakub@redhat.com>
3604
3605 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
3606 lineno 1 the same as lineno 0 before first start file directive.
3607 (optimize_macinfo_range): Likewise.
3608
3609 * dwarf2out.c (have_macinfo): Define.
3610 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
3611 attribute, don't force empty compilation unit and don't emit any
3612 .debug_macinfo/.debug_macro section if macinfo_table is empty.
3613
3614 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
3615
3616 PR target/53344
3617 * config/avr/avr.c (avr_const_address_lo16): Remove.
3618 (avr_assemble_integer): Print ".byte lo8(x)",
3619 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
3620 .warning if 3-byte address is assembled.
3621 * doc/extend.texi (AVR Named Address Spaces): Document that
3622 binutils 2.23 is needed to assemble 3-byte addresses.
3623
3624 2012-05-14 Richard Guenther <rguenther@suse.de>
3625
3626 * tree-vect-data-refs.c (vect_setup_realignment): Remove
3627 call to mark_symbols_for_renaming.
3628 (vect_permute_load_chain): Likewise.
3629 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
3630 instead of calling mark_symbols_for_renaming.
3631 * tree-vect-stmts.c (read_vector_array): Remove call to
3632 mark_symbols_for_renaming.
3633 (write_vector_array): Likewise.
3634 (vectorizable_call): Likewise.
3635 (vectorizable_store): Likewise.
3636 (vectorizable_load): Likewise.
3637 * matrix-reorg.c (transform_allocation_sites): Likewise.
3638 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
3639 (create_expression_by_pieces): Likewise.
3640
3641 2012-05-14 Richard Guenther <rguenther@suse.de>
3642
3643 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
3644 of statements for renaming.
3645 (force_gimple_operand_1): Likewise, consistently for both
3646 calls to force_gimple_operand and force_gimple_operand_gsi.
3647
3648 2012-05-14 Richard Guenther <rguenther@suse.de>
3649
3650 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
3651 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
3652 to update_ssa.
3653 (expand_omp_for): Likewise.
3654 (expand_omp_for_generic): Adjust conditional add to referenced vars.
3655 Use make_rename_temp for temporaries that should be rewritten into
3656 SSA form.
3657 (expand_omp_for_static_nochunk): Likewise.
3658 (expand_omp_atomic_pipeline): Likewise.
3659
3660 2012-05-14 Richard Guenther <rguenther@suse.de>
3661
3662 PR tree-optimization/53331
3663 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
3664 strided loads.
3665 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
3666
3667 2012-05-14 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
3668
3669 PR 53063
3670 * doc/options.texi: (LangEnabledBy): Document it.
3671 * optc-gen.awk: Handle LangEnabledBy.
3672 * opth-gen.awk: Generate declaration for lang-specific functions.
3673 * opt-read.awk: Record lang numbers.
3674 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
3675 (lang_sanitized_name): New.
3676
3677 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3678
3679 * attribs.c (decl_attributes): Avoid emitting a warning if
3680 ATTR_FLAG_BUILT_IN.
3681 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
3682 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
3683 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
3684 define a string "1".
3685 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
3686 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
3687 BUILT_IN_STRCPY): Use it for these functions.
3688 * postreload.c (reload_combine): Deal with SETs inside
3689 CALL_INSN_FUNCTION_USAGE.
3690 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
3691 Look for REG_RETURNED notes and use a cheap restore if possible.
3692 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
3693 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
3694 * ira-build.c (ira_create_allocno, create_cap_allocno,
3695 propagate_allocno_info, propagate_some_info_from_allocno,
3696 copy_info_to_removed_store_destination, ira_flattening): Handle it.
3697 * ira-lives.c (pseudo_regno_single_word_and_live_p,
3698 find_call_crossed_cheap_reg): New static functions.
3699 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
3700 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
3701 a REG_RETURNED note in that case.
3702 * ira.c (setup_reg_renumber): Change assert to allow cases where
3703 allocnos only cross calls for which they are cheap to restore.
3704 * ira-costs.c (ira_tune_allocno_costs): Compare
3705 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
3706 than 0.
3707 * reg-notes.def (REG_RETURNED): New note.
3708 * cse.c (cse_insn): Likewise.
3709 * sched-deps.c (sched_analyze_insn): Likewise.
3710 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
3711 * calls.c (decl_return_flags): New static function.
3712 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
3713 functions that return one of their arguments.
3714 * regcprop.c (struct kill_set_value_data): New.
3715 (kill_set_value): Interpret data as a pointer to such a struct.
3716 Do nothing if the caller wants the register to be ignored.
3717 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
3718
3719 2012-05-14 Richard Guenther <rguenther@suse.de>
3720
3721 PR tree-optimization/53340
3722 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
3723
3724 2012-05-14 Richard Guenther <rguenther@suse.de>
3725
3726 * gimplify.c (gimplify_expr): Remove odd code.
3727
3728 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
3729
3730 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
3731 into a PLUS_EXPR byte offset.
3732
3733 * tree-ssa-pre.c (can_value_number_call): Delete.
3734 (compute_avail): Skip all statements with side effects.
3735 <GIMPLE_CALL>: Skip calls to internal functions.
3736
3737 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
3738
3739 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
3740
3741 2012-05-13 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
3742
3743 * common.opt (Wtype-limits): Use EnabledBy.
3744
3745 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
3746
3747 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
3748 (pushtf splitter): Ditto.
3749 (movtf): Ditto.
3750 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
3751 (<code>tf2): Enable for TARGET_SSE.
3752 (*absnegtf2_sse): Ditto.
3753 (copysign<mode>3): Enable TFmode for TARGET_SSE.
3754 (copysign<mode>3_const): Ditto.
3755 (copysign<mode>3_var): Ditto.
3756 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
3757 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
3758 (*<code>tf3): Ditto.
3759 * config/i386/i386.c (struct builtin_description bdesc_args)
3760 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
3761 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
3762 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
3763 Emit a normal call if SSE isn't available.
3764
3765 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
3766
3767 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
3768 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3769 (<code><mode>3): Ditto.
3770 (*andnot<mode>3): Ditto.
3771 (*andnottf3): Ditto.
3772 (*<code><mode>3): Ditto.
3773 (<code>tf3): Ditto.
3774
3775 2012-05-13 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
3776
3777 * optc-gen.awk: Error instead of warning for conflicting help.
3778
3779 2012-05-12 Jason Merrill <jason@redhat.com>
3780
3781 PR debug/53235
3782 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
3783 comdat types.
3784
3785 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
3786
3787 * function.c (requires_stack_frame_p): If the function can throw
3788 non-call exceptions, return true if the insn can throw internally.
3789
3790 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
3791
3792 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
3793
3794 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
3795
3796 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
3797 ORDERED and UNORDERED conditions.
3798
3799 2012-05-11 Richard Guenther <rguenther@suse.de>
3800
3801 * tree-flow.h (referenced_var_check_and_insert): Remove.
3802 (find_new_referenced_vars): Likewise.
3803 * tree-dfa.c (referenced_var_check_and_insert): Make static.
3804 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
3805 * tree-inline.c (copy_bb): Use find_referenced_vars_in
3806 instead of find_new_referenced_vars.
3807 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
3808
3809 2012-05-11 Richard Guenther <rguenther@suse.de>
3810
3811 * tree-pass.h (pass_rest_of_compilation,
3812 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
3813 Remove.
3814 * passes.c (pass_all_optimizations, pass_postreload,
3815 pass_all_early_optimizations): Make static.
3816 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
3817 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
3818 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
3819 (delete_tree_ssa): Do not call fini_phinodes.
3820 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
3821
3822 2012-05-11 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
3823
3824 PR 53063
3825 * doc/options.texi (EnabledBy): Document
3826 * opts.c: Include opts.h and options.h before tm.h.
3827 (finish_options): Do not handle some sub-options here...
3828 (common_handle_option): ... instead call common_handle_option_auto
3829 here.
3830 * optc-gen.awk: Handle EnabledBy.
3831 * opth-gen.awk: Declare common_handle_option_auto.
3832 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
3833 (Wmaybe-uninitialized): Likewise.
3834 (Wunused-but-set-variable): Likewise.
3835 (Wunused-function): Likewise.
3836 (Wunused-label): Likewise.
3837 (Wunused-value): Likewise.
3838 (Wunused-variable): Likewise.
3839 * opt-read.awk: Create opt_numbers array.
3840
3841 2012-05-11 Richard Guenther <rguenther@suse.de>
3842
3843 PR tree-optimization/53295
3844 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
3845 strides.
3846 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
3847 strides when analyzing data-references in a loop context.
3848 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
3849 non-constant strides for now.
3850 (vect_enhance_data_refs_alignment): Ignore data references
3851 that are strided loads.
3852 (vect_analyze_data_ref_access): Handle non-constant strides.
3853 (vect_check_strided_load): Verify the data-reference is a load.
3854 (vect_analyze_data_refs): Restructure to make strided load
3855 support not dependent on gather support.
3856 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
3857 when doing strided or gather loads.
3858 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
3859 integer_zerop to compare stride with zero.
3860
3861 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3862
3863 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
3864
3865 2012-05-11 Jan Hubicka <jh@suse.cz>
3866
3867 PR bootstrap/53300
3868 * varpool.c (varpool_assemble_decl): Also output constat pool entries
3869 that output_constant_pool missed.
3870
3871 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
3872
3873 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
3874 MULTILIB_EXTRA_OPTS.
3875
3876 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
3877
3878 PR target/53291
3879 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
3880
3881 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
3882
3883 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
3884 optimization for TARGET_AVX.
3885 (*movti_internal_sse): Ditto.
3886 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3887 (*movdi_internal): Ditto.
3888 (*movsi_internal): Ditto.
3889 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
3890 (*movdf_internal_rex64): Ditto.
3891 (*movfd_internal): Ditto.
3892 (*movsf_internal): Ditto.
3893 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
3894
3895 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
3896
3897 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
3898 reference as size attribute.
3899
3900 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
3901 Tristan Gingold <gingold@adacore.com>
3902
3903 * doc/md.texi (Standard Names): Document probe_stack_address.
3904 * explow.c (emit_stack_probe): Handle probe_stack_address.
3905 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
3906 (UNSPECV_PROBE_STACK_RANGE): Likewise.
3907 (probe_stack_address): New insn.
3908 (probe_stack_range): Likewise.
3909 * config/ia64/ia64.c: Include common/common-target.h.
3910 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
3911 checking is enabled.
3912 (ia64_emit_probe_stack_range): New function.
3913 (output_probe_stack_range): Likewise.
3914 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
3915 builtin stack checking is enabled.
3916 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
3917 and UNSPECV_PROBE_STACK_ADDRESS.
3918 (unknown_for_bundling_p): New predicate.
3919 (group_barrier_needed): Use important_for_bundling_p.
3920 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
3921 (issue_nops_and_insn): Likewise.
3922 (bundling): Likewise.
3923 (final_emit_insn_group_barriers): Likewise.
3924 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
3925 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
3926 (STACK_CHECK_PROTECT): Likewise.
3927 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3928
3929 2012-05-10 Jan Hubicka <jh@suse.cz>
3930
3931 * ipa-inline.c (update_all_callee_keys): Remove.
3932 (inline_small_functions): Simplify priority updating.
3933
3934 2012-05-10 Jan Hubicka <jh@suse.cz>
3935
3936 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
3937
3938 2012-05-10 Jan Hubicka <jh@suse.cz>
3939
3940 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
3941 (symtab_remove_unreachable_nodes): ... this one.
3942 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
3943 * cgraphunit.c (ipa_passes): Update.
3944 * cgraphclones.c (cgraph_materialize_all_clones): Update.
3945 * cgraph.c (cgraph_release_function_body): Only turn initial
3946 into error mark when initial was previously set.
3947 * ipa-inline.c (ipa_inline): Update.
3948 * ipa.c: Include ipa-inline.h
3949 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
3950 (enqueue_node): New function.
3951 (process_references): Update.
3952 (symtab_remove_unreachable_nodes): Cleanup.
3953 * passes.c (execute_todo, execute_one_pass): Update.
3954
3955 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
3956
3957 PR rtl-optimization/53125
3958 * ira.c (ira): Call find_moveable_pseudos and
3959 move_unallocated_pseudos if only ira_conflicts_p is true.
3960
3961 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
3962
3963 * config/i386/i386.md (*movoi_internal_avx): Handle
3964 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
3965 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
3966 (*movti_internal_sse): Ditto.
3967 (*movtf_internal): Ditto.
3968 * config/i386/sse.md (ssePSmode): New mode attribute.
3969 (*move<mode>_internal): Use ssePSmode.
3970 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
3971 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
3972 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
3973 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
3974
3975 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
3976
3977 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
3978 DECL_ORIGINAL_TYPE if it is present.
3979
3980 2012-05-10 Nick Clifton <nickc@redhat.com>
3981
3982 PR target/53120
3983 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
3984 a "0" constraint to being a (match_dup 0).
3985
3986 2012-05-10 Richard Guenther <rguenther@suse.de>
3987
3988 * stor-layout.c (byte_from_pos): Amend comment.
3989
3990 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3991
3992 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
3993 Document requirement to call in constructors.
3994
3995 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
3996
3997 2012-05-10 Richard Guenther <rguenther@suse.de>
3998
3999 * tree.h (TYPE_IS_SIZETYPE): Remove.
4000 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
4001 (extract_muldiv_1): Likewise.
4002 * gimple.c (gtc_visit): Likewise.
4003 (gimple_types_compatible_p): Likewise.
4004 (iterative_hash_canonical_type): Likewise.
4005 (gimple_canonical_types_compatible_p): Likewise.
4006 * gimplify.c (gimplify_one_sizepos): Likewise.
4007 * print-tree.c (print_node): Likewise.
4008 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
4009
4010 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
4011
4012 PR target/52908
4013 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
4014 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
4015 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
4016 instead of xop_mulv2div2di3_low.
4017 (xop_p<macs>dql): Fix vec_select selector.
4018 (xop_p<macs>dqh): Ditto.
4019 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
4020 (xop_mulv2div2di3_high): Ditto.
4021
4022 2012-05-09 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
4023
4024 PR c++/53289
4025 * diagnostic.h (diagnostic_context): Add last_location.
4026 * diagnostic.c (diagnostic_initialize): Initialize it.
4027 (diagnostic_show_locus): Use it.
4028
4029 2012-05-09 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
4030
4031 * doc/extend.texi (Function Attributes): Point xref to section
4032 about Pragmas.
4033
4034 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
4035
4036 * config/i386/i386.c (*movdf_internal_rex64): Remove
4037 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4038 Calculate "mode" attribute according to
4039 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4040 (*movdf_internal): Ditto.
4041
4042 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
4043
4044 PR target/44141
4045 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
4046 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
4047 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4048 or when optimizing for size.
4049 * config/i386/sse.md (*mov<mode>_internal): Remove
4050 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
4051 Calculate "mode" attribute according to optimize_function_for_size_p
4052 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
4053 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
4054 depending on the mode of the instruction. Calculate "mode" attribute
4055 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
4056 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
4057 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
4058
4059 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
4060
4061 PR target/53256
4062 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
4063 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
4064 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
4065 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
4066 (expand_prologue): Move initialization of cfun->machine->is_naked,
4067 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
4068 (avr_set_current_function): ...this new static function.
4069 (TARGET_SET_CURRENT_FUNCTION): New define.
4070 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
4071 checking attributes of current_function_decl.
4072 (avr_regs_to_save): Ditto.
4073 (signal_function_p): Rename to avr_signal_function_p.
4074 (interrupt_function_p): Rename to avr_interrupt_function_p.
4075
4076 * doc/extend.texi (Function Attributes): Better explanation of
4077 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
4078 alphabetical order.
4079
4080 2012-05-09 Michael Matz <matz@suse.de>
4081
4082 PR tree-optimization/53185
4083 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
4084 peeling when we see strided loads.
4085
4086 2012-05-09 Matthias Klose <doko@ubuntu.com>
4087
4088 * gcc-ar.c (main): Don't check for execute bits for the plugin.
4089
4090 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4091
4092 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
4093 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
4094 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
4095 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
4096 (USE_LOAD_POST_INCREMENT): Define.
4097 (USE_LOAD_PRE_INCREMENT): Define.
4098 (USE_LOAD_POST_DECREMENT): Define.
4099 (USE_LOAD_PRE_DECREMENT): Define.
4100 (USE_STORE_PRE_DECREMENT): Define.
4101 (USE_STORE_PRE_INCREMENT): Define.
4102 (USE_STORE_POST_DECREMENT): Define.
4103 (USE_STORE_POST_INCREMENT): Define.
4104 (arm_auto_incmodes): Add enumeration.
4105 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
4106 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
4107
4108 2012-05-09 Jakub Jelinek <jakub@redhat.com>
4109
4110 PR tree-optimization/53226
4111 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
4112 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
4113 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
4114 doesn't need to be revisited, look for earliest stmt with
4115 !gimple_plf (stmt, GF_PLF_1) if something changed.
4116
4117 2012-05-09 Terry Guo <terry.guo@arm.com>
4118
4119 * genmultilib: Update copyright dates.
4120 * doc/fragments.texi: Ditto.
4121
4122 2012-05-09 Terry Guo <terry.guo@arm.com>
4123
4124 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
4125 * genmultilib (MULTILIB_REQUIRED): New.
4126 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
4127
4128 2012-05-09 Richard Guenther <rguenther@suse.de>
4129
4130 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4131 (vect_do_peeling_for_loop_bound): Likewise.
4132 (vect_do_peeling_for_alignment): Likewise.
4133 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
4134 (vect_do_peeling_for_loop_bound): Get check_profitability and
4135 threshold as parameters.
4136 (vect_do_peeling_for_alignment): Likewise.
4137 (vect_loop_versioning): Likewise.
4138 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
4139 and threshold here. Control where to put the check here.
4140
4141 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
4142
4143 PR middle-end/53249
4144 * dwarf2out.h (get_address_mode): Move declaration to...
4145 * rtl.h: ...here.
4146 * dwarf2out.c (get_address_mode): Move definition to...
4147 * rtlanal.c: ...here.
4148 * var-tracking.c (get_address_mode): Delete.
4149 * combine.c (find_split_point): Use get_address_mode instead of
4150 targetm.addr_space.address_mode.
4151 * cselib.c (cselib_record_sets): Likewise.
4152 * dse.c (canon_address, record_store): Likewise.
4153 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
4154 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
4155 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
4156 (expand_expr_real_1): Likewise.
4157 * ifcvt.c (noce_try_cmove_arith): Likewise.
4158 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
4159 * reload.c (find_reloads): Likewise.
4160 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
4161 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
4162
4163 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
4164
4165 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
4166 information from the instruction produced.
4167
4168 2012-05-09 Richard Guenther <rguenther@suse.de>
4169
4170 * stor-layout.c (bit_from_pos): Document.
4171 (byte_from_pos): Likewise. Optimize.
4172 (pos_from_bit): Likewise.
4173 (normalize_offset): Use pos_from_bit instead of replicating it.
4174
4175 2012-05-09 Alan Modra <amodra@gmail.com>
4176
4177 PR target/53271
4178 * config/rs6000/rs6000.c (gen_frame_set): New function.
4179 (gen_frame_load, gen_frame_store): New functions.
4180 (rs6000_savres_rtx): Use the above.
4181 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
4182 Correct mode used for CR2 in save/restore_world patterns.
4183 Don't emit instructions for eh_return frame unwind reg info.
4184
4185 2012-05-08 Jan Hubicka <jh@suse.cz>
4186
4187 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
4188 with VALUE_EXPR.
4189 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
4190 are removable.
4191 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
4192 need to wrapup.
4193 (compile_file): Do not output variables.
4194 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
4195 output it.
4196 * langhooks.c: Include timevar.h
4197 (write_global_declarations): Finalize compilation unit after wrapup;
4198 set timevars correctly.
4199 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
4200 not to be added to varpool.
4201 * varpool.c (varpool_assemble_decl): Sanity check that we are called
4202 only on cases where it makes sense; skip constant pool and value expr
4203 vars.
4204
4205 2012-05-08 David S. Miller <davem@davemloft.net>
4206
4207 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
4208 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
4209 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
4210
4211 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
4212
4213 PR rtl-optimization/53278
4214 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
4215 speed_p code from earlier patch.
4216
4217 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
4218
4219 PR target/51244
4220 * config/sh/sh.md (*branch_true, *branch_false): New insns.
4221
4222 2012-05-08 Teresa Johnson <tejohnson@google.com>
4223
4224 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
4225 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
4226
4227 2012-05-08 Jan Hubicka <jh@suse.cz>
4228
4229 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
4230 (cgraph_create_node_1): Rename to ...
4231 (cgraph_create_empty_node): ... this one; export.
4232 (cgraph_create_node): Update.
4233 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
4234 (cgraph_create_edge_including_clones): Likewise.
4235 (cgraph_find_replacement_node): Likewise.
4236 (cgraph_clone_edge): Likewise.
4237 (cgraph_clone_node): Likewise.
4238 (clone_function_name): Likewise.
4239 (cgraph_create_virtual_clone): Likewise.
4240 (cgraph_remove_node_and_inline_clones): Likewise.
4241 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
4242 * cgraph.h: Reorder declarations so they match file of origin.
4243 (cgraph_create_empty_node): Declare.
4244 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
4245 (cgraph_copy_node_for_versioning): Likewise.
4246 (cgraph_function_versioning): Likewise.
4247 (cgraph_materialize_clone): Likewise.
4248 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4249 (cgraph_materialize_all_clones): Likewise.
4250 * cgraphclones.c: New file.
4251 * Makefile.in: Update for cgraphclones.
4252
4253 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
4254
4255 PR target/53176
4256 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
4257 (ix86_rtx_costs): Handle SET.
4258
4259 2012-05-08 Michael Matz <matz@suse.de>
4260
4261 * basic-block.h (struct rtl_bb_info): Remove visited member and
4262 move head_ member to ...
4263 (struct basic_block_def.basic_block_il_dependent): ... the new
4264 member x, replacing but containing old member rtl.
4265 (enum bb_flags): New BB_VISITED flag.
4266 (BB_HEADER, BB_FOOTER): New macros.
4267
4268 * jump.c (mark_all_labels): Adjust.
4269 * cfgcleanup.c (try_optimize_cfg): Adjust.
4270 * cfglayout.c (record_effective_endpoints): Adjust.
4271 (relink_block_chain): Ditto (and don't fiddle with visited).
4272 (fixup_reorder_chain): Adjust.
4273 (fixup_fallthru_exit_predecessor): Ditto.
4274 (cfg_layout_duplicate_bb): Ditto.
4275 * combine.c (update_cfg_for_uncondjump): Adjust.
4276 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
4277 (bb_visited_trace): New accessor.
4278 (mark_bb_visited): Move in front.
4279 (rotate_loop): Use bb_visited_trace.
4280 (find_traces_1_round): Ditto.
4281 (emit_barrier_after): Ditto.
4282 (copy_bb): Ditto, and initialize visited on resize.
4283 (reorder_basic_blocks): Initize visited member.
4284 (duplicate_computed_gotos): Clear bb flags at start, use
4285 BB_VISITED flags.
4286
4287 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
4288 (rtl_verify_flow_info_1): Ditto.
4289 (cfg_layout_split_block): Ditto.
4290 (cfg_layout_delete_block): Ditto.
4291 (cfg_layout_merge_blocks): Ditto.
4292 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
4293
4294 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
4295
4296 PR target/53272
4297 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
4298 when a constant source operand matches an "I" constraint, the "no
4299 CC0 change" applies to a register-destination only, not a
4300 strict_low_part-destination.
4301
4302 2012-05-08 Richard Guenther <rguenther@suse.de>
4303
4304 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
4305 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
4306
4307 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
4308
4309 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
4310
4311 * doc/avr-mmcu.texi: New auto-generated file.
4312 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
4313 to document all valid -mmcu= arguments.
4314
4315 * config/avr/avr.h (arch_info_s): New struct definition.
4316 * config/avr/avr-devices.c (avr_texinfo): New variable.
4317 * config/avr/gen-avr-mmcu-texi.c: New file.
4318 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
4319
4320 2012-05-08 Dehao Chen <dehao@google.com>
4321
4322 * predict.c (find_qualified_ssa_name): New.
4323 (find_ssa_name_in_expr): New.
4324 (find_ssa_name_in_assign_stmt): New.
4325 (is_comparison_with_loop_invariant_p): New.
4326 (is_bound_expr_similar): New.
4327 (predict_iv_comparison): New.
4328 (predict_loops): Add heuristic for loop-nested branches that compare an
4329 induction variable to a loop bound variable.
4330 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
4331
4332 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
4333
4334 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
4335 TARGET_BDVER2 defines where appropriate.
4336
4337 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
4338
4339 * configure.ac (PLUGIN_LD): Rename into...
4340 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
4341 * config.in: Regenerate.
4342 * configure: Likewise.
4343 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
4344
4345 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
4346
4347 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
4348 computation using the precision of the index type.
4349 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
4350 (fold_array_ctor_reference): Do index computations in the index type.
4351
4352 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
4353
4354 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
4355 down to plus_constant.
4356 (expand_epilogue): Ditto.
4357
4358 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4359
4360 * postreload.c (reload_cse_regs): Make static.
4361 * reload.h (reload_cse_regs): Remove prototype.
4362
4363 2012-05-07 Richard Henderson <rth@redhat.com>
4364
4365 * config/alpha/alpha.md (clear_cache): New pattern.
4366
4367 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4368
4369 PR middle-end/53245
4370 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
4371 is folded to a type boundary value, verify that the resulting case
4372 label is still a care range.
4373
4374 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
4375
4376 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
4377 only for TARGET_GENERIC, when not optimizing for size.
4378 (*ffs<mode>_1): Ditto.
4379
4380 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4381
4382 * tree-cfg.c (verify_gimple_switch): Tighten checks.
4383
4384 2012-05-07 Jakub Jelinek <jakub@redhat.com>
4385
4386 PR tree-optimization/53239
4387 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
4388 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
4389
4390 2012-05-07 Richard Guenther <rguenther@suse.de>
4391
4392 PR tree-optimization/53195
4393 * tree-inline.c (setup_one_parameter): Properly add referenced
4394 vars from the parameters new known value.
4395
4396 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
4397
4398 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
4399 (sched_branch_type): Remove.
4400 (m68k_sched_md_init_global): Don't allocate it.
4401 (m68k_sched_md_finish_global): Don't free it.
4402 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
4403 * config/m68k/m68k.md: Set the type of insns using
4404 m68k_sched_branch_type to bcc directly.
4405
4406 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4407
4408 * config/sol2.c (solaris_override_options): New function.
4409 * config/sol2-protos.h (solaris_override_options): Declare.
4410 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
4411
4412 2012-05-07 Richard Guenther <rguenther@suse.de>
4413
4414 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
4415 whether we failed to compute data dependences.
4416 (loop_prefetch_arrays): Fail if we failed.
4417
4418 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
4419 Paolo Bonzini <bonzini@gnu.org>
4420
4421 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
4422 Emit bsf when optimizing for size.
4423 (*ffs<mode>_1): Ditto.
4424
4425 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
4426
4427 PR target/53250
4428 * config/sh/sh.c (sh_rtx_costs): Handle SET.
4429
4430 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
4431
4432 PR target/53227
4433 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
4434 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
4435 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
4436 (bswapsi2): Ditto.
4437 (*bswapdi2_doubleword): New insn pattern.
4438 (*bswap<mode>2): Rename from *bswap<mode>2_1.
4439
4440 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
4441
4442 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
4443 (mips_set_reg_reg_cost): Likewise.
4444 (mips_rtx_costs): Handle SET.
4445
4446 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
4447
4448 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
4449 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
4450 to compute the cost of moves. Set the mode of the target register.
4451
4452 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
4453
4454 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
4455 plus_constant function.
4456 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
4457 that the mode is sensible.
4458 (use_anchored_address, round_push, allocate_dynamic_stack_space)
4459 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
4460 plus_constant.
4461
4462 * alias.c (canon_rtx): Likewise.
4463 (init_alias_analysis): Likewise.
4464 * builtins.c (expand_builtin_return_addr)
4465 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
4466 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
4467 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
4468 (expand_builtin_stpcpy): Likewise.
4469 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
4470 (compute_argument_addresses, internal_arg_pointer_based_exp)
4471 (expand_call, emit_library_call_value_1): Likewise.
4472 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
4473 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
4474 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
4475 * cse.c (insert_const_anchor, find_reg_offset_for_const)
4476 (use_related_value, fold_rtx): Likewise.
4477 * cselib.c (cselib_subst_to_values): Likewise.
4478 * dse.c (record_store, check_mem_read_rtx): Likewise.
4479 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
4480 * emit-rtl.c (adjust_address_1): Likewise.
4481 * except.c (sjlj_emit_function_enter)
4482 (expand_builtin_extract_return_addr)
4483 (expand_builtin_frob_return_addr): Likewise.
4484 * expmed.c (expand_divmod): Likewise.
4485 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
4486 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
4487 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
4488 * function.c (assign_stack_local_1)
4489 (instantiate_virtual_regs_in_rtx): Likewise.
4490 * optabs.c (prepare_cmp_insn): Likewise.
4491 * recog.c (offsettable_address_addr_space_p): Likewise.
4492 * reload.c (find_reloads_address, form_sum)
4493 (find_reloads_subreg_address): Likewise.
4494 * reload1.c (init_reload, eliminate_regs_1)
4495 (eliminate_regs_in_insn): Likewise.
4496 * simplify-rtx.c (simplify_unary_operation_1)
4497 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
4498 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
4499 (vt_add_function_parameter): Likewise.
4500
4501 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
4502 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
4503 * config/alpha/alpha.c (alpha_legitimize_address_1)
4504 (get_unaligned_address, alpha_expand_unaligned_load)
4505 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
4506 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
4507 (alpha_expand_builtin_establish_vms_condition_handler)
4508 (alpha_setup_incoming_varargs, emit_frame_store_1)
4509 (alpha_expand_prologue, alpha_expand_epilogue)
4510 (alpha_use_linkage): Likewise.
4511 * config/alpha/alpha.md: Likewise.
4512
4513 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
4514 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
4515 (thumb_legitimize_address, arm_gen_load_multiple_1)
4516 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
4517 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
4518 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
4519 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
4520 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
4521 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
4522 (thumb_expand_movmemqi, arm_set_return_address)
4523 (thumb_set_return_address): Likewise.
4524 * config/arm/arm.md: Likewise.
4525
4526 * config/avr/avr.c (avr_incoming_return_addr_rtx)
4527 (avr_prologue_setup_frame, expand_epilogue)
4528 (avr_const_address_lo16): Likewise.
4529
4530 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
4531 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
4532 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
4533 (bfin_output_mi_thunk): Likewise.
4534
4535 * config/c6x/c6x.c (c6x_initialize_trampoline)
4536 (c6x_output_mi_thunk): Likewise.
4537
4538 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
4539 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
4540
4541 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
4542 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
4543 (cris_emit_movem_store, cris_trampoline_init): Likewise.
4544 * config/cris/cris.md: Likewise.
4545
4546 * config/darwin.c (machopic_indirect_data_reference)
4547 (machopic_legitimize_pic_address): Likewise.
4548
4549 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
4550 (epiphany_expand_prologue, epiphany_expand_epilogue)
4551 (epiphany_trampoline_init): Likewise.
4552 * config/epiphany/epiphany.md: Likewise.
4553
4554 * config/fr30/fr30.c (fr30_move_double): Likewise.
4555
4556 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
4557 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
4558 (frv_index_memory, unspec_got_name, frv_find_base_term)
4559 (frv_output_dwarf_dtprel): Likewise.
4560
4561 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
4562 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
4563
4564 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
4565 * config/i386/i386.c (setup_incoming_varargs_64)
4566 (setup_incoming_varargs_ms_64, choose_baseaddr)
4567 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
4568 (ix86_emit_probe_stack_range, ix86_expand_prologue)
4569 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
4570 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
4571 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
4572 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
4573 (x86_output_mi_thunk): Likewise.
4574 * config/i386/i386.md: Likewise.
4575
4576 * config/ia64/ia64.c (ia64_expand_load_address)
4577 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
4578 (do_spill, ia64_trampoline_init): Likewise.
4579
4580 * config/iq2000/iq2000.c (iq2000_va_start)
4581 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
4582 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
4583 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
4584
4585 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4586
4587 * config/m32c/m32c.c (m32c_return_addr_rtx)
4588 (m32c_expand_insv): Likewise.
4589
4590 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
4591 (m32r_legitimize_pic_address, m32r_print_operand)
4592 (m32r_print_operand_address): Likewise.
4593
4594 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
4595 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
4596 (EH_RETURN_HANDLER_RTX): Likewise.
4597 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
4598 (m68k_expand_epilogue, legitimize_pic_address)
4599 (m68k_output_mi_thunk): Likewise.
4600 * config/m68k/m68k.md: Likewise.
4601
4602 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4603 (mcore_expand_epilog): Likewise.
4604 * config/mcore/mcore.md: Likewise.
4605
4606 * config/mep/mep.c (mep_allocate_initial_value)
4607 (mep_expand_prologue, mep_expand_epilogue): Likewise.
4608
4609 * config/microblaze/microblaze.c (double_memory_operand)
4610 (microblaze_block_move_loop): Likewise.
4611
4612 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
4613 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
4614 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
4615 (mips_expand_prologue, mips_epilogue_set_cfa)
4616 (mips_expand_epilogue): Likewise.
4617 * config/mips/mips.md: Likewise.
4618
4619 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
4620 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
4621
4622 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
4623 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
4624
4625 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4626 (EH_RETURN_HANDLER_RTX): Likewise.
4627 * config/moxie/moxie.c (moxie_static_chain): Likewise.
4628
4629 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
4630 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
4631 (pa_return_addr_rtx, hppa_builtin_saveregs)
4632 (pa_trampoline_init): Likewise.
4633 * config/pa/pa.md: Likewise.
4634
4635 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
4636
4637 * config/picochip/picochip.c (picochip_static_chain): Likewise.
4638
4639 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
4640 * config/rs6000/rs6000.c (rs6000_legitimize_address)
4641 (setup_incoming_varargs, print_operand, rs6000_return_addr)
4642 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
4643 (rs6000_emit_epilogue)
4644 (rs6000_machopic_legitimize_pic_address): Likewise.
4645
4646 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
4647
4648 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
4649 (DYNAMIC_CHAIN_ADDRESS): Likewise.
4650 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
4651 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
4652 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
4653 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
4654 (s390_emit_epilogue, s390_function_profiler): Likewise.
4655 * config/s390/s390.md: Likewise.
4656
4657 * config/score/score.c (score_add_offset, score_prologue): Likewise.
4658
4659 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
4660 (sh_output_mi_thunk): Likewise.
4661 * config/sh/sh.md: Likewise.
4662
4663 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
4664 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
4665 * config/sparc/sparc.c (sparc_legitimize_pic_address)
4666 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
4667 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
4668 (emit_and_preserve): Likewise.
4669 * config/sparc/sparc.md: Likewise.
4670
4671 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4672 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
4673 (spu_setup_incoming_varargs, ea_load_store_inline)
4674 (spu_expand_load): Likewise.
4675
4676 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
4677 (combine_bnp): Likewise.
4678
4679 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4680 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
4681 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
4682
4683 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
4684 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
4685 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
4686
4687 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
4688 * config/v850/v850.md: Likewise.
4689
4690 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
4691 (EH_RETURN_HANDLER_RTX): Likewise.
4692 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
4693 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
4694 (print_operand_address, vax_trampoline_init): Likewise.
4695
4696 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
4697 (xtensa_function_value_regno_p): Likewise.
4698
4699 2012-05-04 Andrew Pinski <apinski@cavium.com>
4700
4701 * expr.c (get_def_for_expr_class): New function.
4702 (convert_tree_comp_to_rtx): New function.
4703 (expand_cond_expr_using_cmove): New function.
4704 (expand_expr_real_2 <case COND_EXPR>): Call
4705 expand_cond_expr_using_cmove first and return if it succeeds.
4706 Remove the check for HAVE_conditional_move since we should have
4707 already converted it to a conditional move.
4708 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
4709 modes of DImode for 32bits and TImode.
4710
4711 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
4712
4713 PR other/29442
4714 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
4715 (print_md_ptr_loc, print_c_condition): Use them.
4716 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
4717 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
4718 attr_file, dfa_file, latency_file): New global variables.
4719 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
4720 write_upcase, write_indent, write_length_unit_log, write_test_expr,
4721 write_attr_get, write_insn_cases, write_eligible_delay,
4722 write_const_num_delay_slots): Accept FILE pointer and toss it around.
4723 Update all callers.
4724 (write_header, open_outfile, handle_arg): New funcions.
4725 (make_automaton_attrs): Write prototypes as extern to the output
4726 files.
4727 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
4728 names from the command line. Open the output files and write out
4729 internal functions for DFA functions to dfa_file_name, insn latency
4730 functions to latency_file_name, and everything else to attr_file.
4731 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
4732 (BACKEND): Build libbackend first.
4733 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
4734 (.PRECIOUS): Likewise.
4735 (insn-dfatab.o): New rule.
4736 (insn-latencytab.o): New rule.
4737 (simple_rtl_generated_c): Do not include insn-attrtab.c.
4738 (s-attrtab): New rule.
4739
4740 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
4741
4742 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
4743 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
4744 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
4745 * reorg.c (get_jump_flags): Do not set the removed flags.
4746
4747 * doc/md.texi (attr_flag): Update for abovementioned changes.
4748
4749 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
4750
4751 PR target/53228
4752 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
4753 (TARGET_CMOV): Rename from TARGET_CMOVE.
4754 (TARGET_CMOVE): New define.
4755 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
4756 Do not set TARGET_CMOVE here.
4757
4758 2012-05-04 Dodji Seketeli <dodji@redhat.com>
4759
4760 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
4761 * opts.c (finish_options): Activate -Wunused-local-typedefs if
4762 -Wunused is activated.
4763 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
4764
4765 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4766
4767 * config/s390/s390.md (*movmem_short, *clrmem_short)
4768 (*cmpmem_short): Move the mode check from the insn condition to
4769 the match_scratch.
4770
4771 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4772
4773 PR tree-optimization/52633
4774 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
4775 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
4776 (vect_recog_over_widening_pattern): Remove handling of code that was
4777 already detected as over-widening pattern. Remove special handling
4778 of "unsigned" cases. Instead, support general case of conversion
4779 of the shift result to another type.
4780
4781 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4782
4783 * tree-vect-patterns.c (vect_single_imm_use): New function.
4784 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
4785 (vect_recog_over_widening_pattern): Likewise.
4786 (vect_recog_widen_shift_pattern): Likewise.
4787
4788 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4789
4790 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
4791 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
4792 (vect_recog_widen_mult_pattern): Likewise.
4793 (vect_operation_fits_smaller_type): Likewise.
4794 (vect_recog_over_widening_pattern): Likewise.
4795 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
4796
4797 2012-05-04 Richard Guenther <rguenther@suse.de>
4798
4799 PR lto/50602
4800 * lto-wrapper.c (merge_and_complain): Complain about mismatches
4801 of -freg-struct-return and -fpcc-struct-return.
4802 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
4803 from the input file options and ignore those from the link
4804 command line.
4805
4806 2012-05-04 Richard Guenther <rguenther@suse.de>
4807
4808 PR tree-optimization/53168
4809 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
4810 memory reads when the result is a constant we can pun.
4811
4812 2012-05-04 Richard Guenther <rguenther@suse.de>
4813
4814 * common.opt (flto-report): Do not mark as Optimization.
4815
4816 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
4817
4818 PR target/48496
4819 * recog.c (constrain_operands): If extra constraints are present, also
4820 accept pseudo-registers with equivalent memory locations during reload.
4821
4822 2012-05-04 Olivier Hainque <hainque@adacore.com>
4823
4824 * collect2.c (may_unlink_output_file): New global.
4825 (maybe_unlink): Honor it.
4826 * collect2.h: Add extern for it.
4827 * tlink.c (do_tlink): Set it to true if the link succeeded.
4828
4829 2012-05-04 Olivier Hainque <hainque@adacore.com>
4830
4831 * gcc.c (eval_spec_function): Finalize/restore the current string
4832 obstack state as part of the context push/pop operations.
4833
4834 2012-05-04 Bin Cheng <bin.cheng@arm.com>
4835
4836 PR rtl-optimization/52804
4837 * reload1.c (reload_reg_reaches_end_p): Check whether successor
4838 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
4839 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
4840 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
4841 RELOAD_FOR_OUTADDR_ADDRESS.
4842
4843 2012-05-04 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
4844
4845 PR c++/24985
4846 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
4847 for macro expansion.
4848
4849 2012-05-03 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
4850
4851 * flags.h (flag_permissive): Do not declare.
4852 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
4853 option specially.
4854 * toplev.c (flag_permissive): Do not define.
4855 * c-tree.h (system_header_p): Delete unused.
4856
4857 2012-05-03 David S. Miller <davem@davemloft.net>
4858
4859 PR target/52684
4860 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
4861 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
4862 (sparc_emit_float_lib_cmp): Likewise.
4863
4864 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4865
4866 PR target/53199
4867 * config/rs6000/rs6000.md (bswapdi splitters): If
4868 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
4869 default) is used, generate an alternate sequence that does not
4870 depend on using indexed addressing.
4871
4872 2012-05-03 Jason Merrill <jason@redhat.com>
4873
4874 * gengtype.c (write_types): Fix warning message.
4875 (write_local): Likewise.
4876
4877 2012-05-02 Jason Merrill <jason@redhat.com>
4878
4879 * dwarf2out.c (struct external_ref, build_local_stub): New.
4880 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
4881 (optimize_external_refs, optimize_external_refs_1): New.
4882 (change_AT_die_ref): New.
4883 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
4884 (build_abbrev_table): Take the external refs hashtable.
4885 (output_comp_unit): Get it from optimize_external_refs and pass it in.
4886
4887 2012-05-03 Jan Hubicka <jh@suse.cz>
4888
4889 PR middle-end/53093
4890 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
4891
4892 2012-05-03 Jan Hubicka <jh@suse.cz>
4893
4894 PR middle-end/53106
4895 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
4896
4897 2012-05-03 Jason Merrill <jason@redhat.com>
4898
4899 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
4900 use_debug_types to discriminate the die_id union.
4901 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
4902 (build_abbrev_table, output_die): Likewise.
4903 (prune_unused_types_walk_attribs): Likewise.
4904 (generate_type_signature, copy_declaration_context): Set it.
4905 (remove_child_or_replace_with_skeleton): Set it.
4906 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
4907 check use_debug_types.
4908 (dwarf2out_finish): Do break_out_includes after .debug_types.
4909
4910 2012-05-03 Jason Merrill <jason@redhat.com>
4911
4912 * dwarf2out.c (modified_type_die): Use scope_die_for.
4913 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
4914 (uses_local_type_r, uses_local_type): New.
4915 (scope_die_for): Keep a type that uses a local type in local scope.
4916 Use get_context_die for namespace and type scope.
4917
4918 2012-05-03 Jason Merrill <jason@redhat.com>
4919
4920 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
4921 pc thunk.
4922 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
4923 (dwarf2out_finish): Likewise.
4924
4925 2012-05-03 Martin Jambor <mjambor@suse.cz>
4926
4927 * builtins.c (get_object_alignment_1): Return whether we can determine
4928 the alignment or conservatively assume byte alignment. Return the
4929 alignment by reference. Use get_pointer_alignment_1 for dereference
4930 alignment.
4931 (get_pointer_alignment_1): Return whether we can determine the
4932 alignment or conservatively assume byte alignment. Return the
4933 alignment by reference. Use get_ptr_info_alignment to get SSA name
4934 alignment.
4935 (get_object_alignment): Update call to get_object_alignment_1.
4936 (get_object_or_type_alignment): Likewise, fall back to type alignment
4937 only when it returned false.
4938 (get_pointer_alignment): Update call to get_pointer_alignment_1.
4939 * fold-const.c (get_pointer_modulus_and_residue): Update call to
4940 get_object_alignment_1.
4941 * ipa-prop.c (ipa_modify_call_arguments): Update call to
4942 get_pointer_alignment_1.
4943 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
4944 of MEM_REF or TARGET_MEM_REF only when it returns false.
4945 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
4946 get_object_alignment_1.
4947 (ccp_finalize): Use set_ptr_info_alignment.
4948 * tree.h (get_object_alignment_1): Update declaration.
4949 (get_pointer_alignment_1): Likewise.
4950 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
4951 (dump_gimple_stmt): Likewise.
4952 * tree-flow.h (ptr_info_def): Updated comments of fields align and
4953 misalign.
4954 (get_ptr_info_alignment): Declared.
4955 (mark_ptr_info_alignment_unknown): Likewise.
4956 (set_ptr_info_alignment): Likewise.
4957 (adjust_ptr_info_misalignment): Likewise.
4958 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
4959 and set alignment of SSA names.
4960 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
4961 mark_ptr_info_alignment_unknown.
4962 * tree-ssanames.c (get_ptr_info_alignment): New function.
4963 (mark_ptr_info_alignment_unknown): Likewise.
4964 (set_ptr_info_alignment): Likewise.
4965 (adjust_ptr_info_misalignment): Likewise.
4966 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
4967 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4968 Likewise.
4969 (bump_vector_ptr): Likewise.
4970 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
4971 (vectorizable_store): Likewise.
4972 (vectorizable_load): Likewise.
4973
4974 2012-05-03 Michael Matz <matz@suse.de>
4975
4976 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
4977 in front of basic_block_def.
4978 (struct basic_block_def): Make il.gimple the full struct, not a
4979 pointer.
4980 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
4981
4982 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
4983 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
4984 NULL il.gimple, which can't happen anymore.
4985 * gimple.h (bb_seq): il.gimple can't be NULL.
4986 (bb_seq_add): Ditto.
4987 (set_bb_seq): Adjust.
4988 (gsi_start_bb, gsi_last_bb): Tidy.
4989 * lto-streamer-in.c (make_new_block): Don't zero members that
4990 are zeroed already, don't allocate a gimple_bb_info.
4991 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
4992 (remove_bb): Clear all il.gimple members.
4993 (gimple_verify_flow_info): Adjust for flat il.gimple.
4994 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
4995
4996 * coretypes.h (const_gimple_seq): Remove typedef.
4997 * gimple.h (gimple_seq_first): Take gimple_seq.
4998 (gimple_seq_first_stmt): Ditto.
4999 (gimple_seq_last): Ditto.
5000 (gimple_seq_last_stmt): Ditto.
5001 (gimple_seq_empty_p): Ditto.
5002
5003 2012-05-03 Richard Guenther <rguenther@suse.de>
5004
5005 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
5006 operations.
5007 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
5008 (compute_avail): Do not add possibly trapping operations to
5009 EXP_GEN if they might not be executed in the block.
5010
5011 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
5012
5013 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
5014
5015 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
5016
5017 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
5018 information as early as possible. Update dominance info instead of
5019 discarding it.
5020
5021 2012-05-03 Richard Guenther <rguenther@suse.de>
5022
5023 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
5024 (union_contains_value): Remove.
5025 (vro_valid_in_sets): Likewise.
5026 (op_valid_in_sets): New function.
5027 (valid_in_sets): Use op_valid_in_sets.
5028 (insert_into_preds_of_block): Move dumping ...
5029 (do_regular_insertion): ... here.
5030 (do_partial_partial_insertion): ... and here. Dump that
5031 we've found a partial partial redundancy.
5032 (insert): Dump the current insert iteration.
5033
5034 2012-05-03 Jakub Jelinek <jakub@redhat.com>
5035
5036 PR plugins/53126
5037 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
5038 append program name to it and pass that as first argument
5039 to make_relative_prefix. Always pass standard_libexec_prefix
5040 as last argument to make_relative_prefix. If
5041 make_relative_prefix returns NULL, fall back to
5042 standard_libexec_prefix.
5043
5044 PR debug/53174
5045 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
5046 removed.
5047
5048 PR target/53187
5049 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
5050 mode, return that mode.
5051
5052 PR target/53194
5053 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
5054 define __ATOMIC_HLE_* macros here.
5055 (ix86_target_macros): But here, using cpp_define_formatted.
5056
5057 2012-05-03 Richard Guenther <rguenther@suse.de>
5058
5059 PR tree-optimization/53144
5060 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
5061 Rename to ...
5062 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
5063 with SSA name values.
5064 (vn_reference_lookup_3): Adjust callers.
5065
5066 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5067
5068 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
5069 has_fma4 for AMD processors with both fma3 and fma4 support.
5070
5071 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
5072
5073 PR target/53201
5074 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
5075 "-mno-hle".
5076
5077 2012-05-03 Michael Matz <matz@suse.de>
5078
5079 PR bootstrap/53197
5080 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
5081 (dse_enter_block): Properly iterate the whole sequence even
5082 if the last statement was removed.
5083
5084 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
5085
5086 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
5087 unset flag_jump_tables.
5088 * stmt.c (expand_case): Remove special flag_pic case conditional
5089 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
5090
5091 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5092
5093 * common/config/s390/s390-common.c (s390_option_optimization_table):
5094 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
5095 default when optimizing.
5096
5097 2012-05-02 Martin Jambor <mjambor@suse.cz>
5098
5099 PR lto/52605
5100 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
5101 of a variable when the contect is a function.
5102
5103 2012-05-02 Michael Matz <matz@suse.de>
5104
5105 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
5106 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
5107 (const_gimple_seq_node): Remove.
5108 (gimple_seq_node): Typedef as gimple.
5109 (struct gimple_statement_base): Add next and prev members,
5110 adjust all WORD markers in using structs.
5111 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
5112 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5113 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
5114 gimple are the same.
5115 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
5116 gimple_seq, adjust.
5117 (gimple_init_singleton): New function.
5118 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
5119 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
5120 (gsi_stmt): Adjust.
5121 (gsi_stmt_ptr): Remove.
5122 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
5123
5124 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
5125 again, adjust for above changes.
5126 (update_call_edge_frequencies): Adjust for above changes.
5127 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
5128 (gsi_insert_seq_nodes_after): Ditto.
5129 (gsi_split_seq_after): Ditto.
5130 (gsi_set_stmt): Ditto.
5131 (gsi_split_seq_before): Ditto.
5132 (gsi_remove): Ditto.
5133 (gsi_insert_seq_before_without_update): Don't free sequence.
5134 (gsi_insert_seq_after_without_update): Ditto.
5135 (gsi_replace): Assert some more invariants.
5136 (gsi_insert_before_without_update, gsi_insert_after_without_update):
5137 Tidy.
5138 (gsi_for_stmt): Don't search for stmt.
5139 (gsi_insert_on_edge_immediate): Tidy.
5140
5141 * gimple.c (gimple_alloc_k): Remove "sequences".
5142 (gimple_seq_cache): Remove.
5143 (gimple_alloc_stat): Make stmt a singleton sequence.
5144 (gimple_seq_alloc, gimple_seq_free): Remove.
5145 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
5146 (gimple_copy): Ditto.
5147 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
5148 create iterator from correct sequence.
5149 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
5150
5151 2012-05-02 Michael Matz <matz@suse.de>
5152
5153 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
5154 gimple_seq.
5155 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
5156 sequence, lazily allocate it.
5157 (bb_seq_addr): New function.
5158 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
5159 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
5160 (gsi_none): New function.
5161 (gsi_start_bb): Adjust.
5162 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
5163 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
5164 (gsi_last_bb): Adjust.
5165 (gsi_seq): Adjust.
5166 * tree-flow-inline.h (phi_nodes_ptr): New function.
5167
5168 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
5169 datastructure and interface change.
5170 (gsi_insert_seq_before_without_update): Ditto.
5171 (gsi_insert_seq_nodes_after): Ditto.
5172 (gsi_insert_seq_after_without_update): Ditto.
5173 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
5174 (gsi_split_seq_before): Ditto.
5175 (gsi_start_phis): Adjust.
5176 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
5177 (vect_transform_loop): Ditto.
5178 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
5179 gimple_seq_copy): Don't use gimple_seq_alloc.
5180 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
5181 (gimplify_seq_add_seq): Ditto.
5182 * lto-streamer-in.c (make_new_block): Ditto.
5183 * tree-cfg.c (create_bb): Ditto.
5184 * tree-sra.c (initialize_parameter_reductions): Ditto.
5185
5186 2012-05-02 Michael Matz <matz@suse.de>
5187
5188 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
5189 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
5190 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
5191 set_bb_seq): Move down to after gimple_statement_d definition.
5192
5193 2012-05-02 Michael Matz <matz@suse.de>
5194
5195 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5196 gsi_replace_with_seq, instead of inserting itself.
5197 * gimple-iterator.c (gsi_replace_with_seq): New function.
5198 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
5199 iterator instead of statement, advance it.
5200 (ssa_forward_propagate_and_combine): Adjust call to above.
5201
5202 2012-05-02 Michael Matz <matz@suse.de>
5203
5204 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
5205 gimple_seq_alloc.
5206 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
5207 * tree-nested.c (walk_gimple_omp_for): Ditto.
5208 * trans-mem.c (lower_transaction): Ditto.
5209 * tree-eh.c (do_return_redirection): Ditto.
5210 (do_goto_redirection): Ditto.
5211 (lower_try_finally_switch): Ditto.
5212 * gimplify.c (gimplify_stmt): Ditto.
5213 (gimplify_scan_omp_clauses): Ditto.
5214 (gimplify_omp_for): Ditto.
5215 (gimplify_function_tree): Ditto.
5216 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
5217 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
5218 (mf_build_check_statement_for): Ditto.
5219 (mx_register_decls): Ditto.
5220 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
5221 and don't use itertors to append.
5222 (insert_stmts): Ditto.
5223 (insert_out_of_ssa_copy): Ditto.
5224 (insert_out_of_ssa_copy_on_edge): Ditto.
5225
5226 2012-05-02 Michael Matz <matz@suse.de>
5227
5228 * gimple.h (gimple_bind_body_ptr): New function.
5229 (gimple_bind_body): Use it.
5230 (gimple_catch_handler): Use gimple_catch_handler_ptr.
5231 (gimple_eh_filter_failure_ptr): New function.
5232 (gimple_eh_filter_failure): Use it.
5233 (gimple_eh_else_n_body_ptr): New function.
5234 (gimple_eh_else_n_body): Use it.
5235 (gimple_eh_else_e_body_ptr): New function.
5236 (gimple_eh_else_e_body): Use it.
5237 (gimple_try_eval_ptr): New function.
5238 (gimple_try_eval): Use it.
5239 (gimple_try_cleanup_ptr): New function.
5240 (gimple_try_cleanup): Use it.
5241 (gimple_wce_cleanup_ptr): New function.
5242 (gimple_wce_cleanup): Use it.
5243 (gimple_omp_body_ptr): New function.
5244 (gimple_omp_body): Use it.
5245 (gimple_omp_for_pre_body_ptr): New function.
5246 (gimple_omp_for_pre_body): Use it.
5247 (gimple_transaction_body_ptr): New function.
5248 (gimple_transaction_body): Use it.
5249 (gsi_split_seq_before): Adjust to return nothing and take pointer
5250 to sequence.
5251 (gsi_set_stmt): Declare.
5252 (gsi_replace_with_seq): Declare.
5253 (walk_gimple_seq_mod): Declare.
5254 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
5255
5256 * gimple-iterator.c (gsi_set_stmt): New function.
5257 (gsi_split_seq_before): Return new sequence via pointer argument.
5258 (gsi_replace): Use gsi_set_stmt.
5259
5260 * tree-ssa-loop-im.c (move_computations_stmt): First remove
5261 then insert stmt.
5262 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
5263 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
5264 return new stmt.
5265 (reserve_phi_args_for_new_edge): Change call to above,
5266 use gsi_set_stmt.
5267
5268 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
5269 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
5270 iterators. Adjust call to lower_omp.
5271 (lower_lastprivate_clauses): Adjust call to lower_omp.
5272 (lower_reduction_clauses): Ditto.
5273 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
5274 (lower_omp_sections): Don't explicitely count sequence length,
5275 nullify lowered bodies earlier, ensure stmts are part of only
5276 one sequence, adjust call to lower_omp.
5277 (lower_omp_single): Ensure stmts are part of only one sequence,
5278 adjust call to lower_omp.
5279 (lower_omp_master): Ditto.
5280 (lower_omp_ordered): Ditto.
5281 (lower_omp_critical): Ditto.
5282 (lower_omp_for): Ditto.
5283 (lower_omp_taskreg): Ditto, tidy.
5284 (lower_omp_1): Adjust calls to lower_omp.
5285 (execute_lower_omp): Ditto.
5286 (lower_omp): Adjust to take pointer to sequence.
5287 (diagnose_sb_2): Use walk_gimple_seq_mod.
5288 (diagnose_omp_structured_block_errors): Ditto and set possibly
5289 changed function body.
5290 * gimple-low.c (lower_function_body): Set function body after
5291 it stabilizes.
5292 (lower_sequence): Adjust to take pointer to sequence.
5293 (lower_omp_directive): Ensure stmt isn't put twice into the
5294 sequence, adjust call to lower_sequence.
5295 (lower_stmt): Adjust calls to lower_sequence.
5296 (lower_gimple_bind): Ditto.
5297 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
5298 * tree-nested.c (walk_body): Take pointer to sequence, use
5299 walk_gimple_seq_mod.
5300 (walk_function): Adjust call to walk_body, set possibly changed body.
5301 (walk_gimple_omp_for): Adjust calls to walk_body.
5302 (convert_nonlocal_omp_clauses): Ditto.
5303 (convert_nonlocal_reference_stmt): Ditto.
5304 (convert_local_omp_clauses): Ditto.
5305 (convert_local_reference_stmt): Ditto.
5306 (convert_tramp_reference_stmt): Ditto.
5307 (convert_gimple_call): Ditto.
5308 (convert_nl_goto_reference): Use local iterator copy.
5309 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
5310 but taking pointer to sequence, ensure gsi_start is called with
5311 callers lvalue.
5312 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
5313 asserting that the sequence head didn't change.
5314 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
5315 walk_gimple_seq_mod.
5316 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
5317 (execute_lower_tm): Ditto, and set possibly changed body.
5318 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
5319 call gsi_start with that lvalue.
5320 (replace_goto_queue_stmt_list): Ditto.
5321 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
5322 (replace_goto_queue): Ditto.
5323 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
5324 (lower_try_finally_onedest): Ditto.
5325 (lower_try_finally_copy): Ditto.
5326 (lower_try_finally_switch): Ditto.
5327 (lower_try_finally): Ditto.
5328 (lower_eh_filter): Ditto.
5329 (lower_eh_must_not_throw): Ditto.
5330 (lower_cleanup): Ditto.
5331 (lower_eh_constructs_2): Ditto.
5332 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
5333 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
5334 set possibly changed body.
5335 (optimize_double_finally): Call gsi_start with lvalue.
5336
5337 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
5338 (gimple_split_block): Ditto.
5339 (gimple_merge_blocks): Use gsi_start_phis.
5340 (move_stmt_r): Use walk_gimple_seq_mod.
5341 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
5342 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
5343 (rebuild_cgraph_edges): Ditto.
5344 (cgraph_rebuild_references): Ditto.
5345 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
5346 * tree-inline.c (copy_phis_for_bb): Ditto.
5347 * tree-ssa-dce.c: Ditto.
5348
5349 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
5350
5351 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
5352 Andi Kleen <ak@linux.intel.com>
5353
5354 * coretypes.h (MEMMODEL_MASK): New.
5355 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
5356 and return new variable.
5357 (expand_builtin_atomic_exchange): Mask memmodel values.
5358 (expand_builtin_atomic_compare_exchange): Ditto.
5359 (expand_builtin_atomic_load): Ditto.
5360 (expand_builtin_atomic_store): Ditto.
5361 (expand_builtin_atomic_clear): Ditto.
5362 * doc/extend.texi: Mention port-dependent memory model flags.
5363 * config/i386/cpuid.h (bit_HLE): New.
5364 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5365 HLE support.
5366 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
5367 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
5368 (ix86_target_string)<-mhle>: New.
5369 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5370 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
5371 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
5372 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
5373 enabled for generic, generic64 and core-avx2.
5374 (ix86_print_operand): Generate HLE lock prefixes.
5375 (ix86_memmodel_check): New.
5376 (TARGET_MEMMODEL_CHECK): Ditto.
5377 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
5378 (IX86_HLE_ACQUIRE): Ditto.
5379 (IX86_HLE_RELEASE): Ditto.
5380 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
5381 * config/i386/i386.opt (mhle): Ditto.
5382 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
5383 success model to instruction emitter.
5384 (atomic_fetch_add<mode>): Ditto.
5385 (atomic_exchange<mode>): Ditto.
5386 (atomic_add<mode>): Ditto.
5387 (atomic_sub<mode>): Ditto.
5388 (atomic_<code><mode>): Ditto.
5389 (*atomic_compare_and_swap_doubledi_pic): Ditto.
5390 (atomic_compare_and_swap_single<mode>): Define and use argument
5391 for success model.
5392 (atomic_compare_and_swap_double<mode>): Ditto.
5393 * configure.ac: Check if assembler support HLE prefixes.
5394 * configure: Regenerate.
5395 * config.in: Ditto.
5396
5397 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
5398
5399 PR middle-end/53153
5400 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
5401 split out from ...
5402 (gimplify_switch_expr): ... here.
5403 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
5404 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
5405 to clean up case labels with values outside the index type range.
5406 (simplify_gimple_switch): Call it if something changed.
5407 Remove strange and unnecessary assert.
5408
5409 2012-05-02 Richard Guenther <rguenther@suse.de>
5410
5411 * fold-const.c (div_if_zero_remainder): sizetypes no longer
5412 sign-extend.
5413 (int_const_binop_1): New worker for int_const_binop with
5414 overflowable parameter. Pass it through to force_fit_type_double.
5415 (int_const_binop): Wrap around int_const_binop_1 with overflowable
5416 equal to one.
5417 (size_binop_loc): Call int_const_binop_1 with overflowable equal
5418 to minus one, forcing overflow detection for even unsigned types.
5419 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
5420 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
5421 * stor-layout.c (initialize_sizetypes): sizetypes no longer
5422 sign-extend.
5423 (layout_type): For zero-sized arrays ignore overflow on the
5424 size calculations.
5425 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
5426 (bit_value_binop_1): Likewise.
5427 * tree.c (double_int_to_tree): Likewise.
5428 (double_int_fits_to_tree_p): Likewise.
5429 (force_fit_type_double): Likewise.
5430 (host_integerp): Likewise.
5431 (int_fits_type_p): Likewise.
5432 * varasm.c (output_constructor_regular_field): Sign-extend the
5433 field-offset to cater for negative offsets produced by the Ada
5434 frontend.
5435 * omp-low.c (extract_omp_for_data): Convert the loop step to
5436 signed for pointer adjustments.
5437
5438 2012-05-02 Richard Guenther <rguenther@suse.de>
5439
5440 * tree.c (valid_constant_size_p): New function.
5441 * tree.h (valid_constant_size_p): Declare.
5442 * cfgexpand.c (expand_one_var): Adjust check for too large
5443 variables by using valid_constant_size_p.
5444 * varasm.c (assemble_variable): Likewise.
5445
5446 * c-decl.c (grokdeclarator): Properly check for sizes that
5447 cover more than half of the address-space.
5448
5449 2012-05-02 Jakub Jelinek <jakub@redhat.com>
5450
5451 PR tree-optimization/53163
5452 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
5453 return value from compute_all_dependences.
5454
5455 PR rtl-optimization/53160
5456 * ree.c (combine_reaching_defs): Handle the case where cand->insn
5457 has been modified by ree pass already.
5458
5459 2012-05-01 Ian Lance Taylor <iant@google.com>
5460
5461 PR c/37303
5462 * c-decl.c (build_compound_literal): Make the decl readonly if it
5463 an array of a readonly type.
5464 * gimplify.c (gimplify_compound_literal_expr): Add fallback
5465 parameter. Change all callers. If the decl is not addressable
5466 and is not an l-value, make it readonly.
5467
5468 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
5469
5470 * ira.c (allocated_reg_info_size): New static variable.
5471 (expand_reg_info): Manage it. Call
5472 setup_preferred_alternate_classes_for_new_pseudos.
5473 (ira): Don't do it here. Remove local allocated_reg_info_size,
5474 set the global before calling find_moveable_pseudos.
5475 (find_moveable_pseudos): Call expand_reg_info rather than
5476 resize_reg_info.
5477
5478 2012-05-01 Richard Henderson <rth@redhat.com>
5479
5480 * common.opt (fsync-libcalls): New.
5481 * doc/invoke.texi: Document it.
5482 * optabs.c (init_sync_libfuncs): Honor it.
5483
5484 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
5485 Richard Sandiford <r.sandiford@uk.ibm.com>
5486
5487 PR rtl-optimization/52543
5488 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
5489 lower-subreg.h.
5490 * lower-subreg.h: New file.
5491 * target-globals.h (this_target_lower_subreg): Declare.
5492 (target_globals): Add lower_subreg;
5493 (restore_target_globals): Restore this_target_lower_subreg.
5494 * target-globals.c: Include it.
5495 (default_target_globals): Add default_target_lower_subreg.
5496 (save_target_globals): Initialize target_lower_subreg.
5497 * rtl.h (init_lower_subreg): Added declaration.
5498 * toplev.c (backend_init_target): Call initializer for lower-subreg
5499 pass.
5500 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
5501 (default_target_lower_subreg): New variable.
5502 (this_target_lower_subreg): Likewise.
5503 (twice_word_mode, choices): New macros.
5504 (shift_cost, compute_splitting_shift, compute_costs)
5505 (init_lower_subreg): New functions.
5506 (resolve_simple_move): Add speed_p argument. Check choices.
5507 (find_pseudo_copy): Don't check the mode size here.
5508 (resolve_simple_move): Assert the mode size.
5509 (find_decomposable_shift_zext): Add speed_p argument and return
5510 a bool. Check choices.
5511 (resolve_shift_zext): Add comment.
5512 (dump_shift_choices, dump_choices): New functions.
5513 (decompose_multiword_subregs): Dump list of profitable
5514 transformations. Add code to skip non profitable transformations.
5515 Update calls to simple_move and find_decomposable_shift_zext.
5516
5517 2012-05-01 Ian Bolton <ian.bolton@arm.com>
5518 Sameera Deshpande <sameera.deshpande@arm.com>
5519 Greta Yorsh <greta.yorsh@arm.com>
5520
5521 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
5522 (thumb1_unexpanded_epilogue): ...this.
5523 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
5524 (thumb1_unexpanded_epilogue): ...this.
5525 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
5526 (thumb1_unexpanded_epilogue): ...this.
5527
5528 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
5529
5530 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
5531 comparing enumeration values. Update comments.
5532
5533 2012-05-01 Alan Modra <amodra@gmail.com>
5534
5535 PR target/53038
5536 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
5537 load_cr_save, add_crlr_cfa_restore): New functions.
5538 (rs6000_restore_saved_cr): Rename to..
5539 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
5540 (rs6000_emit_epilogue): Use new functions. Adjust condition
5541 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
5542 regs when using out-of-line restore only when shrink wrapping.
5543
5544 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
5545
5546 PR middle-end/53136
5547 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
5548 calls to cgraph_node_name in xstrdup.
5549 (ipa_make_edge_direct_to_target): Ditto.
5550 * cgraph.c (dump_cgraph_node): Ditto.
5551 * tree-sra.c (convert_callers_for_node): Ditto.
5552 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
5553 * ipa-cp.c (perhaps_add_new_callers): Ditto.
5554 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
5555 (cgraph_materialize_all_clones): Ditto.
5556 * ipa-inline.c (report_inline_failed_reason): Ditto.
5557 (want_early_inline_function_p): Ditto.
5558 (edge_badness): Ditto.
5559 (update_edge_key): Ditto.
5560 (flatten_function): Ditto.
5561 (ipa_inline): Ditto.
5562 (inline_always_inline_functions): Ditto.
5563 (early_inline_small_functions): Ditto.
5564
5565 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
5566
5567 PR target/53141
5568 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
5569 constraints 0 and 1.
5570
5571 012-04-30 Jan Hubicka <jh@suse.cz>
5572
5573 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
5574 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
5575 (cgraph_add_to_same_comdat_group): Remove.
5576 (cgraph_add_asm_node): Move to cgraphunit.c.
5577 (cgraph_make_decl_local): Move to symtab.c
5578 (cgraph_make_node_local_1): Update.
5579 (cgraph_can_remove_if_no_direct_calls_and): Update.
5580 (used_from_object_file_p): Update.
5581 (resolution_used_from_other_file_p): Move to symtab.c
5582 (cgraph_used_from_object_file_p): move to symtab.c
5583 (verify_cgraph_node): Verify same comdat groups.
5584 * cgraph.h (cgraph_asm_node): Rename to ...
5585 (asm_node): ... this one.
5586 (cgraph_asm_nodes): Rename to ...
5587 (asm_nodes): ... this one.
5588 (symtab_add_to_same_comdat_group): New function.
5589 (symtab_dissolve_same_comdat_group_list): New function.
5590 (symtab_used_from_object_file_p): Declare.
5591 (symtab_make_decl_local): Declare.
5592 (cgraph_add_to_same_comdat_group): Remove.
5593 (cgraph_add_asm_node): Remove.
5594 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
5595 Remove.
5596 (cgraph_finalize_compilation_unit): Rename to ...
5597 (finalize_compilation_unit): ... this one.
5598 (cgraph_optimize): Rename to ....
5599 (compile): ... this one.
5600 (add_asm_node): Declare.
5601 (fixup_same_cpp_alias_visibility): Declare.
5602 (cgraph_make_decl_local): Remove.
5603 (varpool_assemble_pending_decls): Rename to ...
5604 (varpool_output_variables): ... this one.
5605 (varpool_remove_unreferenced_decls): Remove.
5606 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
5607 (preserve_function_body_p): Make static.
5608 * toplev.c (compile_file): Update comments; update.
5609 * cgraphunit.c: Update comments.
5610 (cgraph_expand_all_functions): Rename to ...
5611 (expand_all_functions): ... this one; update.
5612 (cgraph_mark_functions_to_output): Rename to ...
5613 (mark_functions_to_output): ... this one; cleanup.
5614 (cgraph_output_pending_asms): Remove prototype.
5615 (asm_nodes, asm_last_node): New static vars.
5616 (cgraph_process_new_functions): Update.
5617 (cgraph_reset_node): Cleanup; add comment.
5618 (cgraph_add_new_function): Update.
5619 (cgraph_output_pending_asms): Rename to ...
5620 (output_asm_statements): ... this one.
5621 (add_asm_node): New function.
5622 (fixup_same_cpp_alias_visibility): New function based on code
5623 in cgraph_analyze_function.
5624 (cgraph_analyze_function): Use it.
5625 (cgraph_order_sort): Update.
5626 (cgraph_output_in_order): Update.
5627 (cgraph_function_versioning): Update.
5628 (cgraph_optimize): Rename to ...
5629 (compile): ... this one; initialize streamer hooks here.
5630 (cgraph_finalize_compilation_unit): Rename to ...
5631 (finalize_compilation_unit): ... this one; do not initialize streamer
5632 hook here.
5633 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
5634 * dwarf2out.c: Update ocmment.
5635 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
5636 * method.c (use_thunk): Likewise.
5637 * semantics.c (maybe_add_lambda_conv_op): Likewise.
5638 * decl2.c (maybe_emit_vtables): Likewise.
5639 (cp_write_global_declarations): Use finalize_compilation_unit.
5640 * parser.c (cp_parser_asm_definition): Use add_asm_node.
5641 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
5642 * c-decl.c (c_write_global_declarations): Use
5643 finalize_compilation_unit.
5644 * langhooks.c (write_global_declarations): Update.
5645 * ipa.c (cgraph_externally_visible_p): Update.
5646 (dissolve_same_comdat_group_list): Remove.
5647 (function_and_variable_visibility): Update.
5648 * symtab.c: Inlcude lto-streamer.h and rtl.h
5649 (ld_plugin_symbol_resolution_names): New.
5650 (symtab_add_to_same_comdat_group): New.
5651 (symtab_dissolve_same_comdat_group_list): New.
5652 (resolution_used_from_other_file_p): Move here from cgraph.c
5653 (symtab_used_from_object_file_p): New.
5654 (symtab_make_decl_local): New.
5655 * passes.c (register_pass): Update comments.
5656 * c-parser.c (c_parser_asm_definition): Update.
5657 * varpool.c (varpool_analyze_node): Use
5658 fixup_same_cpp_alias_visibility.
5659 (varpool_remove_unreferenced_decls): Make static.
5660 (varpool_assemble_pending_decls): Rename to ...
5661 (varpool_output_variables): ... this one; call
5662 varpool_remove_unreferenced_decls.
5663 (varpool_used_from_object_file_p): Remove.
5664
5665 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
5666
5667 PR c++/51033
5668 * c-typeck.c (build_array_ref): Call
5669 convert_vector_to_pointer_for_subscript.
5670 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
5671
5672 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
5673
5674 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
5675 to compile-time "mode == <MODE>mode" checks.
5676 (and splitter): Ditto.
5677
5678 2012-04-30 Richard Henderson <rth@redhat.com>
5679
5680 * config/arm/arm.md (UNSPEC_LL): New.
5681 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
5682 (arm_load_exclusivedi): Use %H0.
5683
5684 2012-04-30 Jason Merrill <jason@redhat.com>
5685
5686 * dwarf2out.c (comdat_symbol_id): Add const.
5687 (union die_symbol_or_type_node): Add const to die_symbol.
5688 (output_die_symbol, output_die, output_comp_unit): Adjust.
5689
5690 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
5691
5692 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
5693 * config/arm/neon.md (negdi2_neon): New insn.
5694 Also add splitters for core and NEON registers.
5695
5696 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
5697
5698 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
5699 (arm_print_operand): Add 'x' format.
5700 * config/arm/constraints.md (Dn): Allow const_int.
5701 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
5702 Use 'x' format to print constants.
5703 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
5704 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
5705 is enabled.
5706 (movdi_vfp_cortexa8): Likewise.
5707
5708 2012-04-30 Ian Bolton <ian.bolton@arm.com>
5709 Sameera Deshpande <sameera.deshpande@arm.com>
5710 Greta Yorsh <greta.yorsh@arm.com>
5711
5712 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
5713 * config/arm/arm.c (ldm_stm_operation_p): New function.
5714 * config/arm/predicates.md (load_multiple_operation): Update predicate.
5715 (store_multiple_operation): Likewise.
5716
5717 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
5718 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
5719 * config/arm/predicates.md (load_multiple_operation): Add arguments.
5720 (store_multiple_operation): Likewise.
5721
5722 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
5723
5724 * config/i386/i386.md (and<mode>3): Expand masking operations with
5725 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
5726 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
5727
5728 2012-04-30 Dodji Seketeli <dodji@redhat.com>
5729
5730 Add -Wvarargs option
5731 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
5732 argument for the various warning_at calls.
5733 * docs/invoke.texi: Update the documentation.
5734
5735 2012-04-30 Dodji Seketeli <dodji@redhat.com>
5736
5737 Switch -ftrack-macro-expansion=2 on by default.
5738 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
5739 by default.
5740
5741 Fix va_start related location
5742 * builtins.c (fold_builtin_next_arg): Unwinds to the first
5743 location in real source code.
5744
5745 Make conversion warnings work on NULL with -ftrack-macro-expansion
5746 * input.h (expansion_point_location_if_in_system_header): Declare
5747 new function.
5748 * input.c (expansion_point_location_if_in_system_header): Define it.
5749
5750 Fix -Wuninitialized for -ftrack-macro-expansion
5751 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
5752 declaration. Use linemap_location_before_p for source locations.
5753
5754 Strip "<built-in>" loc from displayed expansion context
5755 * input.c (expand_location_1): When expanding to spelling location
5756 in a context of a macro expansion, skip reserved system header
5757 locations. Update comments. * tree-diagnostic.c
5758 (maybe_unwind_expanded_macro_loc): Likewise.
5759
5760 Make expand_location resolve to locus in main source file
5761 * input.c (expand_location_1): New. Takes a parameter to choose
5762 whether to resolve the location to spelling or expansion point.
5763 Was factorized from ...
5764 (expand_location): ... here.
5765 (expand_location_to_spelling_point): New. Implemented in terms of
5766 expand_location_1.
5767 * diagnostic.c (diagnostic_build_prefix): Use the new
5768 expand_location_to_spelling_point instead of expand_location.
5769
5770 Fix PCH crash on GTYed pointer-to-scalar field of a struct
5771 * gengtype.c (write_types_process_field): Force second argument of
5772 the call to the PCH object hierarchy walker to be 'x'.
5773
5774 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
5775
5776 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
5777 predicate to discriminate types.
5778
5779 2012-04-30 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
5780
5781 * doc/invoke.texi (Wmissing-format-attribute): Document as an
5782 alias of Wsuggest-attribute=format.
5783 * c-typeck.c (convert_for_assignment): Replace
5784 Wmissing-format-attribute with Wsuggest-attribute=format.
5785 (digest_init): Likewise.
5786
5787 2012-04-29 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
5788
5789 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
5790 * common.opt (Wmissing-noreturn): Alias of
5791 -Wsuggest-attribute=noreturn.
5792
5793 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
5794
5795 PR target/53156
5796 * config/cris/cris.md (andqu): New peephole2.
5797 (andu): Tweak head comment.
5798
5799 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
5800 Steven Bosscher <steven@gcc.gnu.org>
5801 Maxim Kuvyrkov <maxim@codesourcery.com>
5802
5803 PR tree-optimization/38785
5804 * common.opt (ftree-partial-pre): New option.
5805 * doc/invoke.texi: Document it.
5806 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
5807 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
5808 benefit speed path.
5809 (execute_pre): Use flag_tree_partial_pre.
5810
5811 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5812
5813 PR target/52999
5814 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
5815 in constant pool.
5816
5817 2012-04-27 Ollie Wild <aaw@google.com>
5818
5819 * doc/invoke.texi (Wliteral-suffix): Document new option.
5820
5821 2012-04-27 Tom Tromey <tromey@redhat.com>
5822
5823 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
5824 (dwarf_tag_name): Use get_DW_TAG_name.
5825 (dwarf_attr_name): Use get_DW_AT_name.
5826 (dwarf_form_name): Use get_DW_FORM_name.
5827 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
5828
5829 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
5830
5831 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
5832 arguments are -1 and 0, by negating the result of the conditional.
5833
5834 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
5835
5836 PR target/53138
5837 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
5838
5839 2012-04-27 Richard Guenther <rguenther@suse.de>
5840
5841 * tree-flow.h (is_hidden_global_store): Remove.
5842 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
5843 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
5844 (stmt_may_clobber_global_p): Likewise.
5845 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
5846 (stmt_may_clobber_global_p): Likewise.
5847 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
5848 stmt_may_clobber_global_p.
5849 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
5850
5851 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
5852
5853 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
5854 place.
5855
5856 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
5857 reorganize some fields and update comments. Rename bit_test_uniq
5858 and bit_test_count to uniq resp. count. Remove bit_test_bb.
5859 (collect_switch_conv_info): New function, collects info about a
5860 GIMPLE_SWITCH into a struct switch_conv_info.
5861 (check_range): Simplify to use pre-recorded info. Fix think-o in
5862 range-branch ratio check.
5863 (check_process_case): Remove function.
5864 (check_all_empty_except_final): New function, verifies that all
5865 non-final basic blocks are empty.
5866 (process_switch): Simplify to use pre-recorded info. Call
5867 collect_switch_conv_info to do that. Assert that degenerate switch
5868 statements have been cleaned up.
5869
5870 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
5871
5872 PR middle-end/27139
5873 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
5874
5875 2012-04-25 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
5876
5877 PR c/53130
5878 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
5879
5880 2012-04-27 Tom de Vries <tom@codesourcery.com>
5881
5882 PR tree-optimization/51879
5883 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
5884 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
5885 of ...
5886 (defs_to_varying): ... here. Don't set use_processed.
5887 (visit_reference_op_call): Handle gimple_vdef.
5888 Handle case that lhs is NULL_TREE.
5889 (visit_use): Use mark_use_processed. Handle calls with side-effect
5890 using visit_reference_op_call.
5891
5892 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
5893
5894 * sched-deps.c (fixup_sched_groups): Rename to...
5895 (chain_to_prev_insn): ...this.
5896 (chain_to_prev_insn_p): New function.
5897 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
5898
5899 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
5900
5901 * sched-int.h (_haifa_insn_data): Move priority_status.
5902 Add model_index.
5903 (INSN_MODEL_INDEX): New macro.
5904 * haifa-sched.c (insn_delay): New function.
5905 (sched_regno_pressure_class): Update commentary.
5906 (mark_regno_birth_or_death): Pass the liveness bitmap and
5907 pressure array as arguments, instead of using curr_reg_live and
5908 curr_reg_pressure. Only update the pressure if the bit in the
5909 liveness set has changed.
5910 (initiate_reg_pressure_info): Always trust the live-in set for
5911 SCHED_PRESSURE_MODEL.
5912 (initiate_bb_reg_pressure_info): Update call to
5913 mark_regno_birth_or_death.
5914 (dep_list_size): Take the list as argument.
5915 (calculate_reg_deaths): New function, extracted from...
5916 (setup_insn_reg_pressure_info): ...here.
5917 (MODEL_BAR): New macro.
5918 (model_pressure_data, model_insn_info, model_pressure_limit)
5919 (model_pressure_group): New structures.
5920 (model_schedule, model_worklist, model_insns, model_num_insns)
5921 (model_curr_point, model_before_pressure, model_next_priority):
5922 New variables.
5923 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
5924 (MODEL_INSN_INFO, MODEL_INSN): New macros.
5925 (model_index, model_update_limit_points_in_group): New functions.
5926 (model_update_limit_points, model_last_use_except): Likewise.
5927 (model_start_update_pressure, model_update_pressure): Likewise.
5928 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
5929 (model_excess_cost, model_dump_pressure_points): Likewise.
5930 (model_set_excess_costs): Likewise.
5931 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
5932 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
5933 schedule as an alternative tie-breaker. Update the call to
5934 dep_list_size.
5935 (ready_sort): Call model_set_excess_costs.
5936 (update_register_pressure): Update call to mark_regno_birth_or_death.
5937 Rely on that function to check liveness rather than doing it here.
5938 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
5939 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
5940 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
5941 (model_record_pressure, model_record_pressures): New functions.
5942 (model_record_final_pressures, model_add_successors_to_worklist)
5943 (model_promote_predecessors, model_choose_insn): Likewise.
5944 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
5945 (model_start_schedule, model_finalize_pressure_group): Likewise.
5946 (model_end_schedule): Likewise.
5947 (schedule_insn): Say when we're scheduling the next instruction
5948 in the model schedule.
5949 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
5950 (queue_to_ready): Do not add instructions that are
5951 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
5952 Always allow the next instruction in the model schedule to be added.
5953 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5954 and delay for SCHED_PRESSURE_MODEL too.
5955 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
5956 SCHED_PRIORITY_MODEL, but also take the DFA into account.
5957 (schedule_block): Call model_start_schedule and model_end_schedule.
5958 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
5959 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5960 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
5961 region_ref_regs.
5962 (sched_finish): Update accordingly.
5963 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5964 to SCHED_PRESSURE_MODEL.
5965 (add_jump_dependencies): Update call to dep_list_size.
5966 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
5967 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
5968 to SCHED_PRESSURE_MODEL.
5969 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
5970 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
5971 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
5972 handling to SCHED_PRESSURE_MODEL.
5973
5974 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
5975
5976 * common.opt (fsched-pressure-algorithm=): New option.
5977 * flag-types.h (sched_pressure_algorithm): New enum.
5978 * sched-int.h (sched_pressure_p): Replace with...
5979 (sched_pressure): ...this new variable.
5980 * haifa-sched.c (sched_pressure_p): Replace with...
5981 (sched_pressure): ...this new variable.
5982 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
5983 (update_reg_and_insn_max_reg_pressure, schedule_insn)
5984 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
5985 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
5986 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5987 (sched_analyze_insn): Likewise.
5988 * sched-rgn.c (schedule_region): Likewise.
5989 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
5990
5991 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
5992
5993 * PR middle-end/52997
5994 * ira.c (find_moveable_pseudos): Call resize_reg_info.
5995
5996 PR middle-end/52940
5997 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
5998 * expr.c (convert_move): Honor unsignedp when extending partial int
5999 modes.
6000 * genmodes.c (complete_mode): Don't clear component field of partial
6001 int modes.
6002 (emit_mode_inner): Don't emit it however.
6003 (calc_wider_mode): Partial int modes widen to their component.
6004
6005 2012-04-26 David S. Miller <davem@davemloft.net>
6006
6007 * config/sparc/niagara4.md: New file.
6008 * config/sparc/sparc.md: Include it.
6009 * config/sparc/sparc.c (niagara4_costs): New processor costs.
6010 (sparc_option_override): Use it.
6011 (sparc_use_sched_lookahead): Return 2 for niagara4.
6012 (sparc_issue_rate): Likewise.
6013
6014 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
6015 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
6016 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
6017 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
6018 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
6019 alignaddrldi_vis): Set type to gsr.
6020 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
6021 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
6022 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
6023 v<vis3_shift_patname><mode>3, fmean16_vis,
6024 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
6025 fucmp<code>8<P:mode>_vis): Set type to fga.
6026 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
6027 * config/sparc/niagara.md: Likewise.
6028 * config/sparc/niagara2.md: Likewise.
6029 * config/sparc/ultra3.md: Likewise, and fix type matching for
6030 us3_ialuX reservation.
6031
6032 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6033
6034 * reload.c (find_reloads): Change the loop nesting when trying an
6035 alternative with swapped operands.
6036
6037 2012-04-26 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
6038
6039 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
6040 comment. Delete unused parameter first_exp_point_map.
6041 (virt_loc_aware_diagnostic_finalizer): Update call.
6042
6043 2012-04-26 Michael Hope <michael.hope@linaro.org>
6044 Richard Earnshaw <rearnsha@arm.com>
6045
6046 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
6047 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
6048 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
6049 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
6050
6051 2012-04-25 Sriraman Tallam <tmsriram@google.com>
6052
6053 * doc/extend.texi: Document avx2 support.
6054 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
6055
6056 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
6057
6058 PR target/53120
6059 * config/cris/cris.md ("*andhi_lowpart_v32")
6060 ("*andqi_lowpart_v32"): Change first input-only operand from
6061 a (match_operand ...) to (match_dup 0). Drop alternatives with
6062 const_int-matching constraints for redundancy.
6063 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
6064 three-operand alternative.
6065
6066 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6067
6068 PR target/53110
6069 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
6070 instead expand it as zero extension.
6071
6072 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
6073
6074 PR debug/52857
6075 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
6076
6077 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6078
6079 * common.opt (flag_debug_types_section): Default to 0.
6080 (dwarf_version): Default to 4.
6081 (dwarf_record_gcc_switches): Default to 1.
6082 (dwarf_strict): Default to 0.
6083 * toplev.c (process_options): Don't handle dwarf_strict
6084 or dwarf_version here.
6085 * config/vxworks.c (vxworks_override_options): Don't
6086 test whether dwarf_strict or dwarf_version are negative,
6087 instead test !global_options_set.x_dwarf_*.
6088 * config/darwin.c (darwin_override_options): Default to
6089 dwarf_version 2.
6090 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
6091 and -fno-debug-types-section are now the default.
6092
6093 2012-04-25 Jan Hubicka <jh@suse.cz>
6094
6095 * cgraphunit.c: Update toplevel comment.
6096 (tree_rest_of_compilation): Merge into cgraph_expand_function.
6097 (cgraph_analyze_function): Make static.
6098 (cgraph_decide_is_function_needed): Make static.
6099 (cgraph_add_new_function): Use expand_function instead of
6100 rest_of_compilation.
6101 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6102 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6103 Move to cgraph.c
6104 (cgraph_inline_p): Remove.
6105 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
6106 (init_cgraph): Add comment.
6107 * cgraphbuild.c (record_reference, mark_address, mark_load,
6108 mark_store): Do not call analyze_expr hook.
6109 * cgraph.c: Update toplevel comment.
6110 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
6111 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
6112 Move fere from cgraphunit.c
6113 (cgraph_mark_force_output_node): Move to cgraph.h
6114 * cgraph.h: Reorder so the comments match the function placement.
6115 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
6116 (cgraph_mark_force_output_node): Move here from cgraph.c
6117 * tree.c (free_lang_data): Do not clear analyze_expr hook.
6118 * ipa-inline-transform.c (preserve_function_body_p): New function.
6119 (inline_transform): Update.
6120 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
6121 * langhooks.h (lang_hooks_for_callgraph): Remove.
6122 (lang_hooks): Remove callgraph.
6123 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
6124 * varpool.c: Remove out of date comment.
6125 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
6126 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
6127
6128 2012-04-25 Jan Hubicka <jh@suse.cz>
6129
6130 PR middle-end/53089
6131 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
6132 forward declaration.
6133 (cgraph_finalize_function): Finalize them here.
6134 * symtab.c (dump_symtab): Dump ctors and dtors.
6135
6136 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6137
6138 PR middle-end/52979
6139 * stor-layout.c (get_best_mode): Don't return mode with bitsize
6140 larger than maxbits. Don't compute maxbits modulo align.
6141 Also check that unit bytes long store at bitpos / unit * unit
6142 doesn't affect bits beyond bitregion_end.
6143 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
6144 would not fit into bitregion_start ... bitregion_end + 1 bit region.
6145 (store_split_bit_field): Decrease unit close to end of bitregion_end
6146 if access is restricted in order to avoid mutual recursion.
6147
6148 PR tree-optimization/53058
6149 * double-int.h (double_int_max_value, double_int_min_value): New
6150 prototypes.
6151 * double-int.c (double_int_max_value, double_int_min_value): New
6152 functions.
6153 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
6154 or GT_EXPR with double_int_max_value instead of double_int_mask.
6155
6156 2012-04-25 Richard Guenther <rguenther@suse.de>
6157
6158 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6159 * tree-vect-loop.c (vect_transform_loop): Adjust.
6160 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
6161 the maximum number of iterations for the epilogue loop.
6162 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
6163
6164 2012-04-25 Jakub Jelinek <jakub@redhat.com>
6165
6166 PR c/52880
6167 * c-typeck.c (set_nonincremental_init,
6168 set_nonincremental_init_from_string): Pass true instead of false
6169 as IMPLICIT to add_pending_init.
6170
6171 2012-04-25 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
6172
6173 * c-typeck.c (pop_init_level): Improve diagnostics.
6174
6175 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
6176
6177 * compare-elim.c (try_eliminate_compare): Also handle operands with
6178 implicit extensions.
6179
6180 2012-04-25 Alan Modra <amodra@gmail.com>
6181
6182 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
6183 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
6184 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
6185 (no_global_regs_above): Delete.
6186 (no_global_regs): New function.
6187 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
6188 value for load multiple test.
6189 (savres_routine_syms): Increase size.
6190 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
6191 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
6192 rather than a number of boolean flags. Update all callers.
6193 (rs6000_savres_routine_name): Generate vector save/restore names.
6194 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
6195 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
6196 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
6197 and using_store_multiple. Expand uses. Don't always use r11 as
6198 frame reg when needed for out-of-line saves. Set up initial offset
6199 for out-of-line vector saves when buying stack frame. Handle pointer
6200 reg setup for out-of-line fp save. Emit call to out-of-line vector
6201 save function. Choose r11 or r12 for vrsave reg when available for
6202 better scheduling.
6203 (rs6000_output_function_prologue): Don't emit .extern for ELF.
6204 (rs6000_emit_epilogue): Choose a better frame reg when restoring
6205 from back-chain to suit out-of-line vector restore functions. Emit
6206 call to out-of-line vector restore function. Adjust register used
6207 for cr restore. Tweak pointer register setup for gpr restore.
6208 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
6209 FIXED_R13.
6210 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
6211 (V_SAVE_INLINE): Define.
6212 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
6213
6214 2012-04-25 Alan Modra <amodra@gmail.com>
6215
6216 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
6217 out-of-line save/restore for large frames. Don't disable
6218 out-of-line saves on ABI_AIX when using static chain reg.
6219 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
6220 clobber static chain reg, and tweak for out-of-line gpr saves
6221 that use r1.
6222
6223 2012-04-25 Alan Modra <amodra@gmail.com>
6224
6225 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
6226 (rs6000_emit_prologue): Use the above to catch register overlap.
6227
6228 2012-04-25 Alan Modra <amodra@gmail.com>
6229
6230 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
6231 decl. Move logic selecting update reg to callers. Update all callers.
6232 (rs6000_emit_allocate_stack): Add copy_off param.
6233 (emit_frame_save): Don't handle reg+reg addressing.
6234 (ptr_regno_for_savres): New function, extracted from..
6235 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
6236 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
6237 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
6238 frame offset adjustment for out-of-line save with copy from sp.
6239 Simplify condition controlling whether cr is saved early or
6240 late. Use ptr_regno_for_savres to verify correct reg is set
6241 up for out-of-line saves. Pass the actual pointer reg used to
6242 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
6243 function. Rearrange spe vars so code is similar to that
6244 elsewhere in this function. Don't update frame_off when spe
6245 save code will restore r11. Use emit_frame_save for spe and
6246 gpr saves. Consolidate darwin out-of-line gpr setup with that
6247 for other abis. Don't assume frame_offset is zero and frame
6248 reg is sp when setting up altivec reg saves, and calculate
6249 exact offset requirement.
6250 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
6251 spe restore code. Consolidate darwin out-of-line gpr setup
6252 with that for other abis.
6253
6254 2012-04-25 Alan Modra <amodra@gmail.com>
6255
6256 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
6257 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
6258 the replacement.
6259 (emit_frame_save): Delete frame_ptr param. Rename total_size to
6260 frame_reg_to_sp.
6261 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
6262 and emit_frame_save calls. Cope with possibly missing note.
6263
6264 2012-04-24 Sriraman Tallam <tmsriram@google.com>
6265
6266 * config/i386/i386.c (build_processor_model_struct): New function.
6267 (make_var_decl): New function.
6268 (fold_builtin_cpu): New function.
6269 (ix86_fold_builtin): New function.
6270 (make_cpu_type_builtin): New function.
6271 (ix86_init_platform_type_builtins): New function.
6272 (ix86_expand_builtin): Expand new builtins by folding them.
6273 (ix86_init_builtins): Make new builtins to detect CPU type.
6274 (TARGET_FOLD_BUILTIN): New macro.
6275 (IX86_BUILTIN_CPU_INIT): New enum value.
6276 (IX86_BUILTIN_CPU_IS): New enum value.
6277 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
6278 * config/i386/i386-builtin-types.def: New function type.
6279 * testsuite/gcc.target/builtin_target.c: New testcase.
6280 * doc/extend.texi: Document builtins.
6281
6282 2012-04-24 Olivier Hainque <hainque@adacore.com>
6283
6284 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
6285 * toplev.c (process_options): Default to dwarf_version 2.
6286 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
6287 and dwarf_version 2.
6288
6289 2012-04-24 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
6290
6291 * tree-pretty-print.h (default_tree_printer): Do not declare.
6292 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
6293 intl.h.
6294 (default_tree_diagnostic_starter): Make static.
6295 (default_tree_printer): Move to here. Make static.
6296 (tree_diagnostics_defaults): New.
6297 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
6298 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
6299 * toplev.c: Do not include tree-pass.h.
6300 (default_tree_printer): Move from here.
6301 (general_init): Use tree_diagnostics_defaults.
6302
6303 2012-04-24 Chao-ying Fu <fu@mips.com>
6304
6305 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
6306 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
6307 * config/mips/gnu-user.h
6308 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
6309 (GNU_USER_TARGET_LINK_SPEC): New define.
6310 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6311 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
6312 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
6313 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
6314 GNU_USER_TARGET_ENDFILE_SPEC.
6315 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
6316 (GNU_USER_TARGET_LINK_SPEC): New define.
6317 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
6318 * config/mips/linux-common.h: New file.
6319
6320 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6321
6322 PR target/47197
6323 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
6324 (altivec_build_resolved_builtin): Call fully_fold_convert.
6325
6326 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
6327
6328 PR target/53065
6329 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
6330
6331 2012-04-24 Richard Guenther <rguenther@suse.de>
6332
6333 PR tree-optimization/53085
6334 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
6335 stores.
6336
6337 2012-04-24 Richard Guenther <rguenther@suse.de>
6338
6339 * tree-if-conv.c (main_tree_if_conversion): Move bb under
6340 ENABLE_CHECKING.
6341
6342 2012-04-24 Jim Meyering <meyering@redhat.com>
6343
6344 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
6345 absence of an define_enum call.
6346
6347 2012-04-24 Richard Guenther <rguenther@suse.de>
6348
6349 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
6350 the epilogue loop is not re-used as unvectorized version
6351 record the its maximum number of iterations.
6352
6353 2012-04-24 Andrew Pinski <apinski@cavium.com>
6354
6355 * tree-ssa-forwprop.c (simplify_bitwise_binary):
6356 Don't directly use def1/def2.
6357
6358 2012-04-24 Richard Guenther <rguenther@suse.de>
6359
6360 PR tree-optimization/53098
6361 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
6362 comparison sign.
6363
6364 2012-04-24 Andrew Pinski <apinski@cavium.com>
6365
6366 PR tree-opt/33512
6367 * tree-ssa-forwprop.c (defcodefor_name): New function.
6368 (simplify_bitwise_binary): Use defcodefor_name instead of manually
6369 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
6370 Simplify "(~X | Y) & X" to "X & Y" and
6371 "(~X & Y) | X" to "X | Y".
6372
6373 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6374
6375 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
6376 validate_change to add clobbers if IN_GROUP is nonzero.
6377 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
6378 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
6379 prototype.
6380 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
6381 set to false.
6382 * config/s390/s390.c (insn_invalid_p): Likewise.
6383
6384 2012-04-24 Jakub Jelinek <jakub@redhat.com>
6385
6386 PR middle-end/53084
6387 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
6388 (output_addressed_constants): Likewise.
6389
6390 PR middle-end/52999
6391 * varasm.c (get_section): Don't ICE for section conflicts with
6392 built-in section kinds.
6393
6394 2012-04-23 DJ Delorie <dj@redhat.com>
6395
6396 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
6397 (LIBSTDCXX): Change to CPP2.
6398
6399 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
6400
6401 PR bootstrap/52878
6402 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
6403 extra_masks.
6404
6405 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
6406
6407 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
6408 (*addsi_2_zext): Ditto.
6409 (*add<mode>_3): Ditto.
6410 (*addsi_3_zext): Ditto.
6411 (*add<mode>_5): Ditto.
6412
6413 2012-04-23 Andrew Pinski <apinski@cavium.com>
6414
6415 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
6416 (C & B) to (A OP0) & B.
6417
6418 2012-04-23 Martin Jambor <mjambor@suse.cz>
6419
6420 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
6421 temporaries created for a bitfield (reverting revision 122014).
6422
6423 2012-04-23 Richard Guenther <rguenther@suse.de>
6424
6425 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
6426 the condition using is_gimple_condexpr and avoid the not necessary
6427 boolification.
6428 (set_prologue_iterations): Likewise.
6429 (vect_loop_versioning): Likewise.
6430
6431 2012-04-23 Richard Guenther <rguenther@suse.de>
6432
6433 PR tree-optimization/53070
6434 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
6435 (main_tree_if_conversion): Verify we succeeded in that.
6436
6437 2012-04-23 Jan Hubicka <jh@suse.cz>
6438
6439 * lto-symtab.c (lto_cgraph_replace_node): Do not call
6440 mark_reahcable_node.
6441 * cgraph.c (cgraph_remove_node): Do not clear reachable.
6442 (cgraph_mark_reachable_node): Remove.
6443 (cgraph_mark_force_output_node): Do not set reachable.
6444 (dump_cgraph_node): Do not dump reachable.
6445 (cgraph_create_virtual_clone): Do not set reachable.
6446 * cgraph.h (cgraph_node): Remove reachable flag.
6447 (varpool_node): Remove reachable flag.
6448 (cgraph_mark_if_needed): Remove.
6449 (cgraph_mark_reachable_node): Remove.
6450 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
6451 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
6452 reachable.
6453 (cgraph_add_new_function): Likewise.
6454 (cgraph_mark_if_needed): Remove.
6455 (cgraph_analyze_function): Do not set target as reachable.
6456 (process_function_and_variable_attributes): Do not care about
6457 dllexport.
6458 (cgraph_analyze_functions): Do not set reachable flags.
6459 (cgraph_mark_functions_to_output): Do not check reachability.
6460 (cgraph_copy_node_for_versioning): Do not set reachable flag.
6461 (dbxout_expand_expr): Update.
6462 * c-decl.c (merge_decls): Do not track changed externs.
6463 * ipa.c: Include pointer-set.h
6464 (enqueue_cgraph_node): Use reachable pointer set.
6465 (process_references): Likewise.
6466 (cgraph_remove_unreachable_nodes): Likewise.
6467 (whole_program_function_and_variable_visibility): Do not recompute
6468 reachable.
6469 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
6470
6471 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
6472
6473 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
6474
6475 2012-04-23 Richard Guenther <rguenther@suse.de>
6476
6477 PR c/53060
6478 * c-typeck.c (build_binary_op): Fix typo.
6479
6480 2012-04-23 Jakub Jelinek <jakub@redhat.com>
6481
6482 PR tree-optimizations/52891
6483 * tree-vect-patterns.c (adjust_bool_pattern): Use
6484 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
6485 but with non-standard precision.
6486
6487 2012-04-22 Jan Hubicka <jh@suse.cz>
6488
6489 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
6490 tree refs.
6491
6492 2012-04-22 Jan Hubicka <jh@suse.cz>
6493
6494 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
6495 * cgraphbuild.c (record_reference, record_type_list, mark_address,
6496 mark_load, mark_store): Do not mark varpool nodes as needed.
6497 * cgraph.c (cgraph_new_nodes): Remove.
6498 (cgraph_create_function_alias): Do not mark nodes as reachable.
6499 (cgraph_add_thunk): Likewise.
6500 (cgraph_mark_reachable_node): Do not manage the queue.
6501 * cgraph.h (cgraph_node): Remove next_needed.
6502 (varpool_nodes_queue): Remove next_needed and prev_needed.
6503 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
6504 (cgraph_new_nodes): Declare.
6505 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
6506 (varpool_analyze_pending_decls): Remove.
6507 (varpool_analyze_node): New.
6508 (varpool_mark_needed_node): Remove.
6509 (varpool_first_variable, varpool_next_variable): New inlines.
6510 (varpool_first_static_initializer, varpool_next_static_initializer):
6511 Update.
6512 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
6513 (varpool_first_defined_variable): New inline.
6514 (varpool_next_defined_variable): New inline
6515 (FOR_EACH_VARIABLE): Reimplement.
6516 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
6517 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
6518 needed flag.
6519 * cgraphunit.c (cgraph_new_nodes): Declare here.
6520 (enqueue_node): New function.
6521 (cgraph_process_new_functions): update for new
6522 node set; when constructing cgraph enqueue node for processing.
6523 (cgraph_add_new_function): Use new node set.
6524 (process_function_and_variable_attributes): Do not set varpool needed
6525 flags.
6526 (referred_to_p): New function.
6527 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
6528 when varpool is in construction.
6529 (cgraph_analyze_functions): Rewrite.
6530 (cgraph_expand_all_functions): Update.
6531 (cgraph_output_in_order): Do not analyze pending decls; do not set
6532 needed flags.
6533 (cgraph_optimize): Do not analyze pending decls.
6534 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
6535 in other partition; do not mark node as needed.
6536 * dwarf2out.c (reference_to_unused): Use analyzed flag.
6537 (premark_types_used_by_global_vars_helper): Likewise.
6538 * ipa.c (process_references): Do not call varpool_mark_needed_node.
6539 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
6540 cgrpah queues.
6541 (function_and_variable_visibility): Do not mark node as needed.
6542 (whole_program_function_and_variable_visibility): Likewise.
6543 * Makefile.in (gt-varpool.h): No longer needed.
6544 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
6545 (ipa_write_summaries): Do not use needed flag.
6546 * varpool.c: Do not include gt-varpool.h
6547 (x_varpool_nodes_queue, x_varpool_last_needed_node,
6548 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
6549 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
6550 Remove.
6551 (varpool_remove_node): Do not update the lists.
6552 (dump_varpool_node): Do not dump needed flag.
6553 (varpool_enqueue_needed_node): Remove.
6554 (varpool_mark_needed_node): Remove.
6555 (varpool_reset_queue): Remove.
6556 (varpool_finalize_decl): Move to cgraphunit.c
6557 (varpool_analyze_node): New functions based on former
6558 varpool_analyze_pending_decls.
6559 (varpool_analyze_pending_decls): Remove.
6560 (varpool_assemble_decl): Do not update the lists.
6561 (enqueue_node): New function.
6562 (varpool_remove_unreferenced_decls): Rewrite.
6563 (varpool_empty_needed_queue): Remove.
6564 (add_new_static_var): Do not mark node as needed.
6565 (varpool_create_variable_alias): Handle expansion state
6566 creation.
6567 * except.c (output_ttype): Do not mark node as needed.
6568 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
6569 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
6570 Likewise.
6571 * tree-switch-conversion.c (build_one_array): Likewise.
6572
6573 2012-04-22 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
6574
6575 PR c/44774
6576 * doc/invoke.texi (pedantic): Rename to Wpedantic.
6577 * common.opt (Wpedantic): New.
6578 (pedantic): Alias Wpedantic.
6579 * diagnostic.c (warning_at): Likewise.
6580 * c-decl.c (diagnose_mismatched_decls): Likewise.
6581 (build_array_declarator): Likewise.
6582 (mark_forward_parm_decls):
6583 (check_bitfield_type_and_width): Likewise.
6584 (grokdeclarator): Likewise.
6585 (grokfield): Likewise.
6586 (finish_struct): Likewise.
6587 (build_enumerator): Likewise.
6588 (store_parm_decls_oldstyle): Likewise.
6589 (declspecs_add_qual): Likewise.
6590 (declspecs_add_type): Likewise.
6591 (finish_declspecs): Likewise.
6592 * c-typeck.c (composite_type): Likewise.
6593 (comp_target_types): Likewise.
6594 (build_array_ref): Likewise.
6595 (pointer_diff): Likewise.
6596 (build_unary_op): Likewise.
6597 (build_conditional_expr): Likewise.
6598 (build_c_cast): Likewise.
6599 (convert_for_assignment): Likewise.
6600 (maybe_warn_string_init): Likewise.
6601 (digest_init): Likewise.
6602 (pop_init_level): Likewise.
6603 (set_init_index): Likewise.
6604 (c_finish_goto_label): Likewise.
6605 (c_finish_return): Likewise.
6606 (do_case): Likewise.
6607 (build_binary_op): Likewise.
6608 * c-parser.c (static): Likewise.
6609 (c_parser_external_declaration): Likewise.
6610 (c_parser_declaration_or_fndef): Likewise.
6611 (c_parser_static_assert_declaration_no_se): Likewise.
6612 (c_parser_enum_specifier): Likewise.
6613 (c_parser_struct_or_union_specifier): Likewise.
6614 (c_parser_struct_declaration): Likewise.
6615 (c_parser_alignas_specifier): Likewise.
6616 (c_parser_braced_init): Likewise.
6617 (c_parser_initelt): Likewise.
6618 (c_parser_compound_statement_nostart): Likewise.
6619 (c_parser_conditional_expression): Likewise.
6620 (c_parser_alignof_expression): Likewise.
6621 (c_parser_postfix_expression): Likewise.
6622 (c_parser_postfix_expression_after_paren_): Likewise.
6623 (c_parser_objc_class_instance_variables): Likewise.
6624 (c_parser_objc_method_definition): Likewise.
6625 (c_parser_objc_methodprotolist): Likewise.
6626
6627 2012-04-22 Ian Lance Taylor <iant@google.com>
6628
6629 * godump.c (go_output_typedef): Dump size of structs.
6630
6631 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
6632
6633 Correcting transform_to_exit_first_loop + fix to PR46886
6634 * tree-parloops.c (transform_to_exit_first_loop): Remove
6635 setting of number of iterations according to the loop pattern.
6636 Duplicate from entry to exit->src instead of loop->latch.
6637 (pallelize_loops): Remove the condition preventing do-while loops.
6638 * tree-cfg.c (bool bb_in_region_p): New.
6639 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
6640 Adjust redirection of the duplicated iteration.
6641
6642 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
6643
6644 PR bootstrap/53021
6645 * rtl.def (ADDRESS): Use "i" rather than "w".
6646 * rtl.h (find_base_term): Delete.
6647 (may_be_sp_based_p): Declare.
6648 * rtl.c (rtx_code_size): Remove ADDRESS special case.
6649 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
6650 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
6651 * alias.c: ...here.
6652 (find_base_term): Make static.
6653 (may_be_sp_based_p): New function.
6654 * dse.c (record_store): Use it.
6655 * store-motion.c (store_killed_in_insn): Likewise.
6656
6657 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
6658
6659 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
6660
6661 2012-04-21 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
6662
6663 PR 35441
6664 * c-typeck.c (inform_declaration): New.
6665 (build_function_call_vec): Do not pretty-print
6666 expressions when caret is enabled.
6667 (convert_arguments): Use inform_declaration.
6668
6669 2012-04-20 Jim Meyering <meyering@redhat.com>
6670
6671 * genmodes.c (make_complex_modes): Don't truncate a mode name of
6672 length 7 or more when prepending a "C". Suggested by Richard Guenther.
6673
6674 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6675
6676 PR rtl-optimization/44214
6677 * fold-const.c (exact_inverse): New function.
6678 (fold_binary_loc): Fold vector and complex division by constant into
6679 multiply by recripocal with flag_reciprocal_math; fold vector division
6680 by constant into multiply by reciprocal with exact inverse.
6681
6682 2012-04-20 Jan Hubicka <jh@suse.cz>
6683
6684 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
6685 force flags.
6686 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
6687 (cgraph_remove_node): Update.
6688 (cgraph_mark_needed_node): Remove.
6689 (cgraph_mark_force_output_node): New.
6690 (dump_cgraph_node): Do not dump needed flag.
6691 (cgraph_node_cannot_be_local_p_1): Update.
6692 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
6693 * cgraph.h (symtab_node_base): Add force_output flag.
6694 (cgraph_node): Remove needed flag.
6695 (varpool_node): Remove force_output flag.
6696 (cgraph_mark_needed_node): Remove.
6697 (cgraph_mark_force_output_node): New.
6698 (cgraph_only_called_directly_or_aliased_p,
6699 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
6700 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
6701 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
6702 (cgraph_add_new_function): Update.
6703 (cgraph_mark_if_needed): Update.
6704 (verify_cgraph_node): Update.
6705 (cgraph_analyze_function): Alias target is reachable.
6706 (process_function_and_variable_attributes): Update: externally_visible
6707 flag makes function reachable.
6708 (cgraph_analyze_functions): Update dumping.
6709 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6710 input_overwrite_node, input_varpool_node): Update streaming.
6711 * lto-streamer-out.c (produce_symtab): Use force_output.
6712 * ipa.c (process_references): Weakrefs must be processed.
6713 (cgraph_remove_unreachable_nodes): Likewise; update for new
6714 force_output flag.
6715 (varpool_externally_visible_p): Weakrefs are externally visible
6716 even if they are not.
6717 (function_and_variable_visibility): Update; when processing alias
6718 pair force the targets to be output.
6719 (whole_program_function_and_variable_visility): Use
6720 mark_reachable_node.
6721 * trans-mem.c (ipa_tm_mark_needed_node): Remove
6722 (ipa_tm_mark_force_output_node): New function.
6723 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
6724 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
6725 aliases.
6726 * varasm.c (mark_decl_referenced): Update.
6727 (find_decl_and_mark_needed): Remove.
6728 (find_decl): New function.
6729 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
6730 alias targets as needed.
6731 (dump_tm_clone_pairs): Update.
6732 * tree-inline.c (copy_bb): Update check.
6733 * symtab.c (dump_symtab_base): Dump force_output.
6734 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
6735 * passes.c (execute_todo): Fix dumping.
6736 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
6737 (varpool_analyze_pending_decls): Alias target is reachable.
6738 (varpool_create_variable_alias): Finalize weakrefs.
6739
6740 2012-04-20 Jakub Jelinek <jakub@redhat.com>
6741
6742 PR bootstrap/53021
6743 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
6744 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
6745 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
6746 macros instead of constants.
6747 * dse.c (record_store): Check for SP ADDRESS by comparing
6748 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
6749 XEXP to be stack_pointer_rtx.
6750
6751 2012-04-20 Richard Guenther <rguenther@suse.de>
6752
6753 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
6754 update_call_from_tree when propagating into a call.
6755
6756 2012-04-20 Alan Modra <amodra@gmail.com>
6757
6758 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
6759 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
6760 sp_offset to frame_off. Move world save code earlier.
6761
6762 2012-04-20 Richard Guenther <rguenther@suse.de>
6763
6764 PR tree-optimization/53050
6765 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
6766 Do only one transform on COND_EXPRs at the same time.
6767
6768 2012-04-19 Jan Hubicka <jh@suse.cz>
6769
6770 * symtab.c (dump_symtab_base): Revert accidental checkin.
6771
6772 2012-04-20 Alan Modra <amodra@gmail.com>
6773
6774 PR target/53040
6775 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
6776 static chain, set REST_INLINE_FPRS too.
6777
6778 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
6779
6780 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
6781 nodes.
6782
6783 2012-04-20 Richard Guenther <rguenther@suse.de>
6784
6785 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
6786 loops that can never run more often than the vectorization factor.
6787
6788 2012-04-19 Jan Hubicka <jh@suse.cz>
6789
6790 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
6791
6792 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
6793
6794 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
6795
6796 2012-04-19 Jim Meyering <meyering@redhat.com>
6797
6798 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
6799 We verified above that the string(including trailing NUL) fits in buf,
6800 so just use memcpy.
6801
6802 2012-04-19 Richard Guenther <rguenther@suse.de>
6803
6804 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
6805 for dumping DECL_SECTION_NAME.
6806
6807 2012-04-19 Michael Matz <matz@suse.de>
6808
6809 PR middle-end/52977
6810 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
6811 (struct tree_vector): Adjust GTY length.
6812 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
6813
6814 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
6815 members.
6816 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
6817 caller emitted the length calulation already.
6818 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
6819 before handling any of the fields for structs.
6820
6821 2012-04-19 Richard Guenther <rguenther@suse.de>
6822
6823 PR tree-optimization/53031
6824 * tree-vrp.c (adjust_range_with_scev): Revert back to
6825 using max_loop_iterations.
6826
6827 2012-04-19 Michael Matz <matz@suse.de>
6828
6829 * diagnostic.c (emit_diagnostic): Move va_end call after user
6830 of the va_list.
6831 (warning, warning_at, pedwarn, permerror): Ditto.
6832
6833 2012-04-19 Richard Guenther <rguenther@suse.de>
6834
6835 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
6836 array access.
6837
6838 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
6839
6840 PR target/53033
6841 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
6842 the case *(X+const).
6843
6844 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6845
6846 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
6847
6848 2012-04-19 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
6849
6850 PR c/52283/37985
6851 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
6852 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
6853
6854 2012-04-19 Richard Guenther <rguenther@suse.de>
6855
6856 PR rtl-optimization/44688
6857 * loop-iv.c (determine_max_iter): Only return max_iter.
6858 (iv_number_of_iterations): Also use the recorded loop bound
6859 on the maximum number of iterations.
6860 * loop-unroll.c (decide_unroll_runtime_iterations): Use
6861 max_iter to avoid unrolling loops that do not roll.
6862 (decide_unroll_stupid): Likewise.
6863
6864 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
6865
6866 * targhooks.c (default_case_values_threshold): Fix code style nit.
6867
6868 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
6869 case range and type folding from here...
6870 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
6871 type, as documented in tree.def.
6872
6873 2012-04-18 Jan Hubicka <jh@suse.cz>
6874
6875 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
6876 Declare.
6877 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
6878 cgraph hash and same comdat groups.
6879 (cgraph_optimize): Verify symbol table.
6880 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
6881 (dissolve_same_comdat_group_list): Work on symtab nodes.
6882 (function_and_variable_visibility): Dissolve variable same comdat group
6883 lists, too.
6884 * symtab.c: Include timevar.h
6885 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
6886
6887 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
6888
6889 * tree-switch-conversion.c (info): Remove global pass info.
6890 (check_range, check_process_case, check_final_bb, create_temp_arrays,
6891 free_temp_arrays, gather_default_values, build_constructors,
6892 array_value_type, build_one_array, build_arrays, gen_def_assigns,
6893 fix_phi_nodes, gen_inbound_check): Pass info around from ...
6894 (process_switch): ... here. Unify message format. Return a const
6895 char pointer to the failure reason message.
6896 (do_switchconv): Unify message format. Update process_switch usage.
6897
6898 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
6899 * tree-cfg.c (edge_to_cases): Fix documentation.
6900
6901 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
6902
6903 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
6904
6905 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6906
6907 PR tree-optimization/52976
6908 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
6909 (possibly_move_powi): New function.
6910 (rewrite_expr_tree): Call possibly_move_powi.
6911 (rewrite_expr_tree_parallel): Likewise.
6912 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
6913 call add_to_ops_vec instead.
6914
6915 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6916
6917 PR tree-optimization/52976
6918 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
6919 (decrement_power): Likewise.
6920 (propagate_op_to_single_use): Likewise.
6921 (zero_one_operation): Handle __builtin_pow* calls in linearized
6922 expression trees; factor logic into propagate_op_to_single_use.
6923 (undistribute_ops_list): Allow operands with repeat counts > 1.
6924
6925 2012-04-18 Richard Guenther <rguenther@suse.de>
6926
6927 PR tree-optimization/44688
6928 * cfgloop.h (record_niter_bound): Declare.
6929 * tree-ssa-loop-niter.c (record_niter_bound): Export.
6930 Update the estimation with the upper bound here...
6931 (estimate_numbers_of_iterations_loop): ... instead of here.
6932 Do not forcefully reset a recorded upper bound.
6933 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
6934 Record the maximum number of loop iterations of the prologue loop.
6935
6936 2012-04-18 Jan Hubicka <jh@suse.cz>
6937
6938 * lto-symtab.c (lto_cgraph_replace_node): Update.
6939 * cgraphbuild.c (record_reference, record_type_list,
6940 record_eh_tables, mark_address, mark_load, mark_store): Update.
6941 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
6942 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
6943 Update.
6944 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
6945 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
6946 * reload.c: Fix typo in comment.
6947 * rtlanal.c: Likewise.
6948 * tree-emultls.c (gen_emutls_addr): Update.
6949 * ipa-reference.c (analyze_function): Update.
6950 * cgraphunit.c (cgraph_analyze_function,
6951 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
6952 Update.
6953 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
6954 (ipa_remove_reference): Likewise.
6955 (ipa_remove_all_refering): Rename to ...
6956 (ipa_remove_all_referring): ... this one; update.
6957 (ipa_dump_references): Update.
6958 (ipa_dump_referring): Update.
6959 (ipa_clone_references): Update.
6960 (ipa_clone_refering): Rename to ...
6961 (ipa_clone_referring): ... this one; update.
6962 (ipa_ref_cannot_lead_to_return): Update.
6963 (ipa_ref_has_aliases_p): Update.
6964 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
6965 forward typedefs.
6966 (ipa_ref_type): Remove.
6967 (ipa_ref_ptr_u): Remove.
6968 (ipa_ref): Remove referencing, refered, refered_index, refering_type
6969 and refered_type; add referring, referred and referred_index.
6970 (ipa_ref_list): Rename refering to referring.
6971 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
6972 ipa_clone_references, ipa_clone_referring): Update prototypes.
6973 * lto-cgraph.c (referenced_from_other_partition_p): Update.
6974 (lto_output_ref): Update.
6975 (add_references): Update.
6976 (input_varpool_node): Update.
6977 (input_refs): Update.
6978 * ipa-ref-inline.h (ipa_ref_node): Update.
6979 (ipa_ref_varpool_node): Update.
6980 (ipa_ref_referring_node): Update.
6981 (ipa_ref_referring_varpool_node): Update.
6982 (ipa_ref_referring_ref_list): Update.
6983 (ipa_ref_referred_ref_list): Update.
6984 (ipa_ref_list_first_referring): Update.
6985 (ipa_empty_ref_list): Update.
6986 (ipa_ref_list_refering_iterate): Rename to ...
6987 (ipa_ref_list_referring_iterate): ... this one.
6988 * cse.c: Update comment.
6989 * ipa-utils.c (ipa_reverse_postorder): Update.
6990 * tree-ssa-alias.c: Update.
6991 * ipa-inline.c (reset_edge_caches): Update.
6992 (update_caller_keys): Update.
6993 * ipa-inline.h: Update comments.
6994 * jump.c: Update comment.
6995 * alias.c: Likewise.
6996 * ipa.c (process_references): Update.
6997 (cgraph_remove_unreachable_nodes): Likewise.
6998 (ipa_discover_readonly_nonaddressable_var): Likewise.
6999 (cgraph_address_taken_from_non_vtable_p): Likewise.
7000 * trans-mem.c (ipa_tm_execute): Update.
7001 * simplify-rtx.c: Fix comment.
7002 * rtl.c: Fix comment.
7003 * symtab.c (symtab_unregister_node): Update.
7004 * varpool.c (dump_varpool_node): Update.
7005 (varpool_analyze_pending_decls): Update.
7006 (assemble_aliases): Update.
7007 (varpool_for_node_and_aliases): Update.
7008
7009 2012-04-18 Richard Guenther <rguenther@suse.de>
7010
7011 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
7012 use_undefined_p parameter.
7013 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
7014 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
7015 Likewise.
7016 (estimate_numbers_of_iterations): Likewise.
7017 (estimated_loop_iterations): Adjust.
7018 (max_loop_iterations): Likewise.
7019 (scev_probably_wraps_p): Likewise.
7020 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
7021 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
7022 not max_loop_iterations.
7023 (execute_vrp): Remove explicit number of iterations estimation.
7024
7025 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
7026
7027 * config/i386/linux-common.h: New.
7028
7029 * config.gcc: Add i386/linux-common.h before
7030 all i386/linux.h and i386/linux64.h usages.
7031
7032 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
7033 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
7034 * config/i386/gnu-user64.h: Likewise.
7035
7036 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
7037 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
7038 (GNU_USER_TARGET_MATHFILE_SPEC): New.
7039 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
7040
7041 2012-04-18 Jan Hubicka <jh@suse.cz>
7042
7043 * cgraph.c (cgraph_node_name): Remove.
7044 (dump_cgraph_node): Use dump_symtab_base; reformat.
7045 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
7046 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
7047 Declare.
7048 (cgraph_node_name, varpool_node_name): Remove.
7049 (cgraph_node_asm_name, varpool_node_asm_name,
7050 cgraph_node_name, varpool_node_name): New.
7051 * tree-pass.h (TODO_dump_cgraph): Rename to ...
7052 (TODO_dump_symtab): ... this one.
7053 * ipa-cp (pass_ipa_cp): Update.
7054 * ia-reference.c (generate_summary, read_write_all_from_decl,
7055 propagate, ipa_reference_read_optimization_summary): Update.
7056 * cgraphunit.c (cgraph_analyze_functions): Update.
7057 (cgraph_optimize): Update.
7058 * ipa-ref.c (ipa_dump_references): Update.
7059 (ipa_dump_refering): Update.
7060 * ipa-inline.c (pass_ipa_inline): Update.
7061 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
7062 * ipa.c (pass_ipa_function_visibility,
7063 pass_ipa_whole_program_visibility): Update.
7064 * tree-sra.c (pass_early_ipa_sra): Update.
7065 * symtab.c: Include langhooks.h
7066 (symtab_node_asm_name): New.
7067 (symtab_node_name): New.
7068 (symtab_type_names): New static var.
7069 (dump_symtab_base): New.
7070 (dump_symtab_node, dump_symtab): New.
7071 (debug_symtab_node, debug_symtab): New.
7072 * tree-ssa-structalias.c: Dump symbol table.
7073 * pases.c (execute_todo): Handle TODO_dump_symtab instead
7074 of TODO_dump_cgraph.
7075 * varpoo.c (varpool_node_name): Remove.
7076 (dump_varpool_node): Use dump_symtab_base; reformat.
7077
7078 2012-04-18 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
7079
7080 * doc/invoke.texi (Language Independent Options): @item should be
7081 before @opindex.
7082
7083 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7084
7085 PR bootstrap/53021
7086 * rtl.c (rtx_code_size): Handle ADDRESS.
7087
7088 2012-04-17 Tom de Vries <tom@codesourcery.com>
7089
7090 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
7091 is not a STMT_LIST.
7092
7093 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
7094
7095 PR target/53020
7096 * config/i386/sync.md (atomic_<code><mode>): Rename to
7097 atomic_<logic><mode>.
7098
7099 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7100
7101 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
7102 * alias.c (reg_base_value): Expand and update comment.
7103 (arg_base_value): New variable.
7104 (unique_id): Move up file.
7105 (unique_base_value, unique_base_value_p, known_base_value_p): New.
7106 (find_base_value): Use arg_base_value and known_base_value_p.
7107 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
7108 (find_base_term): Use known_base_value_p.
7109 (base_alias_check): Use unique_base_value_p.
7110 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
7111 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
7112
7113 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
7114
7115 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
7116
7117 2012-04-17 Michael Matz <matz@suse.de>
7118
7119 PR tree-optimization/18437
7120 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
7121 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
7122 (vect_check_strided_load): Declare.
7123 * tree-vect-data-refs.c (vect_check_strided_load): New function.
7124 (vect_analyze_data_refs): Use it to accept strided loads.
7125 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
7126
7127 2012-04-17 Richard Guenther <rguenther@suse.de>
7128
7129 PR middle-end/53011
7130 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
7131 loops when redirecting an entry or latch edge.
7132
7133 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
7134
7135 * sel-sched.c (sel_global_init): Revert previous change.
7136
7137 2012-04-17 Richard Guenther <rguenther@suse.de>
7138
7139 * tree-flow.h (array_at_struct_end_p): Move declaration ...
7140 * tree.h (array_at_struct_end_p): ... here.
7141 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
7142 * expr.c (array_at_struct_end_p): ... here. Rewrite.
7143
7144 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
7145
7146 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
7147 COST_TABLE): Remove.
7148 (estimate_case_costs): Remove.
7149 (expand_case): Do not call estimate_case_costs
7150 to set use_cost_table.
7151 (balance_case_nodes): Do not use use_cost_table.
7152
7153 2012-04-16 Jan Hubicka <jh@suse.cz>
7154
7155 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
7156 (hash_node, eq_node): Remove.
7157 (cgraph_create_node): Do not handle hashtable.
7158 (cgraph_get_node): Remove.
7159 (cgraph_insert_node_to_hashtable): Remove.
7160 (hash_node_by_assembler_name): Remove.
7161 (eq_assembler_name): Remove.
7162 (cgraph_node_for_asm): Rewrite.
7163 (cgraph_find_replacement_node): Break out from ...
7164 (cgraph_remove_node): ... here; do not maintain hashtables.
7165 (change_decl_assembler_name): Remove.
7166 (cgraph_clone_node): Do not maintain hashtables.
7167 * cgraph.h (const_symtab_node): New typedef.
7168 (cgraph_insert_node_to_hashtable): Remove.
7169 (symtab_get_node, symtab_node_for_asm,
7170 symtab_insert_node_to_hashtable): Declare.
7171 (cgraph_find_replacement_node): Declare.
7172 (cgraph_get_node, varpool_get_node): Turn into inlines.
7173 (cgraph, varpool): Work sanely on NULL pointers.
7174 (FOR_EACH_SYMBOL): New walker.
7175 * ipa-inline-transform.c (save_inline_function_body): Use
7176 symtab_insert_node_to_hashtable.
7177 * symtab.c: Include ggc.h and diagnostics.h
7178 (symtab_hash, assembler_name_hash): New static vars;
7179 (hash_node, eq_node, hash_node_by_assembler_name,
7180 eq_assembler_name, insert_to_assembler_name_hash,
7181 unlink_from_assembler_name_hash): New.
7182 (symtab_register_node): Update hashtables.
7183 (symtab_insert_node_to_hashtable): New.
7184 (symtab_unregister_node): Update hashtables.
7185 (symtab_get_node): New.
7186 (symtab_node_for_asm): New.
7187 (change_decl_assembler_name): New.
7188 * Makefile.in (symtab.o): Needs GTY.
7189 * varpool.c (varpool_hash): Remove.
7190 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
7191 (varpool_node): Rewrite using varpool_get_node.
7192 (varpool_remove_node): DO not maintain hashtables.
7193 (varpool_node_for_asm): Rewrite.
7194
7195 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
7196
7197 * doc/invoke.texi: Copy-edit to put verbs in the present tense
7198 when describing the current behavior of GCC.
7199
7200 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
7201
7202 * genemit.c (gen_exp): Remove ADDRESS handling.
7203 * genoutput.c (scan_operands): Likewise.
7204 * genpeep.c (match_rtx): Likewise.
7205 * genrecog.c (add_to_sequence): Likewise.
7206
7207 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
7208
7209 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
7210
7211 2012-04-16 Martin Jambor <mjambor@suse.cz>
7212
7213 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
7214 bit-fields.
7215
7216 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
7217
7218 PR target/51819
7219 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
7220 hints for 'A' operand types.
7221
7222 2012-04-16 Jan Hubicka <jh@suse.cz>
7223
7224 * cgraph.h (symtab_node_base): Add next and previous pointers.
7225 (cgraph_node): Remove next and preivous pointers.
7226 (varpool_node): Likewise; remove next/previous GTY marker;
7227 it is not type safe.
7228 (symtab_node_def): Update GTY marker
7229 (x_cgraph_nodes, cgraph_nodes): Remove.
7230 (symtab_nodes): New function.
7231 (cgraph_order): Rename to ...
7232 (symtab_order): ... this one.
7233 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
7234 Declare.
7235 (x_varpool_nodes, varpool_nodes): Remove.
7236 (FOR_EACH_STATIC_VARIABLE): Update.
7237 (symtab_function_p, symtab_variable_p): New function.
7238 (FOR_EACH_VARIABLE): Update.
7239 (varpool_first_variable, varpool_next_variable): New functions.
7240 (FOR_EACH_VARIABLE): Update.
7241 (cgraph_first_defined_function): Update.
7242 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
7243 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
7244 (cgraph_first_function, cgraph_next_function): New.
7245 (FOR_EACH_FUNCTION): Update.
7246 (cgraph_first_function_with_gimple_body,
7247 cgraph_next_function_with_gimple_body): Update.
7248 * symtab.c: New file.
7249 * cgraph.c: Update copyright dates.
7250 (x_cgraph_nodes, cgraph_order): Remove.
7251 (NEXT_FREE_NODE): Update.
7252 (SET_NEXT_FREE_NODE): New.
7253 (cgraph_create_node_1): Remove common code.
7254 (cgraph_create_node): Remove common code; call symtab_register_node.
7255 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
7256 (cgraph_add_asm_node): Update.
7257 (cgraph_clone_node): Register new node.
7258 * cgraphunit.c (process_function_and_variable_attributes): Update.
7259 (cgraph_analyze_functions): Update.
7260 (cgraph_analyze_functions): Update.
7261 (cgraph_output_in_order): Update.
7262 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
7263 Update.
7264 * ipa-inline.c (recursive_inlining): Update.
7265 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
7266 * ipa.c (cgraph_remove_unreachable_nodes): Update.
7267 * Makefile.in: Add symtab.o
7268 * varpool.c (x_varpool_nodes): Remove
7269 (varpool_node): Remove common code; call symtab_register_node.
7270 (varpool_remove_node): Remove common code; call symtab_unregister_node.
7271
7272 2012-04-16 Richard Guenther <rguenther@suse.de>
7273
7274 PR middle-end/52977
7275 * tree.h (VECTOR_CST_NELTS): Adjust.
7276 (struct tree_vector): Add explicit length field.
7277 (make_vector_stat): Declare.
7278 (make_vector): Define.
7279 * tree.c (make_vector_stat): New function.
7280 (build_vector_stat): Use it.
7281 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
7282
7283 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7284
7285 PR tree-optimization/52976
7286 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
7287 (undistribute_ops_list): Ops with repeat counts aren't eligible for
7288 undistribution.
7289 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
7290
7291 2012-04-16 Jan Hubicka <jh@suse.cz>
7292
7293 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
7294 New macros.
7295 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
7296 walkers to walk cgraph and varpool.
7297 * cgraph.c (cgraph_node_for_asm): Likewise.
7298 (dump_cgraph): Likewise.
7299 * value-prof.c (init_node_map): Likewise.
7300 * tree.c (free_lang_data_in_cgraph): Likewise.
7301 * tree-emutls.c: (ipa_lower_emutls): Likewise.
7302 * ipa-reference.c (generate_summary, propagate): Likewise.
7303 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
7304 cgraph_mark_functions_to_output, cgraph_output_in_order,
7305 output_weakrefs, cgraph_materialize_all_clones,
7306 cgraph_optimize): Likewise.
7307 * lto-cgraph.c (merge_profile_summaries): Likewise.
7308 (input_cgraph): Likewise.
7309 * ipa-pure-const.c (generate_summary): Likewise.
7310 (propagate): Likwise.
7311 * ipa-utils.c (ipa_reduced_postorder): Likewise.
7312 (ipa_free_postorder_info): Likewise.
7313 (ipa_reverse_postorder): Likewise.
7314 * ipa-inline.c (ipa_inline): Likewise.
7315 * matrix-reorg.c (find_matrices_decl): Likewise.
7316 (matrix_reorg): Likewise.
7317 * tree-vectorizer.c (increase_alignment): Likewise.
7318 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7319 (function_and_variable_visibility): Likewise.
7320 (whole_program_function_and_variable_visibility): Likewise.
7321 (ipa_cdtor_merge): Likewise.
7322 * trans-mem.c (ipa_tm_execute): Likewise.
7323 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
7324 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
7325 (ipa_print_all_params): Likewise.
7326 (ipa_update_after_lto_read): Likewise.
7327 * tree-profie.c (tree_profiling): Likewise.
7328 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7329 * passes.c (dump_passes): Likewise.
7330 (do_per_function): Likewise.
7331 (ipa_write_summaries): Likewise.
7332 * varpool.c (dump_varpool): Likewise.
7333 (varpool_node_for_asm): Likewise.
7334 (varpool_assemble_pending_decls): Likewise.
7335
7336 2012-04-16 Richard Guenther <rguenther@suse.de>
7337
7338 PR tree-optimization/52975
7339 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
7340 condition but always mark it with TRUTH_NOT_EXPR.
7341
7342 2012-04-16 Richard Guenther <rguenther@suse.de>
7343
7344 PR tree-optimization/52975
7345 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
7346 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
7347 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
7348 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
7349
7350 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
7351
7352 * config/i386/sse.md (ssse3_plusminus): New code iterator.
7353 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
7354 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
7355 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
7356 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
7357 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
7358 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
7359
7360 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
7361 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
7362 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
7363 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
7364 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
7365 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
7366
7367 (xop_plus): New code iterator.
7368 (macs): New code attribute.
7369 (macds): Ditto.
7370 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
7371 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
7372 iterator.
7373 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
7374 xop_plus code iterator.
7375 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
7376 xop_plus code iterator.
7377 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
7378 xop_plus code iterator.
7379 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
7380 xop_plus code iterator.
7381
7382 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
7383 any_extend code iterator.
7384 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
7385 any_extend code iterator.
7386 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
7387 any_extend code iterator.
7388 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
7389 any_extend code iterator.
7390 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
7391 any_extend code iterator.
7392 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
7393 any_extend code iterator.
7394
7395 2012-04-14 Tom de Vries <tom@codesourcery.com>
7396
7397 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
7398 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
7399 DELETED_LABEL note, and move it to ...
7400 * cfgrtl.c (delete_insn): ... here. Change return type to void.
7401 (delete_insn_and_edges): Likewise.
7402 (delete_insn_chain): Handle new return type of delete_insn. Delete
7403 chain backwards rather than forwards.
7404 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
7405 void.
7406 * cfglayout.c (fixup_reorder_chain): Delete unused label.
7407
7408 2012-04-14 Jan Hubicka <jh@suse.cz>
7409
7410 * cgraph.h: Update copyrights;
7411 (symtab_node): Turn to union typedef.
7412 (symtab_node_base): New structure.
7413 (symtab_type): Add SYMTAB_SYMBOL tag.
7414 (cgraph_node): Annotate some pinters with nested_ptr.
7415 (varpool_node): Likewise.
7416 (cgraph_local_info): Remove lto_file_data
7417 and externally_visible.
7418 (cgraph_node): Remove decl; same_comdat_group list;
7419 aux; ref_list; order; address_taken; reachable_from_other_parittion,
7420 in_other_partition; resolution.
7421 (varpool_node): Remove decl; same_comdat_group;
7422 ref_list; lto_file_data; aux; order; resolution; externally_visible;
7423 used_from_other_partition; in_other_partition.
7424 (symtab_node_def): New union.
7425 (cgraph, varpool): Update.
7426 (varpool_first_static_initializer, varpool_next_static_initializer,
7427 cgraph_only_called_directly_or_aliased_p,
7428 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
7429 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
7430 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
7431 field references.
7432 * cgraph.c: Likewise.
7433 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
7434 * cgraphbuild.c: Likewise.
7435 * lto-symtab.c: Likewise.
7436 * c-gimplify.c: Likewise.
7437 * value-prof.c: Likewise.
7438 * tree.c: Likewise.
7439 * ipa-cp.c: Likewise.
7440 * tree-emutls.c: Likewise.
7441 * ipa-inline-transform.c: Likwise.
7442 * ipa-reference.c: Likewise.
7443 * cgraphunit.c: Likewise.
7444 * ipa-ref.c: Likewise.
7445 * lto-cgraph.c: Likewise.
7446 * ipa-ref-inline.h: Likewise.
7447 * ipa-pure-const.c: Likewise.
7448 * lto-streamer-out.c: Likewise.
7449 * ipa-utils.c: Likewise.
7450 * ipa-inline.c: Likewise.
7451 * matrix-reorg.c: Likewise.
7452 * tree-eh.c: Likewise.
7453 * tree-vectorizer.c: Likewise.
7454 * ipa-split.c: Likewise.
7455 * ipa.c: Likewise.
7456 * trans-mem.c: Likewise.
7457 * ipa-inline-analysis.c: Likewise.
7458 * gimplify.c: Likewise.
7459 * cfgexpand.c: Likewise.
7460 * tree-sra.c: Likewise.
7461 * ipa-prop.c: Likewise.
7462 * varasm.c: Likewise.
7463 * tree-nested.c: Likewise.
7464 * tree-inline.c: Likewise.
7465 * tree-profile.c: Likewise.
7466 * tree-ssa-structalias.c: Likewise.
7467 * passes.c: Likewise.
7468 * varpool.c: Likewise.
7469
7470 2012-04-14 Tom de Vries <tom@codesourcery.com>
7471
7472 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
7473 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
7474 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
7475 of find_edge.
7476 (gsi_advance_fw_nondebug_nonlocal): New function.
7477 (local_def): Removed function.
7478 (same_succ_hash): Use stmt_local_def.
7479 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
7480 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
7481
7482 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
7483
7484 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
7485 and __ILP32__ for x32.
7486
7487 2012-04-13 Martin Jambor <mjambor@suse.cz>
7488
7489 PR middle-end/52939
7490 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
7491 fold_ctor_reference returns a zero constant.
7492
7493 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
7494
7495 * config.gcc: Add i386/gnu-user-common.h before all
7496 i386/gnu-user.h and i386/gnu-user64.h usages.
7497
7498 * config/i386/gnu-user-common.h: New.
7499
7500 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
7501 (CC1_SPEC): Likewise.
7502 (ENDFILE_SPEC): Likewise.
7503 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
7504 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
7505 (TARGET_OS_CPP_BUILTINS): Likewise.
7506 (LIBGCC2_HAS_TF_MODE): Likewise.
7507 (LIBGCC2_TF_CEXT): Likewise.
7508 (TF_SIZE): Likewise.
7509 (TARGET_ASM_FILE_END): Likewise.
7510 (STACK_CHECK_MOVING_SP): Likewise.
7511 (STACK_CHECK_STATIC_BUILTIN): Likewise.
7512 * config/i386/gnu-user64.h: Likewise.
7513
7514 2012-04-13 Martin Jambor <mjambor@suse.cz>
7515
7516 * expr.c (expand_expr_real_1): Pass type, not the expression, to
7517 set_mem_attributes for a memory temporary. Do not call the function
7518 for the memory temporary created for a bitfield.
7519
7520 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
7521
7522 PR debug/48866
7523 * df.h (enum debug_temp_where): New.
7524 (dead_debug_init, dead_debug_finish) Declare.
7525 (dead_debug_add, dead_debug_insert_temp): Declare.
7526 (struct dead_debug_use, struct dead_debug): Moved from...
7527 * df-problems.c: ... here.
7528 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
7529 to a debug temp.
7530 (df_create_unused_note): Likewise.
7531 (df_set_dead_notes_for_mw): Move comment where it belongs.
7532 (dead_debug_init): Export.
7533 (dead_debug_reset_uses): New, factored out of...
7534 (dead_debug_finish): ...this. Export.
7535 (dead_debug_reset): Remove.
7536 (dead_debug_add): Export.
7537 (dead_debug_insert_before): Rename to...
7538 (dead_debug_insert_temp): ... this. Add where argument. Export.
7539 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
7540 Return insertion count.
7541 (df_note_bb_compute): Adjust.
7542 * dce.c (word_dce_process_block): Adjust dead debug uses.
7543 (dce_process_block): Likewise.
7544
7545 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
7546
7547 * df-problems.c (df_note_bb_compute): Do not take note of
7548 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
7549
7550 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
7551
7552 PR debug/51570
7553 * var-tracking.c (expand_depth): New type.
7554 (onepart_aux, expand_loc_callback_data): Change depth type to it.
7555 (loc_exp_dep_alloc): Adjust initializer.
7556 (update_depth): Use new type. Add entryvals.
7557 (vt_expand_var_loc_chain): Take note of expansions with
7558 ENTRY_VALUEs, but don't accept them right away. Run an optional
7559 second pass accepting the minimum ENTRY_VALUE count found in the
7560 first pass.
7561 (vt_expand_loc_callback, INIT_ELCD): Adjust.
7562
7563 2012-04-13 Tom de Vries <tom@codesourcery.com>
7564
7565 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
7566 parameters vuse and vuse_escaped.
7567 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
7568 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
7569 vuse1 != vuse2.
7570
7571 2012-04-13 Richard Guenther <rguenther@suse.de>
7572
7573 PR tree-optimization/52969
7574 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
7575 the condition for the COND_EXPR and handle predicate negation
7576 by swapping the COND_EXPR arms.
7577
7578 2012-04-13 Nick Clifton <nickc@redhat.com>
7579
7580 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
7581 TODO_dump_func flag.
7582
7583 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
7584
7585 PR rtl-optimization/52203
7586 PR rtl-optimization/52715
7587
7588 Revert the 2012-03-07 fix for PR 52203.
7589 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
7590 the insn does not modify DFA right before issuing, adjust
7591 issue_rate accordingly.
7592
7593 2012-04-13 Richard Guenther <rguenther@suse.de>
7594
7595 PR c/52549
7596 * c-typeck.c (pointer_diff): Remove bogus assert.
7597
7598 2012-04-13 Richard Guenther <rguenther@suse.de>
7599
7600 PR c/52862
7601 * convert.c (convert_to_pointer): Remove special-casing of zero.
7602
7603 2012-04-13 Joey Ye <joey.ye@arm.com>
7604
7605 * config/arm/constraints.md (Pe): New constraint.
7606 * config/arm/arm.md: New split for imm 256-510.
7607
7608 2012-04-13 Terry Guo <terry.guo@arm.com>
7609
7610 * config/arm/arm-cores.def: Added core cortex-m0plus.
7611 * config/arm/arm-tune.md: Regenerated.
7612 * config/arm/arm-tables.opt: Regenerated.
7613 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
7614
7615 2012-04-13 Alan Modra <amodra@gmail.com>
7616
7617 PR target/52828
7618 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
7619 tie regs on destination of sets. Delete forward declaration.
7620 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
7621 (rs6000_emit_prologue): Likewise.
7622 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
7623 and gen_stack_tie.
7624 (is_mem_ref): Use tie_operand to recognise stack ties.
7625 * config/rs6000/predicates.md (tie_operand): New.
7626 * config/rs6000/rs6000.md (restore_stack_block): Generate new
7627 stack tie rtl.
7628 (restore_stack_nonlocal): Likewise.
7629 (stack_tie): Update.
7630 (frame_tie): Delete.
7631
7632 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7633
7634 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
7635 HOST_WIDE_INT_PRINT_DEC in format strings.
7636
7637 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
7638
7639 PR target/52932
7640 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
7641 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
7642 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
7643 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
7644 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
7645 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
7646 avx2_permvarv8si using VI4F_256 mode iterator.
7647 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
7648 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
7649 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
7650 gen_avx2_permvarv8sf.
7651 (expand_vec_perm_pshufb): Ditto.
7652
7653 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7654
7655 PR target/52775
7656 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
7657 the list of options to enable the FCFID instruction.
7658 (TARGET_EXTRA_BUILTINS): Adjust comment.
7659
7660 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7661
7662 PR tree-optimization/18589
7663 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
7664 (operand_entry): Add count field.
7665 (add_repeat_to_ops_vec): New function.
7666 (completely_remove_stmt): Likewise.
7667 (remove_def_if_absorbed_call): Likewise.
7668 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
7669 (acceptable_pow_call): New function.
7670 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
7671 entries with repeat counts when found.
7672 (repeat_factor_d): New struct and associated typedefs.
7673 (repeat_factor_vec): New static vector variable.
7674 (compare_repeat_factors): New function.
7675 (get_reassoc_pow_ssa_name): Likewise.
7676 (attempt_builtin_powi): Likewise.
7677 (reassociate_bb): Call attempt_builtin_powi.
7678 (fini_reassoc): Two new calls to statistics_counter_event.
7679
7680 2012-04-12 Richard Guenther <rguenther@suse.de>
7681
7682 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
7683 * cgraph.h (tree_rest_of_compilation): Remove.
7684 * cgraph.c (cgraph_add_new_function): Move ...
7685 * cgraphunit.c (cgraph_add_new_function): ... here.
7686 (tree_rest_of_compilation): Make static.
7687 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
7688 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
7689 gate_all_early_local_passes, execute_all_early_local_passes,
7690 pass_early_local_passes, gate_all_early_optimizations,
7691 pass_all_early_optimizations): Move ...
7692 * passes.c (gate_all_optimizations, pass_all_optimizations,
7693 gate_all_early_local_passes, execute_all_early_local_passes,
7694 pass_early_local_passes, gate_all_early_optimizations,
7695 pass_all_early_optimizations): ... here.
7696 * tree-optimize.c (execute_free_datastructures): Remove.
7697 * tree-flow.h (execute_free_datastructures): Remove.
7698 * tree-optimize.c (execute_init_datastructures,
7699 pass_init_datastructures): Move ...
7700 * tree-ssa.c (execute_init_datastructures,
7701 pass_init_datastructures): ... here.
7702 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
7703 execute_free_datastructures.
7704
7705 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
7706
7707 * dbgcnt.def (ira_move): New counter.
7708 * ira-int.h (ira_create_new_reg): Declare function.
7709 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
7710 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
7711 no longer static. All callers changed.
7712 * ira.c: Include "dbgcnt.h".
7713 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
7714 move_unallocated_pseudos): New static functions.
7715 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
7716 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
7717 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
7718 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
7719 to the pseudos generated in find_moveable_pseudos.
7720 * Makefile.in (ira.o): Add $(DBGCNT_H).
7721
7722 2012-04-12 Richard Guenther <rguenther@suse.de>
7723
7724 PR tree-optimization/52943
7725 * tree-chrec.h (chrec_is_positive): Remove.
7726 * tree-scalar-evolution.c (chrec_is_positive): Move ...
7727 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
7728 Return false for a constant zero instead of negative.
7729 (analyze_siv_subscript_cst_affine): Handle zero difference
7730 in the initial condition explicitely.
7731
7732 2012-04-12 Richard Guenther <rguenther@suse.de>
7733
7734 * tree-parloops.c (parallelize_loops): Also consult the upper
7735 bound for the number of iterations.
7736 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7737 (loop_prefetch_arrays): Likewise.
7738
7739 2012-04-12 Richard Guenther <rguenther@suse.de>
7740
7741 * cfgloop.h (estimated_loop_iterations_int): Ditch
7742 'conservative' parameter.
7743 (max_stmt_executions_int): Likewise.
7744 (estimated_loop_iterations): Likewise.
7745 (max_stmt_executions): Likewise.
7746 (max_loop_iterations): Declare.
7747 (max_loop_iterations_int): Likewise.
7748 (estimated_stmt_executions): Likewise.
7749 (estimated_stmt_executions_int): Likewise.
7750 * tree-ssa-loop-niter.c (estimated_loop_iterations):
7751 Split parts to ...
7752 (max_loop_iterations): ... this.
7753 (estimated_loop_iterations_int): Split parts to ...
7754 (max_loop_iterations_int): ... this.
7755 (max_stmt_executions_int): Split parts to ...
7756 (estimated_stmt_executions_int): ... this.
7757 (max_stmt_executions): Split parts to ...
7758 (estimated_stmt_executions): ... this.
7759 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
7760 * predict.c (predict_loops): Likewise.
7761 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
7762 (analyze_siv_subscript_cst_affine): Likewise.
7763 (compute_overlap_steps_for_affine_1_2): Likewise.
7764 (analyze_subscript_affine_affine): Likewise.
7765 (init_omega_for_ddr_1): Likewise.
7766 * tree-parloops.c (parallelize_loops): Likewise.
7767 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7768 (may_eliminate_iv): Likewise.
7769 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
7770 (loop_prefetch_arrays): Likewise.
7771 * tree-vrp.c (adjust_range_with_scev): Likewise.
7772
7773 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
7774
7775 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
7776 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
7777 Fix line width.
7778 (dump_table): Use bool type for need_align and have_df variables.
7779 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
7780 (regs_used): Remove register modifier.
7781 (barrier_align): Move variables slot, credit, jump_to_next
7782 into if block above for loop. Use bool type for jump_to_next.
7783 (sh_function_arg): Use NULL_RTX instead of 0.
7784
7785 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
7786
7787 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
7788 (bswapsi2): New expander.
7789
7790 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
7791
7792 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
7793 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
7794
7795 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
7796
7797 PR rtl-optimization/52876
7798 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
7799 Don't call mark_reg_pointer for incompatible pointer sign extension.
7800
7801 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
7802 directly.
7803
7804 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
7805
7806 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
7807 comparisons against TYPE_PRECISION.
7808 * tree-ssa-forwprop.c (combine_conversions): Likewise.
7809
7810 2012-04-11 Xinliang David Li <davidxl@google.com>
7811
7812 * tree-passes.h: Remove TODO_dump_func.
7813 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
7814 * trans-mem.c: Remove TODO_dump_func.
7815 * ira.c: Remove TODO_dump_func.
7816
7817 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
7818
7819 * config/i386/i386.c (ix86_option_override_internal): Check
7820 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
7821 after TARGET_64BIT is updated.
7822
7823 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7824
7825 * config/sh/sh.h: Remove old secondary reload code.
7826
7827 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7828
7829 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
7830 (ready_reorder): ... this function.
7831
7832 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
7833
7834 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
7835 sched_init calls.
7836
7837 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
7838 insns so that no other insn is queued for a time before them.
7839
7840 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
7841 unknown.
7842
7843 2012-04-11 Richard Guenther <rguenther@suse.de>
7844
7845 PR middle-end/52621
7846 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
7847 consider loop nesting.
7848 (evolution_function_is_univariate_p): Properly check the remainder
7849 for chrecs.
7850
7851 2012-04-11 Richard Guenther <rguenther@suse.de>
7852
7853 PR middle-end/52918
7854 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
7855
7856 2012-04-11 Nick Clifton <nickc@redhat.com>
7857
7858 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
7859 information, if requested.
7860
7861 * config/rx/rx.c (rx_expand_prologue): Likewise.
7862
7863 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
7864 Michael Matz <matz@suse.de>
7865
7866 PR target/16458
7867 * rtlanal.c (unsigned_reg_p): New function.
7868 Update copyright notice dates.
7869 * rtl.h (unsigned_reg_p): Prototype it.
7870 Update copyright notice dates.
7871 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
7872 Update comment.
7873 * expr.c (expand_expr_real_1): Set register attributes.
7874 * stmt.c (expand_case): Likewise.
7875
7876 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7877
7878 PR target/50751
7879 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
7880 consider_sh2a and allow_zero.
7881 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
7882 (disp_addr_displacement): New function.
7883 (sh_address_cost): Use disp_addr_displacement function instead
7884 of DISP_ADDR_OFFSET.
7885 (sh_legitimate_address_p): Adapt to changed
7886 sh_legitimate_index_p declaration.
7887 (sh_find_mov_disp_adjust): Remove HImode check.
7888 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
7889 disp_addr_displacement and max_mov_insn_displacement.
7890 (max_mov_insn_displacement): Remove HImode check.
7891 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
7892 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
7893 * config/sh/constraints.md (K05, K13): New constraints.
7894 (K12): Correct comment.
7895 (Sdd): Do not use DISP_ADDR_P macro.
7896 (Snd, Sbw): Use satisfies_constraint_Sdd.
7897 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
7898 (*extendhisi2_compact, movhi_i): Remove.
7899 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
7900 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
7901 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
7902 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
7903 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
7904 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
7905 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
7906 CONST_OK_FOR_Kxx.
7907 Add new peepholes for HImode displacement addressing.
7908
7909 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
7910
7911 * config/sh/sh.h (SIDI_OFF): Remove.
7912 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
7913 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
7914 or operand_subword.
7915
7916 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7917
7918 PR target/52624
7919 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
7920 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
7921 * doc/md.texi (Standard Names): Add bswap.
7922 * builtin-types.def (BT_UINT16): New primitive type.
7923 (BT_FN_UINT16_UINT16): New function type.
7924 * builtins.def (BUILT_IN_BSWAP16): New.
7925 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
7926 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
7927 expand_builtin_bswap.
7928 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
7929 (fold_builtin_1): Likewise.
7930 (is_inexpensive_builtin): Likewise.
7931 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
7932 missing bits for bswap to libcall code.
7933 * tree.c (build_common_tree_nodes): Build uint16_type_node.
7934 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
7935 (uint16_type_node): New define.
7936 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
7937 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
7938 above builtin.
7939 (rs6000_init_builtins): Likewise.
7940 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
7941
7942 2012-04-11 Tristan Gingold <gingold@adacore.com>
7943
7944 * doc/extend.texi (Type Attributes): Move paragraph.
7945
7946 2012-04-11 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
7947
7948 PR 24985
7949 * diagnostic.h (show_caret): Declare.
7950 (caret_max_width): Declare.
7951 (diagnostic_show_locus): Declare.
7952 * diagnostic.c (diagnostic_initialize): Initialize to false.
7953 (diagnostic_show_locus): New.
7954 (diagnostic_report_diagnostic): Call it.
7955 (getenv_columns): New.
7956 (adjust_line): New.
7957 (diagnostic_set_caret_max_width): New.
7958 * input.c (read_line): New.
7959 (location_get_source_line): New.
7960 * input.h (location_get_source_line): Declare.
7961 * toplev.c (general_init): Initialize show_caret from options.
7962 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
7963 * opts.c (common_handle_option): Likewise.
7964 * pretty-print.h (pp_get_prefix): New.
7965 (pp_base_get_prefix): New.
7966 * common.opt (fdiagnostics-show-caret): New option.
7967 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
7968
7969 2012-04-11 Richard Guenther <rguenther@suse.de>
7970
7971 PR rtl-optimization/52881
7972 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
7973
7974 2012-04-11 Richard Guenther <rguenther@suse.de>
7975
7976 PR tree-optimization/52912
7977 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
7978 manipulation code we are threading through a loop header
7979 to an exit destination.
7980
7981 2012-04-10 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
7982
7983 * tree.h (warn_if_unused_value): Move declaration from here.
7984 * stmt.c (warn_if_unused_value): Move definition from here.
7985
7986 2012-04-10 Michael Matz <matz@suse.de>
7987
7988 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
7989 grouped_stores.
7990 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
7991 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
7992 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
7993 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
7994 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
7995 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
7996 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
7997 (vect_record_strided_load_vectors): Rename to
7998 vect_record_grouped_load_vectors.
7999 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8000 Rename use of above macros.
8001 (vect_verify_datarefs_alignment): Ditto.
8002 (vector_alignment_reachable_p): Ditto.
8003 (vect_peeling_hash_get_lowest_cost): Ditto.
8004 (vect_enhance_data_refs_alignment): Ditto.
8005 (vect_analyze_group_access): Ditto and rename stride to groupsize.
8006 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
8007 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
8008 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
8009 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
8010 (vect_record_strided_load_vectors): Rename to
8011 vect_record_grouped_load_vectors.
8012 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
8013 (destroy_loop_vec_info): Ditto.
8014 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
8015 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
8016 (vect_analyze_slp): Ditto.
8017 (new_bb_vec_info): Ditto.
8018 (destroy_bb_vec_info): Ditto.
8019 (vect_schedule_slp_instance): Ditto and rename strided_store to
8020 grouped_store.
8021 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
8022 vect_cost_group_size.
8023 (vect_model_store_cost): Rename use of above macros and call
8024 to vect_cost_strided_group_size.
8025 (vect_model_load_cost): Ditto.
8026 (vectorizable_store): Ditto, rename strided_store to grouped_store
8027 and calls to renamed tree-vectorizer.h functions.
8028 (vectorizable_load): Ditto.
8029 (vect_transform_stmt): Rename use of above macros and strided_store
8030 to grouped_store.
8031
8032 2012-04-10 Jan Hubicka <jh@suse.cz>
8033
8034 * cgraph.h: Remove misledaing comment on ipa-ref.h.
8035 (symtab_type): New enum.
8036 (symtab_node): New structure.
8037 (cgraph_node, varpool_node): Add symbol base type.
8038 (cgraph, varpool): New accestor functions.
8039 * cgraph.c (cgraph_create_node_1): Set symbol type.
8040 * varpool.c (varpool_node): Set symbol type.
8041
8042 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
8043 Richard Sandiford <rdsandiford@googlemail.com>
8044
8045 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
8046
8047 2012-04-10 Richard Guenther <rguenther@suse.de>
8048
8049 PR middle-end/52888
8050 * gimple-low.c (gimple_check_call_args): Properly account for
8051 compatible aggregate types.
8052
8053 2012-04-10 Richard Guenther <rguenther@suse.de>
8054
8055 * toplev.h (tree_rest_of_compilation): Remove.
8056 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8057 * cgraph.h (tree_rest_of_compilation): Declare.
8058 * tree-optimize.c (tree_rest_of_compilation): Move ...
8059 * cgraphunit.c (tree_rest_of_compilation): ... here.
8060 * cgraph.c (cgraph_add_new_function): Adjust.
8061 * Makefile.in (tree-optimize.o): Adjust.
8062 (cgraphunit.o): Likewise.
8063
8064 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
8065
8066 PR tree-optimization/52870
8067 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
8068 presumed pattern statement is within the same loop or basic block.
8069
8070 2012-04-10 Tristan Gingold <gingold@adacore.com>
8071
8072 * gengtype.c (main): Make uintptr_t a known type.
8073
8074 2012-04-10 Richard Guenther <rguenther@suse.de>
8075
8076 * tree-pass.h (tree_lowering_passes): Remove.
8077 * tree-optimize.c (tree_lowering_passes): Remove.
8078 * cgraph.c (cgraph_add_new_function): Inline relevant parts
8079 of tree_lowering_passes, avoid redundant call of early local passes.
8080 * cgraphunit.c (cgraph_lower_function): Fold into ...
8081 (cgraph_analyze_function): ... its single caller. Inline
8082 relevant parts of tree_lowering_passes.
8083
8084 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
8085
8086 PR other/52777
8087 * config/pa/pa.opt: Remove SIO and GNU_LD.
8088
8089 2012-04-09 Jan Hubicka <jh@suse.cz>
8090
8091 PR lto/52722
8092 PR lto/51765
8093 PR lto/52634
8094 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
8095 boundary, add its target too.
8096 * lto.c (add_references_to_partition): Add also aliased nodes.
8097 (add_cgraph_node_to_partition,
8098 add_varpool_node_to_partition): Work on nodes, not functions/variables;
8099 when adding alias, add also the aliased object.
8100
8101 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
8102
8103 PR target/52883
8104 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
8105 VOIDmode immediate operands.
8106 * config/i386/constraints.md (Wz): New constraint.
8107 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
8108
8109 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
8110
8111 PR target/52717
8112 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
8113 the DECL generated for the special GOT helper.
8114
8115 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
8116
8117 * config/sh/constraints.md: Update list of constraints in
8118 comment block.
8119 (Sr0): Remove unused memory constraint.
8120
8121 2012-04-08 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
8122
8123 * tree-pretty-print.h: Update comment.
8124
8125 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
8126
8127 * config/sh/sh.md: Use braced string notation where applicable.
8128 (*prefetch_i4, prefetch_m2a): Merge into ...
8129 (*prefetch): ... this new insn.
8130
8131 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
8132
8133 * config/sh/sh.h (high_life_started): Remove
8134 * config/sh/predicates.md (general_movdst_operand): Use
8135 'reload_in_progress' instead of 'high_life_started'.
8136 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
8137 divsi_inv_fp): Likewise.
8138
8139 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
8140
8141 * config/sh/sh-protos.h (prepare_move_operands): Return void
8142 instead of int.
8143 * config/sh/sh.c (prepare_move_operands): Likewise.
8144 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
8145
8146 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
8147
8148 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
8149 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
8150 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
8151 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
8152 commutative_float_operator, noncommutative_float_operator,
8153 sh_handle_pragma): Remove.
8154
8155 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
8156
8157 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
8158 Use @option markup on command-line options. Use @samp markup on
8159 literal keywords to options. Use @code markup on code fragments.
8160 Use other markup in preference to quotation marks in the text.
8161 Add markup to some passages without any.
8162
8163 2012-04-06 Mike Stump <mikestump@comcast.net>
8164
8165 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
8166
8167 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
8168
8169 * config/sh/sh.c (hi_const): Remove.
8170 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
8171 of hi_const.
8172
8173 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
8174
8175 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
8176 to bool.
8177 * config/sh/sh.c (sh_expand_t_scc): Likewise.
8178 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
8179 calling sh_expand_t_scc.
8180
8181 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
8182
8183 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
8184 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
8185 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
8186 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
8187 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
8188 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
8189 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
8190 sh2a_is_function_vector_call): Use bool as return type.
8191 (sh_pass_in_reg_p): Remove.
8192 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
8193 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
8194 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
8195 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
8196 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
8197 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
8198 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
8199 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
8200 sh_loads_bankedreg_p): Use bool as return type.
8201 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
8202 'register' modifier.
8203
8204 2012-04-06 Matt Turner <mattst88@gmail.com>
8205
8206 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
8207
8208 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
8209
8210 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
8211 of the destination isn't also a FP_REGS register.
8212
8213 2012-04-05 Teresa Johnson <tejohnson@google.com>
8214 H.J. Lu <hongjiu.lu@intel.com>
8215
8216 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
8217 * config/i386/i386.md (move immediate to memory peephole2):
8218 Add cases for HImode move when LCP stall avoidance is needed.
8219 * config/i386/i386.c (initial_ix86_tune_features): Initialize
8220 X86_TUNE_LCP_STALL entry.
8221
8222 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
8223
8224 PR target/52882
8225 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
8226 CONST_INT operands, zero-extended with AND.
8227
8228 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
8229
8230 PR target/50751
8231 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
8232 first argument instead of mode size. Move displacement calculations
8233 to ...
8234 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
8235 ... these new functions.
8236 (disp_adjust): Remove max_mov_disp field.
8237 (sh_legitimate_index_p): Use max_mov_insn_displacement and
8238 mov_insn_alignment_mask.
8239 (sh_address_cost): Use max_mov_insn_displacement.
8240
8241 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
8242
8243 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
8244 (arch_enabled): Handle new arch types.
8245 (one_cmpldi2): Add NEON support.
8246
8247 2012-04-05 Richard Guenther <rguenther@suse.de>
8248
8249 * gimple.c (walk_gimple_op): Compute val_only for the LHS
8250 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
8251 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
8252 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8253 ... here and make static.
8254 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
8255 Remove.
8256
8257 2012-04-05 Richard Guenther <rguenther@suse.de>
8258
8259 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
8260 basic-block before removing it.
8261
8262 2012-04-05 Richard Guenther <rguenther@suse.de>
8263
8264 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
8265 version namespace as we release the freelist.
8266
8267 2012-04-05 Richard Guenther <rguenther@suse.de>
8268
8269 * tree-nrv.c (tree_nrv): Release VDEFs.
8270 * tree-sra.c (sra_modify_constructor_assign): Likewise.
8271 (sra_modify_assign): Likewise.
8272 * tree-vect-stmts.c (vect_remove_stores): Likewise.
8273 * tree-vect-loop.c (vect_transform_loop): Likewise.
8274 * tree-ssa-dom.c (optimize_stmt): Likewise.
8275 * tree-vect-slp.c (vect_schedule_slp): Likewise.
8276 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
8277
8278 2012-04-05 Richard Guenther <rguenther@suse.de>
8279
8280 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
8281 cleanup.
8282 * gimple.h (gsi_remove): Adjust.
8283 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
8284 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
8285 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
8286 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
8287 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
8288 * tree-ssa-pre.c (eliminate): Likewise.
8289
8290 2012-04-04 Mike Stump <mikestump@comcast.net>
8291
8292 * doc/rtl.texi (const_double): Document as sign-extending.
8293 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
8294 * emit-rtl.c (immed_double_int_const): Refine to state the
8295 value is signed.
8296 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
8297 CONST_DOUBLE integers.
8298 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
8299 negative values are converted. Fix conversions bigger than
8300 HOST_BITS_PER_WIDE_INT.
8301 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
8302 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
8303 * explow.c (plus_constant_mode): Add.
8304 (plus_constant): Implement with plus_constant_mode.
8305 * rtl.h (plus_constant_mode): Add.
8306
8307 2012-04-04 Richard Guenther <rguenther@suse.de>
8308
8309 PR tree-optimization/52808
8310 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
8311 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
8312
8313 2012-04-04 Tristan Gingold <gingold@adacore.com>
8314
8315 * expr.c (expand_expr_real_2): Handle larger sizetype in
8316 POINTER_PLUS_EXPR.
8317
8318 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
8319
8320 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
8321 to m2a-single instead of m2e.
8322
8323 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
8324
8325 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
8326 Change type of BITOFFSET to signed. Make sure the lower bound of
8327 the computed range is non-negative by adjusting OFFSET and BITPOS.
8328 (expand_assignment): Adjust call to get_bit_range.
8329
8330 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
8331
8332 * h8300/h8300.c (h8300_current_function_monitor_function_p):
8333 New function. Added to check monitor functions.
8334 (h8300_option_override): Modified to generate error/warning
8335 messages for invalid combinations of different command line
8336 options.
8337 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
8338 save EXR on stack for monitor function in case of H8S target
8339 when "-mno-exr" is passed.
8340 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
8341 Add prototype.
8342 * doc/invoke.texi: Document H8S options.
8343
8344 2012-04-03 Tristan Gingold <gingold@adacore.com>
8345
8346 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
8347 of gcc_AC_FUNC_MMAP_BLACKLIST.
8348 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
8349 * Makefile.in (aclocal_deps): Add mmap.m4.
8350 * configure: Regenerate.
8351 * aclocal.m4: Regenerate.
8352
8353 2012-04-03 Richard Guenther <rguenther@suse.de>
8354
8355 PR tree-optimization/52808
8356 * tracer.c (tail_duplicate): Return whether we have duplicated
8357 any block.
8358 (tracer): If we have duplicated any block, cleanup the CFG.
8359 * cfghooks.c (duplicate_block): If we duplicated a loop
8360 header but not its loop, destroy the loop because it now has
8361 multiple entries.
8362 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
8363 the cfg manipulation routines we are not creating a multiple
8364 entry loop.
8365
8366 2012-04-03 Tristan Gingold <gingold@adacore.com>
8367
8368 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
8369 'byte' alignment.
8370 (vms_c_common_override_options): Allow parameterless variadic
8371 functions.
8372
8373 2012-04-03 Jakub Jelinek <jakub@redhat.com>
8374
8375 PR tree-optimization/52835
8376 * tree-data-ref.c (build_rdg): Return NULL if
8377 compute_data_dependences_for_loop failed.
8378
8379 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
8380
8381 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
8382 for REAL_CST as well.
8383 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
8384 In the bitfield case, if the value is a REAL_CST, convert it first to
8385 an INTEGER_CST.
8386
8387 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
8388
8389 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
8390 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
8391 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
8392
8393 * config/i386/biarchx32.h: New.
8394
8395 2012-04-02 Anatoly Sokolov <aesok@post.ru>
8396
8397 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
8398 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8399 (arm_preferred_reload_class): New function.
8400
8401 2012-04-02 Richard Guenther <rguenther@suse.de>
8402
8403 PR tree-optimization/52756
8404 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
8405 (thread_through_loop_header): After threading through the loop latch
8406 remove the split part from the loop and clear further threading
8407 opportunities that would create a multiple entry loop.
8408
8409 2012-04-02 Richard Guenther <rguenther@suse.de>
8410
8411 PR rtl-optimization/52800
8412 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
8413 CLEANUP_CFG_CHANGED.
8414
8415 2012-04-02 Richard Guenther <rguenther@suse.de>
8416
8417 PR middle-end/52803
8418 * loop-init.c (gate_handle_loop2): Destroy loops here if
8419 we don't enter RTL loop optimizers.
8420
8421 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
8422
8423 Partially revert:
8424 2012-03-29 Richard Guenther <rguenther@suse.de>
8425
8426 * rtl.h (extended_count): Remove.
8427 * combine.c (extended_count): Remove.
8428
8429 2012-04-02 Dodji Seketeli <dodji@redhat.com>
8430
8431 PR c++/40942
8432 * pt.c (more_specialized_fn): Don't apply decay conversion to
8433 types of function parameters.
8434
8435 2012-04-02 Tristan Gingold <gingold@adacore.com>
8436
8437 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
8438 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
8439 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
8440 (ggc_pch_this_base): Use uintptr_t instead of size_t.
8441
8442 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8443
8444 PR bootstrap/52784
8445 * config/i386/i386.c (ix86_option_override_internal): Don't
8446 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
8447
8448 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
8449
8450 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
8451 (stmt_can_make_abnormal_goto): Use it.
8452 (is_ctrl_altering_stmt): Likewise.
8453
8454 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
8455 Kaz Kojima <kkojima@gcc.gnu.org>
8456
8457 * config/sh/sh.c (push_regs): Skip banked registers when
8458 resbank attribute is specified.
8459 (sh_expand_epilogue): Likewise.
8460
8461 2012-03-30 Richard Henderson <rth@redhat.com>
8462
8463 PR debug/52727
8464 * combine-stack-adj.c (prev_active_insn_bb): New.
8465 (next_active_insn_bb): New.
8466 (force_move_args_size_note): New.
8467 (combine_stack_adjustments_for_block): Use it.
8468
8469 2012-03-30 Richard Henderson <rth@redhat.com>
8470
8471 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
8472 (ix86_expand_vector_init_duplicate): Initialize it.
8473 (expand_vec_perm_palignr): Likewise.
8474 (ix86_expand_vec_perm_const): Likewise.
8475 (ix86_vectorize_vec_perm_const_ok): Likewise.
8476 (expand_vec_perm_blend): Use it.
8477 (expand_vec_perm_vpermil): Likewise.
8478 (expand_vec_perm_pshufb): Likewise.
8479 (expand_vec_perm_1): Likewise.
8480 (expand_vec_perm_pshuflw_pshufhw): Likewise.
8481 (expand_vec_perm_interleave2): Likewise.
8482 (expand_vec_perm_vpermq_perm_1): Likewise.
8483 (expand_vec_perm_vperm2f128): Likewise.
8484 (expand_vec_perm_interleave3): Likewise.
8485 (expand_vec_perm_vperm2f128_vblend): Likewise.
8486 (expand_vec_perm_vpshufb2_vpermq): Likewise.
8487 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
8488 (expand_vec_perm_broadcast): Likewise.
8489 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8490
8491 2012-03-30 Richard Henderson <rth@redhat.com>
8492
8493 * dwarf2out.c (gen_variable_die): Initialize off.
8494
8495 2012-03-30 Tristan Gingold <gingold@adacore.com>
8496
8497 * config/vms/vms-f.c: New file.
8498 * config/vms/t-vms (vms-f.o): New rule.
8499 * config.gcc (*-*-*vms*): Define fortran_target_objs.
8500
8501 2012-03-30 Richard Guenther <rguenther@suse.de>
8502
8503 PR tree-optimization/52754
8504 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8505 propagate arbitrary addresses into really plain dereferences.
8506
8507 2012-03-30 Richard Guenther <rguenther@suse.de>
8508
8509 PR middle-end/52772
8510 * except.c (emit_to_new_bb_before): Move loop updating ...
8511 (dw2_build_landing_pads): ... here. Use a proper block for
8512 querying the loop father.
8513
8514 2012-03-30 Tristan Gingold <gingold@adacore.com>
8515
8516 * config/ia64/ia64.c (ia64_section_type_flags): Remove
8517 common_object attribute handling.
8518 (SECTION_VMS_OVERLAY): Remove
8519 (ia64_vms_common_object_attribute): Replace abort with an assert.
8520 Do not set DECL_SECTION_NAME.
8521 (ia64_vms_output_aligned_decl_common): Handle common_object
8522 attribute.
8523 (ia64_vms_elf_asm_named_section): Remove.
8524 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
8525
8526 2012-03-30 Richard Guenther <rguenther@suse.de>
8527
8528 PR middle-end/52786
8529 * double-int.c (rshift_double): Remove not needed cast.
8530
8531 2012-03-30 Richard Guenther <rguenther@suse.de>
8532
8533 * tree-affine.h (print_aff): Remove.
8534 * tree-affine.c (print_aff): Make static.
8535 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
8536 (get_references_in_stmt): Likewise.
8537 (print_direction_vector): Likewise.
8538 (print_dir_vectors): Likewise.
8539 (print_dist_vectors): Likewise.
8540 (dump_subscript): Likewise.
8541 (dump_ddrs): Likewise.
8542 (dump_dist_dir_vectors): Likewise.
8543 (dump_data_references): Likewise.
8544 (dump_data_dependence_relation): Likewise.
8545 (dump_data_dependence_direction): Likewise.
8546 (dump_rdg_vertex): Likewise.
8547 (dump_rdg_component): Likewise.
8548 (debug_ddrs): Declare.
8549 (struct data_ref_loc_d): Move ...
8550 * tree-data-ref.c (struct data_ref_loc_d): ... here.
8551 (get_references_in_stmt): Make static.
8552 (dump_data_references): Likewise.
8553 (dump_subscript): Likewise.
8554 (print_direction_vector): Likewise.
8555 (print_dir_vectors): Likewise.
8556 (print_dist_vectors): Likewise.
8557 (dump_data_dependence_relation): Likewise.
8558 (dump_dist_dir_vectors): Likewise.
8559 (dump_ddrs): Likewise.
8560 (dump_rdg_vertex): Likewise.
8561 (dump_rdg_component): Likewise.
8562 (debug_ddrs): New function.
8563 (access_matrix_get_index_for_parameter): Remove.
8564
8565 2012-03-30 Tristan Gingold <gingold@adacore.com>
8566
8567 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
8568 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
8569 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
8570 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
8571 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
8572 (vms_patch_builtins): Handle new flags
8573 * config/vms/vms-crtlmap.map: Completed using nm on
8574 c and math system libraries.
8575 * config/vms/make-crtlmap.awk: Handle any number of flags.
8576
8577 2012-03-30 Martin Jambor <mjambor@suse.cz>
8578
8579 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
8580 is a builtin_stack_save in a dominating BB.
8581
8582 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
8583
8584 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
8585 crossing 128bit lane boundary.
8586
8587 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
8588
8589 * ira-color.c (setup_left_conflict_sizes_p): Process all
8590 conflicting objects.
8591
8592 2012-03-29 Jakub Jelinek <jakub@redhat.com>
8593
8594 PR tree-optimization/52760
8595 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
8596 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
8597
8598 2012-03-29 Richard Guenther <rguenther@suse.de>
8599
8600 * cgraph.h (cgraph_materialize_all_clones): Remove.
8601 (reset_inline_failed): Likewise.
8602 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
8603 * cgraphbuild.c (reset_inline_failed): Remove.
8604 * rtl.h (cse_main): Remove.
8605 (extended_count): Likewise.
8606 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
8607 (cse_main): Make static.
8608 * combine.c (extended_count): Remove.
8609 (dump_combine_stats): Mark as DEBUG_FUNCTION.
8610 * basic-block.h (reorder_basic_blocks): Remove.
8611 * bb-reorder.c (reorder_basic_blocks): Make static.
8612 * Makefile.in (dse.o): Remove dse.h dependency.
8613 * dse.h: Remove.
8614 * dse.c (gate_dse): Remove.
8615 (clear_alias_mode_eq): Likewise.
8616 (clear_alias_mode_hash): Likewise.
8617 (dse_record_singleton_alias_set): Likewise.
8618 (dse_invalidate_singleton_alias_set): Likewise.
8619
8620 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
8621
8622 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
8623 crtbegin_so%O%s for -shared.
8624 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
8625
8626 2012-03-29 Richard Guenther <rguenther@suse.de>
8627
8628 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
8629 (add_to_value): Remove.
8630 (print_value_expressions): Likewise.
8631 * tree-ssa-pre.c (add_to_value): Make static.
8632 (print_value_expressions): Likewise.
8633 * gimple.h (gimple_adjust_this_by_delta): Remove.
8634 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
8635
8636 2012-03-29 Richard Guenther <rguenther@suse.de>
8637
8638 PR middle-end/50708
8639 * double-int.h (rshift_double): Remove.
8640 * double-int.c (lshift_double): Use absu_hwi to make count positive.
8641 (rshift_double): Make static, take unsigned count argument,
8642 remove handling of negative count argument.
8643 (double_int_rshift): Dispatch to lshift_double.
8644
8645 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
8646
8647 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
8648 OPTION_MASK_ABI_64.
8649
8650 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
8651 (SPEC_X32): Likewise.
8652 (MULTILIB_DEFAULTS): Likewise.
8653
8654 * config/i386/i386.c (isa_opts): Remove -m64.
8655 (ix86_target_string): Properly handle -m32/-m64/-mx32.
8656 (ix86_option_override_internal): Properly
8657 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
8658 handle -m32, -m64 and -mx32.
8659
8660 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
8661 with OPTION_ABI_X32. Moved after TARGET_LP64.
8662 (TARGET_LP64): Changed to OPTION_ABI_64.
8663
8664 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
8665 (mx32): Replace ISA_X32 with ABI_X32.
8666
8667 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
8668
8669 * tree.c (tree_size) <VECTOR_CST>: New case.
8670
8671 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
8672
8673 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
8674 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
8675
8676 2012-03-28 Jakub Jelinek <jakub@redhat.com>
8677
8678 PR middle-end/52691
8679 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
8680 __builtin_va_start to __builtin_next_arg if the latter is
8681 builtin_decl_explicit_p rather than when it is not.
8682
8683 PR middle-end/52750
8684 * tree-vect-generic.c (vector_element): Perform multiplication
8685 for pos in bitsizetype type instead of idx type.
8686
8687 2012-03-28 Richard Guenther <rguenther@suse.de>
8688
8689 * loop-init.c (loop_optimizer_init): If loops are preserved
8690 perform incremental initialization of required loop features.
8691 (loop_optimizer_finalize): If loops are to be preserved only
8692 clean up optional loop features.
8693 (rtl_loop_done): Forcefully free loops here.
8694 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
8695 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
8696 to existing loops.
8697 (construct_init_block): Likewise.
8698 (construct_exit_block): Likewise.
8699 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
8700 the CFG after expanding.
8701 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
8702 If we needed to calculate them, free them afterwards.
8703 * tree-pass.h (PROP_loops): New define.
8704 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
8705 * basic-block.h (CLEANUP_CFG_CHANGED): New.
8706 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
8707 (cleanup_cfg): If we did something and have loops around, fix them up.
8708 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
8709 with CLEANUP_CFG_CHANGED.
8710 * cfghooks.c (merge_blocks): If we merge a loop header into
8711 its predecessor, update the loop structure.
8712 (duplicate_block): If we copy a loop latch, adjust loop state
8713 to note we may have multiple latches.
8714 (delete_basic_block): Mark loops for fixup if we remove a loop.
8715 * cfganal.c (forwarder_block_p): Protect loop latches, headers
8716 and preheaders.
8717 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
8718 (cfg_layout_can_merge_blocks_p): Likewise.
8719 * cprop.c (bypass_block): If we create a loop with multiple
8720 entries, mark it for removal.
8721 * except.c (emit_to_new_bb_before): Add the new basic-block
8722 to existing loops.
8723 * tree-eh.c (lower_resx): Likewise.
8724 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
8725 (expand_omp_taskreg): Likewise.
8726 * tree-inline.c (initialize_cfun): Likewise.
8727 * tree-mudflap.c (add_bb_to_loop): Prototype.
8728 (mf_build_check_statement_for): Properly add new basic-blocks
8729 to existing loops.
8730 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
8731 if we remove a loop.
8732 (thread_through_loop_header): Likewise.
8733 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
8734 new basic-blocks to existing loops.
8735 (expand_transaction): Likewise.
8736 * Makefile.in (except.o): Add $(CFGLOOP_H).
8737 (expr.o): Likewise.
8738 (cgraph.o): Likewise.
8739 (cprop.o): Likewise.
8740 (cfgexpand.o): Likewise.
8741 (cfganal.o): Likewise.
8742 (trans-mem.o): Likewise.
8743 (tree-eh.o): Likewise.
8744
8745 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
8746
8747 PR target/52692
8748 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
8749 (avr_builtin_decl): New static function.
8750 (struct avr_builtin_description, avr_bdesc): Move up.
8751 Add GTY marker. Add field fndecl. Remove redundant field id.
8752 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
8753 (avr_expand_builtin): Code cleanup because .id is removed.
8754
8755 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
8756
8757 PR target/52737
8758 * config.gcc (tm_file): Remove avr/multilib.h.
8759
8760 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
8761
8762 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
8763 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
8764 * config/avr/t-avr: Remove generation of multilib.h.
8765 * config/avr/t-multilib: Regenerate.
8766 * config/avr/multilib.h: Remove.
8767 * config/avr/avr.opt (-msp8): New option.
8768 (avr_sp8): New variable.
8769 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
8770 * config/avr/avr.h (AVR_HAVE_SPH): New define.
8771 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
8772 (avr_device_to_sp8): New prototype.
8773 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
8774 (DRIVER_SELF_SPECS): New define.
8775 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
8776 __AVR_SP8__, __AVR_HAVE_SPH__.
8777 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
8778 AVR_HAVE_8BIT_SP to decide if SP_H is present.
8779 (avr_file_start): Ditto.
8780
8781 2012-03-28 Jakub Jelinek <jakub@redhat.com>
8782
8783 PR target/52736
8784 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
8785 instead of 8 in adjust_address.
8786
8787 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
8788
8789 PR middle-end/51893
8790 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
8791 targets.
8792
8793 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
8794
8795 PR target/50751
8796 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
8797 Rearrange conditional logic. Move displacement address calculations
8798 to ...
8799 (sh_find_mov_disp_adjust): ... this new function.
8800
8801 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
8802
8803 * config/arm/arm.opt (mapcs): Remove MaskExists.
8804 * config/cris/linux.opt (mno-gotplt): Likewise.
8805 * config/i386/i386.opt (mhard-float): Likewise.
8806 (msse4): Likewise.
8807 (mno-sse4): Likewise.
8808 * config/m68k/m68k.opt (mhard-float): Likewise.
8809 * config/mep/mep.op (mcop32): Likewise.
8810 * config/pa/pa-hpux.opt (msio): Likewise.
8811 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
8812 * config/picochip/picochip.opt (mlittle): Likewise.
8813 * config/sh/sh.opt (mrenesas): Likewise.
8814 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
8815 * config/sparc/sparc.opt (mhard-float): Likewise.
8816 * config/v850/v850.opt (mv850es): Likewise.
8817 * config/vax/vax.opt (mg-float): Likewise.
8818
8819 2012-03-27 Martin Jambor <mjambor@suse.cz>
8820
8821 PR middle-end/52693
8822 * tree-sra.c (sra_modify_assign): Do not call
8823 load_assign_lhs_subreplacements when working with an unscalarizable
8824 region.
8825
8826 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
8827
8828 PR target/52698
8829 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
8830 New prototype.
8831 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
8832 * config/i386/i386.c: Include reload.h.
8833 (ix86_legitimize_reload_address): New function.
8834
8835 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
8836
8837 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
8838 hasn't been allocated. Define a target macro for Mask and
8839 InverseMask if it hasn't been defined. Remove MaskExists handling.
8840
8841 * doc/options.texi: Remove MaskExists.
8842
8843 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
8844
8845 PR target/52667
8846 * config/sh/sh.c (find_barrier): Add equality check of last_got
8847 to avoid going above orig insn. Update comments.
8848
8849 2012-03-27 Richard Guenther <rguenther@suse.de>
8850
8851 PR middle-end/52720
8852 * fold-const.c (try_move_mult_to_index): Handle &x.array more
8853 explicitely.
8854
8855 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
8856
8857 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
8858 of a unit before computing the offset in units.
8859 * expr.c (get_bit_range): Return the null range if the enclosing record
8860 is part of a larger bit field.
8861
8862 2012-03-27 Tristan Gingold <gingold@adacore.com>
8863
8864 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
8865 * config/ia64/ia64.md: Remove mode in template.
8866 Sign extend operand in expand_simple_binop.
8867 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
8868 CASE_VECTOR_MODE instead of TARGET_ILP32.
8869 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
8870
8871 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
8872
8873 * varasm.c (assemble_external): #if 0 out the new assert from the
8874 previous commit, it breaks the Java and Go front ends.
8875
8876 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
8877
8878 * toplev.c (check_global_declaration_1): Do not call assemble_external.
8879 * expr.c (emit_block_move_libcall_fn): Likewise.
8880 (clear_storage_libcall_fn): Likewise.
8881 (expand_expr_addr_expr_1): Likewise.
8882 (expand_expr_real_1): Likewise.
8883 * calls.c (rtx_for_function_call): Likewise.
8884
8885 * varasm.c (assemble_external): Assert this function is only called
8886 during or after expanding to RTL.
8887
8888 2012-03-26 Martin Jambor <mjambor@suse.cz>
8889
8890 PR tree-optimization/50052
8891 * tree-sra.c (tree_non_aligned_mem_p): Removed.
8892 (tree_non_aligned_mem_for_access_p): Likewise.
8893 (build_accesses_from_assign): Removed strict alignment requirements
8894 checks.
8895 (access_precludes_ipa_sra_p): Likewise.
8896
8897 2012-03-26 Richard Guenther <rguenther@suse.de>
8898
8899 PR tree-optimization/52701
8900 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
8901 compute and set the evolution part of PHI nodes.
8902
8903 2012-03-26 Richard Guenther <rguenther@suse.de>
8904
8905 PR tree-optimization/52721
8906 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
8907
8908 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
8909
8910 PR tree-optimization/52686
8911 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
8912 WIDEN_LSHIFT_EXPR.
8913
8914 2012-03-26 Tristan Gingold <gingold@adacore.com>
8915
8916 * config/alpha/vms.h (LINK_SPEC): Simplify.
8917 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
8918 (NAME__MAIN, SYMBOL__MAIN): Remove.
8919 (VMS_DEBUG_MAIN_POINTER): Remove.
8920 * config/ia64/vms.h: Likewise.
8921 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
8922 code to vms.c. Call vms_start_function.
8923 * config/ia64/ia64.c (ia64_start_function): Likewise.
8924 * config/vms/vms-protos.h (vms_start_function): Declare.
8925 * config/vms/vms.c (vms_start_function): New function.
8926 * config/vms/vms.h (MATH_LIBRARY): Define.
8927 (VMS_DEBUG_MAIN_POINTER): Define.
8928
8929 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
8930
8931 PR rtl-optimization/52629
8932 * reload1.c (count_pseudo): Short-circuit common case.
8933 (count_spilled_pseudo): Return early for pseudos without hard regs.
8934 Assert that the pseudo has got a hard reg before manipulating it.
8935
8936 2012-03-24 Jan Hubicka <jh@suse.cz>
8937
8938 PR lto/51663
8939 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
8940 (decide_is_variable_needed): Do not handle toplevel reorder here.
8941 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
8942 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
8943 even at -O0.
8944
8945 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
8946
8947 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
8948 and str_bitsize instead of more convoluted expressions.
8949
8950 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
8951
8952 PR target/52610
8953 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
8954
8955 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
8956
8957 PR target/52656
8958 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
8959
8960 2012-03-23 Martin Jambor <mjambor@suse.cz>
8961
8962 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
8963
8964 2012-03-23 Richard Guenther <rguenther@suse.de>
8965
8966 PR tree-optimization/52678
8967 * tree-vectorizer.h (struct _stmt_vec_info): Add
8968 loop_phi_evolution_part member.
8969 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
8970 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
8971 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
8972 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8973 Use the cached evolution part and the PHI nodes value from
8974 the loop preheader edge instead of re-analyzing the evolution.
8975
8976 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
8977
8978 * config/mips/mips-tables.opt: Update.
8979 * config/mips/mips.md (processor): Add xlp.
8980 * config/mips/mips-cpus.def: Add xlp.
8981 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
8982 5KF for now.
8983 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
8984 * doc/invoke.texi: Mention XLP.
8985
8986 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8987
8988 PR middle-end/52547
8989 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
8990 on any new_local_var_chain vars declared during recursing on
8991 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
8992
8993 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
8994
8995 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
8996 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
8997 (ASM_OUTPUT_LOCAL): Ditto.
8998 (ASM_OUTPUT_COMMON): Remove.
8999 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
9000 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
9001
9002 2012-03-22 Jan Hubicka <jh@suse.cz>
9003
9004 PR middle-end/51737
9005 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
9006 parameter.
9007 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
9008 * ipa-inline-transform.c (save_inline_function_body): Remove
9009 copied clone if needed.
9010 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
9011
9012 2012-03-22 Richard Guenther <rguenther@suse.de>
9013
9014 PR middle-end/52666
9015 * fold-const.c (fold_ternary_loc): Fix typo.
9016
9017 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
9018
9019 PR target/52496
9020 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
9021 (unspecv): Add UNSPECV_MEMORY_BARRIER.
9022 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
9023 (delay_cycles_1, delay_cycles_2): Ditto.
9024 (delay_cycles_3, delay_cycles_4): Ditto.
9025 (nopv, *nopv): Ditto.
9026 (sleep, *sleep): Ditto.
9027 (wdr, *wdr): Ditto.
9028
9029 2012-03-22 Richard Guenther <rguenther@suse.de>
9030
9031 PR tree-optimization/52548
9032 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
9033 because of clobbers.
9034 (prune_clobbered_mems): New function.
9035 (compute_antic_aux): Use it to prune ANTIC_OUT.
9036 (compute_partial_antic_aux): Use it to prune PA_IN.
9037 (compute_avail): Only insert expressions into EXP_GEN that are not
9038 invalidated when translated up to the beginning of the block.
9039
9040 2012-03-22 Richard Guenther <rguenther@suse.de>
9041
9042 PR tree-optimization/52638
9043 * tree-vect-stmts.c (vect_init_vector_1): New function, split
9044 out from ...
9045 (vect_init_vector): ... here. Handle scalar vector inits.
9046 (vect_get_vec_def_for_operand): Adjust.
9047 (vectorizable_load): Likewise.
9048
9049 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
9050
9051 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
9052 (alpha*-*-freebsd*): Ditto.
9053 (alpha*-*-netbsd*): Ditto.
9054 (alpha*-*-openbsd*): Ditto.
9055 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
9056 (DWARF2_DEBUGGING_INFO): Remove.
9057 (PREFERRED_DEBUGGING_TYPE): Remove.
9058 (ASM_FINAL_SPEC): Remove.
9059 (IDENT_ASM_OP): Remove.
9060 (ASM_OUTPUT_IDENT): Remove.
9061 (SKIP_ASM_OP): Remove.
9062 (ASM_OUTPUT_SKIP): Remove.
9063 (ALIGN_ASM_OP): Remove.
9064 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9065 (ASM_OUTPUT_CASE_LABEL): Remove.
9066 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
9067 (COMMON_ASM_OP): Remove.
9068 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
9069 (ASCII_DATA_ASM_OP): Remove.
9070 (READONLY_DATA_SECTION_ASM_OP): Remove.
9071 (INIT_SECTION_ASM_OP): Remove.
9072 (FINI_SECTION_ASM_OP): Remove.
9073 (ASM_SECTION_START_OP): Remove.
9074 (ASM_OUTPUT_SECTION_START_FILE): Remove.
9075 (TARGET_ASM_NAMED_SECTION): Remove.
9076 (TARGET_ASM_SELECT_SECTION): Remove.
9077 (MAKE_DECL_ONE_ONLY): Remove.
9078 (TYPE_ASM_OP): Remove.
9079 (SIZE_ASM_OP): Remove.
9080 (ASM_WEAKEN_LABEL): Remove.
9081 (TYPE_OPERAND_FMT): Remove.
9082 (ASM_DECLARE_RESULT): Remove.
9083 (ASM_DECLARE_OBJECT_NAME): Remove.
9084 (ASM_FINISH_DECLARE_OBJECT): Remove.
9085 (ELF_ASCII_ESCAPES): Remove.
9086 (ELF_STRING_LIMIT): Remove.
9087 (STRING_ASM_OP): Remove.
9088 (ASM_OUTPUT_EXTERNAL): Remove.
9089 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
9090 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
9091 before define.
9092 (ASM_DECLARE_FUNCTION_NAME): Ditto.
9093 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
9094 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
9095 (ASM_OUTPUT_SKIP): Ditto.
9096 (READONLY_DATA_SECTION_ASM_OP): Remove.
9097 (USER_LABEL_PREFIX): Remove.
9098 (ASM_OUTPUT_ASCII): Remove.
9099 (ASM_OUTPUT_CASE_LABEL): Remove.
9100 (NO_DOLLAR_IN_LABEL): Undefine.
9101
9102 2012-03-22 Richard Guenther <rguenther@suse.de>
9103
9104 PR tree-optimization/52459
9105 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
9106 PHI insertion for calls.
9107
9108 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
9109
9110 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
9111 find_sets_in_insn, canonicalize_insn): Split out from ...
9112 (cse_insn): ... here.
9113 (invalidate_from_clobbers): Take an insn instead of the pattern.
9114
9115 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
9116
9117 PR target/52479
9118 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
9119 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
9120 * config/sh/sh.md (sindf2, cosdf2): Remove.
9121
9122 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
9123
9124 PR target/52642
9125 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
9126 prologue for unwinder and profiler.
9127
9128 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
9129
9130 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
9131 Introduce emul_name to select the right linker emulation for
9132 powerpc64-*-freebsd*.
9133 * configure: Regenerate.
9134 * config.gcc: Add bits to support powerpc64-*-freebsd*.
9135 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
9136 * config/rs6000/freebsd64.h: New file.
9137 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
9138 POWERPC_FREEBSD.
9139 (rs6000_savres_strategy): Likewise.
9140 (rs6000_savres_routine_name): Likewise.
9141 (rs6000_elf_file_end): Likewise.
9142 * config/rs6000/t-freebsd64: New file.
9143 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
9144 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
9145
9146 * config/rs6000/freebsd64.h: Remove duplicated entries from last
9147 commit.
9148 * config/rs6000/t-freebsd64: Likewise.
9149
9150 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
9151
9152 PR rtl-optimization/52543
9153 PR target/52461
9154 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
9155 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
9156 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
9157 (avr_load_libgcc_p): Restrict to __flash loads.
9158 (avr_out_lpm): Only handle 1-byte loads from __flash.
9159 (avr_load_lpm): New function.
9160 (avr_find_unused_d_reg): Remove.
9161 (avr_out_lpm_no_lpmx): Remove.
9162 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
9163 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
9164 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
9165 (load_<mode>, load_<mode>_clobber): New insns.
9166 (mov<mode>): For multi-byte move from non-generic
9167 16-bit address spaces: Expand to load_<mode> resp.
9168 load_<mode>_clobber.
9169 (load<mode>_libgcc): Remove expander.
9170 (split-lpmx): Remove split.
9171
9172 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
9173
9174 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
9175 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
9176 All callers changed.
9177 (Fixed_core_reg): New feature.
9178 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
9179 disassembly.
9180 * neon-testgen.ml: Handle Fixed_core_reg.
9181
9182 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
9183
9184 * config/arm/arm.c (thumb2_reorg): Add complete support
9185 for 16-bit instructions.
9186 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
9187
9188 2012-03-21 Richard Guenther <rguenther@suse.de>
9189
9190 PR tree-optimizer/52636
9191 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
9192 to the appropriate type.
9193
9194 2012-03-21 Richard Guenther <rguenther@suse.de>
9195
9196 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
9197 dependencies.
9198 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
9199 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9200 * passes.c (init_optimization_passes): Remove pass_init_function,
9201 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
9202 * tree-pass.h (pass_init_function): Remove.
9203 (pass_jump): Remove.
9204 (pass_initial_value_sets): Remove.
9205 (pass_unshare_all_rtl): Remove.
9206 * integrate.c (pass_initial_value_sets): Remove.
9207 * emit-rtl.c (pass_unshare_all_rtl): Remove.
9208 * tree.h (init_function_for_compilation): Remove.
9209 * function.c (init_function_for_compilation): Remove.
9210 (pass_init_function): Remove.
9211 * cfgcleanup.c (rest_of_handle_jump): Remove.
9212 (pass_jump): Remove.
9213
9214 2012-03-20 Jason Merrill <jason@redhat.com>
9215
9216 * tree-streamer-in.c (streamer_alloc_tree): Call
9217 ggc_alloc_zone_cleared_tree_node instead of
9218 ggc_alloc_zone_cleared_tree_node_stat.
9219
9220 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
9221
9222 * doc/extend.texi (Template Instantiation): Remove anachronisms.
9223
9224 2012-03-20 Jakub Jelinek <jakub@redhat.com>
9225
9226 PR target/52607
9227 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
9228 (ix86_expand_vec_perm_const_1): Call it.
9229
9230 * config/i386/i386.c (vselect_insn): New variable.
9231 (init_vselect_insn): New function.
9232 (expand_vselect, expand_vselect_insn): Add testing_p argument.
9233 Call init_vselect_insn if vselect_insn is NULL. Adjust
9234 PATTERN (vselect_insn), instead of creating a new insn each time,
9235 only emit a copy of it if not testing and recog has been successful.
9236 (expand_vec_perm_pshufb, expand_vec_perm_1,
9237 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
9238 callers.
9239
9240 PR target/52607
9241 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
9242 ("enabled" attribute): Handle avx2 and noavx2 isas.
9243 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
9244 New insns.
9245 (vec_dup<mode>): Add avx2 =x,x alternative.
9246 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
9247 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
9248 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
9249 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
9250 for V8SFmode.
9251 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
9252 if possible, handle also V8SFmode.
9253
9254 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
9255
9256 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
9257 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
9258 reg_or_zero_operand predicate.
9259 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
9260
9261 2012-03-20 Jakub Jelinek <jakub@redhat.com>
9262
9263 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
9264 If operand isn't UNSPEC, return 0.
9265
9266 2012-03-20 Richard Guenther <rguenther@suse.de>
9267
9268 * tree-pass.h (pass_rtl_eh): Remove.
9269 * except.c (gate_handle_eh): Likewise.
9270 (rest_of_handle_eh): Likewise.
9271 (pass_rtl_eh): Likewise.
9272 (finish_eh_generation): Export.
9273 * except.h (finish_eh_generation): Declare.
9274 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
9275 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
9276 after expanding stack alignment. Instead of compacting blocks
9277 call cleanup_cfg.
9278
9279 2012-03-20 Richard Guenther <rguenther@suse.de>
9280
9281 * stor-layout.c (finish_bitfield_representative): Fallback
9282 to conservative maximum size if the padding up to the next
9283 field cannot be computed as a constant.
9284 (finish_bitfield_layout): If we cannot compute the distance
9285 between the start of the bitfield representative and the
9286 bitfield member start a new representative.
9287 * expr.c (get_bit_range): The distance between the start of
9288 the bitfield representative and the bitfield member is zero
9289 if the field offsets are not constants.
9290
9291 2012-03-20 Tristan Gingold <gingold@adacore.com>
9292
9293 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
9294 convert in lowercase.
9295 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
9296 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
9297 * stor-layout.c (sizetype_tab): Adjust.
9298 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
9299 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
9300 instead of type_kind_last.
9301 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
9302 instead of size_int_kind.
9303 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
9304 * doc/tm.texi: Regenerate.
9305 * defaults.h (SIZETYPE): Provide a default value.
9306 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
9307 (SIZETYPE): Define.
9308
9309 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
9310
9311 * config/sh/sh.md: Use braced string notation where applicable.
9312
9313 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9314
9315 * config/i386/i386.md (allocate_stack): Simplify.
9316
9317 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9318
9319 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
9320 copy_to_mode_reg (Pmode, ...).
9321 (expand_builtin_frame_address): Ditto.
9322 * expr.c (emit_block_move_via_libcall): Ditto.
9323 (set_storage_via_libcall): Ditto.
9324
9325 * config/i386/i386.c (ix86_expand_movmem): Ditto.
9326 (ix86_expand_setmem): Ditto.
9327 (ix86_trampoline_init): DItto.
9328 * config/i386/i386.md (cmpstrnsi): Ditto.
9329
9330 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
9331
9332 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
9333 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
9334 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
9335 (SH Options): Likewise.
9336
9337 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9338
9339 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
9340 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
9341 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
9342 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
9343 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
9344
9345 Revert:
9346 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9347
9348 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
9349 * config/i386/i386.c (ix86_decompose_address): Use
9350 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
9351 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
9352 thread pointer to a register.
9353
9354 Revert:
9355 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
9356
9357 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
9358 if Pmode != word_mode.
9359 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
9360 Pmode == SImode for TARGET_X32.
9361
9362 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
9363 (tls_initial_exec_x32): Likewise.
9364
9365 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
9366
9367 PR target/50751
9368 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
9369 DISP_ADDR_OFFSET): New macros.
9370 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
9371 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
9372 (sh_legitimize_address): Add QImode displacement handling.
9373 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
9374 vector subregs.
9375 (sh_secondary_reload): Add QImode displacement handling.
9376 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
9377 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
9378 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
9379 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
9380 to register operands only.
9381 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
9382 (extendqihi2): Change insn to expander.
9383 (*extendqihi2_compact_reg): New insn.
9384 (movqi_i, movqi): Replace with ...
9385 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
9386 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
9387 Add new peepholes for QImode displacement addressing.
9388
9389 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
9390
9391 PR c++/14710
9392 * doc/invoke.texi: Document -Wuseless-cast.
9393
9394 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
9395
9396 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
9397 * tree.h (handled_component_p): Reorder cases.
9398 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
9399 not initialize unsignedp.
9400 (loc_list_from_tree): Likewise.
9401 (fortran_common): Likewise.
9402 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9403
9404 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
9405
9406 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
9407 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
9408 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
9409 (ix86_split_long_move): Ditto.
9410 (legitimize_tls_address): Use ix86_gen_sub3.
9411 (construct_plt_address): Assert that Pmode == DImode.
9412
9413 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
9414
9415 * config/i386/i386.md: Remove empty predicates and/or constraints.
9416 * config/i386/sync.md: Ditto.
9417 * config/i386/sse.md: Ditto.
9418 * config/i386/mmx.md: Ditto.
9419 * config/i386/pentium.md: Ditto.
9420 * config/i386/athlon.md: Ditto.
9421
9422 2012-03-16 Richard Guenther <rguenther@suse.de>
9423
9424 PR tree-optimization/52603
9425 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
9426 comment.
9427
9428 Revert
9429 2012-03-14 Richard Guenther <rguenther@suse.de>
9430
9431 PR tree-optimization/52571
9432 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9433 flag_section_anchors check ...
9434 (vect_can_force_dr_alignment_p): ... here.
9435
9436 2012-03-16 Martin Jambor <mjambor@suse.cz>
9437
9438 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
9439 memory through MEM_REFs by calling extract_bit_field.
9440
9441 2012-03-16 Richard Guenther <rguenther@suse.de>
9442
9443 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
9444 and REFERENCE_TYPE interpretations.
9445 (can_native_interpret_type_p): New function.
9446 (fold_ternary_loc): Use native encode/interpret to fold
9447 BIT_FIELD_REFs of constants.
9448
9449 2012-03-16 Richard Guenther <rguenther@suse.de>
9450
9451 PR middle-end/52584
9452 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
9453 of vector constants and constructors.
9454
9455 2012-03-16 Richard Guenther <rguenther@suse.de>
9456
9457 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9458 VIEW_CONVERT_EXPR to convert constants.
9459 (vect_is_simple_use): Treat all constants as vec_constant_def.
9460
9461 2012-03-16 Richard Guenther <rguenther@suse.de>
9462 Kai Tietz <ktietz@redhat.com>
9463
9464 PR middle-end/48814
9465 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
9466 side-effects completely in the pre-queue and use a temporary
9467 for the result.
9468
9469 2012-03-16 Richard Guenther <rguenther@suse.de>
9470
9471 * stor-layout.c (finish_bitfield_representative): Fall back
9472 to the conservative maximum size if we cannot compute the
9473 size of the tail padding.
9474
9475 2012-03-16 Tristan Gingold <gingold@adacore.com>
9476
9477 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
9478 __CRTL_VER and __VMS_VER.
9479 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
9480 and vms_c_get_vms_ver.
9481 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
9482 functions.
9483 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
9484 (VMS_DEFAULT_VMS_VER): Define.
9485 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
9486 (VMS_DEFAULT_VMS_VER): Define.
9487
9488 2012-03-16 Richard Guenther <rguenther@suse.de>
9489
9490 * tree-vect-loop.c (get_initial_def_for_induction): Use
9491 build_constructor directly.
9492 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
9493 build_vector_from_val.
9494 * tree.c (build_vector_from_val): Avoid creating a constructor
9495 first when we want a constant vector.
9496
9497 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9498
9499 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
9500
9501 2012-03-16 Richard Guenther <rguenther@suse.de>
9502
9503 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
9504 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
9505 (struct tree_vector): Remove elements member, add variable size
9506 elts array member.
9507 (build_vector_stat): Declare.
9508 (build_vector): Define in terms of build_vector_stat.
9509 * tree.c (build_vector): Rename to ...
9510 (build_vector_stat): ... this. Take array of trees as parameter.
9511 (build_vector_from_ctor): Adjust.
9512 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
9513 initializer_zerop): Adjust.
9514 * cfgexpand.c (expand_debug_expr): Likewise.
9515 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
9516 const_vector_from_tree): Likewise.
9517 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
9518 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
9519 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
9520 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
9521 (lto_input_ts_vector_tree_pointers): Adjust.
9522 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
9523 (write_ts_vector_tree_pointers): Adjust.
9524 * varasm.c (const_hash_1, compare_constant, copy_constant,
9525 output_constant): Adjust.
9526 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
9527 * print-tree.c (print_node): Adjust.
9528 * tree-pretty-print.c (dump_generic_node): Adjust.
9529 * tree-vect-generic.c (uniform_vector_p, vector_element,
9530 lower_vec_perm): Adjust.
9531 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
9532 * tree-vect-slp.c (vect_get_constant_vectors,
9533 vect_transform_slp_perm_load): Adjust.
9534 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
9535 * expmed.c (make_tree): Adjust.
9536 * config/i386/i386.c (ix86_expand_builtin): Adjust.
9537 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
9538 and implementation.
9539 (sparc_fold_builtin): Adjust.
9540
9541 2012-03-16 Tristan Gingold <gingold@adacore.com>
9542
9543 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
9544 * config/vms/vms-stdint.h: New file.
9545
9546 2012-03-16 Tristan Gingold <gingold@adacore.com>
9547
9548 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
9549 (ia64-hp-*vms*): Replaced by ...
9550 (*-*-*vms*): ... This new entry.
9551
9552 2012-03-15 Jakub Jelinek <jakub@redhat.com>
9553
9554 PR target/52568
9555 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
9556 (ix86_expand_vec_perm_const_1): Use it.
9557
9558 PR target/52568
9559 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
9560 (avx2_permv4df): Remove.
9561 (avx2_permv4di): Macroize into...
9562 (avx2_perm<mode>): ... this using VI8F_256 iterator.
9563 (avx2_permv4di_1): Macroize into...
9564 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
9565
9566 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
9567
9568 * combine.c (apply_distributive_law): Do not distribute SUBREG.
9569
9570 2012-03-15 Ira Rosen <irar@il.ibm.com>
9571 Ulrich Weigand <ulrich.weigand@linaro.org>
9572
9573 * tree-vect-patterns.c (widened_name_p): Rename to ...
9574 (type_conversion_p): ... this. Add new argument to determine
9575 if it's a promotion or demotion operation. Check for
9576 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
9577 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
9578 widened_name_p.
9579 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
9580 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
9581 Likewise.
9582 (vect_recog_mixed_size_cond_pattern): Likewise and allow
9583 non-constant then and else clauses.
9584
9585 2012-03-15 Ira Rosen <irar@il.ibm.com>
9586 Ulrich Weigand <ulrich.weigand@linaro.org>
9587
9588 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
9589 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
9590 vect_pattern_recog.
9591 * tree-vect-patterns.c (widened_name_p): Pass basic block
9592 info to vect_is_simple_use.
9593 (vect_recog_dot_prod_pattern): Fail for basic blocks.
9594 (vect_recog_widen_sum_pattern): Likewise.
9595 (vect_handle_widen_op_by_const): Support basic blocks.
9596 (vect_operation_fits_smaller_type,
9597 vect_recog_over_widening_pattern): Likewise.
9598 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
9599 Update call to vect_is_simple_use.
9600 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
9601 Add printing.
9602 (check_bool_pattern): Add an argument, update call to
9603 vect_is_simple_use and the recursive calls.
9604 (vect_recog_bool_pattern): Update relevant function calls.
9605 Add printing.
9606 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
9607 (vect_pattern_recog_1): Check for reduction only in loops.
9608 (vect_pattern_recog): Add new argument. Support basic blocks.
9609 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
9610 info to vect_is_simple_use_1.
9611 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
9612 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
9613
9614 2012-03-15 Jakub Jelinek <jakub@redhat.com>
9615 Andrew Pinski <apinski@cavium.com>
9616
9617 PR middle-end/52592
9618 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
9619 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
9620 calls instead of __builtin_ir{int,ound}*.
9621
9622 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9623
9624 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
9625 documentation.
9626
9627 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9628
9629 * config.gcc (target_type_format_char): New. Document it. Set it for
9630 arm*-*-* .
9631 * configure.ac (gnu_unique_option): Use target_type_format_char
9632 in test. Comment rationale.
9633 * configure: Regenerate .
9634
9635 2012-03-15 Jakub Jelinek <jakub@redhat.com>
9636
9637 PR tree-optimization/52267
9638 * tree-vrp.c (masked_increment): New function.
9639 (register_edge_assert_for_2): Derive ASSERT_EXPRs
9640 from (X & CST1) cmp CST2 tests.
9641
9642 2012-03-15 Richard Guenther <rguenther@suse.de>
9643
9644 PR middle-end/52580
9645 * tree-data-ref.c (subscript_dependence_tester_1): Check
9646 all dimensions for non-conflicting access functions.
9647
9648 2012-03-15 Manuel LĂ³pez-IbĂ¡Ă±ez <manu@gcc.gnu.org>
9649
9650 PR c++/44783
9651 * doc/invoke.texi [C++ Language Options]: Document
9652 -ftemplate-backtrace-limit.
9653
9654 2012-03-15 Tristan Gingold <gingold@adacore.com>
9655
9656 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
9657 before a parameter.
9658
9659 2012-03-15 Tristan Gingold <gingold@adacore.com>
9660
9661 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
9662 use DW_OP_call_frame_cfa.
9663
9664 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
9665
9666 PR target/50797
9667 * config/i386/i386-opts.h (pmode): New.
9668
9669 * config/i386/i386.c (ix86_option_override_internal): Properly
9670 check and set ix86_pmode.
9671
9672 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
9673
9674 * config/i386/i386.opt (maddress-mode=): New.
9675
9676 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
9677
9678 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9679
9680 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
9681 (dwarf2out_do_cfi_asm): Likewise.
9682 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
9683 handling.
9684 (add_data_member_location_attribute): Likewise.
9685 (gen_array_type_die): Likewise.
9686 (gen_subprogram_die): Likewise.
9687 (gen_producer_string): Likewise.
9688 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
9689 Remove MIPS_DEBUGGING_INFO handling.
9690 (sdb_debug_hooks): Likewise.
9691 (sdbout_begin_block): Likewise.
9692 (sdbout_end_block): Likewise.
9693 (sdbout_begin_prologue): Likewise.
9694 (sdbout_start_source_file): Likewise.
9695 (sdbout_end_source_file): Likewise.
9696 (sdbout_init): Likewise.
9697 * system.h (MIPS_DEBUGGING_INFO): Poison.
9698
9699 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9700
9701 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
9702 (alpha_file_start) [MS_STAMP]: Remove.
9703
9704 * config/alpha/elf.h (TARGET_GAS): Remove.
9705 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
9706 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
9707 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
9708 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
9709 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
9710 (alpha*-*-freebsd*): Likewise.
9711 (alpha*-*-netbsd*): Likewise.
9712 (alpha*-*-openbsd*): Likewise.
9713 (alpha*-*-*): Remove target_cpu_default2.
9714 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
9715 handling.
9716 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
9717 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
9718 * config/alpha/alpha.c (print_operand): Always assume
9719 TARGET_AS_SLASH_BEFORE_SUFFIX.
9720 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
9721 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
9722 ("*builtin_setjmp_receiver_er_1"): Remove.
9723 * config/alpha/alpha.opt (malpha-as): Remove.
9724 (mgas): Ignore.
9725 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
9726 -malpha-as, -mgas.
9727 Remove DEC Unix reference.
9728
9729 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
9730 (EXTENDED_COFF): Remove.
9731 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
9732 (EXTENDED_COFF): Don't undef.
9733 * config/alpha/alpha.c (alpha_file_start): Always assume
9734 OBJECT_FORMAT_ELF.
9735 Don't set targetm.asm_file_start_file_directive.
9736 [!OBJECT_FORMAT_ELF]: Remove.
9737 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9738
9739 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
9740 (DBX_DEBUGGING_INFO): Remove.
9741 (MIPS_DEBUGGING_INFO): Remove.
9742 (PREFERRED_DEBUGGING_TYPE): Remove.
9743 (DBX_OUTPUT_SOURCE_LINE): Remove.
9744 (SDB_OUTPUT_SOURCE_LINE): Remove.
9745 (DBX_CONTIN_LENGTH): Remove.
9746 (NO_DBX_FUNCTION_END): Remove.
9747 (ASM_STABS_OP): Remove.
9748 (ASM_STABN_OP): Remove.
9749 (ASM_STABD_OP): Remove.
9750 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
9751 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
9752 (PUT_SDB_DEF): Remove.
9753 (PUT_SDB_PLAIN_DEF): Remove.
9754 (PUT_SDB_TYPE): Remove.
9755 (sdb_label_count): Remove.
9756 (PUT_SDB_BLOCK_START): Remove.
9757 (PUT_SDB_BLOCK_END): Remove.
9758 (PUT_SDB_FUNCTION_START): Remove.
9759 (PUT_SDB_FUNCTION_END): Remove.
9760 (PUT_SDB_EPILOGUE_END): Remove.
9761 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
9762 (MIPS_DEBUGGING_INFO): Don't undef.
9763 (DBX_DEBUGGING_INFO): Don't undef.
9764 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
9765 (MIPS_DEBUGGING_INFO): Don't undef.
9766 (DBX_DEBUGGING_INFO): Don't undef.
9767 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
9768 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
9769 handling.
9770 (alpha_start_function): Likewise.
9771 (sdb_label_count): Remove.
9772 (alpha_output_filename): Remove DBX_DEBUG handling.
9773 (alpha_file_start): Likewise.
9774
9775 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9776
9777 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
9778 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
9779 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
9780 Solaris 8 support.
9781 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
9782 (ld_tls_support): Remove Solaris 8 references.
9783 (lwp_dir, lwp_spec): Remove support for alternate thread library.
9784 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
9785 * configure: Regenerate.
9786 * config.in: Regenerate.
9787
9788 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
9789 * config/i386/sol2.h: Remove Solaris 8 references.
9790
9791 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
9792 (i?86-*-solaris2.9): ... this.
9793 Remove Solaris 8 references.
9794 (Specific, *-*-solaris2*): Document Solaris 8 removal.
9795 Remove Solaris 8 references.
9796
9797 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9798
9799 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
9800 (mips-sgi-irix6.5*): Remove.
9801 * config.host (mips-sgi-irix*): Remove.
9802 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
9803 (set_have_as_tls): Remove *-*-irix6*.
9804 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
9805 * configure: Regenerate.
9806
9807 * config/mips/iris6.h: Remove.
9808 * config/mips/iris6.opt: Remove.
9809 * config/mips/t-irix6: Remove.
9810
9811 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
9812 (TARGET_IRIX6): Remove.
9813 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
9814 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
9815 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
9816 handling.
9817 (mips_file_start): Likewise.
9818 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
9819
9820 * config/mips/driver-native.c [__sgi__]: Remove.
9821 (host_detect_local_cpu) [__sgi__]: Remove.
9822
9823 * config/mips/gnu-user.h: Remove iris5.h reference.
9824
9825 * config/mips/mips-modes.def: Remove IRIX 6 reference.
9826 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
9827 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
9828 Remove.
9829
9830 * gcc.c (main): Move asm_debug initialization ...
9831 (asm_debug): ... here.
9832
9833 * ginclude/stddef.h (__STDDEF_H__): Don't define.
9834
9835 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
9836 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
9837 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9838 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
9839 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
9840 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
9841 Remove.
9842 * doc/tm.texi: Regenerate.
9843
9844 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
9845 IRIX 6 reference.
9846 (MIPS Options, -march): Remove IRIX reference.
9847 * doc/install.texi (Binaries, SGI IRIX): Remove.
9848 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
9849 of section.
9850 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
9851
9852 2012-03-14 Martin Jambor <mjambor@suse.cz>
9853
9854 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
9855 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
9856 (expand_expr_real_1): Do not handle misalignment if modifier is
9857 EXPAND_WRITE.
9858
9859 2012-03-14 Richard Guenther <rguenther@suse.de>
9860
9861 PR middle-end/52584
9862 * tree-vect-generic.c (type_for_widest_vector_mode): Take
9863 element type instead of mode, use build_vector_type_for_mode
9864 instead of the langhook, build a vector of proper signedness.
9865 (expand_vector_operations_1): Adjust.
9866
9867 2012-03-14 Richard Guenther <rguenther@suse.de>
9868
9869 PR middle-end/52582
9870 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
9871 a cgraph node for a FUNCTION_DECL that comes from a constructor.
9872 (gimple_get_virt_method_for_binfo): Likewise.
9873
9874 2012-03-14 Richard Guenther <rguenther@suse.de>
9875
9876 PR tree-optimization/52571
9877 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9878 flag_section_anchors check ...
9879 (vect_can_force_dr_alignment_p): ... here. Do not re-align
9880 DECL_COMMON variables.
9881
9882 2012-03-14 Richard Guenther <rguenther@suse.de>
9883
9884 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
9885 * stor-layout.c (start_bitfield_representative): New function.
9886 (finish_bitfield_representative): Likewise.
9887 (finish_bitfield_layout): Likewise.
9888 (finish_record_layout): Call finish_bitfield_layout.
9889 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
9890 for QUAL_UNION_TYPE fields.
9891 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
9892 Stream DECL_BIT_FIELD_REPRESENTATIVE.
9893 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
9894
9895 PR middle-end/52080
9896 PR middle-end/52097
9897 PR middle-end/48124
9898 * expr.c (get_bit_range): Unconditionally extract bitrange
9899 from DECL_BIT_FIELD_REPRESENTATIVE.
9900 (expand_assignment): Adjust call to get_bit_range.
9901
9902 2012-03-14 Richard Guenther <rguenther@suse.de>
9903
9904 PR middle-end/52578
9905 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
9906 the outermost conversion is a sign-change only.
9907 (fold_binary_loc): Disregard widening and sign-changing
9908 conversions when we determine if two variables are equal
9909 for reassociation.
9910 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
9911 (T1)x if the outermost conversion is a sign-change only.
9912
9913 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
9914
9915 Revert:
9916 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
9917
9918 * config/i386/predicates.md (constant_call_address_operand): Declare
9919 as special predicate. Update all uses.
9920
9921 2012-03-13 Jakub Jelinek <jakub@redhat.com>
9922
9923 PR c/52577
9924 * c-parser.c (c_parser_postfix_expression)
9925 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
9926
9927 * config/i386/smmintrin.h: Avoid /* within a comment.
9928 * config/i386/nmmintrin.h: Likewise.
9929
9930 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9931
9932 * config/i386/i386.md (xbegin): Remove constraint from expander.
9933
9934 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9935
9936 * config/i386/predicates.md (constant_call_address_operand): Declare
9937 as special predicate. Update all uses.
9938 * config/i386/i386.md: Remove mode from constant_call_address_operand
9939 predicates.
9940 * config/i386/i386.c (ix86_output_call_insn): Call
9941 constant_call_address_operand with VOIDmode.
9942
9943 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9944
9945 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
9946 AND zero extended address correctly.
9947
9948 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9949
9950 * config/i386/predicates.md (tls_symbolic_operand): Declare as
9951 special predicate.
9952 (tls_modbase_operand): Ditto.
9953 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
9954 tls_modbase_operand predicates.
9955
9956 2012-03-13 Martin Jambor <mjambor@suse.cz>
9957
9958 * expr.c (expand_assignment): Handle misaligned scalar writes to
9959 memory through top-level MEM_REFs by calling store_bit_field.
9960
9961 2012-03-13 Richard Guenther <rguenther@suse.de>
9962
9963 PR middle-end/52134
9964 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
9965 if Y is a constant multiple of 1 << CST.
9966
9967 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
9968
9969 PR target/52488
9970 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
9971 offset (size) to a value the insns can deal with.
9972 (expand_epilogue): Ditto.
9973
9974 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9975
9976 * config/arm/neon.ml (ops): Fixup expected instructions for
9977 unsigned vector compares.
9978
9979 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
9980
9981 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
9982 addresses only when %reg is not in word mode.
9983
9984 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9985
9986 * config/microblaze/microblaze.md: Fix typo.
9987 * tree-if-conv.c: Likewise.
9988 * tree-vect-patterns.c: Likewise.
9989
9990 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9991
9992 * config.gcc (extra_passes): Remove.
9993 * configure.ac (extra_passes): Don't substitute.
9994 * configure: Regenerate.
9995 * Makefile.in (EXTRA_PASSES): Remove.
9996 (GCC_PASSES): Remove $(EXTRA_PASSES).
9997 (MOSTLYCLEANFILES): Likewise.
9998 (native): Likewise.
9999 (install-common): Likewise.
10000
10001 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
10002
10003 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
10004 * config/i386/i386.c (ix86_decompose_address): Use
10005 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
10006 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
10007 thread pointer to a register.
10008
10009 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
10010
10011 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
10012 on tls_symbolic_operand.
10013 (tls_global_dynamic_64_<mode>): Likewise.
10014
10015 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
10016
10017 PR other/52545
10018 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
10019 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
10020
10021 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
10022
10023 PR target/52499
10024 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
10025 type from reg_class_t to enum reg_class.
10026 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
10027
10028 2012-03-12 Andrew Pinski <apinski@cavium.com>
10029
10030 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
10031 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
10032 (value_replacement): Likewise.
10033 (empty_block_p): Check also if the PHIs for the block are empty.
10034
10035 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
10036
10037 PR target/52148
10038 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
10039 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
10040 r184615 from 2012-02-28.
10041
10042 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
10043
10044 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
10045 (ix86_gen_tls_local_dynamic_base_64): Likewise.
10046 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
10047 and ix86_gen_tls_local_dynamic_base_64.
10048 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
10049 ix86_gen_tls_local_dynamic_base_64.
10050
10051 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
10052 (*tls_global_dynamic_64_<mode>): This.
10053 (tls_global_dynamic_64): Renamed to ...
10054 (tls_global_dynamic_64_<mode>): This.
10055 (*tls_local_dynamic_base_64): Renamed to ...
10056 (*tls_local_dynamic_base_64_<mode>): This.
10057 (tls_local_dynamic_base_64): Renamed to ...
10058 (tls_local_dynamic_base_64_<mode>): This.
10059
10060 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
10061
10062 * config/i386/i386.c (ix86_option_override_internal): Properly
10063 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
10064 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
10065 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
10066 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10067
10068 * config/i386/sse.md (sse3_monitor64): Renamed to ...
10069 (sse3_monitor64_<mode>): This.
10070
10071 2012-03-12 Tristan Gingold <gingold@adacore.com>
10072
10073 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
10074 (ia64_function_arg_advance): Ditto.
10075
10076 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10077
10078 * config.gcc (mips*-*-openbsd*): Remove.
10079 * config/mips/openbsd.h: Remove.
10080 * config/mips/sdb.h: Remove.
10081
10082 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
10083 * config/mips/mips.c (sdb_label_count): Remove.
10084 (mips_debugger_offset): Remove #if 0 code.
10085 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
10086 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
10087
10088 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10089
10090 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
10091 binutils reference.
10092 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
10093 Update binutils references.
10094 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
10095 Update binutils reference.
10096 Update Sun as/GNU ld caveat.
10097 Document binutils largefile requirement for LTO plugin.
10098 Remove reference to alternate libpthread.
10099
10100 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10101
10102 * config.gcc (alpha*-dec-osf5.1*): Remove.
10103 * config.host (alpha*-dec-osf*): Remove.
10104 * configure.ac (*-*-osf*): Remove.
10105 (alpha*-dec-osf*): Remove.
10106 * configure: Regenerate.
10107
10108 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
10109 config/alpha/va_list.h, config/alpha/x-osf: Remove.
10110
10111 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
10112 * config/alpha/alpha.c (struct machine_function): Update comment.
10113 (alpha_start_function): Remove Tru64 UNIX as handling for
10114 max_frame_size.
10115 * config/alpha/alpha.md ("exception_receiver"): Remove
10116 TARGET_LD_BUGGY_LDGP.
10117 ("*exception_receiver_2"): Likewise.
10118 * except.c (finish_eh_generation): Remove Tru64 reference.
10119 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
10120 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
10121 * target.def (handle_pragma_extern_prefix): Remove.
10122
10123 * Makefile.in (mips-tfile.o-warn): Remove.
10124 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
10125 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
10126 * mips-tdump.c, mips-tfile.c: Remove.
10127
10128 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
10129 extern_prefix.
10130 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
10131 (Specific, alpha*-dec-osf5.1): Note removal.
10132 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
10133 Remove.
10134 * doc/tm.texi: Regenerate.
10135 * doc/trouble.texi (Cross-Compiler Problems): Remove.
10136
10137 2012-03-12 Richard Guenther <rguenther@suse.de>
10138
10139 * config/arm/arm.c (neon_dereference_pointer): Do not call
10140 covert during RTL expansion.
10141
10142 2012-03-12 Tristan Gingold <gingold@adacore.com>
10143
10144 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
10145 Options. Mention -mpointer-size.
10146
10147 2012-03-12 Richard Guenther <rguenther@suse.de>
10148
10149 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
10150 build_nonstandard_integer_type.
10151
10152 2012-03-12 Richard Guenther <rguenther@suse.de>
10153
10154 * tree.c (signed_or_unsigned_type_for): Use
10155 build_nonstandard_integer_type.
10156 (signed_type_for): Adjust documentation.
10157 (unsigned_type_for): Likewise.
10158 * tree-pretty-print.c (dump_generic_node): Use standard names
10159 for non-standard integer types if available.
10160
10161 2012-03-12 Tristan Gingold <gingold@adacore.com>
10162
10163 * config/vms/vms.opt: Add vms-opts.h header.
10164 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
10165 target mask.
10166 (-mvms-return-codes): Document.
10167 (-mpointer-size): New option.
10168 (vms_pointer_size): Add enumeration.
10169 * config/vms/vms-opts.h: New file.
10170 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
10171 __INITIAL_POINTER_SIZE.
10172 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
10173 (C_COMMON_OVERRIDE_OPTIONS): Define.
10174 (DWARF2_ADDR_SIZE): Define.
10175 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
10176 * config/vms/vms-protos.h (vms_c_common_override_options):
10177 New prototype.
10178 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
10179 if -mno-pointer-size.
10180 (vms_c_common_override_options): New function.
10181 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10182 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
10183 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
10184 and flag_vms_pointer_size.
10185 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
10186 * config.gcc (*-*-*vms*): Define xm_file.
10187 (alpha*-dec-*vms*): Do not define xm_file.
10188 (alpha64-dec-*vms*): Remove.
10189 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
10190 and tmake_file.
10191
10192 2012-03-12 Jakub Jelinek <jakub@redhat.com>
10193
10194 PR tree-optimization/51721
10195 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
10196 if (int) unsvar cmp CST.
10197
10198 2012-03-12 Richard Guenther <rguenther@suse.de>
10199
10200 * tree-sra.c (create_access_replacement): Only rename the replacement
10201 if we can rewrite it into SSA form. Properly mark register typed
10202 replacements that we cannot rewrite with TREE_ADDRESSABLE.
10203 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
10204 for aggregate or BLKmode results.
10205
10206 2012-03-12 Jakub Jelinek <jakub@redhat.com>
10207
10208 PR tree-optimization/52533
10209 * tree-vrp.c (register_edge_assert_for_2): Use double_int
10210 type for mask, only handle shifts by non-zero in-range
10211 shift count, for LE_EXPR and GT_EXPR if new_val is
10212 maximum, don't add the assertion.
10213
10214 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
10215
10216 * doc/invoke.texi: Document -mrtm option.
10217 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
10218 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
10219 (ix86_handle_option): Handle OPT_mrtm.
10220 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
10221 xtestintrin.h.
10222 (x86_64-*-*): Ditto.
10223 * i386-builtin-types.def (INT_FTYPE_VOID): New.
10224 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10225 __RTM__ if needed.
10226 (ix86_target_string): Define -mrtm option.
10227 (PTA_RTM): New.
10228 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
10229 Handle new option.
10230 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
10231 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
10232 IX86_BUILTIN_XTEST.
10233 (bdesc_special_args): Ditto.
10234 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
10235 (ix86_expand_special_args_builtin): Handle new built-in type.
10236 (ix86_expand_builtin): Handle XABORT instruction.
10237 * config/i386/i386.h (TARGET_RTM): New.
10238 * config/i386/i386.md (UNSPECV_XBEGIN): New.
10239 (UNSPECV_XEND): Ditto.
10240 (UNSPECV_XABORT): Ditto.
10241 (UNSPECV_XTEST): Ditto.
10242 (xbegin): Ditto.
10243 (xbegin_1): Ditto.
10244 (xend): Ditto.
10245 (xabort): Ditto
10246 (xtest): Ditto.
10247 (xtest_1): Ditto.
10248 * config/i386/i386.opt (mrtm): New.
10249 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
10250 * config/i386/rtmintrin.h: New header.
10251 * config/i386/xtestintrin.h: Ditto.
10252
10253 2012-03-12 Tristan Gingold <gingold@adacore.com>
10254
10255 * ginclude/stddef.h: Adjust previous patch.
10256 Use __VMS__ instead of VMS.
10257
10258 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
10259
10260 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
10261 Also convert sequences with CC setting arithmetic instruction.
10262
10263 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
10264
10265 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
10266 from C Language Options to Preprocessor Options.
10267 (C Dialect Options): Move -no-integrated-cpp documentation
10268 from here...
10269 (Preprocessor Options): ...to here. Rewrite the description
10270 so it makes more sense, and remove discussion of merging front ends.
10271
10272 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10273
10274 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
10275 needed for loop.
10276 (ix86_expand_setmem): Likewise.
10277
10278 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
10279
10280 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
10281 convert_to_mode.
10282
10283 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10284
10285 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
10286 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
10287
10288 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10289
10290 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
10291
10292 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10293
10294 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
10295 TARGET_64BIT.
10296
10297 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
10298 Uros Bizjak <ubizjak@gmail.com>
10299
10300 * config/i386/predicates.md (call_insn_operand): Allow
10301 constant_call_address_operand in Pmode only.
10302 (sibcall_insn_operand): Ditto.
10303 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
10304 (*call_vzeroupper): Ditto.
10305 (*sibcall): Ditto.
10306 (*sibcall_vzeroupper): Ditto.
10307 (*call_value): Ditto.
10308 (*call_value_vzeroupper): Ditto.
10309 (*sibcall_value): Ditto.
10310 (*sibcall_value_vzeroupper): Ditto.
10311 (*indirect_jump): Ditto.
10312 (*tablejump_1): Ditto.
10313 (indirect_jump): Convert memory address to word mode for TARGET_X32.
10314 (tablejump): Ditto.
10315 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
10316 to word mode.
10317
10318 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
10319
10320 PR target/51244
10321 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
10322 Use movrt_negc instead of negc pattern for non-SH2A.
10323 (*movnegt): Remove.
10324 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
10325
10326 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
10327
10328 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
10329 if Pmode != word_mode.
10330 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
10331 Pmode == SImode for TARGET_X32.
10332
10333 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
10334 (tls_initial_exec_x32): Likewise.
10335
10336 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
10337
10338 PR rtl-optimization/52528
10339 * combine.c (can_combine_p): Add setting of subst_low_luid
10340 before call to expand_field_assignment().
10341
10342 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
10343
10344 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
10345 and related program names.
10346
10347 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
10348
10349 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
10350
10351 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
10352
10353 PR target/52530
10354 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
10355 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
10356 to set code to 'q'.
10357 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
10358 (*movdi_internal_rex64): Use %E operand modifier for lea.
10359 (*movsi_internal): Ditto.
10360 (*lea_1): Ditto.
10361 (*lea<mode>_2): Ditto.
10362 (*lea_{3,4,5,6}_zext): Ditto.
10363 (*tls_global_dynamic_32_gnu): Ditto.
10364 (*tls_global_dynamic_64): Ditto.
10365 (*tls_dynamic_gnu2_lea_32): Ditto.
10366 (*tls_dynamic_gnu2_lea_64): Ditto.
10367 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
10368
10369 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10370
10371 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
10372 redefine to be NULL if the current bit-size is different from the
10373 configured bit-size.
10374
10375 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
10376 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
10377 set the default tuning. Add asserts to make sure the cpu and tune
10378 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
10379 test whether the index is set, instead of > 0.
10380 (rs6000_file_start): Do not reset the default cpu if the current
10381 bit-size is different from the configured bit-size.
10382
10383 2012-03-09 Tristan Gingold <gingold@adacore.com>
10384
10385 * config/vms/vms-crtlmap.map: Add comments.
10386 Add entries needed to build Ada RTS.
10387
10388 2012-03-09 Tristan Gingold <gingold@adacore.com>
10389
10390 * ginclude/stddef.h: Do not define __size_t on VMS.
10391
10392 2012-03-09 Tristan Gingold <gingold@adacore.com>
10393
10394 * c-tree.h (c_default_pointer_mode): New variable.
10395 * c-decl.c (c_default_pointer_mode): New variable.
10396 (c_build_pointer_type): New function.
10397 (grokdeclarator): Call c_build_pointer_type instead
10398 of build_pointer_type.
10399
10400 * config/vms/vms-c.c: Include c-tree.h
10401 (saved_pointer_mode): New variable.
10402 (handle_pragma_pointer_size): New function.
10403 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
10404 (vms_c_register_pragma): Register __pointer_size and
10405 __required_pointer_size pragmas.
10406
10407 2012-03-09 Tristan Gingold <gingold@adacore.com>
10408
10409 * config/vms/vms-c.c (vms_construct_include_filename): New function.
10410 (vms_c_register_includes): Reference it.
10411
10412 2012-03-09 Andrew Pinski <apinski@cavium.com>
10413
10414 PR middle-end/51988
10415 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
10416 print_generic_expr.
10417 (tree_ssa_phiopt_worker): Go through all the PHIs for
10418 value_replacement instead of just the singleton one.
10419 (value_replacement): Change return type to int. Return 0 instead of
10420 false.
10421 Allow the middle basic block to contain more than just the defining
10422 statement.
10423 Handle non empty middle basic blocks.
10424 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
10425
10426 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
10427
10428 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
10429 array reference and component reference.
10430 (analyze_scalar_evolution_for_address_of): New.
10431
10432 2012-03-08 Jie Zhang <jzhang918@gmail.com>
10433
10434 PR target/49862
10435 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
10436 (hwloop_pattern_reg): Fix set but not used warning.
10437 (bfin_reorg_loops): Remove unused parameter.
10438 (bfin_reorg): Update use of bfin_reorg_loops.
10439
10440 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
10441
10442 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
10443 with integer parameters in registers.
10444 (gen_push): Push register in word_mode instead of Pmode.
10445 (ix86_emit_save_regs): Likewise.
10446 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
10447 (gen_pop): Pop register in word_mode instead of Pmode.
10448 (ix86_emit_restore_regs_using_pop): Likewise.
10449 (ix86_expand_prologue): Replace Pmode with word_mode for push
10450 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
10451 restore RAX and R10 in word_mode.
10452 (ix86_emit_restore_regs_using_mov): Restore integer registers
10453 in word_mode.
10454 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
10455 word_mode.
10456 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
10457 (ix86_split_long_move): Likewise.
10458
10459 * config/i386/i386.md (W): New.
10460 (*push<mode>2_prologue): Replace :P with :W.
10461 (*pop<mode>1): Likewise.
10462 (*pop<mode>1_epilogue): Likewise.
10463 (push/pop peephole2): Use word_mode scratch registers.
10464
10465 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
10466
10467 * config/i386/predicates.md (indirect_branch_operand): Simplify.
10468
10469 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
10470
10471 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
10472 for constants in [-63,63].
10473
10474 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
10475
10476 PR target/52530
10477 Revert:
10478 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10479
10480 * config/i386/i386.c (ix86_print_operand_address): Only handle
10481 zero-extended DImode addresses.
10482
10483 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10484
10485 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
10486 * configure: Regenerate.
10487
10488 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
10489
10490 PR target/52496
10491 * config/avr/avr.c (avr_mem_clobber): New static function.
10492 (avr_expand_delay_cycles): Add memory clobber operand to
10493 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
10494 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
10495 (enable_interrupt, disable_interrupt): New expander.
10496 (nopv, sleep, wdr): New expanders.
10497 (delay_cycles_1): Add memory clobber.
10498 (delay_cycles_2): Add memory clobber.
10499 (delay_cycles_3): Add memory clobber.
10500 (delay_cycles_4): Add memory clobber.
10501 (cli_sei): New insn from former "enable_interrupt",
10502 "disable_interrupt" with memory clobber.
10503 (*wdt): New insn from former "wdt" with memory clobber.
10504 (*nopv): Similar, but for "nopv".
10505 (*sleep): Similar, but for "sleep".
10506
10507 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
10508 Kaz Kojima <kkojima@gcc.gnu.org>
10509
10510 PR target/52503
10511 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
10512 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
10513 (SUBTARGET_OVERRIDE_OPTIONS): Define.
10514
10515 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
10516
10517 * config/i386/predicates.md (x86_64_zext_general_operand): New.
10518 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
10519 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
10520
10521 2012-03-07 Walter Lee <walt@tilera.com>
10522
10523 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
10524 REG_CFA_* notes for the stack pointer.
10525 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
10526 EH_RETURN_STACKADJ_RTX.
10527 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
10528 generate REG_CFA_* notes for the stack pointer.
10529 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
10530 by EH_RETURN_STACKADJ_RTX.
10531
10532 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10533
10534 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
10535 when __AVR_3_BYTE_PC__ is defined.
10536
10537 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
10538
10539 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
10540 (ix86_print_operand): Handle '^'.
10541 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
10542 using P mode iterator. Add %^ to asm template to conditionally emit
10543 addr32 prefix.
10544 (*rep_movdi_rex64): Ditto.
10545 (*strsetdi_rex_1): Ditto.
10546 (*rep_stosdi_rex64): Ditto.
10547 (*strmov{si,hi,qi}_1): Add %^ to asm template to
10548 conditionally emit addr32 prefix.
10549 (*rep_mov{si,qi}): Ditto.
10550 (*strset{si,hi,qi}): Ditto.
10551 (*rep_stos{si,qi}): Ditto.
10552 (*cmpstrnqi_nz_1): Ditto.
10553 (*cmpstrnqi_1): Ditto.
10554 (*strlenqi_1): Ditto.
10555
10556 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
10557
10558 * config/i386/i386.c (function_value_64): Return pointers in
10559 word_mode instead of Pmode.
10560 (ix86_promote_function_mode): Likewise.
10561
10562 2012-03-07 Richard Guenther <rguenther@suse.de>
10563
10564 * coverage.c (get_gcov_type): Use type_for_mode.
10565 (get_gcov_unsigned_t): Likewise.
10566 * expr.c (store_constructor): Use type_for_mode.
10567 (try_casesi): Likewise.
10568 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
10569 (add_standard_iv_candidates): Use standard type trees.
10570 * dojump.c (do_jump): Remove dead code.
10571
10572 2012-03-07 Richard Guenther <rguenther@suse.de>
10573
10574 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
10575
10576 2012-03-07 Richard Guenther <rguenther@suse.de>
10577
10578 * convert.c (strip_float_extensions): Move ...
10579 * tree.c (strip_float_extensions): ... here.
10580
10581 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10582
10583 PR target/52484
10584 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
10585
10586 2012-03-07 Richard Guenther <rguenther@suse.de>
10587
10588 * omp-low.c (extract_omp_for_data): Use signed_type_for.
10589 (expand_omp_for_generic): Likewise.
10590 (expand_omp_for_static_nochunk): Likewise.
10591 (expand_omp_for_static_chunk): Likewise.
10592 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
10593 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
10594 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
10595 Use unsigned_type_for.
10596 (vect_create_cond_for_align_checks): Use signed_type_for.
10597
10598 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
10599
10600 PR rtl-optimization/52203
10601 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
10602 all callers to pass NULL except ...
10603 (reset_sched_cycles_in_current_ebb): ... here, save the value
10604 in new variable 'empty'. Increase issue_rate only for
10605 non-empty insns.
10606
10607 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
10608
10609 PR target/51417
10610 * Makefile.in: Let install-gcc-ar depend on installdirs,
10611 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
10612 Don't double canonicalize if cross-compiling.
10613
10614 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10615
10616 PR target/52506
10617 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
10618 to: RAMPZ, RAMPY, RAMPX, RAMPD.
10619 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
10620
10621 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10622
10623 PR target/52505
10624 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
10625 from RAM.
10626 * config/avr/avr.md (xload_8): Adjust insn length.
10627
10628 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
10629
10630 PR target/52461
10631 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
10632 if RAMPZ affects reading from RAM.
10633
10634 2012-03-07 Richard Guenther <rguenther@suse.de>
10635
10636 PR pch/52518
10637 PR pch/38987
10638 * doc/invoke.texi (Precompiled Headers): Remove sentence that
10639 suggests you can include PCHs from inside another header.
10640
10641 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
10642
10643 PR middle-end/52515
10644 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
10645
10646 2012-03-07 Kai Tietz <ktietz@redhat.com>
10647
10648 * doc/invoke.texi (fwritable-relocated-rdata): Document
10649 new Cygwin/MinGW target option.
10650 * config/i386/winnt.c (i386_pe_unique_section): Ignore
10651 reloc if flag -fwritable-relocated-rdata is not set.
10652 (i386_pe_section_type_flags): Likewise.
10653 * config/i386/cygming.opt (fwritable-relocated-rdata):
10654 Add new flag variable flag_writable_rel_rdata.
10655
10656 2012-03-07 Richard Guenther <rguenther@suse.de>
10657
10658 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
10659 precision against gimple constraints.
10660
10661 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
10662
10663 PR middle-end/52372
10664 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
10665 variables.
10666 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
10667 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
10668 variables.
10669 (init_emit_regs): Move associated initialization to...
10670 (init_emit_once): ...here.
10671
10672 2012-03-06 Richard Henderson <rth@redhat.com>
10673
10674 * config/m68k/m68k.h (ISA_HAS_TAS): New.
10675 * config/m68k/sync.md (atomic_test_and_set): Use it.
10676 (atomic_test_and_set_1): Likewise.
10677
10678 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10679
10680 PR target/50310
10681 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
10682 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
10683 (vector_ltgt<mode>): Likewise.
10684 (vector_ordered<mode>): Likewise.
10685 (vector_unordered<mode>): Likewise.
10686 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
10687
10688 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
10689
10690 * trans-mem.c: New typedef for tm_region_p.
10691 Define vector types for tm_region_p.
10692 (tm_region_init): Replace region_worklist to a vector called
10693 bb_regions.
10694
10695 2012-03-06 Richard Guenther <rguenther@suse.de>
10696
10697 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
10698 MEM_REF with constant pointer operand.
10699
10700 2012-03-06 Richard Guenther <rguenther@suse.de>
10701
10702 PR middle-end/52493
10703 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
10704
10705 2012-03-06 Tristan Gingold <gingold@adacore.com>
10706
10707 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
10708 (external_model_kind): Improve documentation.
10709 (vms_pragma_extern_model): Handle relaxed_redef.
10710 (vms_c_register_pragma): Allow expansion for nomember_alignment.
10711
10712 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
10713
10714 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
10715 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
10716 Some more notes on EIND usage and reorder EIND subsection.
10717
10718 2012-03-06 Tristan Gingold <gingold@adacore.com>
10719
10720 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
10721 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
10722
10723 2012-03-06 Tristan Gingold <gingold@adacore.com>
10724
10725 * config/vms/t-vmsnative (version): Define.
10726 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
10727
10728 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
10729
10730 PR rtl-optimization/52250
10731 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
10732 to put note list into. Unconditionally call move_bb_info.
10733 (move_bb_info): Do not assert the blocks being in the same region,
10734 just drop the note list if they are not.
10735
10736 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10737
10738 PR target/51244
10739 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
10740 and use unified expansion logic.
10741 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
10742 closer to the existing movt insn.
10743 (negc): Rename insn to *negc. Add new expander.
10744 (movnegt): Use xor pattern for T bit negation. Reserve helper
10745 constant for negc pattern.
10746 (*movnegt): New insn and splitter.
10747
10748 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
10749
10750 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
10751 PLUS_EXPR.
10752
10753 2012-03-05 Richard Henderson <rth@redhat.com>
10754
10755 * genemit.c (main): Include "target.h" in insn-emit.c.
10756 * Makefile.in (insn-emit.o): Depend on TARGET_H.
10757 * config/sh/sync.md (atomic_test_and_set): Reference
10758 targetm.atomic_test_and_set_trueval instead of
10759 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
10760
10761 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
10762
10763 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
10764 Make static.
10765
10766 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
10767
10768 * langhooks.c (add_builtin_type): New function.
10769 * langhooks.h (add_builtin_type): Export it.
10770 * config/mep/mep.c (mep_init_builtins): Use it.
10771 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
10772
10773 2012-03-05 Jakub Jelinek <jakub@redhat.com>
10774
10775 PR debug/51902
10776 * tree.h (BLOCK_SAME_RANGE): Define.
10777 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
10778 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
10779 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
10780 isn't equal to supercontext fragment's fragment chain.
10781 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
10782 fragment origin.
10783 (blocks_nreverse_all): Likewise.
10784 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
10785 BLOCK_SUPERCONTEXT to supercontext fragment instead of
10786 supercontext fragment's fragment origin.
10787 * dwarf2out.c (add_high_low_attributes): If stmt has the same
10788 range as its parent (or parents thereof etc.), use the parent's
10789 DW_AT_ranges value instead of creating a new .debug_ranges range.
10790
10791 2012-03-05 Richard Henderson <rth@redhat.com>
10792
10793 PR tree-opt/52242
10794 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
10795 * omp-low.c (expand_omp_atomic): Assume anything aligned to
10796 BIGGEST_ALIGNMENT is aligned.
10797
10798 2012-03-05 Richard Henderson <rth@redhat.com>
10799
10800 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
10801 * config/sh/sh.c: ... here.
10802
10803 2012-03-05 Richard Henderson <rth@redhat.com>
10804
10805 PR target/52481
10806 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
10807 instead of calling negqi2 directly.
10808
10809 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
10810
10811 PR middle-end/52463
10812 * trans-mem.c (tm_region_init): Use last_basic_block.
10813
10814 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
10815
10816 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
10817 * config/sh/sync.md (atomic_test_and_set): New expander.
10818 (tasb, atomic_test_and_set_soft): New insns.
10819 * config/sh/sh.opt (menable-tas): New option.
10820 * doc/invoke.texi (SH Options): Document it.
10821
10822 2012-03-05 Richard Guenther <rguenther@suse.de>
10823
10824 * cfgloop.c (verify_loop_structure): Verify dominators before
10825 using them.
10826 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
10827 dominators from here.
10828 * graphite-scop-detection.c (create_sese_edges): Likewise.
10829 * loop-doloop.c (doloop_optimize_loops): Likewise.
10830 * loop-init.c (loop_optimizer_init): Likewise.
10831 * loop-unroll.c (unroll_and_peel_loops): Likewise.
10832 * loop-unswitch.c (unswitch_loops): Likewise.
10833 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
10834 * tree-parloops.c (parallelize_loops): Likewise. Verify
10835 only when checking is enabled.
10836 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
10837
10838 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
10839
10840 * genautomata.c (parse_automata_opt): New static function.
10841 (initiate_automaton_gen): Remove all option handling code. Remove
10842 argc argument. All callers changed.
10843 (main): Call init_rtx_reader_args_cb with the new function as argument.
10844
10845 2012-03-05 Richard Guenther <rguenther@suse.de>
10846
10847 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
10848 * tree-if-conv.c (combine_blocks): Free post-dominator info
10849 after breaking it.
10850 * tree-parloops.c (create_parallel_loop): Free and re-compute
10851 dominator info after breaking it.
10852
10853 2012-03-05 Richard Guenther <rguenther@suse.de>
10854
10855 PR middle-end/52353
10856 * optabs.h (trapv_unoptab_p): New function.
10857 (trapv_binoptab_p): Likewise.
10858 * optabs.c (expand_binop): Use emit_libcall_block_1 with
10859 a proper equiv_may_trap argument.
10860 (expand_unop): Likewise.
10861 (emit_libcall_block_1): Take extra argument whether the
10862 instruction may trap. Renamed from ...
10863 (emit_libcall_block): ... this. New wrapper.
10864
10865 2012-03-05 Jakub Jelinek <jakub@redhat.com>
10866
10867 PR tree-optimization/51721
10868 * tree-vrp.c (register_edge_assert_for_2): If comparing
10869 lhs of right shift by constant with an integer constant,
10870 add ASSERT_EXPRs for the rhs1 of the right shift.
10871
10872 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
10873
10874 2012-03-05 Richard Guenther <rguenther@suse.de>
10875
10876 * tree.c (integer_zerop): Handle VECTOR_CSTs.
10877 (integer_onep): Likewise.
10878 (integer_all_onesp): Likewise.
10879
10880 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
10881
10882 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
10883
10884 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10885
10886 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
10887 instead of TARGET_64BIT.
10888
10889 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10890
10891 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
10892 adjust_stack_insn.
10893
10894 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
10895
10896 * config/i386/i386.c (ix86_print_operand_address): Only handle
10897 zero-extended DImode addresses.
10898
10899 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
10900
10901 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
10902 taken and cputaken as bool.
10903
10904 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
10905
10906 * config/i386/constraints.md (Ya): New internal constraint.
10907 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
10908 (*zero_extendsidi2_rex64): Add x,x alternative.
10909 (*zero_extendsidi2): Ditto. Add o,0 alternative.
10910 Remove flags reg clobber. Adjust corresponding splits.
10911 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
10912 zero_extendqisi2 expanders using SWI12 mode iterator.
10913 (zero_extend<mode>si2_and): Macroize insn from
10914 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
10915 splitters.
10916 (*zero_extend<mode>si2): Macroize insn from
10917 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
10918 (*zero_extend*2_movzbl_and): Remove insn patterns.
10919 (zero_extendqihi2_and): Merge corresponding splitter.
10920 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
10921 (*zero_extend*2_movzbl_and): Remove insn patterns.
10922 (*anddi_1): Split TYPE_IMOVX instructions.
10923 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
10924 (*andhi_1): Ditto.
10925 (and->zext splitter): Add splitter pattern.
10926 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
10927
10928 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
10929
10930 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
10931 x86-specific text.
10932 (Debugging Options): Likewise.
10933 (Optimize Options): Likewise.
10934 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
10935 with other architectures. Use official processor names with correct
10936 spelling/capitalization. Fix formatting and grammar issues.
10937 (i386 and x86-64 Windows Options): Similar cleanup here.
10938
10939 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10940
10941 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
10942
10943 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10944
10945 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
10946 DBX_REGISTER_NUMBER.
10947
10948 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
10949
10950 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
10951 operand is CONST_INT. Take COSTS_N_INSNS into account.
10952 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
10953 of shiftcosts.
10954
10955 2012-03-02 Richard Henderson <rth@redhat.com>
10956
10957 * optabs.c (expand_atomic_test_and_set): Honor
10958 atomic_test_and_set_trueval even when atomic_test_and_set
10959 optab is not in use.
10960
10961 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
10962
10963 PR target/48596
10964 PR target/48806
10965 * config/sh/sh.c (sh_register_move_cost): Increase cost between
10966 GENERAL_REGS and FP_REGS for SImode.
10967
10968 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10969
10970 PR target/49486
10971 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
10972 (absdi2): New expander.
10973 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
10974
10975 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10976
10977 * config/sh/sync.md (atomic_exchange<mode>): New expander.
10978 (atomic_exchange<mode>_soft): New insn.
10979
10980 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10981
10982 * config/sh/sync.md: Update copyright notice dates.
10983 (atomic_compare_and_swap<mode>): Use SImode for return value instead
10984 of QImode.
10985 (atomic_compare_and_swap<mode>_soft): Likewise.
10986
10987 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
10988
10989 PR target/31640
10990 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
10991 * config/sh/sh.c: Update copyright notice dates.
10992 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
10993 alignment for TARGET_HARD_SH4.
10994 (sh_option_override): Reduce default function alignment. Set
10995 loop alignment to 4 bytes when not optimizing for size.
10996
10997 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
10998
10999 PR middle-end/50335
11000 * doc/invoke.texi (floop-flatten): Remove.
11001 * toplev.c (process_options): Remove references to flag_loop_flatten.
11002 * tree-ssa-loop.c (gate_graphite_transform): Same.
11003 * common.opt (floop-flatten): Obsolete.
11004 * graphite-poly.c (apply_poly_transforms): Remove reference to
11005 flag_loop_flatten.
11006 * Makefile.in (graphite-flattening.o): Remove.
11007 * graphite-flattening.c: Remove.
11008
11009 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
11010
11011 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
11012 having mode compatible with the mode of previous compare. Substitute
11013 compare mode of previous compare with the mode, compatible
11014 with eliminated and previous compare.
11015
11016 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
11017
11018 * config/rs6000/dfp.md (floatdidd2): New define_insn.
11019
11020 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
11021
11022 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
11023 compatible with CCGOCmode and CCGCmode.
11024
11025 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
11026
11027 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
11028
11029 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11030
11031 * config/arm/arm.c (arm_sat_operator_match): New function.
11032 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
11033 * config/arm/arm.md ("insn" attribute): Add "sat" value.
11034 ("SAT", "SATrev"): New code iterators.
11035 ("SATlo", "SAThi"): New code iterator attributes.
11036 ("*satsi_<SAT:code>"): New pattern.
11037 ("*satsi_<SAT:code>_shift"): Likewise.
11038 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
11039 and "shift" attributes.
11040 ("arm_usatsihi"): Add "insn" attribute.
11041 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
11042 by powers of two. Do not allow shift by 32.
11043
11044 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
11045
11046 PR target/46716
11047 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
11048 to pass the argument in the register of "natural" mode.
11049
11050 2012-03-02 Richard Guenther <rguenther@suse.de>
11051
11052 PR tree-optimization/52406
11053 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
11054 (struct indices): Add unconstrained_base member.
11055 (struct dr_alias): Remove unused vops member.
11056 (DR_UNCONSTRAINED_BASE): New define.
11057 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
11058 add indices to allow their disambiguation. Make DR_BASE_OBJECT
11059 be an artificial access that covers the whole indexed object,
11060 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
11061 plain decl base-objects to their MEM_REF variant.
11062 (dr_may_alias_p): When the base-object of either data reference
11063 has unknown size use only points-to information.
11064 (compute_affine_dependence): Make dumps easier to read and
11065 more verbose.
11066 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
11067 DR_REF when looking for packed references.
11068 (vect_supportable_dr_alignment): Likewise.
11069
11070 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
11071
11072 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
11073 Improve conditions for peepholes of loads followed by commutative
11074 operators.
11075 * config/arm/ldmstm.md: Regenerated.
11076
11077 2012-03-02 Richard Guenther <rguenther@suse.de>
11078
11079 * BASE-VER: Set to 4.8.0.
11080
11081 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
11082
11083 * config.gcc (obsolete): Add all ARM targets using the FPA.
11084 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
11085 * doc/install.texi: Avoid references to obsolete ARM ports.
11086
11087 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
11088
11089 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
11090
11091 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
11092 Joern Rennecke <joern.rennecke@embecosm.com>
11093
11094 * doc/extend.texi: Expand and update information on interrupt
11095 attribute for Epiphany.
11096
11097 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11098
11099 * config/sh/sh-protos.h: Update copyright notice dates.
11100 * config/sh/sh.h: Likewise.
11101 * config/sh/sh.md: Likewise.
11102 * config/sh/constraints.md: Likewise.
11103 * config/sh/predicates.md: Likewise.
11104
11105 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11106
11107 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
11108 * config/sh/sh.c (tertiary_reload_operand): Likewise.
11109
11110 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11111
11112 * config/sh/constraints.md: Fix comment typo.
11113
11114 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11115
11116 PR target/52408
11117 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
11118 unsigned HOST_WIDE_INT.
11119 (zvdep_imm64): Likewise.
11120 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
11121 (vdepi_and): Likewise.
11122 Likewise for unamed 64-bit patterns.
11123 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
11124
11125 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
11126
11127 PR debug/52001
11128 PR rtl-optimization/52417
11129 * cselib.c (cselib_any_perm_equivs): New variable.
11130 (cselib_reset_table): Check that it's not set when not
11131 preserving constants.
11132 (cselib_add_permanent_equiv): Set it.
11133 (cselib_have_permanent_equivalences): New.
11134 (cselib_init, cselib_finish): Reset it.
11135 * cselib.h (cselib_have_permanent_equivalences): Declare.
11136 * alias.c (get_addr): Restore earlier behavior when there
11137 aren't permanent equivalences.
11138
11139 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
11140
11141 * config/mn10300/mn10300-modes.def: Fix copyright notice.
11142 * config/v850/v850-modes.def: Fix copyright notice.
11143
11144 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
11145
11146 * doc/extend.texi (AVR Built-in Functions): Document
11147 __builtin_avr_flash_segment.
11148
11149 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
11150 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
11151 (*split.flash_segment): New insn-and-split.
11152 * config/avr/avr.c (avr_init_builtins): Add local variables:
11153 const_memx_void_node, const_memx_ptr_type_node,
11154 char_ftype_const_memx_ptr.
11155
11156 2012-03-01 Jakub Jelinek <jakub@redhat.com>
11157
11158 PR tree-optimization/52445
11159 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
11160 add ssa_name_ver, offset and size fields and change store field
11161 to bool.
11162 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
11163 (add_or_mark_expr): Likewise. Only consider previous stores
11164 with the same size and offset.
11165 (nt_init_block): Only look at gimple_assign_single_p stmts,
11166 doesn't look at rhs2.
11167
11168 2012-03-01 Richard Guenther <rguenther@suse.de>
11169
11170 PR middle-end/52443
11171 * tree-cfg.c (verify_gimple_assign_unary): Allow any
11172 conversions from integral types to pointer types.
11173
11174 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
11175
11176 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
11177 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
11178 unintentionally removed in r184616.
11179
11180 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11181
11182 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
11183 3DNow from bdver1.
11184
11185 2012-02-29 Jakub Jelinek <jakub@redhat.com>
11186 Uros Bizjak <ubizjak@gmail.com>
11187
11188 PR target/52437
11189 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
11190 alternatives, add "e" constraint to the new last alternative
11191 and ! to last 3 alternatives.
11192
11193 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
11194
11195 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
11196 DW_AT_artificial attributes at the end of the processing.
11197 (gen_array_type_die): Likewise.
11198 (gen_enumeration_type_die): Likewise.
11199 (gen_struct_or_union_type_die): Likewise.
11200 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
11201 the parent type.
11202
11203 2012-02-29 Jakub Jelinek <jakub@redhat.com>
11204
11205 PR middle-end/52419
11206 * expr.c (expand_assignment): If doing misaligned store that doesn't
11207 cover all mode bits, perform a RMW cycle.
11208
11209 PR tree-optimization/52429
11210 * tree-parloops.c (separate_decls_in_region_debug): Return early
11211 if var is LABEL_DECL.
11212
11213 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11214
11215 PR tree-optimization/52424
11216 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
11217 calling dom_thread_across_edge.
11218
11219 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11220
11221 * config/avr/avr.c: Move definition of TARGET macros to end of file.
11222
11223 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11224
11225 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
11226 * config/avr/avr.c (avr_output_bld): Remove unused function.
11227 (avr_out_sbxx_branch): Use "%T" to print bit position.
11228
11229 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11230
11231 * config/avr/avr.md: Untabify.
11232
11233 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11234
11235 * config/avr/avr.md (eqne): New code iterator.
11236 (*dec-and-branchsi): Use it in text peephole's condition.
11237 (*dec-and-branchhi): Ditto.
11238 (*dec-and-branchqi): Ditto.
11239
11240 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
11241
11242 PR target/49939
11243 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
11244 the device does not have the skip-bug.
11245
11246 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
11247
11248 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
11249 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
11250 -mpretend-cmove): New.
11251
11252 2012-02-29 Jakub Jelinek <jakub@redhat.com>
11253
11254 PR bootstrap/52397
11255 * df.h (struct df_d): Adjust comment that hard_regs_live_count
11256 doesn't count DEBUG_INSN refs.
11257 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
11258 for DEBUG_INSN refs.
11259
11260 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11261
11262 Partially revert:
11263
11264 2012-02-20 Richard Guenther <rguenther@suse.de>
11265 PR tree-optimization/52298
11266 * tree-vect-stmts.c (vectorizable_load): Properly use
11267 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
11268
11269 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
11270
11271 PR middle-end/51752
11272 * gimple.h (gimple_in_transaction): New.
11273 (gimple_set_in_transaction): New.
11274 (struct gimple_statement_base): Add in_transaction field.
11275 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
11276 transaction loads.
11277 (tree_ssa_lim_initialize): Compute transaction bits.
11278 * tree.h (compute_transaction_bits): Protoize.
11279 * trans-mem.c (tm_region_init): Use the heap to store BB
11280 auxilliary data.
11281 (compute_transaction_bits): New.
11282
11283 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11284
11285 * gcc.c (display_help): Document --help=common and sort entries
11286 alphabetically.
11287
11288 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11289
11290 * doc/install.texi: Document check-$LANG specific shortcuts
11291
11292 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11293
11294 PR target/51534
11295 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
11296 and vcgtu.
11297 * config/arm/arm_neon.h: Regenerate.
11298 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
11299 (neon_vcgeu): New insn.
11300 (neon_vcgtu): Likewise.
11301 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
11302 (ops): Unsigned comparison intrinsics call a different builtin.
11303
11304 2012-02-28 Richard Guenther <rguenther@suse.de>
11305
11306 PR target/52407
11307 * config/i386/i386.c (ix86_expand_vector_set): Fix element
11308 ordering for the VEC_CONCAT for two element vectors for
11309 V2SFmode, V2SImode and V2DImode.
11310
11311 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
11312
11313 PR target/49448
11314 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
11315 detecting big-endian triplets.
11316
11317 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
11318
11319 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
11320 mode if there is no type information available.
11321
11322 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
11323
11324 PR tree-optimization/53207
11325 * doc/invoke.texi: Document as experimental and relying on graphite.
11326
11327 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11328
11329 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
11330 of initializer to changes from r184614.
11331
11332 2012-02-28 Richard Guenther <rguenther@suse.de>
11333
11334 PR tree-optimization/52395
11335 * tree-sra.c (build_ref_for_offset): Also look at the base
11336 TYPE_ALIGN when figuring out the alignment of the replacement.
11337
11338 2012-02-28 Richard Guenther <rguenther@suse.de>
11339
11340 PR tree-optimization/52402
11341 * ipa-prop.c (ipa_modify_call_arguments): Properly use
11342 mis-aligned types when creating the accesses at the call site.
11343
11344 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11345
11346 * config/avr/builtins.def: New file.
11347 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
11348 * config/avr/avr.c (enum avr_builtin_id): Use it.
11349 (avr_init_builtins): Use it. And use avr_bdesc.
11350 (bdesc_1arg): Remove.
11351 (bdesc_2arg): Remove.
11352 (bdesc_3arg): Remove.
11353 (struct avr_builtin_description): Add field n_args.
11354 (avr_bdesc): New static variable using builtins.def.
11355 (avr_expand_builtin): Use it.
11356 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
11357 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
11358 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
11359
11360 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11361
11362 PR target/52148
11363 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
11364 match only one single hard register with respective hard reg rtx.
11365 (movmemx_<mode>): Ditto.
11366 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
11367 insn anatomy of movmem[x]_<mode>.
11368 (avr_out_movmem): Same for printing assembler and operand usage.
11369
11370 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
11371
11372 PR target/49868
11373 PR target/52261
11374 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
11375 address spaces located outside of device flash.
11376
11377 * config/avr/avr.h (base_arch_s): Remove field n_segments.
11378 (mcu_type_s): Add field n_flash.
11379 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
11380 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
11381 (AVR_MCU): Add N_FLASH argument.
11382 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
11383 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
11384 macro __FLASH<n> if that address space makes sense for the device.
11385 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
11386 outside of target flash.
11387 (avr_asm_named_section): Ditto.
11388 (avr_asm_select_section): Ditto.
11389 (avr_addr_space_convert): Ditto.
11390 (avr_emit_movmemhi): Ditto.
11391 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
11392 address space is outside of device flash.
11393 (avr_insert_attributes): Ditto.
11394 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
11395 avr_current_arch->n_segments.
11396
11397 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
11398
11399 PR target/52352
11400 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
11401 (*movabs<mode>_2): Likewise.
11402
11403 2012-02-27 Jakub Jelinek <jakub@redhat.com>
11404
11405 PR target/52375
11406 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
11407 s_register_operand in the test instead of REG_P. Don't call
11408 gen_reg_rtx if it won't be used.
11409
11410 PR tree-optimization/52376
11411 * ipa-split.c (split_function): Ignore CLOBBER stmts.
11412
11413 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
11414
11415 * ifcvt.c (noce_get_condition): Check condition variable is not
11416 small_register_classes_for_mode_p before accepting.
11417
11418 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
11419
11420 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
11421
11422 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11423
11424 Revert:
11425 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11426 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
11427 tuning parameters.
11428 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
11429
11430 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
11431
11432 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
11433
11434 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
11435
11436 * config/sh/predicates.md: Remove blank lines.
11437 * config/sh/sh.c: Fix typos in comments.
11438 * config/sh/constraints.md: Likewise.
11439 * config/sh/sh.md: Remove blank lines.
11440 Fix typos in comments. Use ;; as comment characters.
11441
11442 2012-02-26 Walter Lee <walt@tilera.com>
11443
11444 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
11445 (replace_mov_pcrel_step2): Ditto.
11446
11447 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
11448
11449 PR debug/52001
11450 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
11451 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
11452 and locs that reference values newer than the non-canonical value
11453 at hand. Return the canonical value as a worst case.
11454 (memrefs_conflict_p): Walk canonical value's locs.
11455
11456 PR debug/52001
11457 * cselib.c (preserve_only_constants): Rename to...
11458 (preserve_constants_and_equivs): ... this. Split out...
11459 (invariant_or_equiv_p): ... this. Preserve plus expressions
11460 of other preserved expressions too.
11461 (cselib_reset_table): Adjust.
11462 * var-tracking.c (reverse_op): Use canonical value to build
11463 reverse operation.
11464
11465 2012-02-23 Kai Tietz <ktietz@redhat.com>
11466
11467 * config/i386/i386.c (ix86_delegitimize_address): Handle
11468 UNSPEC_PCREL plus displacement.
11469
11470 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
11471
11472 PR target/52261
11473 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
11474 to test for unusedness in st X addressing.
11475
11476 2012-02-24 Richard Guenther <rguenther@suse.de>
11477
11478 PR middle-end/52361
11479 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
11480 (is_gimple_reg_type): Move inline ...
11481 * gimple.h (is_gimple_reg_type): ... here.
11482
11483 2012-02-24 Richard Guenther <rguenther@suse.de>
11484
11485 PR middle-end/52361
11486 * passes.c (execute_function_todo): When verifying SSA form
11487 verify gimple form first.
11488 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
11489
11490 2012-02-24 Richard Guenther <rguenther@suse.de>
11491
11492 PR middle-end/52355
11493 * fold-const.c (fold_addr_of_array_ref_difference): New function.
11494 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
11495
11496 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11497
11498 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
11499
11500 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11501
11502 * tree-phinodes.c (make_phi_node): Mark static.
11503 * tree-flow.h (make_phi_node): Remove extern decl.
11504 * doc/gimple.texi (make_phi_node): Remove documentation.
11505
11506 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11507
11508 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
11509 * tree-ssa-sccvn.c (print_scc): Ditto.
11510
11511 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11512
11513 * doc/passes.texi (Full redundancy elimination): Fix typo.
11514
11515 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11516
11517 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
11518
11519 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
11520
11521 PR bootstrap/52287
11522 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
11523
11524 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
11525
11526 PR c/52290
11527 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
11528
11529 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
11530
11531 * config/avr/avr.md (code_stdname): Add ior, xor.
11532 (xior): New code iterator.
11533 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
11534 (*<code_stdname><mode>qi.byte1-3): Ditto.
11535
11536 2012-02-23 Jakub Jelinek <jakub@redhat.com>
11537
11538 PR tree-optimization/52019
11539 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
11540 CLOBBER stmts.
11541
11542 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11543
11544 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
11545 HAVE_INITFINI_ARRAY to work around namespace pollution in
11546 certain versions of newlib system headers.
11547 * config.in: Regenerate.
11548 * configure: Regenerate.
11549 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
11550 instead of HAVE_INITFINI_ARRAY.
11551
11552 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
11553
11554 PR target/52330
11555 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
11556 is not offsettable memory reference.
11557
11558 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
11559
11560 PR target/18145
11561 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
11562 setting avr_need_clear_bss_p for __gnu_lto* symbols.
11563
11564 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
11565
11566 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
11567 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
11568
11569 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11570
11571 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
11572 library on Solaris 8 even without TLS support.
11573 * configure: Regenerate.
11574
11575 2012-02-22 Richard Guenther <rguenther@suse.de>
11576
11577 PR middle-end/52329
11578 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
11579 for GIMPLE_DEBUG stmts.
11580
11581 2012-02-22 Martin Jambor <mjambor@suse.cz>
11582
11583 PR middle-end/51782
11584 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
11585 according to the base object.
11586
11587 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
11588
11589 PR rtl-optimization/50063
11590 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
11591 and 2 (8-bit SP) in operand 2.
11592 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
11593 setup to use movhi_sp_r instead of vanilla move to write SP.
11594 Adjust REG_CFA notes to superseed unspec.
11595 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
11596 of vanilla move.
11597 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
11598 known to be off) only with TARGET_NO_INTERRUPTS. Never use
11599 irq_state 1 (IRQ known to be on) here.
11600
11601 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
11602
11603 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
11604 WORDS_BIG_ENDIAN.
11605 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
11606 assign_hard_reg): Likewise.
11607
11608 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
11609
11610 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
11611
11612 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
11613
11614 * config/avr/avr.md
11615 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
11616 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
11617
11618 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
11619
11620 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
11621 prototype from here to...
11622 * config/avr/avr.h: ...here.
11623
11624 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
11625
11626 PR target/52294
11627 * thumb2.md (thumb2_shiftsi3_short): Split register and
11628 immediate shifts. For register shifts tie operands 0 and 1.
11629 (peephole2 for above): Check that register-controlled shifts
11630 have suitably tied operands.
11631
11632 2012-02-21 Quentin Neill <quentin.neill@amd.com>
11633
11634 PR target/52137
11635 * config/i386/bdver1.md (bdver1_call, bdver1_push,
11636 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
11637 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
11638 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
11639 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
11640 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
11641 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
11642 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
11643 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
11644 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
11645 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
11646 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
11647 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
11648 bdver1_ssevector_avx256_unaligned_load,
11649 bdver1_ssevector_sse128_unaligned_load,
11650 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
11651 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
11652 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
11653 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
11654 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
11655 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
11656 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
11657 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
11658 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
11659 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
11660 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
11661 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
11662 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
11663 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
11664 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
11665 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
11666 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
11667 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
11668 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
11669 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
11670 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
11671 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
11672 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
11673 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
11674 bdver1_ssediv_double_load, bdver1_ssediv_double,
11675 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
11676 Add "bdver2" attribute.
11677
11678 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11679
11680 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
11681 default if possible and not specified otherwise.
11682
11683 2012-02-21 Richard Guenther <rguenther@suse.de>
11684
11685 PR middle-end/52314
11686 * gimplify.c (create_tmp_from_val): Use the main variant type
11687 for the type of the temporary we create.
11688
11689 2012-02-21 Richard Guenther <rguenther@suse.de>
11690
11691 PR tree-optimization/52324
11692 * gimplify.c (gimplify_expr): When re-gimplifying expressions
11693 do not gimplify a MEM_REF address operand if it is already
11694 in suitable form.
11695
11696 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11697
11698 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
11699 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
11700
11701 2012-02-21 Richard Guenther <rguenther@suse.de>
11702
11703 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
11704 nested_in_vect_loop.
11705
11706 2012-02-21 Jakub Jelinek <jakub@redhat.com>
11707
11708 PR tree-optimization/52318
11709 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
11710 vdef also to non-pure/const call stmts in the sequence.
11711
11712 2012-02-21 Tristan Gingold <gingold@adacore.com>
11713
11714 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
11715
11716 2012-02-20 David S. Miller <davem@davemloft.net>
11717
11718 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
11719 don't use the "rd %pc" instruction on v9 for PIC register loads.
11720
11721 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
11722
11723 PR middle-end/52141
11724 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
11725 in a transaction safe function.
11726
11727 2012-02-20 Kai Tietz <ktietz@redhat.com>
11728
11729 PR target/52238
11730 * stor-layout.c (place_field): Handle desired_align for
11731 ms-bitfields, too.
11732
11733 2012-02-20 Richard Guenther <rguenther@suse.de>
11734
11735 PR tree-optimization/52298
11736 * tree-vect-stmts.c (vectorizable_store): Properly use
11737 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
11738 outer loops.
11739 (vectorizable_load): Likewise.
11740 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11741 Access DR_STEP after ensuring it is not NULL.
11742
11743 2012-02-20 Jakub Jelinek <jakub@redhat.com>
11744
11745 PR tree-optimization/52286
11746 * fold-const.c (fold_binary_loc): For (X & C1) | C2
11747 optimization use double_int_to_tree instead of build_int_cst_wide,
11748 rewrite to use double_int vars.
11749
11750 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11751
11752 PR target/50166
11753 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
11754 Define _start.
11755 Remove -e 0 from $gcc_cv_ld invocation.
11756 Only use __GLIBC_PREREQ if defined.
11757 Enable on Solaris since Solaris 8 patch.
11758 (gcc_SUN_LD_VERSION): New macro.
11759 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
11760 gcc_SUN_LD_VERSION for version number format.
11761 * configure: Regenerate.
11762 * varasm.c (get_elf_initfini_array_priority_section): Set
11763 SECTION_NOTYPE for non-default priority.
11764 Use get_section instead of get_unnamed_section to emit
11765 .init_array/.fini_array with default priority.
11766
11767 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
11768
11769 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
11770 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
11771 (mips_start_unique_function, mips_output_mips16_rdhwr)
11772 (mips_code_end): New functions.
11773 (TARGET_ASM_CODE_END): Define.
11774
11775 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
11776
11777 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
11778 to stubs with non-sibling calls.
11779
11780 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
11781
11782 * doc/invoke.texi (-fira-* options): Copy-edit.
11783 (ira-* parameters): Copy-edit.
11784
11785 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
11786
11787 * doc/invoke.texi: Minor copy-edits to bring into conformance with
11788 GCC coding conventions.
11789
11790 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
11791
11792 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
11793 when used as adjectives.
11794
11795 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
11796
11797 * doc/invoke.texi: Clean up "that"/"which" confusion.
11798
11799 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
11800
11801 * system.h: Poison SMALL_REGISTER_CLASSES
11802 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
11803 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
11804
11805 2012-02-16 Jakub Jelinek <jakub@redhat.com>
11806
11807 PR tree-optimization/52285
11808 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
11809 when deciding if a call is a tail call or tail recursion.
11810
11811 2012-02-16 Kai Tietz <ktietz@redhat.com>
11812
11813 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
11814 interger-constant displacement for UNSPEC_PCREL.
11815
11816 2012-02-16 Jakub Jelinek <jakub@redhat.com>
11817
11818 PR rtl-optimization/52208
11819 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
11820 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
11821
11822 PR tree-optimization/52255
11823 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
11824 loop->header has virtual PHI, but exit_e->dest doesn't, add
11825 virtual PHI to exit_e->dest and adjust all uses after the loop.
11826
11827 PR debug/52260
11828 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
11829 children with clone_tree_hash, not after it.
11830
11831 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
11832
11833 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
11834 extended identifiers.
11835
11836 2012-02-16 Jakub Jelinek <jakub@redhat.com>
11837
11838 PR middle-end/51929
11839 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
11840 a same_body_alias, also test whether e->callee isn't a former
11841 or current clone of the decl this is a same body alias of.
11842
11843 PR translation/52264
11844 * cgraphunit.c (verify_cgraph_node): Fix a typo.
11845
11846 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
11847
11848 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
11849
11850 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11851
11852 PR target/52199
11853 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
11854 force_reg instead of copy_to_reg for better optimization. Force
11855 non-register or memory operands into a register.
11856
11857 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
11858
11859 * extend.texi: Reserve upper bits of memory model for future use.
11860
11861 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
11862 Anatoly Sokolov <aesok@post.ru>
11863 Eric Weddington <eric.weddington@atmel.com>
11864
11865 PR target/52261
11866 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
11867 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
11868 Rewrite initializers for .macro.
11869 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
11870 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
11871 atxmega32d4, atxmega32x1.
11872 avrxmega4: atxmega64a3, atxmega64d3.
11873 avrxmega5: atxmega64a1, atxmega64a1u.
11874 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
11875 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
11876 avrxmega7: atxmega128a1, atxmega128a1u.
11877 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
11878 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
11879 (struct base_arch_s): Rename reserved to xmega_p.
11880 Rename reserved2 to have_rampd.
11881 (AVR_XMEGA): New define.
11882 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
11883 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
11884 * config/avr/predicates.md (io_address_operand): Take into
11885 account SFR offset.
11886 (low_io_address_operand): Ditto.
11887 (high_io_address_operand): Ditto.
11888 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
11889 (enabled, movhi_sp_r): Use them.
11890 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
11891 cpp_define_formatted to built-in define __AVR_ARCH__.
11892 (__AVR_XMEGA__): New built-in define.
11893 (__AVR_HAVE_RAMPD__): New built-in define.
11894 (__AVR_HAVE_RAMPX__): New built-in define.
11895 (__AVR_HAVE_RAMPY__): New built-in define.
11896 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
11897
11898 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
11899 (avr_option_override): Initialize them.
11900 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
11901 (avr_init_expanders): Initialize them. No more block several calls.
11902 (emit_push_sfr): New static function.
11903 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
11904 Handle AVR_XMEGA.
11905 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
11906 (avr_print_operand): Print addreeses as symbols for
11907 RAMPX, RAMPY, RAMPD, CCP.
11908 (output_movhi): Handle AVR_XMEGA when writing to SP.
11909 (avr_out_movhi_mr_r_xmega): New static function.
11910 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
11911 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
11912 __RAMPD__, __CCP__ as needed.
11913
11914 * config/avr/multilib.h: Regenerate.
11915 * config/avr/t-multilib: Regenerate.
11916 * config/avr/avr-tables.opt: Regenerate.
11917
11918 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
11919
11920 PR tree-optimization/50561
11921 * graphite-flattening.c (lst_project_loop): Do not
11922 remove old scattering dimensions after flattening.
11923 (lst_do_flatten): Likewise.
11924
11925 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
11926
11927 * doc/extend.texi (AVR Built-in Functions): Remove doc for
11928 __builtin_avr_map8, __builtin_avr_map16.
11929 Document __builtin_avr_insert_bits.
11930
11931 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
11932 (insert_bits): New insn.
11933 (adjust_len.map_bits): Rename to insert_bits.
11934 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
11935 * avr-protos.h (avr_out_map_bits): Remove.
11936 (avr_out_insert_bits, avr_has_nibble_0xf): New.
11937 * config/avr/constraints.md (Cxf,C0f): New.
11938 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
11939 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
11940 New built-in define __BUILTIN_AVR_INSERT_BITS.
11941 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
11942 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
11943 (avr_move_bits): Rewrite.
11944 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
11945 functions.
11946 (avr_map_op_t): New typedef.
11947 (avr_map_op): New static variable.
11948 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
11949 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
11950 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
11951 (bdesc_3arg, avr_expand_triop_builtin): New.
11952 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
11953 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
11954 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
11955 (avr_map_equal_p, avr_map_sig_p): Remove.
11956 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
11957 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11958 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
11959 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11960 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
11961 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
11962
11963 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
11964
11965 * config/c6x/c6x.md (reserve_cycles): New attribute.
11966 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
11967 don't reserve functional units after the branch occurs.
11968
11969 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
11970
11971 PR middle-end/52142
11972 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
11973 functions into non-tm_pure functions.
11974
11975 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
11976
11977 PR lto/52178
11978 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
11979 (iterative_hash_canonical_type): Likewise.
11980 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
11981 the dead edges.
11982
11983 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
11984
11985 * haifa-sched.c (prune_ready_list): Ensure that if there is a
11986 sched-group insn, it either remains alone or the entire list is pruned.
11987
11988 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
11989
11990 * doc/install.texi (Prerequisites): Fix grammar.
11991 (Configuration): Likewise.
11992
11993 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
11994
11995 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
11996 MPC as part of GCC before describing configuring with --with-gmp etc.
11997 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
11998 sources are present.
11999
12000 2012-02-14 Jakub Jelinek <jakub@redhat.com>
12001
12002 PR debug/51950
12003 * dwarf2out.c (clone_tree_hash): New function.
12004 (copy_decls_walk): Use it instead of clone_tree.
12005
12006 2012-02-14 Richard Guenther <rguenther@suse.de>
12007
12008 PR tree-optimization/52244
12009 PR tree-optimization/51528
12010 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
12011 replacements for integral types.
12012
12013 2012-02-14 Walter Lee <walt@tilera.com>
12014
12015 * config.gcc: Handle tilegx and tilepro.
12016 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
12017 tilegx and tilepro.
12018 Add HAVE_AS_TLS check for tilegx and tilepro.
12019 * configure: Regenerate.
12020 * doc/contrib.texi: Add Mat Hostetter and self.
12021 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
12022 Document instruction intrinsics and network accessing intrinsics.
12023 (TILEPro Built-in Functions): New node. Document instruction
12024 intrinsics and network accessing intrinsics.
12025 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
12026 (Specific, tilepro-*-linux*): Likewise.
12027 * doc/invoke.texi (TILE-Gx Options): New section.
12028 (TILEPro Options): New section.
12029 * doc/md.texi (TILE-Gx): New section.
12030 (TILEPro): New section.
12031 * common/config/tilegx/tilegx-common.c: New file.
12032 * common/config/tilepro/tilepro-common.c: New file.
12033 * config/tilegx/constraints.md: New file.
12034 * config/tilegx/linux.h: New file.
12035 * config/tilegx/mul-tables.c: New file.
12036 * config/tilegx/predicates.md: New file.
12037 * config/tilegx/sync.md: New file.
12038 * config/tilegx/t-tilegx: New file.
12039 * config/tilegx/tilegx-builtins.h: New file.
12040 * config/tilegx/tilegx-c.c: New file.
12041 * config/tilegx/tilegx-generic.md: New file.
12042 * config/tilegx/tilegx-modes.def: New file.
12043 * config/tilegx/tilegx-multiply.h: New file.
12044 * config/tilegx/tilegx-protos.h: New file.
12045 * config/tilegx/tilegx.c: New file.
12046 * config/tilegx/tilegx.h: New file.
12047 * config/tilegx/tilegx.md: New file.
12048 * config/tilegx/tilegx.opt: New file.
12049 * config/tilepro/constraints.md: New file.
12050 * config/tilepro/gen-mul-tables.cc: New file.
12051 * config/tilepro/linux.h: New file.
12052 * config/tilepro/mul-tables.c: New file.
12053 * config/tilepro/predicates.md: New file.
12054 * config/tilepro/t-tilepro: New file.
12055 * config/tilepro/tilepro-builtins.h: New file.
12056 * config/tilepro/tilepro-c.c: New file.
12057 * config/tilepro/tilepro-generic.md: New file.
12058 * config/tilepro/tilepro-modes.def: New file.
12059 * config/tilepro/tilepro-multiply.h: New file.
12060 * config/tilepro/tilepro-protos.h: New file.
12061 * config/tilepro/tilepro.c: New file.
12062 * config/tilepro/tilepro.h: New file.
12063 * config/tilepro/tilepro.md: New file.
12064 * config/tilepro/tilepro.opt: New file.
12065
12066 2012-02-14 Jakub Jelinek <jakub@redhat.com>
12067
12068 PR tree-optimization/52210
12069 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
12070 vect_model_simple_cost with two entry vect_def_type array instead
12071 of an address of dt.
12072
12073 2012-02-14 Richard Guenther <rguenther@suse.de>
12074
12075 PR lto/52178
12076 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
12077 Do not stream DECL_QUALIFIER.
12078 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
12079 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
12080 (find_decls_types_r): Do not walk DECL_QUALIFIER.
12081
12082 2012-02-14 Jakub Jelinek <jakub@redhat.com>
12083
12084 PR c/52181
12085 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
12086 newdecl.
12087
12088 2012-02-13 Jakub Jelinek <jakub@redhat.com>
12089
12090 PR bootstrap/52172
12091 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
12092 * cselib.c (cselib_subst_to_values_from_insn): New function.
12093 * sched-deps.c (add_insn_mem_dependence,
12094 sched_analyze_1, sched_analyze_2): Use it.
12095
12096 2012-02-13 Jan Hubicka <jh@suse.cz>
12097
12098 PR middle-end/52214
12099 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
12100
12101 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
12102
12103 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
12104 (GTM_SELF_SPECS): Define if not already defined.
12105 (driver_self_specs): Add GTM_SELF_SPECS.
12106 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
12107 (GTM_SELF_SPECS): Define.
12108 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
12109 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
12110
12111 2012-02-13 Jakub Jelinek <jakub@redhat.com>
12112
12113 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
12114 away if seen.
12115
12116 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
12117
12118 PR middle-end/52230
12119 * omp-low.c (expand_omp_for): If a static schedule without chunk size
12120 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
12121
12122 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
12123
12124 PR c/52190
12125 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
12126
12127 2012-02-13 Richard Guenther <rguenther@suse.de>
12128
12129 PR translation/52211
12130 * passes.c (enable_disable_pass): Fix typo.
12131
12132 2012-02-13 Jakub Jelinek <jakub@redhat.com>
12133
12134 PR middle-end/52209
12135 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
12136 XOR for reduce_bit_field if type is unsigned.
12137
12138 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
12139
12140 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
12141 disallow changes from SFmode to mode with different size in FP regs.
12142
12143 2012-02-12 Robert Millan <rmh@gnu.org>
12144 Gerald Pfeifer <gerald@pfeifer.com>
12145
12146 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
12147 Tweak comment.
12148
12149 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
12150
12151 PR rtl-optimization/52175
12152 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
12153 to frame-related instructions.
12154
12155 2012-02-10 Jason Merrill <jason@redhat.com>
12156
12157 PR c++/51910
12158 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
12159 (demangle_new_symbols): Fill it.
12160 (scan_linker_output): Walk it.
12161 (start_tweaking): Split out from scan_linker_output.
12162 (maybe_tweak): Update sym->chosen.
12163 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
12164
12165 2012-02-11 Jakub Jelinek <jakub@redhat.com>
12166
12167 PR debug/52132
12168 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
12169
12170 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
12171
12172 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
12173 having the same mode as previous compare.
12174
12175 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
12176
12177 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
12178 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
12179 (nonlocal_goto_internal): Likewise.
12180 (nonlocal_goto): Emit a use and an indirect jump directly.
12181
12182 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
12183
12184 PR c/52190
12185 * doc/extend.texi : Update comments for __atomic_compare_exchange and
12186 __atomic_{is,always}_lock_free.
12187
12188 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
12189
12190 PR target/52146
12191 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
12192 negative constant address for TARGET_X32.
12193
12194 2012-02-10 Richard Henderson <rth@redhat.com>
12195
12196 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
12197 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
12198 for GIMPLE_TRANSACTION. Tidy if's into a switch.
12199
12200 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12201 Ira Rosen <irar@il.ibm.com>
12202
12203 PR tree-optimization/50031
12204 * targhooks.c (default_builtin_vectorization_cost): Handle
12205 vec_promote_demote.
12206 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
12207 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
12208 all types of reduction and pattern statements.
12209 (vect_estimate_min_profitable_iters): Likewise.
12210 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
12211 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
12212 for explicit realigns.
12213 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
12214 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
12215 vec_promote_demote.
12216 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12217 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
12218 vec_perm for VSX and handle vec_promote_demote.
12219
12220 2012-02-10 Jakub Jelinek <jakub@redhat.com>
12221
12222 PR middle-end/52177
12223 * builtins.c (fold_builtin_atomic_always_lock_free,
12224 expand_builtin_atomic_always_lock_free,
12225 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
12226 Return and/or test boolean_true_node/boolean_false_node instead of
12227 integer_one_node/integer_zero_node.
12228
12229 2012-02-10 Jan Hubicka <jh@suse.cz>
12230
12231 PR middle-end/48600
12232 * predict.c (predict_paths_for_bb): Prevent looping.
12233 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
12234
12235 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
12236
12237 * config/arm/arm.c (output_move_double): In one case properly
12238 count number of instructions that will be emitted.
12239
12240 2012-02-10 Richard Guenther <rguenther@suse.de>
12241
12242 PR translation/52193
12243 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
12244
12245 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
12246
12247 PR middle-end/52140
12248 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
12249
12250 2012-02-09 Jakub Jelinek <jakub@redhat.com>
12251
12252 PR debug/52165
12253 * var-tracking.c (emit_note_insn_var_location): If
12254 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
12255 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
12256 non-NOTE_DURING_CALL_P insn.
12257
12258 2012-02-09 Bin Cheng <bin.cheng@arm.com>
12259
12260 PR middle-end/51867
12261 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
12262
12263 2012-02-08 Magnus Granberg <zorry@gentoo.org>
12264
12265 PR driver/48524
12266 * gcc.c (switch_matches) Support switches with separated form,
12267 -D and -U.
12268
12269 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
12270
12271 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
12272 (SP_ADDR): Ditto.
12273 (RAMPZ_ADDR): Ditto.
12274 * config/avr/avr.c (avr_addr_t): New typedef.
12275 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
12276 (avr_init_expanders): Initialize it.
12277 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
12278 SREG_ADDR.
12279 (expand_epilogue): Ditto.
12280 (avr_print_operand): Ditto.
12281 (avr_file_start): Ditto.
12282 (avr_emit_movmemhi): Ditto.
12283
12284 2012-02-08 Richard Guenther <rguenther@suse.de>
12285
12286 PR tree-optimization/46886
12287 * tree-flow.h (do_while_loop_p): Declare.
12288 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
12289 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
12290
12291 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
12292
12293 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
12294 always succeed for integers larger than a native word.
12295
12296 2012-02-08 Richard Guenther <rguenther@suse.de>
12297
12298 PR rtl-optimization/52170
12299 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
12300 properly handle integer vector modes.
12301
12302 2012-02-08 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR gcov-profile/52150
12305 * coverage.c: Include target.h.
12306 (build_var): Call targetm.strip_name_encoding on the assembler name.
12307 Change one _ into . or $ if the target allows it.
12308 * Makefile.in (coverage.o): Depend on $(TARGET_H).
12309
12310 PR rtl-optimization/52139
12311 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
12312 is a BARRIER after emit_insn_after_noloc, move BB_END
12313 to the last non-BARRIER insn before it.
12314
12315 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
12316
12317 PR middle-end/24306
12318 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
12319 (mips_gimplify_va_arg_expr): Call it instead of
12320 std_gimplify_va_arg_expr.
12321
12322 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12323
12324 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
12325 message for -mno-pointers-to-nested-function.
12326
12327 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
12328
12329 PR middle-end/51994
12330 * expr.c (get_inner_reference): If there is an offset, add a negative
12331 bit position to it (if any).
12332
12333 2012-02-07 Jakub Jelinek <jakub@redhat.com>
12334
12335 PR rtl-optimization/52060
12336 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
12337 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
12338 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
12339 and/or i0src_copy2 when needed.
12340
12341 2012-02-07 Jakub Jelinek <jakub@redhat.com>
12342
12343 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
12344 or LTOPLUGINSONAME if have_c.
12345
12346 * config/freebsd-spec.h: Add comment about what macros can be defined
12347 in this header.
12348 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
12349 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
12350 here instead.
12351
12352 2012-02-07 Richard Guenther <rguenther@suse.de>
12353
12354 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
12355 newline in -alias dumps.
12356
12357 2012-02-07 Kai Tietz <ktietz@redhat.com>
12358 Dave Korn <dave.korn.cygwin@gmail.com>
12359
12360 PR target/40068
12361 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
12362 Take care that typinfo gets dllexport-attribute.
12363
12364 2012-02-07 Jakub Jelinek <jakub@redhat.com>
12365
12366 PR middle-end/52074
12367 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
12368 if modifier < EXPAND_SUM call force_operand on the result.
12369
12370 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
12371
12372 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
12373 adding __forwarder_dst__ prefix if a forwarder_section attribute is
12374 present.
12375 (epiphany_function_type): Replace types for specific interrupts with
12376 EPIPHANY_FUNCTION_INTERRUPT.
12377 (EPIPHANY_INTERRUPT_P): Update.
12378 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
12379 New static function.
12380 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
12381 <disinterrupt>: Affects type identity.
12382 (epiphany_handle_interrupt_attribute): Handle variable number of
12383 arguments.
12384 (epiphany_compute_function_type): Update for new
12385 epiphany_function_type definition.
12386 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
12387 handlers with a longcall forwarder.
12388 (epiphany_start_function): Handle multiple interrupt arguments and/or
12389 forwarder_section attribute.
12390
12391 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
12392 libgloss.
12393
12394 2012-02-07 Alan Modra <amodra@gmail.com>
12395
12396 PR target/52107
12397 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
12398 subregs of TFmode.
12399
12400 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12401
12402 PR tree-optimization/50969
12403 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
12404 use vec_perm rather than vector_stmt.
12405 (vect_model_load_cost): Likewise.
12406 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
12407 vec_perm to be the same as other vector statements.
12408 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
12409 cost of vec_perm for TARGET_VSX.
12410
12411 2012-02-06 Richard Guenther <rguenther@suse.de>
12412
12413 PR tree-optimization/52115
12414 * tree-sra.c (access_has_replacements_p): New function.
12415 (sra_modify_assign): Use it to decide whether a use is uninitialized.
12416
12417 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
12418
12419 PR middle-end/52047
12420 * trans-mem.c (expand_call_tm): Add an assertion.
12421 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
12422 functions.
12423
12424 2012-02-06 Richard Guenther <rguenther@suse.de>
12425
12426 PR tree-optimization/50955
12427 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
12428 raise cost of expressions that replace an address with an
12429 expression based on a different pointer.
12430
12431 2012-02-06 Jakub Jelinek <jakub@redhat.com>
12432
12433 PR target/52129
12434 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
12435 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
12436
12437 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12438
12439 PR c++/48680
12440 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
12441 -Weffc++ and specify guidelines come from second edition.
12442
12443 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
12444
12445 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
12446 (sibcall_value_multiple_internal, call_split, call_internal_direct)
12447 (call_direct_split, call_value_split, call_value_internal_direct)
12448 (call_value_direct_split, call_value_multiple_split): Use jal and
12449 jal_macro attributes.
12450
12451 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
12452
12453 * reload1.c (reload_regs_reach_end_p): Replace with...
12454 (reload_reg_rtx_reaches_end_p): ...this function.
12455 (new_spill_reg_store): Update commentary.
12456 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
12457 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
12458 before setting new_spill_reg_store.
12459 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
12460 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
12461 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
12462 for non-spill reload registers.
12463
12464 2012-02-05 Ira Rosen <irar@il.ibm.com>
12465
12466 PR tree-optimization/52091
12467 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
12468 (vect_is_simple_use_1): Likewise.
12469 * tree-vect-loop.c (vectorizable_reduction): Update calls
12470 to vect_is_simple_use_1 and vect_is_simple_use.
12471 (vectorizable_live_operation): Likewise.
12472 * tree-vect-patterns.c (widened_name_p,
12473 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
12474 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
12475 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12476 vectorizable_shift,vectorizable_operation, vectorizable_store,
12477 vectorizable_load): Likewise.
12478 (vect_is_simple_cond): Add an argument, pass it to
12479 vect_is_simple_use_1.
12480 (vectorizable_condition): Update calls to vect_is_simple_cond,
12481 vect_is_simple_use.
12482 (vect_is_simple_use): Add an argument, the statement in which
12483 OPERAND is used. Check that if OPERAND's def stmt is a double
12484 reduction phi node, the use is a phi node too.
12485 (vect_is_simple_use_1): Add an argument, pass it to
12486 vect_is_simple_use.
12487 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
12488 to vect_is_simple_use.
12489
12490 2012-02-04 Jakub Jelinek <jakub@redhat.com>
12491
12492 PR rtl-optimization/52095
12493 * modulo-sched.c (dump_insn_locator): New function.
12494 (loop_canon_p, sms_schedule): Use it.
12495
12496 PR rtl-optimization/52113
12497 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
12498 even for decomposable shift/zext insns.
12499
12500 2012-02-03 Jakub Jelinek <jakub@redhat.com>
12501 Zdenek Dvorak <ook@ucw.cz>
12502
12503 PR rtl-optimization/52092
12504 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
12505 on get_iv_value result.
12506
12507 2012-02-02 Andrew Pinski <apinski@cavium.com>
12508
12509 PR middle-end/47982
12510 PR middle-end/43967
12511 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
12512
12513 2012-02-02 Jakub Jelinek <jakub@redhat.com>
12514
12515 PR middle-end/48071
12516 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
12517
12518 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
12519
12520 PR rtl-optimization/49800
12521 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
12522 (sched_finish): Call regstat_free_n_sets_and_refs.
12523
12524 2012-02-02 Jia Liu <proljc@gmail.com>
12525
12526 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
12527 than operand 2.
12528
12529 2012-02-02 Jan Hubicka <jh@suse.cz>
12530 Tom de Vries <tom@codesourcery.com>
12531
12532 PR middle-end/51998
12533 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
12534 * varpool.c (varpool_analyze_pending_decls): Likewise.
12535
12536 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
12537 Jayant R Sonar <jayant.sonar@kpitcummins.com>
12538
12539 * config.gcc: Add cr16-* support.
12540
12541 * doc/extend.texi: Document cr16 extensions.
12542 * doc/install.texi: Document cr16 install.
12543 * doc/invoke.texi: Document cr16 options.
12544 * doc/md.texi: Document cr16 constraints.
12545
12546 * common/config/cr16/cr16-common.c: New file.
12547 * config/cr16/cr16.c: New file.
12548 * config/cr16/cr16.h: New file.
12549 * config/cr16/cr16.md: New file.
12550 * config/cr16/cr16.opt: New file.
12551 * config/cr16/cr16-protos.h: New file.
12552 * config/cr16/predicates.md: New file.
12553 * config/cr16/constraints.md: New file.
12554 * config/cr16/t-cr16: New file.
12555
12556 2012-02-02 Jakub Jelinek <jakub@redhat.com>
12557
12558 PR target/52086
12559 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
12560 that operands[2] is either immediate, or q_regs_operand.
12561
12562 PR tree-optimization/52073
12563 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
12564 a pattern stmt for pattern uses, ignore uses outside of the loop.
12565
12566 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
12567
12568 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
12569 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
12570 (OUT_AS1, OUT_AS2): Remove.
12571
12572 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
12573
12574 PR rtl-optimization/51374
12575 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
12576 to cross other volatile_refs_p insns.
12577
12578 2012-02-01 Richard Guenther <rguenther@suse.de>
12579
12580 * doc/invoke.texi (fno-inline): Clarify documentation.
12581 (finline-small-functions): Likewise.
12582 (finline-functions): Likewise.
12583 * common.opt (finline): Adjust comment and documentation.
12584 (finline-small-functions): Clarify documentation.
12585 (finline-functions): Likewise.
12586 (finline-functions-called-once): Likewise.
12587
12588 2012-02-01 Tristan Gingold <gingold@adacore.com>
12589
12590 * c-typeck.c (composite_type): Keep mode for pointers.
12591
12592 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
12593
12594 * function.h (regno_reg_rtx): Adjust comment.
12595 * reginfo.c (init_reg_modes_target): Only use the previous mode
12596 if it fits within one register. Remove MIPS comment.
12597
12598 2012-01-31 Jakub Jelinek <jakub@redhat.com>
12599
12600 PR bootstrap/52058
12601 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
12602
12603 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12604
12605 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
12606 to srak instruction.
12607
12608 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12609
12610 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
12611
12612 2012-01-31 Jakub Jelinek <jakub@redhat.com>
12613
12614 PR bootstrap/52041
12615 PR bootstrap/52039
12616 PR target/51974
12617 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
12618
12619 2012-01-31 Richard Guenther <rguenther@suse.de>
12620
12621 PR tree-optimization/51528
12622 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
12623 assigns.
12624
12625 2012-01-31 Jakub Jelinek <jakub@redhat.com>
12626
12627 PR bootstrap/52041
12628 PR bootstrap/52039
12629 PR target/51974
12630 * ree.c (add_removable_extension): Change def_map argument
12631 to unsigned *, store in def_map 1 + offset into *insn_list vector
12632 instead of pointers into the vector.
12633 (find_removable_extensions): Adjust caller.
12634
12635 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
12636
12637 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
12638 Transform all "* quoted-c-code" to { c-code }.
12639 Remove redundant test for "optimize" in combine patterns.
12640 Move (include "avr-dimode.md") to end of file.
12641
12642 2012-01-30 Bin Cheng <bin.cheng@arm.com>
12643
12644 PR target/51835
12645 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12646 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
12647
12648 2012-01-30 Richard Guenther <rguenther@suse.de>
12649
12650 PR tree-optimization/52028
12651 * tree-loop-distribution.c (ldist_gen): Properly update
12652 virtual SSA form.
12653
12654 2012-01-30 Jakub Jelinek <jakub@redhat.com>
12655
12656 PR debug/52027
12657 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
12658 set_cur_line_info_table if not emitting debug info.
12659
12660 PR tree-optimization/52046
12661 * tree-vect-patterns.c (check_bool_pattern): Give up if
12662 a comparison could throw.
12663
12664 PR debug/52048
12665 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
12666
12667 2012-01-30 Richard Guenther <rguenther@suse.de>
12668
12669 PR tree-optimization/52045
12670 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
12671 SSA form if cfgcleanup did anything.
12672
12673 2012-01-30 Richard Guenther <rguenther@suse.de>
12674
12675 PR tree-optimization/52045
12676 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
12677 before computing final todo.
12678
12679 2012-01-30 Richard Guenther <rguenther@suse.de>
12680
12681 PR tree-optimization/51528
12682 * tree-sra.c (sra_modify_assign): Re-factor in preparation
12683 for PR51528 fix.
12684
12685 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
12686
12687 * df-problems.c (df_kill_notes): Check that the use refers
12688 to the note under examination.
12689
12690 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
12691
12692 PR target/51920
12693 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
12694 parameter and use short-lived pseudos.
12695 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
12696 (sparc_expand_vector_init): Const-ify local variables and adjust
12697 calls to above functions.
12698
12699 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
12700
12701 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
12702
12703 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
12704
12705 * doc/invoke.texi: Make usage of "compile time" and
12706 "run time"/"runtime" consistent throughout the file.
12707
12708 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
12709
12710 * config/alpha/alpha.c (alpha_option_override): Default to
12711 full IEEE compliance mode for Go language.
12712
12713 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
12714
12715 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
12716 (LINK_SSP_SPEC): Define.
12717
12718 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12719
12720 PR target/51871
12721 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
12722 stubs.
12723
12724 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
12725
12726 * doc/invoke.texi: Correct hyphenation of "floating point",
12727 "double precision", and related terminology throughout the file.
12728
12729 2012-01-28 Jakub Jelinek <jakub@redhat.com>
12730
12731 PR target/52006
12732 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
12733 arm_general_register_operand predicate for operand 2 instead of
12734 register_operand.
12735
12736 2012-01-27 Ian Lance Taylor <iant@google.com>
12737
12738 PR go/47656
12739 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
12740 * builtins.c (expand_builtin_init_trampoline): Add onstack
12741 parameter. Change caller.
12742 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
12743 * tree.c (build_common_builtin_nodes): Declare
12744 __builtin_init_heap_trampoline.
12745
12746 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
12747
12748 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
12749 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
12750 * config/avr/avr.c: Ditto.
12751 (avr_regnames): Remove because unused.
12752 * config/avr/avr.md (*cpse.ne): New peephole.
12753 (*cpse.eq): New peephole from former cpse peepholes.
12754
12755 2012-01-27 Michael Eager <eager@eagercon.com>
12756
12757 * config/microblaze.c (microblaze_emit_compare): Correct
12758 test after pcmp instruction.
12759
12760 2012-01-27 Richard Guenther <rguenther@suse.de>
12761
12762 PR tree-optimization/52020
12763 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
12764
12765 2012-01-27 Richard Guenther <rguenther@suse.de>
12766
12767 * ipa-pure-const.c (check_stmt): Clobbers do not make a
12768 function non-const/pure.
12769
12770 2012-01-27 Richard Guenther <rguenther@suse.de>
12771
12772 PR tree-optimization/50444
12773 * tree-sra.c (build_ref_for_offset): Properly adjust the
12774 MEM_REF type for unaligned accesses.
12775
12776 2012-01-27 Richard Guenther <rguenther@suse.de>
12777
12778 PR tree-optimization/50444
12779 * expr.c (mem_ref_refers_to_non_mem_p): New function.
12780 (expand_assignment): Use it. Properly handle misaligned
12781 bases when expanding stores to component references.
12782 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
12783 refactor that case.
12784
12785 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
12786
12787 PR middle-end/51389
12788 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
12789 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
12790 * tree-data-ref.c (find_data_references_in_loop): Make static.
12791 (compute_all_dependences): Change return type to bool. Bail out
12792 for too many datarefs in a loop. Move the hunk resetting the data
12793 dependences vector from ...
12794 (compute_data_dependences_for_loop): ... here. Account for
12795 compute_all_dependences returning false.
12796 (compute_data_dependences_for_bb): Likewise.
12797 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
12798 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
12799
12800 2012-01-27 Richard Guenther <rguenther@suse.de>
12801
12802 PR middle-end/51959
12803 * expr.c (store_field): Use the alias-set of the scratch memory
12804 for storing to it.
12805
12806 2012-01-27 Tom de Vries <tom@codesourcery.com>
12807
12808 PR tree-optimization/51990
12809 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12810 WITH_SIZE_EXPR.
12811 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
12812
12813 2012-01-27 Jakub Jelinek <jakub@redhat.com>
12814
12815 PR debug/52001
12816 * var-tracking.c (reverse_op): Don't add any reverse operation
12817 if V already has any constant locations.
12818
12819 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
12820
12821 * doc/invoke.texi: Correct usage of "command line" (noun)
12822 vs "command-line" (adjective) throughout.
12823
12824 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
12825
12826 * doc/invoke.texi (Language Independent Options): Move
12827 -Wcoverage-mismatch blurb from here....
12828 (Warning Options): ...to here.
12829
12830 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
12831
12832 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12833 Set rs6000_always_hint to false for 476.
12834
12835 2012-01-27 Matthias Klose <doko@ubuntu.com>
12836
12837 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
12838 system root.
12839 * incpath.c (add_standard_paths): Likewise.
12840
12841 2012-01-27 Richard Henderson <rth@redhat.com>
12842
12843 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12844 * config/m68k/sync.md (atomic_test_and_set): Rename from
12845 sync_test_and_setqi and adjust the operands.
12846 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
12847 and unconditionally enable.
12848
12849 2012-01-27 Richard Henderson <rth@redhat.com>
12850
12851 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12852 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
12853 (ldstub): Rename from ldstubqi.
12854 (ldstub<I24MODE>): Remove.
12855
12856 2012-01-27 Richard Henderson <rth@redhat.com>
12857
12858 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
12859 * c-cppbuiltin.c (cpp_atomic_builtins): Define
12860 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
12861 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
12862 * doc/tm.texi: Rebuild.
12863
12864 2012-01-27 Richard Henderson <rth@redhat.com>
12865
12866 * optabs.c (gen_atomic_test_and_set): Remove default.
12867 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
12868
12869 2012-01-26 Jakub Jelinek <jakub@redhat.com>
12870
12871 PR rtl-optimization/51978
12872 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
12873 (combine_reaching_defs): Likewise.
12874 (struct re_info): Remove.
12875 (add_removable_extension): Remove x and data arguments,
12876 add insn, insn_list and def_map. Use the arguments directly
12877 instead of using struct re_info.
12878 (find_removable_extensions): Don't call add_removable_extension
12879 through note_stores, instead just call it with single_set
12880 result if non-NULL.
12881 (find_and_remove_re): Pass curr_cand->expr instead of
12882 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
12883
12884 2012-01-26 Michael Matz <matz@suse.de>
12885
12886 PR tree-optimization/46590
12887 * cfgexpand.c: Revert last change (r183305).
12888 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
12889 regs.
12890 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
12891 checking for emptiness.
12892
12893 2012-01-26 Jakub Jelinek <jakub@redhat.com>
12894
12895 PR middle-end/51895
12896 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
12897 non-addressable non-BLKmode base correctly.
12898
12899 2012-01-26 Michael Matz <matz@suse.de>
12900
12901 PR tree-optimization/48794
12902 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
12903 regions referenced from RESX/EH_DISPATCH.
12904
12905 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12906
12907 * config/s390/s390.h: Make BRANCH_COST an option.
12908 * config/s390/s390.opt: New option -mbranch-cost.
12909
12910 2012-01-26 Richard Henderson <rth@redhat.com>
12911
12912 Revert 2012-01-24 change:
12913 * trans-mem.c (requires_barrier): Do not instrument thread local
12914 variables and emit save/restore for them.
12915
12916 2012-01-25 Jakub Jelinek <jakub@redhat.com>
12917
12918 PR middle-end/51986
12919 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
12920 for pat == 0.
12921
12922 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
12923
12924 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
12925 ASM_OPERANDS.
12926
12927 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
12928
12929 PR target/49868
12930 Rename __pgm to __flash.
12931 Rename __pgm1 to __flash1.
12932 Rename __pgm2 to __flash2.
12933 Rename __pgm3 to __flash3.
12934 Rename __pgm4 to __flash4.
12935 Rename __pgm5 to __flash5.
12936 Rename __pgmx to __memx.
12937 * doc/extend.texi (AVR Named Address Spaces)
12938 Rename address space names as indicated above.
12939 * config/avr/avr.c (avr_addrspace): Ditto.
12940
12941 * config/avr/avr-protos.h
12942 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
12943 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
12944 * config/avr/predicates.md: Ditto.
12945 * config/avr/avr.c Ditto, and
12946 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
12947 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
12948
12949 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
12950 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
12951 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
12952 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
12953 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
12954 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
12955 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
12956 * config/avr/avr.c: Ditto.
12957 * config/avr/avr.md: Ditto.
12958
12959 2012-01-25 Jason Merrill <jason@redhat.com>
12960
12961 PR c++/51992
12962 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
12963
12964 2012-01-25 Jakub Jelinek <jakub@redhat.com>
12965
12966 PR tree-optimization/51987
12967 * tree-data-ref.c (get_references_in_stmt): Handle references in
12968 non-volatile GIMPLE_ASM.
12969
12970 2012-01-25 Richard Guenther <rguenther@suse.de>
12971
12972 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
12973 bases are dereferenced.
12974
12975 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
12976
12977 PR rtl-optimization/48374
12978 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
12979
12980 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
12981
12982 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
12983 compute_data_dependences_for_loop returns false.
12984 * tree-parloops.c (loop_parallel_p): Likewise.
12985
12986 2012-01-25 Richard Guenther <rguenther@suse.de>
12987
12988 * tree.h (get_pointer_alignment_1): Declare.
12989 * builtins.c (get_pointer_alignment_1): New function.
12990 (get_pointer_alignment): Use it.
12991
12992 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12993
12994 PR rtl-optimization/48308
12995 * combine.c (enum undo_kind): Add UNDO_LINKS.
12996 (struct undo): Add member l to other_contents and where.
12997 (do_SUBST_LINK): New.
12998 (SUBST_LINK): New.
12999 (try_combine): Handle LOG_LINKS for the dummy i1 case.
13000 (undo_all): Handle UNDO_LINKS.
13001
13002 2012-01-25 Richard Henderson <rth@redhat.com>
13003
13004 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
13005 mem inputs.
13006
13007 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13008
13009 * optabs.c (gen_atomic_test_and_set): Use each argument.
13010
13011 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13012
13013 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
13014 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
13015 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
13016 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
13017 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
13018 TARGET_PAIRED_SINGLE_FLOAT.
13019
13020 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13021
13022 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
13023 (in_struct, return_val): Remove MEM documentation.
13024 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
13025 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
13026 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
13027 and MEM_SCALAR.
13028 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13029 * cfgexpand.c (add_alias_set_conflicts): Likewise.
13030 * expr.c (store_field): Likewise.
13031 * function.c (assign_stack_temp_for_type): Likewise.
13032 * ifcvt.c (noce_try_cmove_arith): Likewise.
13033 * reload1.c (reload): Likewise.
13034 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
13035 (alpha_set_memflags): Likewise.
13036 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
13037
13038 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13039
13040 * rtl.h (true_dependence, canon_true_dependence): Remove varies
13041 parameter.
13042 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
13043 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
13044 (true_dependence_1, true_dependence, canon_true_dependence): Remove
13045 varies parameter.
13046 * cselib.c (cselib_rtx_varies_p): Delete.
13047 (cselib_invalidate_mem): Update call to canon_true_dependence.
13048 * dse.c (record_store, check_mem_read_rtx): Likewise.
13049 (scan_reads_nospill): Likewise.
13050 * cse.c (check_dependence): Likewise.
13051 (cse_rtx_varies_p): Delete.
13052 * expr.c (safe_from_p): Update call to true_dependence.
13053 * ira.c (validate_equiv_mem_from_store): Likewise.
13054 (memref_referenced_p): Likewise.
13055 * postreload-gcse.c (find_mem_conflicts): Likewise.
13056 * sched-deps.c (sched_analyze_2): Likewise.
13057 * store-motion.c (load_kills_store): Likewise.
13058 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
13059 * gcse.c (mems_conflict_for_gcse_p): Likewise.
13060 (compute_transp): Update call to canon_true_dependence.
13061
13062 2012-01-25 Richard Henderson <rth@redhat.com>
13063
13064 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
13065 (maybe_emit_atomic_test_and_set): New.
13066 (expand_sync_lock_test_and_set): Use it.
13067 (expand_atomic_test_and_set): Likewise.
13068 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
13069 the implementation; clarify implementation defined details.
13070 * doc/md.texi (atomic_test_and_set): Document.
13071
13072 2012-01-25 Richard Henderson <rth@redhat.com>
13073
13074 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
13075
13076 2012-01-25 Richard Henderson <rth@redhat.com>
13077
13078 PR target/51968
13079 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
13080 to effect no-op split.
13081
13082 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
13083
13084 PR lto/51698
13085 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
13086 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
13087 (BT_FN_VOID_PTR_INT_SIZE): New.
13088 (BT_FN_UINT_UINT_VAR): Remove.
13089 (BT_FN_UINT32_UINT32_VAR): New.
13090 (BT_FN_DOUBLE_VPTR): Remove.
13091 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
13092
13093 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
13094 (_ITM_changeTransactionMode): Same.
13095 (_ITM_memmoveRtWt): Change return type to void.
13096 (_ITM_memcpyRtWt): Same.
13097 (_ITM_memsetW): Same.
13098 (_ITM_RaRD): Change types to double.
13099 (_ITM_RD): Same.
13100 (_ITM_RaWD): Same.
13101 (_ITM_RfWD): Same.
13102
13103 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
13104
13105 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
13106 Patrick Marlier <patrick.marlier@gmail.com>
13107
13108 * trans-mem.c (requires_barrier): Do not instrument thread local
13109 variables and emit save/restore for them.
13110
13111 2012-01-24 Jason Merrill <jason@redhat.com>
13112
13113 PR c++/51812
13114 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
13115 output static aliases.
13116
13117 2012-01-24 Jakub Jelinek <jakub@redhat.com>
13118
13119 PR driver/47249
13120 * common.opt (-pie, -shared, pie, shared): Change from Common to
13121 Driver.
13122 * gcc.c (display_help): Display help for -pie and -shared.
13123
13124 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
13125
13126 PR target/49868
13127 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
13128 Remove note on size/offset limitation.
13129 (AVR Variable Attributes): Add example how to read data located
13130 with progmem. Refer to named address spaces.
13131 * doc/invoke.texi (AVR Options): Fix typo.
13132
13133 2012-01-24 Richard Guenther <rguenther@suse.de>
13134
13135 Forward-port to trunk
13136 2010-09-21 Jakub Jelinek <jakub@redhat.com>
13137
13138 PR middle-end/45678
13139 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
13140 op0 isn't sufficiently aligned and there is movmisalignM
13141 insn for mode, use it to load op0 into a temporary register.
13142
13143 2012-01-24 Jakub Jelinek <jakub@redhat.com>
13144
13145 PR target/51957
13146 * target.def (const_not_ok_for_debug_p): New hook.
13147 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
13148 documentation.
13149 * doc/tm.texi: Regenerated.
13150 * dwarf2out.c (const_ok_for_output_1): If
13151 targetm.const_not_ok_for_debug_p returns true, fail.
13152 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
13153 function.
13154 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
13155
13156 2012-01-23 Kai Tietz <ktietz@redhat.com>
13157
13158 PR target/51900
13159 * config/i386/predicates.md (symbolic_operand): Allow
13160 UNSPEC_PCREL as PIC expression for lea.
13161 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
13162 * config/i386/i386.c (ix86_delegitimize_address): Handle
13163 UNSPEC_PCREL for none-MEM, too.
13164
13165 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
13166
13167 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
13168 (ipa_tm_create_version_alias): Same.
13169
13170 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
13171
13172 PR libitm/51830
13173 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
13174 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
13175
13176 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
13177 Patrick Marlier <patrick.marlier@gmail.com>
13178 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13179
13180 PR lto/51916
13181 * lto-wrapper.c (run_gcc): Pass the LTO section name to
13182 simple_object_start_read.
13183
13184 2012-01-23 Richard Guenther <rguenther@suse.de>
13185
13186
13187 PR tree-optimization/51895
13188 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
13189 parameter decomposition into BLKmode components.
13190
13191 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
13192
13193 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
13194 fake variables for restrict-qualified pointers whose pointed-to type
13195 contains a placeholder.
13196
13197 2012-01-23 Richard Guenther <rguenther@suse.de>
13198
13199 PR tree-optimization/51949
13200 * ipa-split.c (execute_split_functions): Do not split malloc functions.
13201
13202 2012-01-23 Jakub Jelinek <jakub@redhat.com>
13203
13204 PR rtl-optimization/51933
13205 * ree.c (transform_ifelse): Return true right away if dstreg is
13206 already wider or equal to cand->mode.
13207 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
13208 (make_defs_and_copies_lists): Remove defs_list and copies_list
13209 arguments, add state argument, just truncate state->work_list
13210 instead of always allocating and freeing the vector. Assert that
13211 get_defs succeeds instead of returning 2. Changed return type to bool.
13212 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
13213 have ext_src_mode, see if it has been modified already with the
13214 right kind of extension and has been extended before from the
13215 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
13216 just return true. Remember the original mode in state->modified array.
13217 (combine_reaching_defs): Add state argument. Don't allocate and
13218 free here def_list, copied_list and vec vectors, instead just
13219 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
13220 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
13221 Add state variable, clear vectors in it, initialize state.modified
13222 if needed. Free all the vectors at the end and state.modified too.
13223 Don't skip a candidate if the extension expression has been modified.
13224
13225 2012-01-22 Douglas B Rupp <rupp@gnat.com>
13226
13227 PR target/47096
13228 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
13229 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
13230 (extra_options) interix.opt -> i386/interix.opt"
13231 (extra_objs):Add winnt-stubs.o
13232 * configure.ac: Add interix to target_os .comm on PE check.
13233 * configure: Regenerate.
13234 * config/interix3.h: Delete and move bits to..
13235 * config/interix.h: Delete and move bits to..
13236 * config/i386/i386-interix3.h: Delete and move bits to..
13237 * config/i386/i386-interix.h: ..here.
13238 (TARGET_CPU_DEFAULT): Remove redefinition.
13239 (TARGET_ASM_CONSTRUCTOR): Undefine.
13240 (SUBTARGET_SWITCHES): Define for ms-bitfields.
13241 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
13242 (PTRDIFF_TYPE): Define.
13243 (LONG_DOUBLE_TYPE_SIZE): Define.
13244 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
13245 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13246 (TARGET_SECTION_TYPE_FLAGS): Define.
13247 (ASM_DECLARE_FUNCTION_NAME): Define.
13248 (ASM_OUTPUT_EXTERNAL): Define.
13249 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
13250 (ASM_OUTPUT_ALIGNED_BSS): Define.
13251 (PCC_BITFIELD_TYPE_MATTERS): Define.
13252 (USE_CONST_SECTION): Define.
13253 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
13254 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
13255 (SUPPORTS_ONE_ONLY): Remove.
13256 (I386_PE_STRIP_ENCODING): Define.
13257 * config/interix.opt: Delete and move bits to..
13258 * config/i386/interix.opt: ..here. New.
13259 (mpe-aligned-commons): Add.
13260 * config/i386/t-interix: Add copyright header.
13261 (winnt-stubs.o): Add rule.
13262
13263 2012-01-22 Jason Merrill <jason@redhat.com>
13264
13265 PR c++/51832
13266 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
13267 for extra name aliases.
13268
13269 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
13270
13271 PR rtl-optimization/51924
13272 * ree.c (combine_set_extension): Improve debugging message.
13273 (combine_reaching_defs): Likewise.
13274 (get_defs): Rename confusingly named variable.
13275 (find_and_remove_re): Skip a candidate if the extension expression has
13276 been modified.
13277
13278 2012-01-21 Robert Millan <rmh@gnu.org>
13279 Gerald Pfeifer <gerald@pfeifer.com>
13280
13281 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
13282 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
13283
13284 2012-01-20 Jakub Jelinek <jakub@redhat.com>
13285
13286 PR tree-optimization/51914
13287 * tree-vect-stmts.c (vectorizable_conversion): For
13288 cvt_type && modifier == WIDEN, put temporary with cvt_type
13289 at the beginning of vec_dsts and set vec_dest to temporary
13290 with vectype_out.
13291
13292 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
13293
13294 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
13295
13296 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
13297
13298 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
13299 * config/rs6000/rs6000.c: Likewise.
13300
13301 2012-01-20 Jakub Jelinek <jakub@redhat.com>
13302
13303 PR target/51915
13304 * config/arm/arm.c (arm_count_output_move_double_insns): Call
13305 output_move_double on a copy of operands array.
13306
13307 2012-01-20 Cary Coutant <ccoutant@google.com>
13308 Dodji Seketeli <dodji@redhat.com>
13309
13310 PR debug/45682
13311 * dwarf2out.c (copy_declaration_context): Return ref to parent
13312 of declaration DIE, if necessary.
13313 (remove_child_or_replace_with_skeleton): Add new parameter; update
13314 caller. Place skeleton DIE under parent DIE of original declaration.
13315 Move call to copy_declaration_context to here ...
13316 (break_out_comdat_types): ... from here.
13317
13318 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13319
13320 PR rtl-optimization/51856
13321 * reload.c (find_reloads_subreg_address): Set the address_reloaded
13322 flag to reloaded.
13323
13324 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13325
13326 PR target/51819
13327 * config/arm/arm.c (arm_print_operand): Correct output of alignment
13328 hints for neon loads and stores.
13329
13330 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
13331
13332 PR target/49868
13333 PR target/50887
13334 * doc/extend.texi (Named Address Spaces): Split into subsections.
13335 (AVR Named Address Spaces): New subsection.
13336 (M32C Named Address Spaces): New subsection.
13337 (RL78 Named Address Spaces): New subsection.
13338 (SPU Named Address Spaces): New subsection.
13339 (Variable Attributes): New anchor "AVR Variable Attributes".
13340 (AVR Variable Attributes): Rewrite and avoid wording
13341 "address space" in this context.
13342 * doc/invoke.texi (AVR Options): Rewrite and add documentation
13343 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
13344 (AVR Built-in Macros): New subsubsection therein.
13345 * doc/md.texi (AVR constraints): Remove "C04", "R".
13346
13347 2012-01-20 Richard Guenther <rguenther@suse.de>
13348
13349 PR tree-optimization/51903
13350 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
13351 when removing stmts.
13352
13353 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13354
13355 PR target/50313
13356 * config/arm/arm.c (arm_load_pic_register): Use
13357 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
13358 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
13359 (arm_pic_static_addr): Likewise.
13360 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
13361 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
13362 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
13363 (pic_load_addr_unified): New.
13364
13365 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
13366
13367 PR target/51106
13368 * function.c (instantiate_virtual_regs_in_insn): Use
13369 delete_insn_and_edges when removing a wrong asm insn.
13370
13371 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
13372
13373 PR rtl-optimization/40761
13374 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
13375 Add new member loop_num.
13376 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
13377 (ira_build): Remove the parameter.
13378
13379 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
13380 (ira.c): Do not build CFG loops for one region allocation. Remove
13381 argument from ira_build call.
13382
13383 * ira-build.c (init_loop_tree_node): New function.
13384 (create_loop_tree_nodes): Use it. Separate the case when CFG
13385 loops are not built.
13386 (more_one_region_p): Check current_loops.
13387 (finish_loop_tree_nodes): Separate the case when CFG loops are not
13388 built.
13389 (add_loop_to_tree): Process loop equal to NULL too.
13390 (form_loop_tree): Separate the case when CFG loops are not built.
13391 Use explicitly number for the root.
13392 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
13393 an assertion.
13394 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
13395 instead of loop->num.
13396 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
13397 (mark_all_loops_for_removal): Ditto.
13398 (remove_unnecessary_regions): Separate the case when CFG loops
13399 are not built.
13400 (ira_build): Remove the parameter. Use explicit number of regions
13401 when CFG loops are not built.
13402
13403 * ira-color.c (print_loop_title): Separate the case for the root node.
13404 Use loop_num instead of loop->num.
13405 (move_spill_restore): Use loop_num instead of loop->num.
13406
13407 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
13408 (change_loop): Ditto.
13409 (change_loop): Use loop_num instead of loop->num.
13410
13411 * ira-lives.c (process_bb_node_lives): Ditto.
13412
13413 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
13414
13415 * ira-conflicts.c (print_allocno_conflicts): Ditto.
13416
13417 2012-01-19 Jakub Jelinek <jakub@redhat.com>
13418
13419 PR libmudflap/40778
13420 * tree-mudflap.c (mf_artificial): New function.
13421 (execute_mudflap_function_ops, execute_mudflap_function_decls,
13422 mx_register_decls, mudflap_enqueue_decl): Use it.
13423
13424 PR target/51876
13425 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
13426 numbers in the insn pattern.
13427
13428 2012-01-19 Michael Matz <matz@suse.de>
13429
13430 PR tree-optimization/46590
13431 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
13432 use it in remembering which conflicts we already created.
13433 (add_scope_conflicts): Adjust call to above, (de)allocate helper
13434 bitmap.
13435
13436 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
13437
13438 PR lto/51280
13439 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
13440 (merge_and_complain): Same.
13441
13442 2012-01-19 Jakub Jelinek <jakub@redhat.com>
13443
13444 PR bootstrap/50237
13445 * config/initfini-array.h: Guard content of the header
13446 with #ifdef HAVE_INITFINI_ARRAY.
13447 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
13448 Add initfini-array.h to tm_file here.
13449 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
13450 * config.gcc: Don't add initfini-array.h to tm_file here.
13451 * configure: Regenerated.
13452
13453 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
13454
13455 PR rtl-optimization/51505
13456 * df-problems.c (df_kill_notes): New parameter live. Update comment.
13457 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
13458 (df_note_bb_compute): Update the call to df_kill_notes.
13459
13460 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
13461
13462 * trans-mem.c (requires_barrier): Remove call to is_global_var.
13463
13464 2012-01-18 Richard Guenther <rguenther@suse.de>
13465
13466 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
13467 of conversions to void *.
13468
13469 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13470 Richard Sandiford <rdsandiford@googlemail.com>
13471
13472 PR middle-end/50325
13473 PR middle-end/51192
13474 * optabs.h (simplify_expand_binop): Declare.
13475 * optabs.c (simplify_expand_binop): Make global.
13476 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
13477 endian targets if the source cannot be exactly covered by word
13478 mode chunks.
13479
13480 2012-01-17 Jakub Jelinek <jakub@redhat.com>
13481
13482 PR bootstrap/51872
13483 * hard-reg-set.h (struct hard_reg_set_container): New type.
13484 * target.h (struct hard_reg_set_container): Forward declare.
13485 * target.def (set_up_by_prologue): New target hook.
13486 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
13487 * doc/tm.texi: Regenerated.
13488 * function.c (thread_prologue_and_epilogue_insns): Change
13489 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
13490 Call targetm.set_up_by_prologue on it.
13491 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
13492 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
13493
13494 2012-01-17 Nick Clifton <nickc@redhat.com>
13495
13496 * config/rx/rx.c (rx_can_use_simple_return): New function.
13497 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
13498 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
13499
13500 2012-01-17 Richard Guenther <rguenther@suse.de>
13501
13502 PR middle-end/51782
13503 * expr.c (expand_assignment): Take address-space information
13504 from the address operand of MEM_REF and TARGET_MEM_REF.
13505 (expand_expr_real_1): Likewise.
13506
13507 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13508
13509 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
13510 reload dump is requested.
13511
13512 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
13513
13514 PR other/51165
13515 * trans-mem.c (requires_barrier): Call may_be_aliased.
13516
13517 2012-01-17 Jakub Jelinek <jakub@redhat.com>
13518
13519 PR tree-optimization/51877
13520 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
13521 call arguments and fndecls compare equal, instead return false if they
13522 don't. Return true only if lhs1 and lhs2 are either both NULL, or
13523 both SSA_NAMEs that are valueized the same, or they satisfy
13524 operand_equal_p.
13525
13526 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13527
13528 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
13529 Solaris 11+.
13530 * configure: Regenerate.
13531
13532 2012-01-16 Jan Hubicka <jh@suse.cz>
13533
13534 PR c/12245
13535 PR c++/14179
13536 * convert.c (convert_to_integer): Use fold_convert for
13537 converting an INTEGER_CST to integer type.
13538
13539 2012-01-16 Jason Merrill <jason@redhat.com>
13540
13541 PR c++/14179
13542 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
13543
13544 2012-01-16 Jakub Jelinek <jakub@redhat.com>
13545
13546 PR bootstrap/51860
13547 * config/s390/s390.c (s390_chunkify_start): Don't skip
13548 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
13549 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
13550 If insn is followed by NOTE_INSN_VAR_LOCATION or
13551 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
13552 Don't use location of note insns.
13553
13554 PR tree-optimization/51865
13555 * tree-inline.c (tree_function_versioning): Call remap_decl
13556 on DECL_RESULT whenever it has VOID_TYPE_P type.
13557
13558 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
13559
13560 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
13561 for calls to locally-binding MIPS16 functions if only the return
13562 type uses float regs.
13563
13564 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
13565 Richard Sandiford <rdsandiford@googlemail.com>
13566
13567 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
13568 (SYMBOL_32_HIGH): Likewise.
13569 (mips_output_tls_reloc_directive): Declare.
13570 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
13571 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
13572 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
13573 (mips_lo_relocs, mips_hi_relocs): Make extern.
13574 (mips16_stub_function): Move up file.
13575 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
13576 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
13577 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
13578 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
13579 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
13580 (mips_get_tp): Add MIPS16 support.
13581 (mips_legitimize_tls_address): Remove MIPS16 sorry().
13582 Generalize DTPREL and TPREL handling.
13583 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
13584 Add MIPS16 TLS support.
13585 (mips_output_tls_reloc_directive): New function.
13586 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
13587 * config/mips/predicates.md (symbolic_operand_with_high)
13588 (tls_reloc_operand): New predicates.
13589 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
13590 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
13591 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
13592 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
13593 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
13594 (*tls_get_tp_mips16_call_<mode>): Likewise.
13595
13596 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
13597
13598 PR rtl-optimization/51821
13599 * recog.c (peep2_find_free_register): Determine clobbered registers
13600 from insn pattern.
13601
13602 2012-01-14 Denis Chertykov <chertykov@gmail.com>
13603
13604 PR target/50925
13605 * config/avr/avr-protos.h: Revert change of 2012-01-09.
13606 * config/avr/avr.c: Likewise.
13607 * config/avr/avr.h: Likewise.
13608
13609 2012-01-13 Ian Lance Taylor <iant@google.com>
13610
13611 PR c++/50012
13612 * tree.h (TYPE_QUALS): Add cast to int.
13613 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
13614
13615 2012-01-13 Ian Lance Taylor <iant@google.com>
13616
13617 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
13618 comparing param_index to VEC_length result.
13619
13620 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
13621
13622 * c-decl.c: Do not include tree-mudflap.h
13623 * tree-optimize.c: Likewise.
13624 * Makefile.in: Update dependencies.
13625
13626 2012-01-13 Richard Guenther <rguenther@suse.de>
13627
13628 PR middle-end/8081
13629 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
13630 variable-sized result always use RSO.
13631
13632 2012-01-12 DJ Delorie <dj@redhat.com>
13633
13634 * cfgexpand.c (convert_debug_memory_address): Allow any valid
13635 pointer type, not just the default pointer type.
13636
13637 2012-01-09 Richard Henderson <rth@redhat.com>
13638 Denis Chertykov <chertykov@gmail.com>
13639
13640 PR target/50925
13641 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
13642 * config/avr/avr.c (avr_can_eliminate): Simplify.
13643 (avr_initial_elimination_offset): Likewise.
13644 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
13645 (expand_epilogue): Likewise.
13646 (avr_legitimize_address): Gut.
13647 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
13648 (avr_hard_regno_nregs): New.
13649 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
13650 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
13651 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
13652 add soft frame pointer.
13653 (CALL_USED_REGISTERS): Likewise.
13654 (REG_CLASS_CONTENTS): Likewise.
13655 (REGISTER_NAMES): Likewise.
13656 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
13657 (HARD_FRAME_POINTER_REGNUM): New.
13658 (FRAME_POINTER_REGNUM): Use soft frame pointer.
13659 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
13660 remove the HARD_FRAME_POINTER self-elimination.
13661
13662 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
13663
13664 PR target/51756
13665 * config/avr/avr.c (avr_encode_section_info): Test for absence of
13666 DECL_EXTERNAL when checking for initializers of progmem variables.
13667
13668 2012-01-12 Ira Rosen <irar@il.ibm.com>
13669
13670 PR tree-optimization/51799
13671 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
13672 that the last operation is a type demotion.
13673
13674 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
13675
13676 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
13677 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
13678
13679 2012-01-11 Jakub Jelinek <jakub@redhat.com>
13680
13681 PR bootstrap/51796
13682 * combine.c (distribute_notes): If i3 is a noreturn call,
13683 allow old_size to be equal to args_size and make sure the
13684 noreturn call gets REG_ARGS_SIZE note.
13685 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
13686 on noreturn calls even when the delta is 0.
13687
13688 2012-01-11 Nathan Sidwell <nathan@acm.org>
13689
13690 * gcov.c (STRING_SIZE): Remove.
13691 (generate_results): Erase annotations for source files with no
13692 coverage information.
13693 (read_line): New.
13694 (output_lines): Use it.
13695
13696 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
13697
13698 * gimple.h (gimplify_body): Remove first argument.
13699 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
13700 pointer set here, instead just pass DATA to walk_tree.
13701 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
13702 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
13703 (unvisit_body): Likewise, but with unmark_visited.
13704 (gimplify_body): Remove BODY_P argument and adjust.
13705 (gimplify_function_tree): Adjust call to gimplify_body.
13706 * omp-low.c (finalize_task_copyfn): Likewise.
13707
13708 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
13709
13710 * tree.h (build_function_decl_skip_args): Add boolean parameter.
13711 (build_function_type_skip_args): Delete.
13712 * tree.c (build_function_type_skip_args): Make static and add
13713 SKIP_RETURN parameter. Fix thinko in the handling of variants.
13714 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
13715 pass it to build_function_type_skip_args.
13716 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
13717 (tree_function_versioning): Likewise.
13718 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
13719 build_function_decl_skip_args.
13720 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
13721 and pass it to build_function_decl_skip_args/tree_function_versioning.
13722 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
13723 * ipa-inline-transform.c (save_inline_function_body): Likewise.
13724 * trans-mem.c (ipa_tm_create_version): Likewise.
13725 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
13726 * tree-inline.c (declare_return_variable): Remove always-true test.
13727 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
13728 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
13729 * ipa-split.c (split_function): Skip the return value for the split
13730 part if it doesn't return.
13731
13732 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13733
13734 PR tree-optimization/49642
13735 * ipa-split.c (forbidden_dominators): New variable.
13736 (check_forbidden_calls): New function.
13737 (dominated_by_forbidden): Likewise.
13738 (consider_split): Check for forbidden dominators.
13739 (execute_split_functions): Initialize and free forbidden
13740 dominators info; call check_forbidden_calls.
13741
13742 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13743
13744 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
13745
13746 2012-01-11 Nick Clifton <nickc@redhat.com>
13747
13748 * config/rx/rx.md (return): Define pattern.
13749
13750 2012-01-11 Richard Guenther <rguenther@suse.de>
13751
13752 * doc/extend.texi (malloc attribute): Adjust according to
13753 implementation.
13754
13755 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
13756 Patrick Marlier <patrick.marlier@gmail.com>
13757
13758 PR middle-end/51516
13759 * trans-mem.c (get_cg_data): Traverse aliases if requested.
13760 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
13761 (ipa_tm_note_irrevocable): Same.
13762 (ipa_tm_scan_irr_block): Same.
13763 (ipa_tm_decrement_clone_counts): Same.
13764 (ipa_tm_scan_irr_function): Same.
13765 (ipa_tm_create_version_alias): Same.
13766 (ipa_tm_create_version): Same.
13767 (ipa_tm_transform_calls_redirect): Same.
13768 (ipa_tm_transform_calls): Same.
13769 (ipa_tm_transform_transaction): Same.
13770 (ipa_tm_execute): Same.
13771
13772 2012-01-10 Richard Guenther <rguenther@suse.de>
13773
13774 PR middle-end/51806
13775 * opts.c (common_handle_option): Handle -Werror.
13776
13777 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
13778
13779 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
13780 operand number.
13781
13782 2012-01-10 Jason Merrill <jason@redhat.com>
13783
13784 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
13785 information.
13786
13787 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13788
13789 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
13790 supports R_386_TLS_GD_PLT reloc.
13791 (gcc_cv_as_ix86_tlsldmplt): Check if linker
13792 supports R_386_TLS_LDM_PLT reloc.
13793 * configure: Regenerate.
13794 * config.in: Regenerate.
13795
13796 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
13797
13798 PR target/49868
13799 Extend __pgmx semantics to linearize memory.
13800 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
13801 determine if code comes inline or from libgcc.
13802 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
13803 (movmem_qi, movmem_qi): Set constraint #2 to "n".
13804 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
13805 (movmemx_qi, movmemx_hi): New insns.
13806 (xload_<mode>_libgcc): Rewrite to new insn condition.
13807 (xload_<mode>): Remove insns.
13808 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
13809 cases that don't satisfy avr_xload_libgcc_p().
13810 (avr_addr_space_convert): Allow converting in any direction.
13811 (avr_addr_space_subset_p): Return always true.
13812 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
13813 (avr_emit_movmemhi): Ditto.
13814 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
13815 (avr_out_movmem): Ditto.
13816 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
13817 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
13818 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
13819 (avr_encode_section_info): Encode 'progmem' in symbol flags.
13820 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
13821
13822 2012-01-10 Richard Guenther <rguenther@suse.de>
13823
13824 PR tree-optimization/50913
13825 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
13826 Require data-refs to be representable by Graphite with respect
13827 to any loop nest.
13828
13829 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
13830
13831 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
13832 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
13833
13834 2012-01-10 Tom de Vries <tom@codesourcery.com>
13835
13836 PR rtl-optimization/51271
13837 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
13838 handling annulled branch.
13839
13840 2012-01-10 Richard Henderson <rth@redhat.com>
13841
13842 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
13843 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
13844 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
13845 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
13846 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
13847 arm_expand_vec_perm_const): New.
13848 * config/arm/arm-protos.h: Update.
13849 * config/arm/neon.md (UNSPEC_VCONCAT): New.
13850 (*neon_vswp<VDQX>): New.
13851 (neon_vcombine<VDX>): Use neon_split_vcombine.
13852 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
13853 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
13854 (vec_perm<VE>): New.
13855
13856 2012-01-10 Richard Henderson <rth@redhat.com>
13857
13858 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
13859 use it if reload_completed.
13860 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
13861 arm_output_asm_insn, arm_process_output_memory_barrier,
13862 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
13863 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
13864 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
13865 arm_process_output_sync_insn, arm_output_sync_insn,
13866 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
13867 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
13868 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
13869 (emit_unlikely_jump): New.
13870 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
13871 (arm_split_atomic_op): New.
13872 * config/arm/arm-protos.h: Update.
13873 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
13874 (struct arm_sync_generator): Remove.
13875 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
13876 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
13877 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
13878 (VUNSPEC_LL, VUNSPEC_SC): New.
13879 (sync_result, sync_memory, sync_required_value, sync_new_value,
13880 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
13881 (attr length): Don't use arm_sync_loop_insns.
13882 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
13883 (movsfcc, movdfcc): Likewise.
13884 * config/arm/constraints.md (Ua): New.
13885 * config/arm/prediates.md (mem_noofs_operand): New.
13886 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
13887 (sync_clobber, sync_t2_reqd): Remove.
13888 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
13889 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
13890 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
13891 (arm_sync_compare_and_swap<SIDI>): Remove.
13892 (arm_sync_compare_and_swap<NARROW>): Remove.
13893 (arm_sync_lock_test_and_set<SIDI>): Remove.
13894 (arm_sync_lock_test_and_set<NARROW>): Remove.
13895 (arm_sync_new_<syncop><SIDI>): Remove.
13896 (arm_sync_new_<syncop><NARROW>): Remove.
13897 (arm_sync_new_nand<SIDI>): Remove.
13898 (arm_sync_new_nand<NARROW>): Remove.
13899 (arm_sync_old_<syncop><SIDI>): Remove.
13900 (arm_sync_old_<syncop><NARROW>): Remove.
13901 (arm_sync_old_nand<SIDI>): Remove.
13902 (arm_sync_old_nand<NARROW>): Remove.
13903 (*memory_barrier): Merge arm_output_memory_barrier.
13904 (atomic_compare_and_swap<QHSD>): New.
13905 (atomic_compare_and_swap<NARROW>_1): New.
13906 (atomic_compare_and_swap<SIDI>_1): New.
13907 (atomic_exchange<QHSD>): New.
13908 (cas_cmp_operand, cas_cmp_str): New.
13909 (atomic_op_operand, atomic_op_str): New.
13910 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
13911 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
13912 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
13913 (arm_load_exclusive<NARROW>): New.
13914 (arm_load_exclusivesi, arm_load_exclusivedi): New.
13915 (arm_store_exclusive<QHSD>): New.
13916
13917 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13918
13919 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
13920 reload patterns if -mvsx-scalar-memory.
13921
13922 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
13923 generated, even -mno-vsx-scalar-double was used.
13924 (vsx_xscvdpsp_scalar): Likewise.
13925 (vsx_xscvspdp_scalar2): Likewise.
13926
13927 2012-01-09 Tom de Vries <tom@codesourcery.com>
13928 Andrew Pinski <apinski@cavium.com>
13929
13930 PR debug/51471
13931 * reorg.c (fill_slots_from_thread): Don't speculate
13932 frame-related insns.
13933
13934 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13935
13936 * sched-int.h (bb_note): Move to...
13937 * basic-block.h: ...here.
13938 * haifa-sched.c (bb_note): Move to...
13939 * cfgrtl.c: ...here.
13940 * function.c (next_block_for_reg): New function.
13941 (move_insn_for_shrink_wrap): Likewise.
13942 (prepare_shrink_wrap): Rewrite to use the above.
13943
13944 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
13945
13946 * gimple.c (is_gimple_non_addressable): Remove.
13947 * gimple.h: Remove is_gimple_non_addressable.
13948 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
13949 is_gimple_non_addressable.
13950 * trans-mem.c (expand_assign_tm): Same.
13951
13952 2012-01-09 Richard Guenther <rguenther@suse.de>
13953
13954 PR tree-optimization/51775
13955 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
13956 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
13957
13958 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13959
13960 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
13961 tuning parameters.
13962 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
13963
13964 2012-01-09 Richard Guenther <rguenther@suse.de>
13965
13966 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
13967
13968 2012-01-08 Jan Hubicka <jh@suse.cz>
13969
13970 PR tree-optimize/51680
13971 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
13972 on when known_vals needs to be computed; cleanup.
13973
13974 2012-01-08 Jan Hubicka <jh@suse.cz>
13975
13976 PR tree-optimize/51694
13977 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
13978
13979 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
13980
13981 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
13982 for -std=c++98 and -std=c++11 too.
13983
13984 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
13985
13986 * cfgloop.c (cancel_loop): Add free() of bbs array.
13987
13988 2012-01-07 Jan Hubicka <jh@suse.cz>
13989
13990 PR tree-optimization/51600
13991 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
13992 that benefits small functions.
13993
13994 2012-01-07 Jan Hubicka <jh@suse.cz>
13995
13996 * ipa-inline.c (want_inline_small_function_p): Fix formating.
13997
13998 2012-01-07 Jan Hubicka <jh@suse.cz>
13999
14000 PR tree-optimization/51680
14001 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
14002 whose inlining reduce unit size.
14003
14004 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
14005
14006 PR bootstrap/51725
14007 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
14008 Add canonical node to containing_mem chain after the non-canonical
14009 one, even if there weren't any locs to propagate.
14010 (remove_useless_values): Keep only canonical values.
14011 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
14012 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
14013 canonicalize mem_chain elements that are not discarded.
14014
14015 2012-01-06 Jakub Jelinek <jakub@redhat.com>
14016
14017 PR target/47333
14018 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
14019 before emitting functions.
14020
14021 PR gcov-profile/50127
14022 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
14023 clear_aux_for_blocks.
14024
14025 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
14026
14027 PR debug/51746
14028 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
14029
14030 2012-01-06 Arnaud Charlet <charlet@adacore.com>
14031
14032 * c-decl.c (ext_block): Moved up.
14033 (collect_all_refs, for_each_global_decl): Take ext_block into account.
14034
14035 2012-01-06 Han Shen <shenhan@google.com>
14036
14037 Translate built-in include paths for sysroot.
14038 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
14039 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
14040
14041 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
14042 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
14043
14044 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
14045 control whether sysroot should be prepended to gxx include dir.
14046
14047 * configure: Regenerate.
14048
14049 2012-01-06 Torvald Riegel <triegel@redhat.com>
14050
14051 PR rtl-optimization/51771
14052 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
14053 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
14054
14055 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
14056
14057 PR tree-optimization/51315
14058 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
14059 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
14060
14061 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
14062
14063 PR target/51681
14064 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
14065 for shrp pattern. Correctly handle and fixup shift variable.
14066 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
14067
14068 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14069
14070 PR debug/51762
14071 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
14072 note when !ACCUMULATE_OUTGOING_ARGS.
14073
14074 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
14075
14076 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
14077 condition.
14078 (extract_range_from_unary_expr_1): Avoid useless computations.
14079
14080 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14081
14082 PR rtl-optimization/51767
14083 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
14084 of jump_block and add an extra edge for degenerated asm gotos.
14085
14086 PR middle-end/51768
14087 * stmt.c (check_unique_operand_names): Don't ICE during error
14088 reporting if i is from labels chain.
14089
14090 PR middle-end/44777
14091 * profile.c (branch_prob): Split bbs that have exit edge
14092 and need a fake entry edge too.
14093
14094 2012-01-05 Jan Hubicka <jh@suse.cz>
14095
14096 PR middle-end/49710
14097 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
14098 unlooping loops.
14099
14100 2012-01-05 Richard Guenther <rguenther@suse.de>
14101
14102 PR lto/50490
14103 * tree-streamer-out.c (write_ts_optimization): New function.
14104 (streamer_write_tree_body): Call it.
14105 * tree-streamer-in.c (lto_input_ts_optimization): New function.
14106 (streamer_read_tree_body): Call it.
14107 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
14108
14109 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14110
14111 PR middle-end/51761
14112 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
14113 * gimplify.c (gimplify_cleanup_point_expr): Save and set
14114 in_cleanup_point_expr before gimplify_stmt call and restore it
14115 afterwards.
14116 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
14117 in_cleanup_point_expr is false.
14118
14119 2012-01-05 Richard Guenther <rguenther@suse.de>
14120
14121 PR middle-end/51764
14122 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
14123 to c.opt.
14124 * toplev.c (process_options): Reject combining mudflap and LTO.
14125 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
14126
14127 2012-01-05 Richard Guenther <rguenther@suse.de>
14128
14129 PR tree-optimization/51760
14130 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
14131 not VARYING.
14132 (bit_value_unop): Handle UNDEFINED operands.
14133 (bit_value_binop): Likewise.
14134
14135 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
14136
14137 * config/avr/avr.c (avr_replace_prefix): Remove.
14138 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
14139 (avr_asm_function_rodata_section): Ditto.
14140 (avr_asm_select_section): Ditto.
14141
14142 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
14143
14144 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
14145 insertion.
14146
14147 2012-01-05 Jakub Jelinek <jakub@redhat.com>
14148
14149 PR bootstrap/51648
14150 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
14151 calls that have any non-fake successor edges.
14152
14153 PR debug/51746
14154 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
14155
14156 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
14157
14158 PR tree-optimization/51624
14159 * tree-sra.c (build_ref_for_model): When replicating a chain of
14160 COMPONENT_REFs, stop as soon as the offset would become negative.
14161
14162 2012-01-04 Jakub Jelinek <jakub@redhat.com>
14163
14164 PR debug/51695
14165 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
14166 in .debug_loc on the floor.
14167
14168 2012-01-04 Andrew Pinski <apinski@cavium.com>
14169
14170 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
14171
14172 2012-01-04 Andrew Pinski <apinski@cavium.com>
14173 Adam Nemet <anemet@caviumnetworks.com>
14174
14175 * config/mips/mips.md (size): Add SI and DI.
14176 (SIZE): New mode attribute.
14177 (U): New code attribute.
14178 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
14179 (mips_lbux_<mode>): Delete.
14180 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
14181 (mips_lhx): Use gen_mips_lhx_extsi.
14182 (mips_lhx_<mode>): Delete.
14183 (mips_lwx): Delete.
14184 (mips_l<size>x): New expand.
14185 (mips_lwx_<mode>): Delete.
14186 (mips_l<GPR:size>x_<P:mode>): New pattern.
14187 (*mips_lw<u>x_<P:mode>_ext): Likewise.
14188 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
14189 * config/mips/mips.c (mips_lx_address_p): New function.
14190 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
14191 (dsp64): New availability predicate.
14192 (mips_builtins): Add an entry for __builtin_mips_ldx.
14193 * config/mips/mips.h (ISA_HAS_LBX): New define.
14194 (ISA_HAS_LBUX): Likewise.
14195 (ISA_HAS_LHX): Likewise.
14196 (ISA_HAS_LHUX): Likewise.
14197 (ISA_HAS_LWX): Likewise.
14198 (ISA_HAS_LWUX): Likewise.
14199 (ISA_HAS_LDX): Likewise.
14200 * doc/extend.texi (__builtin_mips_ldx): Document.
14201
14202 2012-01-04 Tristan Gingold <gingold@adacore.com>
14203
14204 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
14205 when long pointers are used.
14206 * config.build (*-*-*vms*): Handle all OpenVMS targets.
14207 (alpha64-dec-*vms*, alpha*-dec-*vms*)
14208 (ia64-hp-*vms*): Remove.
14209 * config/vms/xm-vms64.h: Delete.
14210
14211 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
14212
14213 PR middle-end/51472
14214 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
14215
14216 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
14217
14218 * opts.c (finish_options): Remove duplicate sorry.
14219
14220 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
14221
14222 PR middle-end/51696
14223 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
14224 correctly.
14225
14226 2012-01-04 Richard Guenther <rguenther@suse.de>
14227
14228 PR middle-end/51750
14229 * tree.c (size_low_cst): New function.
14230 * tree.h (size_low_cst): Declare.
14231 * fold-const.c (fold_comparison): Use it to extract the low
14232 part of the POINTER_PLUS_EXPR offset.
14233
14234 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
14235
14236 Fix clearing ZERO_REG
14237 * config/avr/avr.md (cc): Add alternative "ldi".
14238 (movqi_insn): Use it in cc attribute.
14239 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
14240 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
14241 (output_reload_insisf): Use ZERO_REG to pre-clear register.
14242
14243 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14244
14245 * configure: Regenerate.
14246
14247 2012-01-04 Richard Guenther <rguenther@suse.de>
14248
14249 PR tree-optimization/49651
14250 * tree-ssa-structalias.c (type_can_have_subvars): New function.
14251 (var_can_have_subvars): Use it.
14252 (get_constraint_for_1): Only consider subfields if there can be any.
14253
14254 2012-01-03 Jakub Jelinek <jakub@redhat.com>
14255
14256 PR bootstrap/51725
14257 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
14258 to its new canonical_cselib_val and the cselib_val was in
14259 first_containing_mem chain, but the canonical_cselib_val was not,
14260 add the latter into the chain.
14261 (cselib_invalidate_mem): Compare canonical_cselib_val of
14262 addr_list chain elt with v.
14263
14264 PR pch/51722
14265 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
14266 dwarf2out_undef): Allocate e.info using ggc_strdup instead
14267 of xstrdup.
14268 (output_macinfo_op): Don't ggc_strdup fd->filename.
14269 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
14270 then ggc_strdup it. Don't free inc->info or cur->info.
14271 (output_macinfo): Don't free ref->info or file->info.
14272
14273 2012-01-03 Ira Rosen <irar@il.ibm.com>
14274
14275 PR tree-optimization/51269
14276 * tree-vect-loop-manip.c (set_prologue_iterations): Make
14277 first_niters a pointer.
14278 (slpeel_tree_peel_loop_to_edge): Likewise.
14279 (vect_do_peeling_for_loop_bound): Update call to
14280 slpeel_tree_peel_loop_to_edge.
14281 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
14282 here. Remove it from the parameters list.
14283 (vect_do_peeling_for_alignment): Update calls and compute
14284 wide_prolog_niters.
14285
14286 2012-01-03 Richard Guenther <rguenther@suse.de>
14287
14288 PR tree-optimization/51070
14289 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
14290 Properly handle calls.
14291
14292 2012-01-03 Richard Guenther <rguenther@suse.de>
14293
14294 PR tree-optimization/51692
14295 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
14296 the LHS of allocation stmts.
14297
14298 2012-01-03 Olivier Hainque <hainque@adacore.com>
14299
14300 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
14301
14302 2012-01-03 Olivier Hainque <hainque@adacore.com>
14303
14304 * collect2.c (main): In AIX specific computations for vector
14305 insertions, use CONST_CAST2 to cast from char ** to const char **.
14306
14307 2012-01-03 Richard Guenther <rguenther@suse.de>
14308
14309 PR debug/51650
14310 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
14311 the context of a limbo DIE when it does not already exist.
14312
14313 2012-01-03 Jakub Jelinek <jakub@redhat.com>
14314
14315 PR tree-optimization/51719
14316 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
14317 but direct call is, clear direct call's lhs and don't add fallthrough
14318 edge from dcall_bb to join_bb and PHIs.
14319
14320 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14321
14322 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
14323 the instructions emitted by the pattern.
14324 ("*TDC_insn_<mode>"): Add comment.
14325
14326 2012-01-03 Richard Guenther <rguenther@suse.de>
14327
14328 PR middle-end/51730
14329 * fold-const.c (fold_comparison): Properly canonicalize
14330 tree offset and HOST_WIDE_INT bit position.
14331
14332 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
14333
14334 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
14335 operands for extzv pattern.
14336
14337 2012-01-02 Jakub Jelinek <jakub@redhat.com>
14338
14339 PR bootstrap/51725
14340 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
14341 on mem_elt first.
14342
14343 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
14344
14345 * doc/invoke.texi (-flto and related options): Copy-edit.
14346
14347 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14348
14349 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
14350
14351 2012-01-02 Jakub Jelinek <jakub@redhat.com>
14352
14353 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
14354 New patterns.
14355
14356 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14357
14358 * expr.h (move_by_pieces_ninsns): Declare.
14359 * expr.c (move_by_pieces_ninsns): Make external.
14360 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
14361 (mips_store_by_pieces_p): Likewise.
14362 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
14363 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
14364 * config/mips/mips.c (mips_move_by_pieces_p): New function.
14365 (mips_store_by_pieces_p): Likewise.
14366
14367 2012-01-02 Jakub Jelinek <jakub@redhat.com>
14368
14369 * passes.c (register_one_dump_file): Free full_name.
14370
14371 * reload1.c (reload): Don't allocate reg_max_ref_width here.
14372 (calculate_elim_costs_all_insns): Free offsets_at and
14373 offsets_known_at at the end and clear the pointers.
14374
14375 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14376
14377 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
14378 this option introduced in r180739.
14379
14380 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14381
14382 PR target/51345
14383 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
14384 (tmake_file target=avr): Add avr/t-multilib.
14385
14386 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
14387 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
14388 * config/avr/genmultilib.awk: New file.
14389 * config/avr/t-multilib: New auto-generated file.
14390 * config/avr/multilib.h: New auto-generated file.
14391 * config/avr/t-avr (AVR_MCUS): New variable.
14392 (genopt.sh): Use it.
14393 (s-mlib): Depend on t-multilib.
14394 (t-multilib, multilib.h): New dependencies.
14395 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
14396 (MULTILIB_OPTIONS): Remove.
14397 (MULTILIB_MATCHES): Remove.
14398 (MULTILIB_DIRNAMES): Remove.
14399 (MULTILIB_EXCEPTIONS): Remove:
14400 * config/avr/genopt.sh: Don't use hard coded file name;
14401 pass AVR_MCUS from t-avr instead.
14402
14403 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14404
14405 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
14406
14407 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
14408
14409 Implement light-weight DImode support.
14410 * config/avr/avr-dimode.md: New file.
14411 * config/avr/avr.md: Include it.
14412 (adjust_len): Add plus64, compare64.
14413 (HIDI): Remove code iterator.
14414 (code_stdname): New code attribute.
14415 (rotx, rotsmode): Remove DI.
14416 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
14417 as code iterator.
14418 * config/avr/avr-protos.h (avr_have_dimode): New.
14419 (avr_out_plus64, avr_out_compare64): New.
14420 * config/avr/avr.c (avr_out_compare): Handle DImode.
14421 (avr_have_dimode): New variable definition and initialization.
14422 (avr_out_compare64, avr_out_plus64): New functions.
14423 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
14424 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
14425 (avr_compare_pattern): Skip DImode comparisons.
14426
14427 2012-01-02 Revital Eres <revital.eres@linaro.org>
14428
14429 * ddg.c (def_has_ccmode_p): New function.
14430 (add_cross_iteration_register_deps,
14431 create_ddg_dep_from_intra_loop_link): Call it.
14432
14433 2012-01-02 Richard Guenther <rguenther@suse.de>
14434
14435 PR other/51679
14436 * invoke.texi (fassociative-math): Remove spurious paranthesis.
14437
14438 2012-01-01 Jakub Jelinek <jakub@redhat.com>
14439
14440 * gcc.c (process_command): Update copyright notice dates.
14441 * gcov.c (print_version): Likewise.
14442 * gcov-dump.c (print_version): Likewise.
14443 * mips-tfile.c (main): Likewise.
14444 * mips-tdump.c (main): Likewise.
14445
14446 2012-01-01 Ira Rosen <irar@il.ibm.com>
14447
14448 PR tree-optimization/51704
14449 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
14450 a use is inside the basic block or loop before accessing its vect info.
14451
14452 2012-01-01 Jan Hubicka <jhjh@suse.cz>
14453
14454 PR rtl-optimization/51069
14455 * cfgloopmanip.c (remove_path): Removing path making irreducible
14456 region unconditional makes BB part of the region.
14457
14458 2012-01-01 Jakub Jelinek <jakub@redhat.com>
14459
14460 PR tree-optimization/51683
14461 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
14462 calls with side-effects.
14463 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14464 \f
14465 Copyright (C) 2012 Free Software Foundation, Inc.
14466
14467 Copying and distribution of this file, with or without modification,
14468 are permitted in any medium without royalty provided the copyright
14469 notice and this notice are preserved.