]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
1dbd9261139fddc894bb729a560d1c327c5570a0
[gcc.git] / gcc / ChangeLog
1 2011-07-05 Richard Henderson <rth@redhat.com>
2
3 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
4 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
5
6 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7 for ar.pfs save at alloc insn.
8
9 2011-07-05 Richard Henderson <rth@redhat.com>
10
11 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
14 stack pointer save.
15 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
16 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
17 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
18 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
19
20 2011-07-05 Richard Henderson <rth@redhat.com>
21
22 * config/vax/vax.md (define_c_enum unspecv): New. Define the
23 VUNSPEC_* constants here instead of via define_constants.
24 (VUNSPEC_PEM): New constant.
25 (procedure_entry_mask): New insn.
26 (prologue): New expander.
27 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
28 (vax_expand_prologue): Rename from vax_output_function_prologue;
29 emit rtl instead of text.
30 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
31 (print_operand): Add 'x' prefix.
32
33 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR middle-end/47715
36 * calls.c (precompute_register_parameters): Promote the function
37 argument before checking non-legitimate constant.
38
39 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
40
41 PR tree-optimization/47654
42 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
43 (lst_do_strip_mine_loop): Return an int.
44 (lst_do_strip_mine): Same.
45 (scop_do_strip_mine): Same.
46 (scop_do_block): Loop blocking should strip-mine at least two loops.
47 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
48 (scop_do_interchange): Same.
49 * graphite-poly.h (scop_do_interchange): Update declaration.
50 (scop_do_strip_mine): Same.
51
52 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
53
54 * graphite-clast-to-gimple.c (precision_for_value): Removed.
55 (precision_for_interval): Removed.
56 (gcc_type_for_interval): Use mpz_sizeinbase.
57
58 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
59
60 * graphite-ppl.h (value_max): Correct computation of max.
61
62 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
63
64 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
65
66 2011-07-05 Richard Guenther <rguenther@suse.de>
67
68 * c-decl.c (c_init_decl_processing): Defer building common
69 tree nodes to c_common_nodes_and_builtins.
70
71 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
72
73 PR tree-optimization/49580
74 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
75 the loop's number of iterations.
76 * tree-parloops.c (transform_to_exit_first_loop): Add the
77 handling of the loop's number of iterations before the call
78 to gimple_duplicate_sese_tail.
79 Insert the stmt caclculating the new rhs of the loop's
80 condition stmt to the preheader instead of iters_bb.
81
82 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
83
84 PR rtl-optimization/47449
85 * fwprop.c (forward_propagate_subreg): Don't propagate hard
86 register nor zero/sign extended hard register.
87
88 2011-07-05 Richard Guenther <rguenther@suse.de>
89
90 PR tree-optimization/49518
91 PR tree-optimization/49628
92 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
93 irrelevant and invariant data-references.
94 (vect_analyze_data_ref_access): For invariant loads clear the
95 group association.
96
97 2011-07-04 Jakub Jelinek <jakub@redhat.com>
98
99 PR rtl-optimization/49619
100 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
101 pass VOIDmode as op0_mode to recursive call, and return temp even
102 when different from tor, just if it is not IOR of the original
103 PLUS arguments.
104
105 PR rtl-optimization/49472
106 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
107 negating MULT, negate the second operand instead of first.
108 (simplify_binary_operation_1) <case MULT>: If one operand is
109 a NEG and the other is MULT, don't attempt to optimize by
110 negation of the MULT operand if it only moves the NEG operation
111 around.
112
113 PR debug/49602
114 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
115 get_current_def return value if it can't be trusted to be
116 the current value of the variable in the current bb.
117
118 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
119
120 PR target/49600
121 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
122 general register to memory for !TARGET_INTER_UNIT_MOVES.
123
124 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
125
126 PR target/44643
127 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
128 instead of TREE_READONLY.
129
130 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
131
132 * doc/extend.texi (AVR Built-in Functions): Update documentation
133 of __builtin_avr_fmul*.
134 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
135 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
136 * config/avr/avr.md (fmul): Rename to fmul_insn.
137 (fmuls): Rename to fmuls_insn.
138 (fmulsu): Rename to fmulsu_insn.
139 (fmul,fmuls,fmulsu): New expander.
140 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
141 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
142 * config/avr/libgcc.S (__fmul): New function.
143 (__fmuls): New function.
144 (__fmulsu,__fmulsu_exit): New function.
145
146 2011-07-04 Richard Guenther <rguenther@suse.de>
147
148 PR tree-optimization/49615
149 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
150 basic-block index check.
151
152 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
153
154 * longlong.h (count_leading_zeros, count_trailing_zeros,
155 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
156 resp. 64.
157
158 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
159
160 PR tree-optimization/49610
161 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
162 a basic block.
163
164 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
165 Olivier Hainque <hainque@adacore.com>
166 Nicolas Setton <setton@adacore.com>
167
168 * tree.h (TYPE_ARTIFICIAL): New flag.
169 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
170 the DIE of the type if it is artificial.
171 (gen_array_type_die): Likewise.
172 (gen_enumeration_type_die): Likewise.
173 (gen_struct_or_union_type_die): Likewise.
174 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
175 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
176
177 2011-07-01 Jakub Jelinek <jakub@redhat.com>
178
179 * tree-object-size.c (pass_through_call): Handle
180 BUILT_IN_ASSUME_ALIGNED.
181
182 2011-07-01 Martin Jambor <mjambor@suse.cz>
183
184 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
185
186 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
187
188 PR middle-end/48016
189 * explow.c (update_nonlocal_goto_save_area): Use proper mode
190 for stack save area.
191 * function.c (expand_function_start): Likewise.
192
193 2011-07-01 Richard Guenther <rguenther@suse.de>
194
195 PR middle-end/49596
196 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
197 may have unknown refs.
198
199 2011-07-01 Kai Tietz <ktietz@redhat.com>
200
201 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
202
203 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
204
205 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
206 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
207 (Specific, mips-sgi-irix6): Likewise.
208
209 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
210
211 PR libmudflap/49549
212 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
213
214 2011-07-01 Jakub Jelinek <jakub@redhat.com>
215
216 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
217 [idx]= and [idx1 ... idx2]= before initializers if needed for
218 array initializers.
219
220 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
221
222 * config.gcc (score-*-elf): Remove score7.o.
223 * config/score/t-score-elf: Likewise.
224 * config/score/score.c: Merge score7 to score.c and
225 remove forwarding functions.
226 * config/score/score7.c: Deleted.
227 * config/score/score7.h: Deleted.
228
229 2011-07-01 Richard Guenther <rguenther@suse.de>
230
231 PR tree-optimization/49603
232 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
233
234 2011-06-30 Martin Jambor <mjambor@suse.cz>
235
236 * tree-sra.c (struct access): Rename total_scalarization to
237 grp_total_scalarization
238 (completely_scalarize_var): New function.
239 (sort_and_splice_var_accesses): Set total_scalarization in the
240 representative access.
241 (analyze_access_subtree): Propagate total scalarization accross the
242 tree, no holes in totally scalarized trees, simplify coverage
243 computation.
244 (analyze_all_variable_accesses): Call completely_scalarize_var instead
245 of completely_scalarize_record.
246
247 2011-06-30 Richard Henderson <rth@redhat.com>
248
249 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
250 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
251 * config/i386/i386.c: Don't include dwarf2out.h.
252 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
253 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
254 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
255 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
256 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
257
258 2011-06-30 Richard Henderson <rth@redhat.com>
259
260 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
261 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
262 * final.c (final_scan_insn): Look for it, and invoke
263 dwarf2out_frame_debug before the insn if found.
264
265 2011-06-30 Richard Henderson <rth@redhat.com>
266
267 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
268 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
269
270 2011-06-30 Richard Henderson <rth@redhat.com>
271
272 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
273 Define a vector of this type.
274 (regs_saved_in_regs): Use a VEC.
275 (num_regs_saved_in_regs): Remove.
276 (compare_reg_or_pc): New.
277 (record_reg_saved_in_reg): Split out from...
278 (dwarf2out_flush_queued_reg_saves): ... here.
279 (clobbers_queued_reg_save): Update for VEC.
280 (reg_saved_in): Likewise.
281 (dwarf2out_frame_debug_init): Likewise.
282 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
283 (dwarf2out_frame_debug_cfa_register): Likewise.
284
285 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
286
287 PR tree-optimization/49572
288 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
289 type of the RHS instead of that of the LHS for the expression type.
290
291 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
292
293 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
294 unconditionally.
295
296 2011-06-30 Richard Guenther <rguenther@suse.de>
297
298 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
299 * tree-ssa-structalias.c (create_variable_info_for): Do not
300 add initial constraints for non-var-decls. Properly handle
301 globals in other ltrans partitions.
302 (intra_create_variable_infos): Manually create constraints for
303 the fake no-alias parameter.
304 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
305 and assert there are no clones.
306
307 2011-06-30 Richard Guenther <rguenther@suse.de>
308
309 PR tree-optimization/46787
310 * tree-data-ref.c (dr_address_invariant_p): Remove.
311 (find_data_references_in_stmt): Invariant accesses are ok now.
312 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
313 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
314 invariant loads.
315
316 2011-06-30 Martin Jambor <mjambor@suse.cz>
317
318 PR tree-optimization/49094
319 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
320 (build_accesses_from_assign): Use it.
321
322 2011-06-30 Jakub Jelinek <jakub@redhat.com>
323
324 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
325 handling of BUILT_IN_ASSUME_ALIGNED.
326
327 PR debug/49364
328 * dwarf2out.c (output_abbrev_section): Don't return early
329 if abbrev_die_table_in_use is 1.
330 (dwarf2out_finish): Instead don't call output_abbrev_section
331 nor emit abbrev_section_label in that case.
332
333 2011-06-30 Nick Clifton <nickc@redhat.com>
334
335 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
336 for the V850E.
337
338 2011-06-30 Jakub Jelinek <jakub@redhat.com>
339
340 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
341 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
342
343 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
344
345 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
346 both pattern and original statements if necessary.
347 (vect_transform_loop): Likewise.
348 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
349 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
350 Mark the pattern statement only if the original statement doesn't
351 have its own uses.
352 (process_use): Call vect_mark_relevant with additional parameter.
353 (vect_mark_stmts_to_be_vectorized): Likewise.
354 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
355 (vect_analyze_stmt): Handle both pattern and original statements
356 if necessary.
357 (vect_transform_stmt): Don't store vectorized pattern statement
358 in the original statement.
359 (vect_is_simple_use_1): Use related pattern statement only if the
360 original statement is irrelevant.
361 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
362
363 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
364
365 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
366 option.
367 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
368 entry.
369 (TARGET_AVX128_OPTIMAL): New definition.
370 * config/i386/i386.c (initial_ix86_tune_features): Initialize
371 X86_TUNE_AVX128_OPTIMAL entry.
372 (ix86_option_override_internal): Enable the generation
373 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
374 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
375 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
376
377 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
378
379 PR tree-optimization/49539
380 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
381 names by means of stmt_references_abnormal_ssa_name.
382 (associate_plusminus): Call can_propagate_from before propagating
383 from definition statements.
384 (ssa_forward_propagate_and_combine): Remove superfluous newline.
385
386 2011-06-29 Richard Guenther <rguenther@suse.de>
387
388 * doc/invoke.texi: Document -scev dump modifier.
389 * tree-pass.h (TDF_SCEV): New dump flag.
390 * tree-dump.c (dump_option_value_in): Add scev.
391 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
392 * tree-scalar-evolution.c: Likewise.
393
394 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
395
396 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
397 (cxa_type_match): Correct declaration.
398 (__gnu_unwind_pr_common): Reconstruct additional indirection
399 when __cxa_type_match returns succeeded_with_ptr_to_base.
400
401 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
402
403 PR rtl-optimization/49114
404 * reload.c (struct replacement): Remove SUBREG_LOC member.
405 (push_reload): Do not set it.
406 (push_replacement): Likewise.
407 (subst_reload): Remove dead code.
408 (copy_replacements): Remove assertion.
409 (copy_replacements_1): Do not handle SUBREG_LOC.
410 (move_replacements): Likewise.
411 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
412 Detect subregs via recursive descent instead of via SUBREG_LOC.
413
414 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
415
416 * config/avr/avr.c (avr_encode_section_info): Dispatch to
417 default_encode_section_info.
418
419 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
420
421 PR tree-optimization/49545
422 * builtins.c (get_object_alignment_1): Update function comment.
423 Do not use DECL_ALIGN for functions, but test
424 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
425 * fold-const.c (get_pointer_modulus_and_residue): Don't check
426 for functions here.
427 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
428
429 2011-06-29 Jakub Jelinek <jakub@redhat.com>
430
431 PR debug/49567
432 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
433 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
434
435 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
436
437 PR target/34734
438 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
439 about uninitialized data attributed 'progmem' from here...
440 (avr_encode_section_info): ...to this new function.
441 (TARGET_ENCODE_SECTION_INFO): New define.
442 (avr_section_type_flags): For data in ".progmem.data", remove
443 section flag SECTION_WRITE.
444
445 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
446
447 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
448 _xmulhisi3_exit.
449 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
450 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
451 (__umulhisi3): Ditto.
452 * config/avr/avr.md (mulhisi3): New insn expender.
453 (umulhisi3): New insn expender.
454 (*mulhisi3_call): New insn.
455 (*umulhisi3_call): New insn.
456
457 2011-06-28 Joseph Myers <joseph@codesourcery.com>
458
459 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
460
461 2011-06-28 Richard Henderson <rth@redhat.com>
462
463 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
464 all code and arguments that handled pushes. Update all callers.
465
466 2011-06-28 Richard Henderson <rth@redhat.com>
467
468 * config/arm/arm.c (arm_output_function_prologue): Don't call
469 thumb1_output_function_prologue.
470 (arm_expand_prologue): Avoid dead store.
471 (number_of_first_bit_set): Use ctz_hwi.
472 (thumb1_emit_multi_reg_push): New.
473 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
474 to emit the entire prologue as rtl.
475 (thumb1_output_interwork): Split out from
476 thumb1_output_function_prologue.
477 (thumb1_output_function_prologue): Remove.
478 (arm_attr_length_push_multi): Handle thumb1.
479 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
480 (prologue_thumb1_interwork): New.
481 (*push_multi): Allow thumb1; use push_mult_memory_operand.
482 * config/arm/predicates.md (push_mult_memory_operand): New.
483
484 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
485
486 * config/sparc/sync.md (*stbar): Delete.
487 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
488
489 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
490
491 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
492
493 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
494
495 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
496 (TARGET_64BIT_DEFAULT): Define.
497 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
498 of tm_file.
499 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
500
501 2011-06-28 Joseph Myers <joseph@codesourcery.com>
502
503 * common.opt (in_lto_p): New Variable entry.
504 * flags.h (in_lto_p): Move to common.opt.
505 * gcc.c: Include params.h.
506 (set_option_handlers): Also use common_handle_option and
507 target_handle_option.
508 (main): Call global_init_params, finish_params and init_options_struct.
509 * opts.c (debug_type_names): Move from toplev.c.
510 (print_filtered_help): Access quiet_flag through opts pointer.
511 (common_handle_option): Return early in the driver for some options.
512 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
513 opts pointer.
514 * toplev.c (in_lto_p): Move to common.opt.
515 (debug_type_names): Move to opts.c.
516 * Makefile.in (OBJS): Remove opts.o.
517 (OBJS-libcommon-target): Add opts.o.
518 (gcc.o): Update dependencies.
519
520 2011-06-28 Kai Tietz <ktietz@redhat.com>
521
522 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
523
524 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
525
526 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
527 with '=' constraint modifier.
528 (*divdf3_vfp): Likewise.
529 ("*mulsf3_vfp"): Likewise.
530 ("*muldf3_vfp"): Likewise.
531 ("*mulsf3negsf_vfp"): Likewise.
532 ("*muldf3negdf_vfp"): Likewise.
533
534 2011-06-28 Nick Clifton <nickc@redhat.com>
535
536 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
537 relaxation when performing an incremental link.
538
539 2011-06-28 Kai Tietz <ktietz@redhat.com>
540
541 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
542 within BB from last to first.
543
544 2011-06-28 Joseph Myers <joseph@codesourcery.com>
545
546 * genattr-common.c: New. Based on genattr.c.
547 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
548 (MOSTLYCLEANFILES): Add insn-attr-common.h.
549 (opts.o): Update dependencies.
550 (.PRECIOUS): Add insn-attr-common.h.
551 (simple_rtl_generated_h): Add insn-attr-common.h.
552 (build/genattr-common.o): New.
553 (genprogrtl): Add attr-common.
554 * genattr.c (main): Include insn-attr-common.h. Don't generate
555 definitions of DELAY_SLOTS or INSN_SCHEDULING.
556 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
557
558 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
559
560 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
561 avr-*-* and avr-*-rtems* targets.
562
563 * config/avr/elf.h: New file.
564 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
565 (TARGET_ASM_SELECT_SECTION): Define.
566 (INIT_SECTION_ASM_OP): Undefine.
567 (FINI_SECTION_ASM_OP): Undefine.
568 (READONLY_DATA_SECTION_ASM_OP): Undefine.
569 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
570 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
571 * config/avr/avr.h:
572 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
573 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
574 (MAX_OFILE_ALIGNMENT): Move to elf.h.
575 (STRING_LIMIT): Move to elf.h.
576 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
577 (ASM_DECLARE_OBJECT_NAME): Remove.
578 (ESCAPES): Remove.
579 (ASM_OUTPUT_SKIP): Remove.
580 (DWARF2_DEBUGGING_INFO): Remove.
581 (OBJECT_FORMAT_ELF): Remove.
582 (USER_LABEL_PREFIX): Remove.
583 (ASM_OUTPUT_EXTERNAL): Remove.
584 (ASM_OUTPUT_ASCII): Remove.
585 (TYPE_ASM_OP): Remove.
586 (SIZE_ASM_OP): Remove.
587 (WEAK_ASM_OP): Remove.
588 (STRING_ASM_OP): Remove.
589 (SET_ASM_OP): Remove.
590 (ASM_WEAKEN_LABEL): Remove.
591 (TYPE_OPERAND_FMT): Remove.
592 (ASM_DECLARE_FUNCTION_SIZE): Remove.
593 (ASM_FINISH_DECLARE_OBJECT): Remove.
594 (NO_DOLLAR_IN_LABEL): Remove.
595 (ASM_GENERATE_INTERNAL_LABEL): Remove.
596 (ASM_OUTPUT_CASE_LABEL): Remove.
597 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
598 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
599 (gas_output_ascii): Remove.
600 (gas_output_limited_string): Remove.
601 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
602 * config/avr/avr-protos.h
603 (gas_output_ascii): Remove prototye.
604 (gas_output_limited_string): Remove prototype.
605
606 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
607
608 PR target/48637
609 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
610 asm operands.
611
612 2011-06-27 Jan Hubicka <jh@suse.cz>
613
614 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
615 node instead of references in node.
616
617 2011-06-27 Richard Henderson <rth@redhat.com>
618
619 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
620 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
621 inside ifdef.
622
623 2011-06-27 Jakub Jelinek <jakub@redhat.com>
624
625 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
626
627 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
628 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
629 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
630 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
631 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
632 (evaluate_stmt, execute_fold_all_builtins): Handle
633 BUILT_IN_ASSUME_ALIGNED.
634 * tree-ssa-dce.c (propagate_necessity): Likewise.
635 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
636 call_may_clobber_ref_p_1): Likewise.
637 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
638 (expand_builtin_assume_aligned): New function.
639 * doc/extend.texi (__builtin_assume_aligned): Document.
640
641 PR debug/49544
642 * cselib.c (promote_debug_loc): If cselib_preserve_constants
643 and l has two DEBUG_INSN owned locs instead of just one, adjust
644 the second location's setting_insn too.
645
646 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
647
648 PR libmudflap/38738
649 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
650
651 2011-06-27 Nick Clifton <nickc@redhat.com>
652
653 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
654 bit position of highest bit set into a count of the high zero bits.
655
656 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
657
658 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
659
660 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
661
662 PR lto/48492
663 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
664 to a NULL parent.
665
666 2011-06-27 Richard Guenther <rguenther@suse.de>
667
668 PR tree-optimization/49394
669 * passes.c (execute_one_pass): Restore current_pass after
670 applying IPA transforms.
671
672 2011-06-27 Kai Tietz <ktietz@redhat.com>
673
674 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
675 out of type precision after operation.
676 (find_bswap): Take for limit value the integer auto-promotion
677 into account.
678
679 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
680
681 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
682 forward scan as well.
683
684 2011-06-27 Tristan Gingold <gingold@adacore.com>
685
686 PR target/44241
687 * config/vms/vms-protos.h: New file.
688 * config/vms/vms-crtlmap.map: New file.
689 * config/vms/vms.c: New file.
690 * config/vms/make-crtlmap.awk: New file.
691 * config/vms/vms-crtl.h: File removed.
692 * config/vms/vms-crtl-64.h: File removed.
693 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
694 * config/alpha/vms64.h: Do not include vms-crtl-64.h
695 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
696 clear some builtins on VMS. Calls vms_patch_builtins.
697 (avms_asm_output_external): Remove.
698 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
699 (struct crtl_name_spec): Remove
700 (DO_CTRL_NAMES): Remove.
701 * config/ia64/vms.h (struct crtl_name_spec): Remove
702 (DO_CTRL_NAMES): Remove.
703 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
704 clear some builtins on VMS. Calls vms_patch_builtins.
705 (ia64_asm_output_external): Remove DO_CRTL_NAME.
706 * config/ia64/vms64.h: Do not include vms-crtl-64.h
707 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
708
709 2011-06-27 Tristan Gingold <gingold@adacore.com>
710
711 * config/alpha/alpha.c (alpha_end_function): Always generate .end
712 directive on VMS.
713
714 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
715
716 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
717 the function receives nonlocal gotos.
718
719 2011-06-27 Richard Guenther <rguenther@suse.de>
720
721 PR tree-optimization/49536
722 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
723 For non-scalar inner types use a scalar type according to
724 the scalar inner mode.
725
726 2011-06-27 Richard Guenther <rguenther@suse.de>
727
728 PR tree-optimization/49365
729 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
730
731 2011-06-27 Richard Guenther <rguenther@suse.de>
732
733 PR tree-optimization/49169
734 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
735 the alignment of function decls.
736
737 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
738
739 PR target/47997
740 * config/darwin.c (darwin_mergeable_string_section): Place string
741 constants in '.cstring' rather than '.const' when CF/NSStrings are
742 active.
743
744 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
745
746 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
747 (emit_save_register_window): Likewise.
748 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
749 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
750 Swap back %o7/%i7 in register naming.
751
752 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
753
754 PR driver/49371
755 * config/darwin.c (darwin_override_options): Improve warning when
756 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
757 is given with fpie/fPIE.
758 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
759 * config/darwin9.h (PIE_SPEC): New.
760
761 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
762
763 * timevar.c (timevar_print): Increase width for display of timevar
764 name.
765
766 2011-06-24 Jakub Jelinek <jakub@redhat.com>
767
768 PR c++/46400
769 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
770 instead of TYPE_CHAIN for chain_next for types.
771
772 2011-06-24 Richard Henderson <rth@redhat.com>
773
774 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
775 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
776 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
777 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
778 (sparc_flat_expand_prologue): Emit individual instructions
779 instead of one of the above.
780
781 2011-06-24 Easwaran Raman <eraman@google.com>
782
783 PR rtl-optimization/49429
784 PR target/49454
785 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
786 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
787 used to copy y into x.
788 * calls.c (initialize_argument_information): Mark
789 an argument addressable if it is passed by invisible reference.
790 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
791 if it is passed by reference.
792
793 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
794
795 PR rtl-optimization/49504
796 * rtlanal.c (nonzero_bits1): Properly handle addition or
797 subtraction of a pointer in Pmode if pointers extend unsigned.
798 (num_sign_bit_copies1): Likewise.
799
800 2011-06-24 Martin Jambor <mjambor@suse.cz>
801
802 PR tree-optimizations/49516
803 * tree-sra.c (sra_modify_assign): Choose the safe path for
804 aggregate copies if we also did scalar replacements.
805
806 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
807
808 PR target/49335
809 * config/arm/predicates.md (add_operator): New.
810 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
811
812 2011-06-24 Andi Kleen <ak@linux.intel.com>
813
814 * tree-sra.c (type_internals_preclude_sra_p): Add msg
815 parameter. Split up ifs and report reason in *msg.
816 (reject): Add.
817 (find_var_candiate): Add msg variable.
818 Split up ifs and report reason to reject.
819 (find_param_candidates): Add msg variable.
820 Pass msg to type_internals_preclude_sra_p.
821
822 2011-06-23 Jeff Law <law@redhat.com>
823
824 PR middle-end/48770
825 * reload.h (reload): Change to return a bool.
826 * ira.c (ira): If requested by reload, run a fast DCE pass after
827 reload has completed. Fix comment typo.
828 * reload1.c (need_dce): New file scoped static.
829 (reload): Set reload_completed here. Return whether or not a DCE
830 pass after reload is needed.
831 (delete_dead_insn): Set need_dce as needed.
832
833 PR middle-end/49465
834 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
835 to detect threading through joiner block. If there was already
836 an edge to the new target, then do not change the PHI nodes.
837
838 2011-06-23 Jakub Jelinek <jakub@redhat.com>
839
840 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
841 get_pointer_alignment to see if base isn't sufficiently aligned.
842
843 2011-06-23 Jan Hubicka <jh@suse.cz>
844
845 PR tree-optimize/49373
846 * tree-pass.h (all_late_ipa_passes): Declare.
847 * cgraphunit.c (init_lowered_empty_function): Fix properties.
848 (cgraph_optimize): Execute late passes; remove unreachable funcions
849 after materialization.
850 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
851 LTOing.
852 * passes.c (all_late_ipa_passes): Declare.
853 (dump_passes, register_pass): Handle late ipa passes.
854 (init_optimization_passes): Move ipa_pta to late passes; schedule
855 fixup_cfg at beggining of all_passes.
856 (apply_ipa_transforms): New function.
857 (execute_one_pass): When doing simple ipa pass, apply all transforms.
858
859 2011-06-23 Joseph Myers <joseph@codesourcery.com>
860
861 * params.c: Include common/common-target.h. Don't include tm.h.
862 (lang_independent_params): Move from toplev.c.
863 (global_init_params): New.
864 * params.h (global_init_params): Declare.
865 * target.def (default_params): Move to common-target.def.
866 * toplev.c (lang_independent_options): Remove.
867 (lang_independent_params): Move to params.c.
868 (general_init): Use global_init_params.
869 * common/common-target.def (option_default_params): Move from
870 target.def.
871 * common/config/ia64/ia64-common.c: Include params.h.
872 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
873 from ia64.c.
874 * common/config/rs6000/rs6000-common.c: Include params.h.
875 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
876 from rs6000.c.
877 * common/config/sh/sh-common.c: Include params.h.
878 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
879 from sh.c.
880 * common/config/spu/spu-common.c: Include params.h.
881 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
882 from spu.c.
883 * config/ia64/ia64.c (ia64_option_default_params,
884 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
885 * config/rs6000/rs6000.c (rs6000_option_default_params,
886 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
887 * config/sh/sh.c (sh_option_default_params,
888 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
889 * config/spu/spu.c (spu_option_default_params,
890 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
891 * Makefile.in (OBJS): Remove params.o.
892 (OBJS-libcommon-target): Add params.o.
893 (params.o, $(common_out_object_file)): Update dependencies.
894 * doc/tm.texi: Regenerate.
895
896 2011-06-23 Alan Modra <amodra@gmail.com>
897
898 PR bootstrap/49383
899 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
900 invocation for 2011-06-09 changes.
901
902 2011-06-22 Jakub Jelinek <jakub@redhat.com>
903
904 PR libgomp/49490
905 * omp-low.c (expand_omp_for_static_nochunk): Only
906 use n ceil/ nthreads size for the first n % nthreads threads in the
907 team instead of all threads except for the last few ones which
908 get less work or none at all.
909
910 PR debug/49496
911 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
912 uses.
913
914 2011-06-22 Richard Guenther <rguenther@suse.de>
915
916 PR tree-optimization/49493
917 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
918 Refer to the alias target of variables.
919 (associate_varinfo_to_alias_1): Remove.
920 (ipa_pta_execute): Do not associate aliases with anything.
921 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
922 (cgraph_function_node): Likewise.
923 (cgraph_function_or_thunk_node): Likewise.
924 (varpool_variable_node): Likewise.
925
926 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
927
928 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
929 * config.gcc (arm*-*-linux*): Default to gnu tls.
930 (arm*-*-*): Add --with-tls option.
931 (all_defaults): Add 'tls'.
932
933 2011-06-22 Richard Henderson <rth@redhat.com>
934
935 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
936 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
937 (dwarf2out_frame_debug_cfa_window_save): Rename from
938 dwarf2out_window_save; make static.
939 * tree.h (dwarf2out_window_save): Don't declare.
940
941 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
942 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
943 (emit_save_register_window): Rename from gen_save_register_window;
944 emit the insn and add REG_CFA_* notes.
945 (sparc_expand_prologue): Update to match.
946 * config/sparc/sparc.md (save_register_window_1): Simplify from
947 save_register_window<P:mode>.
948
949 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
950
951 PR target/49497
952 * config/i386/i386.md (*lea_general_2): Always allow SImode.
953 (*lea_general_2_zext): Likewise.
954 (imul to lea peepholes): Use const359_operand and check
955 TARGET_PARTIAL_REG_STALL.
956
957 * config/i386/predicates.md (const359_operand): New.
958
959 2011-06-22 Michael Matz <matz@suse.de>
960
961 * cgraphunit.c (assemble_thunk): Use correct return type.
962
963 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
964 Dmitry Melnik <dm@ispras.ru>
965
966 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
967 (neon_output_shift_immediate): Ditto.
968 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
969 prototype.
970 (neon_output_shift_immediate): Ditto.
971 * config/arm/neon.md (vashl<mode>3): Modified constraint.
972 (vashr<mode>3_imm): New insn pattern.
973 (vlshr<mode>3_imm): Ditto.
974 (vashr<mode>3): Modified constraint.
975 (vlshr<mode>3): Ditto.
976 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
977 predicate.
978 (imm_for_neon_rshift_operand): Ditto.
979 (imm_lshift_or_reg_neon): Ditto.
980 (imm_rshift_or_reg_neon): Ditto.
981
982 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
983
984 2011-06-22 Jakub Jelinek <jakub@redhat.com>
985
986 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
987 builtin calls even if likelyvalue is not CONSTANT.
988 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
989 Return get_value_for_expr of first operand
990 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
991 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
992 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
993 their non-checking counterparts.
994 (call_may_clobber_ref_p_1): Likewise.
995 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
996 like their non-checking counterparts.
997 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
998 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
999 like their non-checking counterparts.
1000 (find_func_clobbers): Likewise.
1001 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1002 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1003
1004 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1005 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1006 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1007 of base type reference as argument.
1008 (resolve_addr_in_expr): Likewise. Fix keep computation.
1009 (convert_descriptor_to_signed): Renamed to...
1010 (convert_descriptor_to_mode): ... this. For wider types convert to
1011 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1012 (typed_binop): New function.
1013 (scompare_loc_descriptor, ucompare_loc_descriptor,
1014 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1015 default to unsigned type instead of signed.
1016
1017 PR debug/47858
1018 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1019 (gimple_build_debug_source_bind_stat): New prototype.
1020 (gimple_build_debug_source_bind): Define.
1021 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1022 gimple_debug_source_bind_get_value,
1023 gimple_debug_source_bind_get_value_ptr,
1024 gimple_debug_source_bind_set_var,
1025 gimple_debug_source_bind_set_value): New inlines.
1026 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1027 * gimple-pretty-print.c (dump_gimple_debug): Handle
1028 GIMPLE_DEBUG_SOURCE_BIND.
1029 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1030 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1031 * tree-parloops.c (eliminate_local_variables,
1032 separate_decls_in_region): Likewise.
1033 (separate_decls_in_region_debug): Renamed from
1034 separate_decls_in_region_debug_bind. Handle
1035 gimple_debug_source_bind_p.
1036 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1037 prototypes.
1038 (DECL_HAS_DEBUG_ARGS_P): Define.
1039 (struct tree_function_decl): Add has_debug_args_flag field.
1040 * tree.c (debug_args_for_decl): New variable.
1041 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1042 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1043 (rewrite_debug_stmt_uses): New function.
1044 (rewrite_stmt): Use it to rewrite debug stmt uses.
1045 * rtl.def (DEBUG_PARAMETER_REF): New.
1046 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1047 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1048 DEBUG_PARAMETER_REF.
1049 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1050 * print-rtl.c (print_rtx): Likewise.
1051 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1052 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1053 debug stmts in the first bb.
1054 * tree-inline.c (remap_ssa_name): If remapping default def
1055 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1056 a source bind debug stmt.
1057 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1058 (maybe_move_debug_stmts_to_successors): Likewise.
1059 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1060 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1061 debug args vector from old_decl to new_decl.
1062 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1063 or modified parameters, add debug bind stmts before call
1064 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1065 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1066 on DECL_DEBUG_EXPRs from debug args vector.
1067 (expand_debug_source_expr): New function.
1068 (expand_debug_locations): Use it for source bind insns.
1069 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1070 * var-tracking.c (prepare_call_arguments): Add debug args
1071 to call_arguments if any.
1072 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1073 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1074 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1075 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1076 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1077 (gen_subprogram_die): Handle parameters identified by
1078 DEBUG_PARAMETER_REF.
1079
1080 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1081
1082 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1083 * doc/install.texi (Configuration): Document --with-tls.
1084 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1085 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1086 (arm_tls_descseq_addr): New.
1087 (legitimize_tls_address): Add tlsdesc support.
1088 (arm_cannot_copy_insn_p): Check for tlscall.
1089 (arm_emit_tls_decoration): Likewise.
1090 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1091 (OPTION_DEFAULT_SPECS): Add with-tls support.
1092 * config/arm/arm.md (R1_REGNUM): Define.
1093 (tlscall): New.
1094 * config/arm/arm.opt (tls_type): New enumeration type and values.
1095 (mtls-dialect): New switch.
1096 * config/arm/arm-opts.h (enum tls_type): New.
1097
1098 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1099
1100 * attribs.c (register_attribute): Added assert to check that all
1101 attribute specs are registered with a name that is not empty and
1102 does not start with '_'.
1103 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1104 if the function has no attributes.
1105 * tree.c (is_attribute_with_length_p): Removed.
1106 (is_attribute_p): Removed.
1107 (private_is_attribute_p): New.
1108 (private_lookup_attribute): New.
1109 (lookup_attribute): Removed.
1110 (lookup_ident_attribute): New.
1111 (remove_attribute): Require the first argument to be in the form
1112 'text', not '__text__'. Updated asserts.
1113 (merge_attributes): Use lookup_ident_attributes instead of
1114 lookup_attribute.
1115 (merge_dllimport_decl_attributes): Use remove_attribute.
1116 (attribute_list_contained): Likewise.
1117 (attribute_list_equal): Immediately return 1 if the arguments are
1118 identical pointers.
1119 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1120 'int'. Require the first argument to be in the form 'text', not
1121 '__text__'. Require the second argument to be an identifier.
1122 (lookup_attribute): Made inline. Require the first argument to be
1123 in the form 'text', not '__text__'.
1124 (private_is_attribute_p, private_lookup_attribute): New.
1125 Updated comments.
1126
1127 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1128
1129 * builtins.c: Add sync_ or SYNC__ to builtin names.
1130 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1131 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1132
1133 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1134
1135 PR target/33049
1136 * config/avr/avr.md (extzv): New expander.
1137 (*extzv): New insn.
1138 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1139 * config/avr/constraints.md (C04): New constraint.
1140 * doc/md.texi (Machine Constraints): Document it.
1141
1142 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1143
1144 PR middle-end/49489
1145 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1146 unsignedp argument instead of 1 for clrsb_optab.
1147 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1148 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1149 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1150 * optabs.c (widen_leading): Call widen_operand and expand_unop
1151 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1152 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1153
1154 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1155
1156 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1157
1158 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1159
1160 * gensupport.c (add_define_attr): New static function.
1161 (is_predicable): Allow multi-alternative lists for the "predicable"
1162 attribute.
1163 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1164 (process_one_cond_exec): Call alter_attrs_for_insn.
1165 * doc/md.texi (Defining Attributes): Mention some standard names.
1166 (Conditional Execution): Update documentation for "predicable".
1167
1168 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1169 __builtin_clrsbll): Document.
1170 * doc/rtl.texi (clrsb): New entry.
1171 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1172 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1173 (expand_unop): Handle clrsb_optab.
1174 (init_optabs): Initialize it.
1175 * optabs.h (enum optab_index): New entry OTI_clrsb.
1176 (clrsb_optab): Define.
1177 * genopinit.c (optabs): Add an entry for it.
1178 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1179 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1180 BUILT_IN_CLRSBLL): New.
1181 * rtl.def (CLRSB): New code.
1182 * dwarf2out.c (mem_loc_descriptor): Handle it.
1183 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1184 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1185 and popcount.
1186 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1187 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1188 (__ctzDI2): Move declaration.
1189 * config/bfin/bfin.md (clrsbsi2): New expander.
1190 (signbitssi2): Use the CLRSB rtx.
1191 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1192 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1193
1194 2011-06-21 Richard Guenther <rguenther@suse.de>
1195
1196 * ipa-inline-transform.c (inline_transform): Fix previous change.
1197
1198 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1199
1200 PR tree-optimization/49478
1201 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1202 with constant operand.
1203
1204 2011-06-21 Richard Guenther <rguenther@suse.de>
1205
1206 * ipa-inline-transform.c (inline_transform): Fix typo.
1207
1208 2011-06-21 Richard Guenther <rguenther@suse.de>
1209
1210 PR tree-optimization/49483
1211 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1212 VIEW_CONVERT_EXPR conversions.
1213
1214 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1215
1216 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1217 * config/avr/avr-tables.opt: New file (generated).
1218 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1219 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1220 avr-mcus.def.
1221 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1222 (avr_option_override): Don't process -mmcu= argument here. Set
1223 avr_current_device using avr_mcu_index.
1224 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1225 * config/avr/avr.opt (mmcu=): Use Enum.
1226 * config/avr/t-avr (avr-devices.o): Update dependencies.
1227 ($(srcdir)/config/avr/avr-tables.opt): New.
1228 * target.def (help): Remove.
1229 * doc/tm.texi.in (TARGET_HELP): Remove.
1230 * doc/tm.texi: Regenerate.
1231 * opts.c: Don't include target.h.
1232 (common_handle_option): Don't call targetm.help.
1233 * system.h (TARGET_HELP): Poison.
1234 * Makefile.in (opts.o): Update dependencies.
1235
1236 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237
1238 * config/usegld.h: New file.
1239 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1240 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1241 (LIB_SPEC): Likewise. Search /lib.
1242 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1243 (RDYNAMIC_SPEC): Handle GNU ld.
1244 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1245 Define.
1246 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1247 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1248 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1249 (STACK_CHECK_STATIC_BUILTIN): Define.
1250 * config/sol2.opt (compat-bsd): Remove.
1251 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1252 * config/sol2-bi.h: New file.
1253 * config/sol2-gld.h: Remove.
1254 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1255 (NO_DBX_BNSYM_ENSYM): Remove.
1256 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1257 (STACK_CHECK_STATIC_BUILTIN): Remove.
1258 Test USE_GLD instead of TARGET_GNU_LD.
1259 * config/i386/sol2-10.h: Rename to ...
1260 * config/i386/sol2-bi.h .. this.
1261 (SUBTARGET_EXTRA_SPECS): Redefine.
1262 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1263 (MULTILIB_DEFAULTS): Remove.
1264 (DEFAULT_ARCH32_P): Define.
1265 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1266 (ARCH64_SUBDIR): Define.
1267 Test USE_GLD instead of TARGET_GNU_LD.
1268 (I386_EMULATION): Rename to ...
1269 (ARCH32_EMULATION): ... this.
1270 (X86_64_EMULATION): Rename to ...
1271 (ARCH64_EMULATION): ... this.
1272 (TARGET_LD_EMULATION): Remove.
1273 (LINK_ARCH_SPEC): Remove.
1274 * config/i386/sol2-gas.h: Remove.
1275 * config/i386/t-sol2-10: Rename to ...
1276 * config/i386/t-sol2-64: ... this.
1277 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1278 (AS_SPARC64_FLAG): Define.
1279 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1280 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1281 depending on TARGET_CPU_DEFAULT.
1282 (CPP_CPU_SPEC): Redefine.
1283 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1284 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1285 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1286 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1287 ASM_ARCH_DEFAULT_SPEC): Redefine.
1288 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1289 LINK_ARCH_DEFAULT_SPEC.
1290 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1291 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1292 (ARCH64_SUBDIR): Define.
1293 (LINK_ARCH64_SPEC): Redefine.
1294 (CC1_SPEC): Redefine.
1295 (OPTION_DEFAULT_SPECS): Redefine.
1296 (MULTILIB_DEFAULTS): Define.
1297 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1298 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1299 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1300 (NO_DBX_BNSYM_ENSYM): Remove.
1301 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1302 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1303 (TARGET_ASM_NAMED_SECTION): Likewise.
1304 (STACK_CHECK_STATIC_BUILTIN): Remove.
1305 * config/sparc/sol2-bi.h: Remove.
1306 * config/sparc/sol2-gas-bi.h: Remove.
1307 * config/sparc/sol2-gas.h: Remove.
1308 * config/sparc/sol2-gld-bi.h: Remove.
1309 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1310 common parts ...
1311 (*-*-solaris2*): ... here.
1312
1313 2011-06-21 Christian Bruel <christian.bruel@st.com>
1314
1315 PR other/43564
1316 * ipa-inline.c (can_inline_edge_p): Check
1317 !DECL_DISREGARD_INLINE_LIMITS.
1318
1319 2011-06-21 Christian Bruel <christian.bruel@st.com>
1320
1321 PR middle-end/49139
1322 * cgraphunit.c (process_function_and_variable_attributes): warn when
1323 always_inline functions that are not inline.
1324 * ipa-inline-transform.c (inline_transform): Always call
1325 optimize_inline.
1326 * tree-inline.c (tree_inlinable_function_p): Use error instead
1327 of sorry.
1328 (expand_call_inline): Likewise.
1329
1330 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1331
1332 * Makefile.in (dg_target_exps): Set.
1333 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1334 instead of 7, try to divide it more evenly.
1335
1336 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1337
1338 PR target/49089
1339 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1340 (avx256_split_unaligned_store): New definition.
1341 (ix86_option_override_internal): Enable avx256 unaligned load/store
1342 splitting only when avx256_split_unaligned_load/store is set.
1343
1344 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1345
1346 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1347 open chain in a smaller mode without failing the entire block.
1348
1349 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1350
1351 PR middle-end/47725
1352 * combine.c (cant_combine_insn_p): Don't check zero/sign
1353 extended hard registers.
1354
1355 2011-06-21 Alan Modra <amodra@gmail.com>
1356
1357 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1358 CONST high part large-toc address.
1359 (rs6000_tls_referenced_p): Make static.
1360 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1361
1362 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1363
1364 PR middle-end/47725
1365 * combine.c (cant_combine_insn_p): Check zero/sign extended
1366 hard registers.
1367
1368 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1369
1370 PR target/49385
1371 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1372 one of the operands is a register.
1373
1374 2011-06-20 Kai Tietz <ktietz@redhat.com>
1375
1376 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1377 operations in combination with binary and.
1378
1379 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1380
1381 * regrename.c (do_replace): Don't update notes.
1382
1383 2011-06-20 Alan Modra <amodra@gmail.com>
1384
1385 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1386 of toc-relative address in CONST.
1387 (rs6000_delegitimize_address): Recognize changed address.
1388 (rs6000_legitimize_reload_address): Likewise.
1389 (rs6000_emit_move): Don't force these constants to memory.
1390 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1391 toc-relative address in CONST.
1392 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1393 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1394
1395 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1398 (count_trailing_zeros): Likewise.
1399
1400 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1401
1402 PR other/49325
1403 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1404 .init_array can be used with .ctors on targets.
1405 * configure: Regenerated.
1406
1407 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1408
1409 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1410 if the element type is volatile.
1411
1412 2011-06-18 Jan Hubicka <jh@suse.cz>
1413
1414 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1415 extra name aliases.
1416 (lto_symtab_resolve_can_prevail_p): Likewise.
1417 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1418 * cgraphbuild.c (record_reference): Remove extra body alias code.
1419 (mark_load): Likewise.
1420 (mark_store): Likewise.
1421 * cgraph.h (varpool_node): Remove extra_name filed;
1422 add alias_of and extraname_alias.
1423 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1424 (varpool_alias_aliased_node): New inline function.
1425 (varpool_variable_node): New function.
1426 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1427 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1428 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1429 (input_varpool_node): Likewise.
1430 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1431 (varpool_externally_visible_p): Remove extra body alias code.
1432 (function_and_variable_visibility): Likewise.
1433 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1434 (ipa_pta_execute): Use it.
1435 * varpool.c (varpool_remove_node): Remove extra name alias code.
1436 (varpool_mark_needed_node): Likewise.
1437 (varpool_analyze_pending_decls): Analyze aliases.
1438 (assemble_aliases): New functoin.
1439 (varpool_assemble_decl): Use it.
1440 (varpool_create_variable_alias): New function.
1441 (varpool_extra_name_alias): Rewrite.
1442 (varpool_for_node_and_aliases): New function.
1443
1444 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1445
1446 PR target/49411
1447 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1448 last_arg_constant and last argument doesn't match its predicate,
1449 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1450 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1451 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1452 spelling of error message.
1453 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1454 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1455 const_0_to_255_operand instead of const_int_operand.
1456
1457 Revert:
1458 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1459
1460 * config/i386/sse.md (blendbits): Remove mode attribute.
1461 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1462 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1463 Check integer value of operand 3 in insn constraint.
1464
1465 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1466
1467 PR rtl-optimization/48542
1468 * reload.c (find_equiv_reg): Stop looking when finding a
1469 setjmp-type call.
1470 * reload1.c (reload_as_needed): Invalidate all reload
1471 registers when crossing a setjmp-type call.
1472
1473 2011-06-16 Jeff Law <law@redhat.com>
1474
1475 * tree-ssa-threadupdate.c (struct redirection_data): New field
1476 intermediate_edge.
1477 (THREAD_TARGET2): Define.
1478 (redirection_data_eq): Also check that the intermediate edge is equal.
1479 (lookup_redirection_data): Drop useless argument. Extract the
1480 outgoing_edge and intermediate edge from E. Callers updated.
1481 (copy_phi_args, update_destination_phis): New functions.
1482 (fix_duplicate_block_edges): Likewise.
1483 (create_edge_and_update_destination_phis): Duplicate all the edges
1484 hung off e->aux. Use copy_phi_args.
1485 (create_duplicates): Use fix_duplicate_block_edges.
1486 (fixup_template_block): Likewise.
1487 (redirect_edges): If necessary, redirect the joiner block's incoming
1488 edge to the duplicate of the joiner block.
1489 (thread_block): Don't muck up loops when threading through a joiner
1490 block.
1491 (thread_through_loop_header): Handle threading through a joiner block.
1492 (mark_threaded_blocks, register_jump_thread): Likewise.
1493 * tree-flow.h (register_jump_thread): Add new argument. Callers
1494 updated.
1495 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1496 (thread_across_edge): Handle threading through a joiner block.
1497
1498 2011-06-16 Martin Jambor <mjambor@suse.cz>
1499
1500 PR tree-optimization/49343
1501 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1502 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1503
1504 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1505
1506 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1507 inside RTX_CODE ifdef.
1508
1509 2011-06-16 Tom de Vries <tom@codesourcery.com>
1510
1511 PR target/45098
1512 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1513 Disallow NULL pointer for pointer arithmetic.
1514
1515 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1516
1517 PR target/49398
1518 Revert.
1519 2011-06-10 Wei Guozhi <carrot@google.com>
1520
1521 PR target/45335
1522 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1523 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1524 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1525 related peephole2.
1526 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1527 related peephole2.
1528 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1529 (arm_legitimate_ldrd_p): New prototype.
1530 (arm_output_ldrd): New prototype.
1531 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1532 (arm_legitimate_ldrd_p): New function.
1533 (arm_output_ldrd): New function.
1534
1535 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1536
1537 PR middle-end/46500
1538 * doc/tm.texi.in: Update Copyright date.
1539 * doc/tm.texi: Regenerate.
1540 * targhooks.c (default_setup_incoming_varargs): Replace
1541 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1542 (default_pretend_outgoing_varargs_named): Likewise.
1543 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1544 (hook_callee_copies_named): Likewise.
1545 (default_function_arg_advance): Likewise.
1546 (default_function_arg): Likewise.
1547 (default_function_incoming_arg): Likewise.
1548 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1549 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1550 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1551 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1552 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1553 * targhooks.h (default_setup_incoming_varargs): Likewise.
1554 (default_pretend_outgoing_varargs_named): Likewise.
1555 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1556 (hook_callee_copies_named): Likewise.
1557 (default_function_arg_advance): Likewise.
1558 (default_function_arg): Likewise.
1559 (default_function_incoming_arg): Likewise.
1560 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1561 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1562 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1563 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1564 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1565 * target.def (pass_by_reference): Likewise.
1566 (setup_incoming_varargs, strict_argument_naming): Likewise.
1567 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1568 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1569 (function_incoming_arg): Likewise.
1570 * target.h: Don't include "tm.h" .
1571 (cumulative_args_t): New typedef.
1572 [GCC_TM_H] (get_cumulative_args): New static inline function.
1573 [GCC_TM_H] (pack_cumulative_args): Likewise.
1574 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1575 argument type with cumulative_args_t.
1576 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1577 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1578 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1579 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1580 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1581 (frv_function_arg_1): Likewise.
1582 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1583 (s390_function_arg_advance, s390_function_arg): Likewise.
1584 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1585 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1586 (m32c_strict_argument_naming): Likewise.
1587 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1588 (spu_function_arg_advance): Likewise.
1589 (spu_setup_incoming_varargs): Likewise. Make static.
1590 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1591 Remove prototype.
1592 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1593 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1594 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1595 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1596 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1597 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1598 (mep_pass_by_reference, mep_function_arg): Likewise.
1599 (mep_function_arg_advance): Likewise.
1600 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1601 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1602 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1603 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1604 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1605 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1606 (ix86_setup_incoming_varargs): Likewise.
1607 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1608 (sh_strict_argument_naming): Likewise.
1609 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1610 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1611 (sh_function_arg_advance, sh_function_arg): Likewise.
1612 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1613 (pdp11_function_arg_advance): Likewise.
1614 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1615 Likewise.
1616 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1617 * config/avr/avr.c (avr_function_arg): Likewise.
1618 (avr_function_arg_advance): Likewise.
1619 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1620 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1621 (xtensa_function_arg_1): Likewise.
1622 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1623 Likewise.
1624 (xstormy16_function_arg): Likewise.
1625 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1626 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1627 (fr30_function_arg_advance): Likewise.
1628 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1629 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1630 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1631 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1632 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1633 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1634 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1635 (cris_function_arg, cris_function_incoming_arg): Likewise.
1636 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1637 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1638 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1639 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1640 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1641 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1642 (mn10300_arg_partial_bytes): Likewise.
1643 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1644 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1645 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1646 (ia64_function_arg_1): Likewise.
1647 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1648 (m68k_function_arg): Likewise.
1649 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1650 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1651 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1652 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1653 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1654 (picochip_arg_advance): Likewise.
1655 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1656 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1657 (mcore_function_arg_advance): Likewise.
1658 * config/score/score.c (score_pass_by_reference): Likewise.
1659 (score_function_arg_advance): Likewise.
1660 (score_arg_partial_bytes): Likewise. Make static.
1661 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1662 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1663 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1664 (arm_function_arg, arm_function_arg_advance): Likewise.
1665 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1666 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1667 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1668 (pa_function_arg): Likewise.
1669 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1670 (mips_function_arg, mips_function_arg_advance): Likewise.
1671 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1672 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1673 * config/vax/vax.c (vax_function_arg): Likewise.
1674 (vax_function_arg_advance): Likewise.
1675 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1676 (h8300_function_arg_advance): Likewise.
1677 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1678 (v850_strict_argument_naming, v850_function_arg): Likewise.
1679 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1680 (v850_setup_incoming_varargs): Likewise.
1681 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1682 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1683 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1684 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1685 with const void *.
1686 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1687 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1688 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1689 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1690 * calls.c (emit_call_1): Change type of args_so_far to
1691 cumulative_args_t. Changed all callers.
1692 (initialize_argument_information): Likewise.
1693 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1694 * dse.c (get_call_args): Likewise.
1695 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1696 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1697 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1698 New member args_so_far_v. Changed all users.
1699 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1700 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1701 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1702 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1703 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1704 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1705 Likewise.
1706 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1707 m32r_pass_by_reference.
1708
1709 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1710
1711 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1712 argument to be a VEC of statements.
1713 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1714 assert that pattern statements have to have their vector type set.
1715 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1716 Change the first argument to be a VEC of statements. Update
1717 documentation.
1718 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1719 (vect_handle_widen_mult_by_const): New function.
1720 (vect_recog_widen_mult_pattern): Change the first argument to be a
1721 VEC of statements. Update documentation. Check that the constant is
1722 INTEGER_CST. Support multiplication by a constant that fits an
1723 intermediate type - call vect_handle_widen_mult_by_const.
1724 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1725 call. Handle additional pattern statements if necessary.
1726
1727 2011-06-16 Nick Clifton <nickc@redhat.com>
1728
1729 PR target/49427
1730 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1731 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1732 md_file, extra_modes, out_file and extra_options are these are all
1733 deduced from cpu_type.
1734
1735 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1736
1737 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1738 truncation mask to 63.
1739
1740 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1741
1742 PR target/49313
1743 PR target/29524
1744 * longlong.h: Add AVR support:
1745 (count_leading_zeros): New macro.
1746 (count_trailing_zeros): New macro.
1747 (COUNT_LEADING_ZEROS_0): New macro.
1748 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1749 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1750 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1751 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1752 (LIB2FUNCS_EXCLUDE): Add _clz.
1753 * config/avr/libgcc.S (XCALL): Move up in file.
1754 (XJMP): New C Macro.
1755 (DEFUN): New asm macro.
1756 (ENDF): New asm macro.
1757 (__ffssi2): New function.
1758 (__ffshi2): New function.
1759 (__loop_ffsqi2): New function.
1760 (__ctzsi2): New function.
1761 (__ctzhi2): New function.
1762 (__clzdi2): New function.
1763 (__clzsi2): New function.
1764 (__clzhi2): New function.
1765 (__paritydi2): New function.
1766 (__paritysi2): New function.
1767 (__parityhi2): New function.
1768 (__parityqi2): New function.
1769 (__popcounthi2): New function.
1770 (__popcountsi2): New function.
1771 (__popcountdi2): New function.
1772 (__popcountqi2): New function.
1773 (__bswapsi2): New function.
1774 (__bswapdi2): New function.
1775 (__ashldi3): New function.
1776 (__ashrdi3): New function.
1777 (__lshrdi3): New function.
1778 Fix suspicous lines.
1779
1780 2011-06-16 Richard Guenther <rguenther@suse.de>
1781
1782 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1783 the same as x != 0.
1784 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1785 to (bool) X & 1.
1786 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1787 equality compares against zero for the lower bit.
1788
1789 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1790
1791 PR tree-optimization/49419
1792 * tree-vrp.c (execute_vrp): Call init_range_assertions
1793 before estimate_numbers_of_iterations, call
1794 free_number_of_iterations_estimates before calling
1795 remove_range_assertions.
1796
1797 2011-06-16 Revital Eres <revital.eres@linaro.org>
1798
1799 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1800 (struct partial_schedule): Add rows_length field.
1801 (verify_partial_schedule): Check rows_length.
1802 (ps_insert_empty_row): Handle rows_length.
1803 (create_partial_schedule): Likewise.
1804 (free_partial_schedule): Likewise.
1805 (reset_partial_schedule): Likewise.
1806 (create_ps_insn): Remove rest_count argument.
1807 (remove_node_from_ps): Update rows_length.
1808 (add_node_to_ps): Update rows_length and call create_ps_insn
1809 without passing row_rest_count.
1810 (rotate_partial_schedule): Update rows_length.
1811
1812 2011-06-16 Revital Eres <revital.eres@linaro.org>
1813
1814 * ddg.c (add_intra_loop_mem_dep): New function.
1815 (build_intra_loop_deps): Call it.
1816
1817 2011-06-13 Jeff Law <law@redhat.com>
1818
1819 * df-problems.c (df_lr_local_compute): Manually CSE
1820 PIC_OFFSET_TABLE_REGNUM.
1821 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1822 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1823
1824 2011-06-13 Jan Hubicka <jh@suse.cz>
1825
1826 * cgraphunit.c (handle_alias_pairs): New function.
1827 (cgraph_finalize_compilation_unit): Use it.
1828 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1829 as externally visible.
1830
1831 2011-06-15 Richard Guenther <rguenther@suse.de>
1832
1833 * expr.c (expand_expr_real_2): Reduce all integral types to
1834 bitfield precision.
1835 (expand_expr_real_1): Likewise.
1836
1837 2011-06-15 Martin Jambor <mjambor@suse.cz>
1838
1839 PR tree-optimization/48613
1840 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1841 ipa_node_params_vector is NULL.
1842
1843 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR debug/49382
1846 * dwarf2out.c (dw_loc_list_node): Add force field.
1847 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1848 location in the list, even if it is modified before first real insn.
1849 (output_loc_list): Emit empty ranges with force flag set.
1850 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1851
1852 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1853
1854 PR target/49349
1855 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1856 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1857 above a fence. Update comments.
1858 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1859 placed just above it. Do not allow NULL place_to_insert.
1860
1861 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1862
1863 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1864 (slpeel_tree_peel_loop_to_edge): Don't call
1865 remove_dead_stmts_from_loop.
1866 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1867 remove irrelevant pattern statements. For irrelevant statements
1868 check if it is the last statement of a detected pattern, use
1869 corresponding pattern statement instead.
1870 (destroy_loop_vec_info): No need to remove pattern statements,
1871 only free stmt_vec_info.
1872 (vect_transform_loop): For irrelevant statements check if it is
1873 the last statement of a detected pattern, use corresponding
1874 pattern statement instead.
1875 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1876 pattern statements. Set basic block for the new statement.
1877 (vect_pattern_recog): Update documentation.
1878 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1879 operands of pattern statements.
1880 (vectorizable_call): Fix printing. In case of a pattern statement
1881 use the lhs of the original statement when creating a dummy
1882 statement to replace the original call.
1883 (vect_analyze_stmt): For irrelevant statements check if it is
1884 the last statement of a detected pattern, use corresponding
1885 pattern statement instead.
1886 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1887 statements use gsi of the original statement.
1888
1889 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1890
1891 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1892 common/common-target-def.h.
1893 * target.def (default_target_flags, handle_option,
1894 supports_split_stack, optimization_table, init_struct,
1895 except_unwind_info, unwind_tables_default, have_named_sections):
1896 Move to common/common-target.def.
1897 * target.h (enum opt_levels, struct default_options): Move to
1898 common/common-target.h.
1899 * targhooks.c (default_except_unwind_info,
1900 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1901 default_target_handle_option, empty_optimization_table): Move to
1902 common/common-targhooks.c.
1903 * targhooks.h (default_except_unwind_info,
1904 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1905 default_target_handle_option, empty_optimization_table): Move to
1906 common/common-targhooks.h.
1907 * common/common-target-def.h: Include common/common-targhooks.h.
1908 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1909 defined.
1910 * common/common-target.def (handle_option, option_init_struct,
1911 option_optimization_table, default_target_flags,
1912 except_unwind_info, supports_split_stack, unwind_tables_default,
1913 have_named_sections): Move from target.def.
1914 (HOOK_PREFIX): Undefine at end of file.
1915 * common/common-target.h: Include input.h.
1916 (enum opt_levels, struct default_options): Move from target.h.
1917 * common/common-targhooks.c, common/common-targhooks.h: New.
1918 * config.gcc (target_has_targetm_common): Default to yes.
1919 (moxie*): Set target_has_targetm_common=no.
1920 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1921 * doc/tm.texi: Regenerate.
1922 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1923 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1924 (GCC_OBJS): Remove vec.o.
1925 (OBJS): Remove hooks.o and vec.o.
1926 (OBJS-libcommon-target): Add vec.o, hooks.o and
1927 common/common-targhooks.o.
1928 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1929 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1930 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1931 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1932 Update dependencies.
1933 (common/common-targhooks.o): New.
1934 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1935 * common/config/pa/pa-common.c: Include more headers. Take
1936 copyright dates from pa.c.
1937 (pa_option_optimization_table, pa_handle_option,
1938 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1939 TARGET_HANDLE_OPTION): Move from pa.c.
1940 * common/config/alpha/alpha-common.c,
1941 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1942 common/config/bfin/bfin-common.c,
1943 common/config/cris/cris-common.c,
1944 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1945 common/config/h8300/h8300-common.c,
1946 common/config/i386/i386-common.c,
1947 common/config/ia64/ia64-common.c,
1948 common/config/iq2000/iq2000-common.c,
1949 common/config/lm32/lm32-common.c,
1950 common/config/m32c/m32c-common.c,
1951 common/config/m32r/m32r-common.c,
1952 common/config/m68k/m68k-common.c,
1953 common/config/mcore/mcore-common.c,
1954 common/config/mep/mep-common.c,
1955 common/config/microblaze/microblaze-common.c,
1956 common/config/mips/mips-common.c,
1957 common/config/mmix/mmix-common.c,
1958 common/config/mn10300/mn10300-common.c,
1959 common/config/pdp11/pdp11-common.c,
1960 common/config/picochip/picochip-common.c,
1961 common/config/rs6000/rs6000-common.c,
1962 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1963 common/config/score/score-common.c, common/config/sh/sh-common.c,
1964 common/config/sparc/sparc-common.c,
1965 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1966 common/config/vax/vax-common.c,
1967 common/config/xstormy16/xstormy16-common.c,
1968 common/config/xtensa/xtensa-common.c: New.
1969 * config/alpha/alpha.c: Include common/common-target.h.
1970 (alpha_option_optimization_table, alpha_handle_option,
1971 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1972 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1973 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1974 * config/arm/arm.c (arm_option_optimization_table,
1975 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1976 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1977 arm-common.c.
1978 * config/avr/avr.c (avr_option_optimization_table,
1979 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1980 to avr-common.c.
1981 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1982 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1983 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1984 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1985 * config/cris/cris.c (cris_option_optimization_table,
1986 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1987 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1988 cris-common.c.
1989 * config/fr30/fr30.c (fr30_option_optimization_table,
1990 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1991 to fr30-common.c.
1992 * config/frv/frv.c (frv_option_optimization_table,
1993 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1994 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1995 * config/h8300/h8300.c (h8300_option_optimization_table,
1996 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1997 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1998 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1999 * config/i386/i386.c: Include common/common-target.h.
2000 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2001 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2002 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2003 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2004 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2005 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2006 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2007 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2008 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2009 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2010 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2011 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2012 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2013 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2014 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2015 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2016 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2017 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2018 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2019 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2020 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2021 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2022 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2023 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2024 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2025 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2026 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2027 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2028 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2029 ix86_option_optimization_table, ix86_option_init_struct,
2030 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2031 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2032 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2033 i386-common.c.
2034 * config/i386/t-i386 (i386.o): Update dependencies.
2035 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2036 * config/ia64/ia64.c (ia64_option_optimization_table,
2037 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2038 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2039 ia64_handle_option): Move to ia64-common.c.
2040 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2041 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2042 * config/lm32/lm32.c (lm32_option_optimization_table,
2043 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2044 to lm32-common.c.
2045 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2046 m32c-common.c.
2047 * config/m32r/m32r.c (m32r_option_optimization_table,
2048 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2049 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2050 m32r_handle_option): Move to m32r-common.c.
2051 (m32r_memory_move_cost): Remove comment referring to
2052 TARGET_HANDLE_OPTION.
2053 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2054 Move to m68k-common.c.
2055 * config/mcore/mcore.c (mcore_option_optimization_table,
2056 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2057 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2058 * config/mep/mep.c (mep_option_optimization_table,
2059 mep_handle_option, TARGET_HANDLE_OPTION,
2060 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2061 Move to mep-common.c.
2062 * config/microblaze/microblaze.c
2063 (microblaze_option_optimization_table,
2064 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2065 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2066 * config/mips/mips.c (mips_handle_option,
2067 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2068 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2069 mips-common.c.
2070 * config/mmix/mmix.c (mmix_option_optimization_table,
2071 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2072 Move to mmix-common.c.
2073 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2074 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2075 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2076 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2077 * config/pa/pa.c: Include common/common-target.h.
2078 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2079 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2080 pa_handle_option): Move to pa-common.c.
2081 (pa_option_override): Use targetm_common.except_unwind_info.
2082 (pa_asm_output_mi_thunk, pa_function_section): Use
2083 targetm_common.have_named_sections.
2084 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2085 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2086 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2087 pdp11_handle_option, pdp11_option_init_struct): Move to
2088 pdp11-common.c.
2089 * config/picochip/picochip.c (picochip_option_optimization_table,
2090 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2091 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2092 * config/rs6000/rs6000.c: Include common/common-target.h.
2093 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2094 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2095 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2096 rs6000_handle_option): Move to rs6000-common.c.
2097 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2098 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2099 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2100 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2101 * config/s390/s390.c (processor_flags_table,
2102 s390_option_optimization_table, s390_option_init_struct,
2103 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2104 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2105 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2106 * config/s390/s390.h (processor_flags_table): Declare.
2107 * config/score/score.c (score_option_optimization_table,
2108 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2109 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2110 score_handle_option): Move to score-common.c.
2111 * config/sh/sh.c (sh_option_optimization_table,
2112 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2113 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2114 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2115 * config/sparc/sparc.c: Include common/common-target.h.
2116 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2117 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2118 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2119 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2120 spu_option_init_struct): Move to spu-common.c.
2121 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2122 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2123 * config/v850/v850.c (small_memory_physical_max,
2124 v850_handle_memory_optionn v850_handle_option,
2125 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2126 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2127 v850-common.c.
2128 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2129 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2130 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2131 Move to xtensa-common.c.
2132 * cfglayout.c: Include common/common-target.h.
2133 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2134 * cfgrtl.c: Include common/common-target.h.
2135 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2136 targetm_common.have_named_sections.
2137 * dbxout.c: Include common/common-target.h.
2138 (dbxout_function_end): Use targetm_common.have_named_sections.
2139 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2140 targetm_common.except_unwind_info.
2141 * dwarf2out.c: Include common/common-target.h.
2142 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2143 dwarf2out_begin_prologue, dwarf2out_frame_init,
2144 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2145 targetm_common.except_unwind_info.
2146 * except.c: Include common/common-target.h.
2147 (init_eh, finish_eh_generation,
2148 output_one_function_exception_table): Use
2149 targetm_common.except_unwind_info.
2150 (switch_to_exception_section): Use targetm_common.have_named_sections.
2151 * explow.c: Include common/common-target.h.
2152 * expr.c: Include common/common-target.h.
2153 (build_personality_function): Use targetm_common.except_unwind_info.
2154 * function.c: Include common/common-target.h.
2155 (expand_function_end): Use targetm_common.except_unwind_info.
2156 * haifa-sched.c: Include common/common-target.h.
2157 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2158 * lto-opts.c: Include common/common-target.h instead of target.h.
2159 (lto_reissue_options): Use targetm_common.handle_option.
2160 * opts.c: Include common/common-target.h.
2161 (target_handle_option): Use targetm_common.handle_option.
2162 (init_options_struct): Update comment referring to
2163 targetm.target_option.optimization. Use
2164 targetm_common.default_target_flags,
2165 targetm_common.unwind_tables_default and
2166 targetm_common.option_init_struct.
2167 (default_options_optimization): Use
2168 targetm_common.option_optimization_table.
2169 (finish_options): Use targetm_common.except_unwind_info,
2170 targetm_common.unwind_tables_default,
2171 targetm_common.have_named_sections and
2172 targetm_common.supports_split_stack.
2173 * toplev.c: Include common/common-target.h.
2174 (process_options): Use targetm_common.have_named_sections.
2175 * tree-tailcall.c: Include common/common-target.h.
2176 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2177 * tree.c: Include common/common-target.h.
2178 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2179 * varasm.c: Include common/common-target.h.
2180 (resolve_unique_section, hot_function_section,
2181 default_function_section): Use targetm_common.have_named_sections.
2182
2183 2011-06-14 Easwaran Raman <eraman@google.com>
2184
2185 PR rtl-optimization/44194
2186 * dse.c: Include tree-flow.h
2187 (insn_info): Add new field non_frame_wild_read.
2188 (group_info): Add new fields escaped_n and escaped_p.
2189 (kill_on_calls): New variable.
2190 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2191 (dse_step0): Initialize kill_on_calls.
2192 (can_escape): New function.
2193 (set_usage_bits): Add additional parameter; record information
2194 about escaped locations.
2195 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2196 (dse_step2_nospill): Set kill_on_calls based on
2197 group->escaped_n and group->escaped_n.
2198 (add_wild_read): Refactor into...
2199 (reset_active_stores): ... New function, and
2200 (free_read_records): ... New function.
2201 (add_non_frame_wild_read): New function.
2202 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2203 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2204 (dse_step5_nospill): Call scan_reads_nospill for instructions
2205 marked as non_frame_wild_read.
2206 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2207
2208 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2209
2210 * common/common-target-def.h, common/common-target.def,
2211 common/common-target.h, common/config/default-common.c,
2212 common/config/pa/pa-common.c: New files.
2213 * Makefile.in (common_out_file, common_out_object_file,
2214 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2215 (OBJS-libcommon-target): Include $(common_out_object_file).
2216 (prefix.o): Update dependencies.
2217 ($(common_out_object_file), common/common-target-hooks-def.h,
2218 s-common-target-hooks-def-h): New.
2219 (s-tm-texi): Also check timestamp on common-target.def.
2220 (build/genhooks.o): Update dependencies.
2221 * config.gcc (common_out_file, target_has_targetm_common): Define.
2222 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2223 TARGET_ALWAYS_STRIP_DOTDOT.
2224 * configure.ac (common_out_object_file): Define.
2225 (common_out_file, common_out_object_file): Substitute.
2226 (common): Create directory.
2227 * configure: Regenerate.
2228 * doc/tm.texi.in (targetm_common): Document.
2229 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2230 * doc/tm.texi: Regenerate.
2231 * genhooks.c (hook_array): Also include common/common-target.def.
2232 * prefix.c (tm.h): Don't include.
2233 (common/common-target.h): Include.
2234 (ALWAYS_STRIP_DOTDOT): Don't define.
2235 (update_path): Use targetm_common.always_strip_dotdot instead of
2236 ALWAYS_STRIP_DOTDOT.
2237 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2238
2239 2011-06-14 David Li <davidxl@google.com>
2240
2241 * passes.c (execute_function_todo): Remove TODO_dump_func.
2242 (execute_one_pass): Remove TODO_dump_func.
2243 (execute_function_dump): New function.
2244 * tree-vrp.c: Remove TODO_dump_func.
2245 * regrename.c: Remove TODO_dump_func.
2246 * fwprop.c: Remove TODO_dump_func.
2247 * tree-into-ssa.c: Remove TODO_dump_func.
2248 * tree-complex.c: Remove TODO_dump_func.
2249 * tracer.c: Remove TODO_dump_func.
2250 * tree-loop-distribution.c: Remove TODO_dump_func.
2251 * postreload-gcse.c: Remove TODO_dump_func.
2252 * postreload.c: Remove TODO_dump_func.
2253 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2254 * tree-tailcall.c: Remove TODO_dump_func.
2255 * ipa-cp.c: Remove TODO_dump_func.
2256 * final.c: Remove TODO_dump_func.
2257 * tree-emutls.c: Remove TODO_dump_func.
2258 * omp-low.c: Remove TODO_dump_func.
2259 * tree-ssa-dse.c: Remove TODO_dump_func.
2260 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2261 * auto-inc-dec.c: Remove TODO_dump_func.
2262 * reorg.c: Remove TODO_dump_func.
2263 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2264 * tree-ssa-ccp.c: Remove TODO_dump_func.
2265 * compare-elim.c: Remove TODO_dump_func.
2266 * mode-switching.c: Remove TODO_dump_func.
2267 * modulo-sched.c: Remove TODO_dump_func.
2268 * tree-call-cdce.c: Remove TODO_dump_func.
2269 * cse.c: Remove TODO_dump_func.
2270 * web.c: Remove TODO_dump_func.
2271 * tree-stdarg.c: Remove TODO_dump_func.
2272 * lto-streamer-out.c: Remove TODO_dump_func.
2273 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2274 * tree-ssa-dom.c: Remove TODO_dump_func.
2275 * tree-nrv.c: Remove TODO_dump_func.
2276 * loop-init.c: Remove TODO_dump_func.
2277 * gimple-low.c: Remove TODO_dump_func.
2278 * ipa-inline.c: Remove TODO_dump_func.
2279 * tree-ssa-sink.c: Remove TODO_dump_func.
2280 * jump.c: Remove TODO_dump_func.
2281 * ifcvt.c: Remove TODO_dump_func.
2282 * tree-ssa-loop.c: Remove TODO_dump_func.
2283 * recog.c: Remove TODO_dump_func.
2284 * dse.c: Remove TODO_dump_func.
2285 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2286 * matrix-reorg.c: Remove TODO_dump_func.
2287 * tree-eh.c: Remove TODO_dump_func.
2288 * regmove.c: Remove TODO_dump_func.
2289 * function.c: Remove TODO_dump_func.
2290 * tree-vectorizer.c: Remove TODO_dump_func.
2291 * ipa-split.c: Remove TODO_dump_func.
2292 * gcse.c: Remove TODO_dump_func.
2293 * tree-if-conv.c: Remove TODO_dump_func.
2294 * init-regs.c: Remove TODO_dump_func.
2295 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2296 * implicit-zee.c: Remove TODO_dump_func.
2297 * lower-subreg.c: Remove TODO_dump_func.
2298 * bt-load.c: Remove TODO_dump_func.
2299 * tree-dfa.c: Remove TODO_dump_func.
2300 * except.c: Remove TODO_dump_func.
2301 * emit-rtl.c: Remove TODO_dump_func.
2302 * store-motion.c: Remove TODO_dump_func.
2303 * cfgexpand.c: Remove TODO_dump_func.
2304 * tree-cfgcleanup.c: Remove TODO_dump_func.
2305 * cfgcleanup.c: Remove TODO_dump_func.
2306 * tree-ssa-pre.c: Remove TODO_dump_func.
2307 * tree-sra.c: Remove TODO_dump_func.
2308 * tree-mudflap.c: Remove TODO_dump_func.
2309 * tree-ssa-copy.c: Remove TODO_dump_func.
2310 * cfglayout.c: Remove TODO_dump_func.
2311 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2312 * tree-ssa-dce.c: Remove TODO_dump_func.
2313 * ira.c: Remove TODO_dump_func.
2314 * tree-ssa.c: Remove TODO_dump_func.
2315 * integrate.c: Remove TODO_dump_func.
2316 * tree-optimize.c: Remove TODO_dump_func.
2317 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2318 * tree-object-size.c: Remove TODO_dump_func.
2319 * combine.c: Remove TODO_dump_func.
2320 * bb-reorder.c: Remove TODO_dump_func.
2321 * cprop.c: Remove TODO_dump_func.
2322 * var-tracking.c: Remove TODO_dump_func.
2323 * tree-profile.c: Remove TODO_dump_func.
2324 * tree-vect-generic.c: Remove TODO_dump_func.
2325 * reg-stack.c: Remove TODO_dump_func.
2326 * sched-rgn.c: Remove TODO_dump_func.
2327 * tree-ssa-structalias.c: Remove TODO_dump_func.
2328 * tree-switch-conversion.c: Remove TODO_dump_func.
2329 * tree-cfg.c: Remove TODO_dump_func.
2330 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2331 * combine-stack-adj.c: Remove TODO_dump_func.
2332 * dce.c: Remove TODO_dump_func.
2333 * tree-ssanames.c: Remove TODO_dump_func.
2334 * regcprop.c: Remove TODO_dump_func.
2335
2336 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2337
2338 PR middle-end/47364
2339 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2340 and properly handle result not in Pmode.
2341
2342 2011-06-14 Robert Millan <rmh@gnu.org>
2343
2344 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2345 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2346 `config/linux.h'.
2347
2348 * config/i386/kfreebsd-gnu64.h: New file.
2349 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2350 with `i386/kfreebsd-gnu64.h'.
2351
2352 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2353 (GNU_USER_LINK_EMULATION64): New macros.
2354 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2355 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2356 of hardcoding `elf_i386' and `elf_x86_64'.
2357
2358 2011-06-14 Nick Clifton <nickc@redhat.com>
2359
2360 PR target/49403
2361 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2362
2363 PR target/49402
2364 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2365
2366 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2367
2368 PR fortran/49103
2369 * tree.h (DECL_NONSHAREABLE): Define.
2370 (struct tree_decl_common): Change decl_common_unused to
2371 decl_nonshareable_flag.
2372 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2373 Ignore vars with DECL_NONSHAREABLE bit set.
2374 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2375 on stores to automatic aggregate vars.
2376
2377 PR rtl-optimization/49390
2378 Revert:
2379 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2380
2381 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2382 MEM_ALIAS_SET.
2383
2384 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2385 Tom de Vries <tom@codesourcery.com>
2386
2387 PR target/45098
2388 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2389 Document changed semantics.
2390 (max_stmt_executions, max_stmt_executions_int): Declare.
2391 * tree-data-ref.c (estimated_loop_iterations)
2392 (estimated_loop_iterations_int): Move functions...
2393 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2394 (estimated_loop_iterations_int): here.
2395 (record_estimate): Change nb_iterations_upper_bound and
2396 nb_iterations_estimate semantics.
2397 (max_stmt_executions, max_stmt_executions_int): New function.
2398 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2399 (max_stmt_executions_tree): this.
2400 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2401 estimated_loop_iterations_tree.
2402 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2403 max_stmt_executions_int instead of estimated_loop_iterations_int.
2404 * predict.c (predict_loops): Idem.
2405 * tree-parloops.c (parallelize_loops): Idem.
2406 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2407 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2408 (init_omega_for_ddr_1): Idem.
2409 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2410 (loop_prefetch_arrays): Idem
2411 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2412 max_stmt_executions instead of estimated_loop_iterations.
2413 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2414 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2415 instead of nb_iterations_upper_bound.
2416
2417 2011-06-13 Jan Hubicka <jh@suse.cz>
2418
2419 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2420
2421 2011-06-14 Richard Henderson <rth@redhat.com>
2422
2423 PR debug/48459
2424 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2425 (based_loc_descr): Assert it's true.
2426 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2427 aborting immediately.
2428
2429 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2430 Mingfeng Wu <mingfeng@faraday-tech.com>
2431
2432 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2433
2434 2011-06-13 Jan Hubicka <jh@suse.cz>
2435
2436 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2437
2438 2011-06-13 Jan Hubicka <jh@suse.cz>
2439
2440 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2441 similarly to DECL_COMDAT.
2442 * cgraphunit.c (cgraph_analyze_function): Likewise.
2443 * ipa.c (function_and_variable_visibility): Likewise.
2444
2445 2011-06-13 Jan Hubicka <jh@suse.cz>
2446
2447 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2448 BINFO_VIRTUALS when streaming for ltrans unit.
2449
2450 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2451
2452 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2453 (movdi_internal64): Same.
2454
2455 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2456
2457 PR target/44618
2458 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2459 a set of similar patterns, where the MATCH_OPERAND for the function
2460 argument is replaced with individual references to hardware registers.
2461 (save_fpregs_<mode>): Ditto
2462 (restore_gpregs_<mode>): Ditto
2463 (return_and_restore_gpregs_<mode>): Ditto
2464 (return_and_restore_fpregs_<mode>): Ditto
2465 (return_and_restore_fpregs_aix_<mode>): Ditto
2466
2467 2011-06-13 Jan Hubicka <jh@suse.cz>
2468
2469 * ipa-utils.c (postorder_stack): New structure.
2470 (ipa_reverse_postorder): Handle aliases.
2471
2472 2011-06-13 Jan Hubicka <jh@suse.cz>
2473
2474 * ipa-inline.c (reset_edge_caches): Walk aliases.
2475 (update_caller_keys): Do not test inlinability of aliases.
2476 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2477 (do_estimate_growth): Fix typo.
2478
2479 2011-06-13 Jan Hubicka <jh@suse.cz>
2480
2481 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2482 (can_remove_node_now_p): ... here; handle same comdat groups.
2483 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2484 (inline_call): Update use of can_remove_node_now_p.
2485
2486 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2487
2488 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2489 condition to disallow non-identical memory locations.
2490 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2491 preference to bit manipulation instructions.
2492
2493 2011-06-13 Jan Hubicka <jh@suse.cz>
2494
2495 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2496 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2497 (nonremovable_p): New function.
2498 (cgraph_can_remove_if_no_direct_calls_p): New function.
2499 (used_from_object_file_p): New functoin.
2500 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2501 references from aliases.
2502 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2503 * ipa-inline.c (check_caller_edge): New function.
2504 (want_inline_function_called_once_p): Use it; accept aliases called
2505 once, too.
2506 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2507
2508 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2509
2510 PR target/48454
2511 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2512 correctly for the case with Quad vectors.
2513
2514 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2515 Ira Rosen <ira.rosen@linaro.org>
2516
2517 PR tree-optimization/49352
2518 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2519 all, make sure loop_use_stmt after the loop is a def stmt of a used
2520 SSA_NAME that is the only one defined inside of the loop. Don't
2521 check for COND_EXPR and GIMPLE_BINARY_RHS.
2522 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2523 check_reduction is true.
2524
2525 2011-06-11 Jan Hubicka <jh@suse.cz>
2526
2527 PR middle-end/49373
2528 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2529
2530 2011-06-11 Jan Hubicka <jh@suse.cz>
2531
2532 PR middle-end/48836
2533 * ipa-inline-transform.c: Include tree-pass.h
2534 (inline_transform): Set TODO_update_ssa_only_virtuals.
2535 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2536
2537 2011-06-11 Jan Hubicka <jh@suse.cz>
2538
2539 PR middle-end/49378
2540 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2541 aliases and thunks.
2542
2543 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2544
2545 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2546 Take number of iterations to peel into account for equally frequent
2547 misalignment values.
2548
2549 2011-06-11 Jan Hubicka <jh@suse.cz>
2550
2551 * lto-streamer-out.c (produce_symtab): Stream out the newly
2552 represented aliases.
2553
2554 2011-06-11 Jan Hubicka <jh@suse.cz>
2555
2556 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2557 varying args.
2558 (ipa_update_after_lto_read): Likewise.
2559 (ipa_write_node_info): Do not sream call_with_var_arguments.
2560 (ipa_read_node_info): Likewise.
2561
2562 2011-06-11 Jan Hubicka <jh@suse.cz>
2563
2564 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2565
2566 2011-06-11 Jan Hubicka <jh@suse.cz>
2567
2568 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2569 (lto_symtab_resolve_can_prevail_p): Likewise.
2570 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2571 * cgraph.c (same_body_aliases_done): New global var.
2572 (cgraph_same_body_alias_1): Rename to ...
2573 (cgraph_create_function_alias): ... this one; reorg to new
2574 representation.
2575 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2576 record references when asked to.
2577 (cgraph_add_thunk): Fix formating.
2578 (cgraph_get_node): Kill same body alias code.
2579 (cgraph_node_for_asm): Likewise.
2580 (cgraph_remove_same_body_alias): Remove.
2581 (cgraph_remove_node): Kill same body alias code.
2582 (cgraph_mark_address_taken_node): Mark also the aliased function
2583 as having address taken.
2584 (dump_cgraph_node): Dump same body aliases.
2585 (cgraph_for_node_thunks_and_aliases): Update for new alias
2586 representation.
2587 (cgraph_for_node_and_aliases): Likewise.
2588 * cgraph.h (same_body): Kll pointer.
2589 (same_body_alias): Update comment.
2590 (same_body_aliases_done): Declare.
2591 (cgraph_remove_same_body_alias): Remove declaration.
2592 (cgraph_create_function_alias): Declare.
2593 (cgraph_process_same_body_aliases): Declare.
2594 (cgraph_function_with_gimple_body_p): Check for alias.
2595 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2596 (cgraph_alias_aliased_node): New function.
2597 (cgraph_function_node): Update for new aliases.
2598 (cgraph_function_or_thunk_node): Likewise.
2599 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2600 (inline_call): Remove dead aliases.
2601 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2602 name hack for same body aliases.
2603 (clone_of_p): Look through aliases.
2604 (verify_cgraph_node): Verify aliases.
2605 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2606 (cgraph_process_same_body_aliases): New function.
2607 (process_function_and_variable_attributes): Disable weakref warning on
2608 alias.
2609 (cgraph_analyze_functions): Handle aliases.
2610 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2611 (assemble_thunks): Rename to ...
2612 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2613 (cgraph_expand_function): Remove alias output code.
2614 (cgraph_output_in_order): Skip aliases.
2615 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2616 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2617 (ipa_record_reference): Do not assert on alias references.
2618 (ipa_ref_has_aliases_p): New function.
2619 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2620 (ipa_ref_has_aliases_p): Declare.
2621 * lto-cgraph.c (lto_output_node): Handle aliases.
2622 (input_node): Likewise.
2623 * lto-streamer-out.c (lto_output): Skip aliases.
2624 (produce_symtab): Kill same_body_alias code.
2625 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2626 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2627 * ipa-inline.c (update_caller_keys): Walk aliases.
2628 (inline_small_functions): Fix thinko in previous patch.
2629 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2630 (function_and_variable_visibility): Do not walk same body aliases.
2631 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2632 (ipa_pta_execute): Use it.
2633
2634 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2635
2636 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2637 (*vec_dupv2df): Rename from vec_dupv2df.
2638 (vec_dupv2df): New expander.
2639
2640 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2641
2642 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2643
2644 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2645
2646 * config/i386/i386.md: Use default value in "isa" attribute.
2647 * config/i386/sse.md: Ditto.
2648 * config/i386/mmx.md: Ditto.
2649
2650 2011-06-10 Wei Guozhi <carrot@google.com>
2651
2652 PR target/45335
2653 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2654 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2655 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2656 related peephole2.
2657 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2658 related peephole2.
2659 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2660 (arm_legitimate_ldrd_p): New prototype.
2661 (arm_output_ldrd): New prototype.
2662 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2663 (arm_legitimate_ldrd_p): New function.
2664 (arm_output_ldrd): New function.
2665
2666 2011-06-10 David Li <davidxl@google.com>
2667
2668 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2669 * passes.c (passr_eq): New function.
2670 (create_pass_tab): New function.
2671 (pass_traverse): New function.
2672 (dump_one_pass): New function.
2673 (dump_pass_list): New function.
2674 (dump_passes): New function.
2675
2676 2011-06-10 Jan Hubicka <jh@suse.cz>
2677
2678 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2679 setting the nothrow flag.
2680 * ipa-reference.c (propagate): Skip aliases.
2681 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2682 (propagate_nothrow): Skip aliases; do not update cgraph.
2683 (local_pure_const): Do not update cgraph.
2684 * tree-profile.c (tree_profiling): Do fixup_cfg.
2685
2686 2011-06-10 Jan Hubicka <jh@suse.cz>
2687
2688 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2689 (cgraph_local_node_p): ... here; handle aliases.
2690 (has_addr_references_p): Break out from ...;
2691 (cgraph_remove_unreachable_nodes) ... here.
2692
2693 2011-06-10 Jan Hubicka <jh@suse.cz>
2694
2695 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2696 * common.opt (flag_inline_functions_called_once): Do not
2697 initialize to 1.
2698
2699 2011-06-10 Jan Hubicka <jh@suse.cz>
2700
2701 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2702 (ipcp_initialize_node_lattices): Do not deal with aliases;
2703 Do not try to propagate through thunks.
2704 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2705
2706 2011-06-10 Jan Hubicka <jh@suse.cz>
2707
2708 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2709 for indirect calls.
2710 (ipa_read_node_info): Likewise.
2711
2712 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2713
2714 PR lto/49302
2715 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2716 (build_and_insert_call): Likewise.
2717 (build_and_insert_ref): New.
2718 (gimple_expand_builtin_pow): Minor cleanup.
2719 (gimple_expand_builtin_cabs): New.
2720 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2721
2722 2011-06-10 Jan Hubicka <jh@suse.cz>
2723
2724 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2725 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2726 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2727 (ipcp_propagate_stage): Skip aliases when propagating.
2728 (ipcp_need_redirect_p): Skip aliases.
2729 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2730 collect_callers_of_node.
2731 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2732 for aliases.
2733 (ipa_compute_jump_functions): Look through aliases.
2734
2735 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2736
2737 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2738
2739 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2740
2741 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2742 Adjust comments.
2743 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2744
2745 2011-06-10 Jan Hubicka <jh@suse.cz>
2746
2747 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2748 Update call of gimple_get_virt_method_for_binfo.
2749 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2750 refuse_thunks parameter.
2751 (gimple_fold_call): Update.
2752 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2753
2754 2011-06-10 Jan Hubicka <jh@suse.cz>
2755
2756 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2757 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2758 worker for cgraph_for_node_and_aliases.
2759 (convert_callers_for_node): Break out from ...
2760 (convert_callers): ... here.
2761 (modify_function): Use collect_callers_of_node.
2762 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2763
2764 2011-06-10 Richard Guenther <rguenther@suse.de>
2765
2766 PR tree-optimization/49361
2767 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2768 when not already in gimple form.
2769
2770 2011-06-10 Richard Guenther <rguenther@suse.de>
2771
2772 PR bootstrap/49344
2773 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2774 FOR_EACH_PHI_OR_STMT_USE.
2775
2776 2011-06-10 Jan Hubicka <jh@suse.cz>
2777
2778 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2779 (clone_inlined_nodes): ... here.
2780 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2781 to real destination prior inlining.
2782 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2783 can_early_inline_edge_p, want_early_inline_function_p,
2784 want_early_inline_function_p, want_inline_small_function_p,
2785 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2786 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2787 add_new_edges_to_heap, inline_small_functions, flatten_function,
2788 inline_always_inline_functions, early_inline_small_functions): Use
2789 cgraph_function_or_thunk_node.
2790 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2791 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2792 (do_estimate_edge_growth_1): Break out from ...
2793 (do_estimate_growth) ... here; walk aliases.
2794 (inline_generate_summary): Skip aliases.
2795
2796 2011-06-10 Richard Guenther <rguenther@suse.de>
2797
2798 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2799 forward when combining, visit inserted stmts when a stmt was changed.
2800
2801 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2802
2803 * tree.h (error_operand_p): Add.
2804 * dbxout.c (dbxout_type_fields): Use the latter.
2805 * c-decl.c (add_stmt): Likewise.
2806 * gimplify.c (omp_add_variable, omp_notice_variable,
2807 gimplify_scan_omp_clauses): Likewise.
2808
2809 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2810
2811 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2812 when a value is actually passed in regs.
2813
2814 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2815 Laurent Rougé <laurent.rouge@menta.fr>
2816
2817 * doc/invoke.texi (SPARC options): Add -mflat.
2818 * config/sparc/sparc.opt: Likewise.
2819 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2820 (sparc_flat_expand_prologue): Declare.
2821 (sparc_flat_expand_epilogue): Likewise.
2822 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2823 (CPP_ENDIAN_SPEC): Replace with...
2824 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2825 (CPP_SPEC): Adjust to above change.
2826 (EXTRA_SPECS): Likewise.
2827 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2828 (INCOMING_REGNO): Likewise.
2829 (OUTGOING_REGNO): Likewise.
2830 (LOCAL_REGNO): Likewise.
2831 (SETUP_FRAME_ADDRESSES): Likewise.
2832 (FIXED_REGISTERS): Set 0 for %fp.
2833 (CALL_USED_REGISTERS): Likewise.
2834 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2835 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2836 (RETURN_ADDR_REGNUM): Define.
2837 (RETURN_ADDR_RTX): Use it.
2838 (INCOMING_RETURN_ADDR_REGNUM): Define.
2839 (INCOMING_RETURN_ADDR_RTX): Use it.
2840 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2841 (EH_RETURN_REGNUM): Define.
2842 (EH_RETURN_STACKADJ_RTX): Use it.
2843 (EH_RETURN_HANDLER_RTX): Delete.
2844 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2845 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2846 Delete.
2847 (struct machine_function): Add frame_size, apparent_frame_size,
2848 frame_base_reg, frame_base_offset, n_global_fp_regs and
2849 save_local_in_regs_p fields.
2850 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2851 sparc_frame_base_offset, sparc_n_global_fp_regs,
2852 sparc_save_local_in_regs_p): New macros.
2853 (sparc_option_override): Error out if -fcall-saved-REG is specified
2854 for Out registers.
2855 (eligible_for_restore_insn): Fix formatting.
2856 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2857 (eligible_for_sibcall_delay): Likewise.
2858 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2859 (sparc_legitimate_address_p): Adjust to above change.
2860 (save_global_or_fp_reg_p): New predicate.
2861 (return_addr_reg_needed_p): Likewise.
2862 (save_local_or_in_reg_p): Likewise.
2863 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2864 (SORR_SAVE, SORR_RESTORE): Delete.
2865 (sorr_pred_t): New typedef.
2866 (sorr_act_t): New enum.
2867 (save_or_restore_regs): Rename to...
2868 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2869 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2870 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2871 mechanism. Add CFI information for double-word saves in 32-bit mode.
2872 (emit_adjust_base_to_offset): New function extracted from...
2873 (emit_save_or_restore_regs): ...this. Rename the rest to...
2874 (emit_save_or_restore_regs_global_fp_regs): ...this.
2875 (emit_save_or_restore_regs_local_in_regs): New function.
2876 (gen_create_flat_frame_[123]): New functions.
2877 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2878 (sparc_flat_expand_prologue): New function.
2879 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2880 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2881 (sparc_flat_expand_epilogue): New function.
2882 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2883 (output_return): Likewise.
2884 (output_sibcall): Likewise.
2885 (sparc_output_mi_thunk): Likewise.
2886 (sparc_frame_pointer_required): Likewise.
2887 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2888 function optimization.
2889 * config/sparc/sparc.md (flat): New attribute.
2890 (prologue): Add TARGET_FLAT handling.
2891 (save_register_window): Disable if TARGET_FLAT.
2892 (create_flat_frame_[123]): New patterns.
2893 (epilogue): Add TARGET_FLAT handling.
2894 (sibcall_epilogue): Likewise.
2895 (eh_return): New expander.
2896 (eh_return_internal): New insn and splitter.
2897 (return_internal): Add TARGET_FLAT handling.
2898 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2899 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2900 (nonlocal_goto): Add TARGET_FLAT handling.
2901 * config/sparc/t-elf: Add -mflat multilib.
2902 * config/sparc/t-leon: Likewise.
2903
2904 2011-06-10 Jan Hubicka <jh@suse.cz>
2905
2906 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2907 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2908 (self_recursive_p): Use cgraph_function_node.
2909 (propagate_pure_const): Likewise.
2910 (propagate_nothrow): Likewise.
2911 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2912 cgraph_function_node.
2913 (propagate_bits): Likewise.
2914 (propagate): Likewise.
2915
2916 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2917 Richard Earnshaw <rearnsha@arm.com>
2918
2919 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2920 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2921 (*thumb2_movdi_vfp): Delete.
2922 (*arm_movdi_vfp_cortexa8): Delete.
2923 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2924 (*movdi_vfp_cortexa8): Likewise.
2925
2926 2011-06-10 Richard Guenther <rguenther@suse.de>
2927
2928 * stor-layout.c (initialize_sizetypes): Give names to all
2929 sizetype kinds.
2930
2931 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2932
2933 PR tree-optimization/49318
2934 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2935 irrelevant pattern statements.
2936
2937 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2938
2939 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2940
2941 PR bootstrap/49354
2942 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2943 to last assignment.
2944
2945 2011-06-09 Jan Hubicka <jh@suse.cz>
2946
2947 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2948 do not recompute reachable flag.
2949 (cgraph_finalize_function, cgraph_analyze_functions): Set
2950 redefined_extern_inline here.
2951
2952 2011-06-09 Jan Hubicka <jh@suse.cz>
2953
2954 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2955 (cgraph_only_called_directly_p): ... this one; bring offline.
2956 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2957 varpool_used_from_object_file_p): Drop names from the declaratoin.
2958 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2959 collect_callers_of_node): New.
2960 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2961 (cgraph_edge_recursive_p): Use cgraph_function_node.
2962 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2963 (cgraph_node_cannot_be_local_p_1): Break out from ...
2964 (cgraph_node_can_be_local_p): ... here; walk aliases.
2965 (cgraph_for_node_thunks_and_aliases): New function.
2966 (cgraph_for_node_and_aliases): New function.
2967 (cgraph_make_node_local_1): Break out from ...
2968 (cgraph_make_node_local) ... here; use
2969 cgraph_for_node_thunks_and_aliases.
2970 (cgraph_set_nothrow_flag_1): Break out from ...
2971 (cgraph_set_nothrow_flag) ... here;
2972 use cgraph_for_node_thunks_and_aliases.
2973 (cgraph_set_const_flag_1): Break out from ...
2974 (cgraph_set_const_flag) ... here;
2975 use cgraph_for_node_thunks_and_aliases.
2976 (cgraph_set_pure_flag_1): Break out from ...
2977 (cgraph_set_pure_flag) ... here;
2978 use cgraph_for_node_thunks_and_aliases.
2979 (cgraph_propagate_frequency_1): Break out from ...
2980 (cgraph_propagate_frequency) ... here; use
2981 cgraph_for_node_thunks_and_aliases.
2982 (cgraph_used_from_object_file_p): Do not care about aliases.
2983 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2984 New functions.
2985 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2986
2987 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2988
2989 PR rtl-optimization/49154
2990 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2991 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2992 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2993 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2994 * config/cris/cris.h (cris_register_move_cost): Remove
2995 !TARGET_V32 code. Tweak comments.
2996
2997 2011-06-09 Jan Hubicka <jh@suse.cz>
2998
2999 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3000 address taken.
3001
3002 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3003
3004 PR rtl-optimization/49154
3005 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3006 is a matching slot in the hashtable, assign it to classes_ptr.
3007
3008 PR rtl-optimization/49154
3009 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3010 register classes.
3011 * doc/tm.texi: Regenerate.
3012
3013 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3014
3015 PR target/49307
3016 * config/sh/sh.md (UNSPEC_CHKADD): New.
3017 (chk_guard_add): New define_insn_and_split.
3018 (symGOT_load): Use chk_guard_add instead of blockage.
3019
3020 2011-06-09 Kai Tietz <ktietz@redhat.com>
3021
3022 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3023
3024 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3025
3026 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3027
3028 2011-06-09 Wei Guozhi <carrot@google.com>
3029
3030 PR target/46975
3031 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3032 (peephole2 for conditional move): Generate 16 bit instructions.
3033
3034 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
3035
3036 * config/i386/i386.md (*movdi_internal_rex64): Merge
3037 alternatives 6 and 8.
3038
3039 2011-06-09 David Li <davidxl@google.com>
3040
3041 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3042 * passes.c (passr_eq): New function.
3043 (create_pass_tab): New function.
3044 (pass_traverse): New function.
3045 (dump_one_pass): New function.
3046 (dump_pass_list): New function.
3047 (dump_passes): New function.
3048
3049 2011-06-09 David Li <davidxl@google.com>
3050
3051 * tree-complex.c (tree_lower_complex): Gate cleanup.
3052 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3053 (execute_optimize_stdarg): Ditto.
3054 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3055 (execute_cleanup_eh_1): Ditto.
3056 (execute_cleanup_eh): Ditto.
3057 * gcse.c (gate_rtl_pre): Ditto.
3058 (execute_rtl_pre): Ditto.
3059 * except.c (finish_eh_generation): Ditto.
3060 (convert_to_eh_region_ranges): Ditto.
3061 * cprop.c (one_cprop_pass): Ditto.
3062
3063 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3064
3065 PR target/48673
3066 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3067 in all basic blocks.
3068
3069 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3070
3071 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3072 (HAVE_ENABLE_EXECUTE_STACK): Define.
3073 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3074 (HAVE_ENABLE_EXECUTE_STACK): Define.
3075 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3076 (HAVE_ENABLE_EXECUTE_STACK): Define.
3077 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3078 (ENABLE_EXECUTE_STACK): Remove.
3079 (HAVE_ENABLE_EXECUTE_STACK): Define.
3080 [IN_LIBGCC2]: Don't include <windows.h>.
3081 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3082 (HAVE_ENABLE_EXECUTE_STACK): Define.
3083 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3084 (HAVE_ENABLE_EXECUTE_STACK): Define.
3085 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3086 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3087 (HAVE_ENABLE_EXECUTE_STACK): Define.
3088 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3089 (HAVE_ENABLE_EXECUTE_STACK): Define.
3090 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3091 (HAVE_ENABLE_EXECUTE_STACK): Define.
3092 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3093 (HAVE_ENABLE_EXECUTE_STACK): Define.
3094 * config/alpha/alpha.c (alpha_trampoline_init): Test
3095 HAVE_ENABLE_EXECUTE_STACK.
3096 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3097 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3098 (sparc64_initialize_trampoline): Likewise.
3099 * libgcc2.c [L_enable_execute_stack]: Remove.
3100 * system.h (ENABLE_EXECUTE_STACK): Poison.
3101 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3102 * doc/tm.texi: Regenerate.
3103 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3104
3105 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3106
3107 PR middle-end/49308
3108 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3109 variable. After resetting and rescanning insn continue with previous
3110 statement.
3111
3112 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3113
3114 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3115 (gcc_cv_ld_hidden): Likewise.
3116 * configure: Regenerate.
3117 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3118 (ix86_stack_protect_fail): Mark unused.
3119 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3120 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3121 [TARGET_MACHO]: Don't define.
3122 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3123 (TARGET_STACK_PROTECT_FAIL): Likewise.
3124 (rs6000_stack_protect_fail): Mark unused.
3125 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3126 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3127
3128 2011-06-08 Andi Kleen <ak@linux.intel.com>
3129
3130 * varasm.c (get_section): Print location of other conflict
3131 for section conflicts.
3132
3133 2011-06-08 Andi Kleen <ak@linux.intel.com>
3134
3135 * config/i386/driver-i386.c (host_detect_local_cpu):
3136 Add model 0x2d Intel CPU.
3137
3138 2011-06-08 Andi Kleen <ak@linux.intel.com>
3139
3140 * reginfo.c (global_regs_decl): Add.
3141 (globalize_reg): Add decl parameter. Compute location. Pass location
3142 to warnings and add inform. Store decl in global_regs_decl.
3143 * rtl.h (globalize_reg): Update prototype.
3144 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3145
3146 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3147
3148 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3149
3150 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3151
3152 PR target/49305
3153 * config/sh/predicates.md (general_movsrc_operand): Check
3154 mode for memory with indexed address for QI and HImode.
3155 (general_movdst_operand): Likewise.
3156
3157 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3158
3159 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3160
3161 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3162
3163 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3164 (num_ssa_operands): Likewise.
3165 (op_iter_init_phiuse): Forward-declare.
3166 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3167
3168 2011-06-08 Nick Clifton <nickc@redhat.com>
3169
3170 * doc/invoke.texi (ARM Options): Update description of
3171 -mthumb-interwork.
3172
3173 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3174
3175 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3176 unknown Intel family 0x6 CPUs.
3177
3178 2011-06-08 Martin Jambor <mjambor@suse.cz>
3179
3180 * tree-sra.c (mark_rw_status): Removed.
3181 (analyze_access_subtree): New parameter parent instead of
3182 mark_read and mark_write, propagate from that.
3183
3184 2011-06-08 Julian Brown <julian@codesourcery.com>
3185
3186 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3187 for double-precision helper functions in hard-float mode if only
3188 single-precision arithmetic is supported in hardware.
3189
3190 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3191
3192 PR rtl-optimization/49303
3193 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3194 code_motion_path_driver returned 0 or 1.
3195 (sel_region_finish): Clear h_d_i_d.
3196
3197 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3198
3199 * config/sh/sh.c (prepare_move_operands): Set pic register
3200 appropriately for global and local dynamic tls models even
3201 if flag_pic is unset.
3202
3203 2011-06-07 Jason Merrill <jason@redhat.com>
3204
3205 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3206
3207 2011-06-07 Xinliang David Li <davidxl@google.com>
3208 * passes.c (enable_disable_pass): Handle assembler name.
3209 (is_pass_explicitly_enabled_or_disabled): Ditto.
3210
3211 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3212
3213 PR tree-optimization/48497
3214 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3215
3216 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3217
3218 PR tree-optimization/46728
3219 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3220 to use gimple_val_nonnegative_real_p.
3221 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3222 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3223
3224 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3225
3226 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3227
3228 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3229
3230 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3231 constant vectors.
3232
3233 2011-06-07 Richard Guenther <rguenther@suse.de>
3234
3235 * stor-layout.c (initialize_sizetypes): Initialize all
3236 sizetypes based on target definitions.
3237 (set_sizetype): Remove.
3238 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3239 * tree.h (set_sizetype): Remove.
3240
3241 2011-06-07 Nick Clifton <nickc@redhat.com>
3242
3243 * config.gcc: Unify V850 architecture options and add support for
3244 newer V850 architectures.
3245 * config/v850/t-v850e: Delete.
3246
3247 2011-06-07 Richard Guenther <rguenther@suse.de>
3248
3249 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3250 Call set_sizetype from here.
3251
3252 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3253
3254 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3255 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3256
3257 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3258 Andrew Stubbs <ams@codesourcery.com>
3259
3260 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3261 multiplies.
3262 * doc/md.texi (Canonicalization of Instructions): Document widening
3263 multiply canonicalization.
3264
3265 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3266
3267 PR gcov-profile/49299
3268 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3269
3270 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3271
3272 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3273 a pointer.
3274 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3275 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3276 vect_recog_pow_pattern): Likewise.
3277 (vect_pattern_recog_1): Remove declaration.
3278 (widened_name_p): Remove declaration. Add new argument to specify
3279 whether to check that both types are either signed or unsigned.
3280 (vect_recog_widen_mult_pattern): Update documentation. Handle
3281 unsigned patterns and multiplication by constants.
3282 (vect_pattern_recog_1): Update vect_recog_func references. Use
3283 statement information from the statement returned from pattern
3284 detection functions.
3285 (vect_pattern_recog): Update vect_recog_func reference.
3286 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3287 multiplication by a constant use the type of the other operand.
3288
3289 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3290
3291 PR rtl-optimization/49145
3292 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3293
3294 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3295
3296 PR debug/49262
3297 * dwarf2out.c (native_encode_initializer): Decrement count in each
3298 iteration.
3299
3300 PR debug/49294
3301 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3302 non-MODE_INT modes.
3303
3304 PR c++/49264
3305 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3306 if stmt folded into nothing.
3307 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3308 a bb folded into nothing, just update cgraph edges and move to next bb.
3309 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3310 to be NULL. Don't compute count and frequency if new_call is NULL.
3311
3312 2011-06-04 Diego Novillo <dnovillo@google.com>
3313
3314 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3315 (cgraph.o): Likewise.
3316 (cgraphunit.o): Likewise.
3317 * cgraphunit.c: Include lto-streamer.h
3318 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3319 if LTO is enabled.
3320 * lto-streamer-in.c (unpack_value_fields): Call
3321 streamer_hooks.unpack_value_fields if set.
3322 (lto_materialize_tree): For unhandled nodes, first try to
3323 call lto_streamer_hooks.alloc_tree, if it exists.
3324 (lto_input_ts_decl_common_tree_pointers): Move reading of
3325 DECL_INITIAL to lto_streamer_read_tree.
3326 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3327 (lto_streamer_read_tree): New.
3328 (lto_reader_init): Rename from lto_init_reader.
3329 Move initialization code to lto/lto.c.
3330 * lto-streamer-out.c (pack_value_fields): Call
3331 streamer_hooks.pack_value_fields if set.
3332 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3333 call streamer_hooks.indexable_with_decls_p before giving up.
3334 (lto_output_ts_decl_common_tree_pointers): Move handling
3335 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3336 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3337 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3338 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3339 (lto_streamer_write_tree): New.
3340 (lto_output): Call lto_streamer_init directly.
3341 (lto_writer_init): Remove.
3342 * lto-streamer.c (streamer_hooks): New.
3343 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3344 instead of lto_preload_common_nodes.
3345 (lto_is_streamable): Move from lto-streamer.h
3346 (lto_streamer_hooks_init): New.
3347 (streamer_hooks): New.
3348 (streamer_hooks_init): New.
3349 * lto-streamer.h (struct output_block): Forward declare.
3350 (struct lto_input_block): Likewise.
3351 (struct data_in): Likewise.
3352 (struct bitpack_d): Likewise.
3353 (struct streamer_hooks): Declare.
3354 (streamer_hooks): Declare.
3355 (lto_streamer_hooks_init): Declare.
3356 (lto_streamer_write_tree): Declare.
3357 (lto_streamer_read_tree): Declare.
3358 (streamer_hooks_init): Declare.
3359 (lto_is_streamable): Move to lto-streamer.c
3360
3361 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3362
3363 * longlong.h (smul_ppmm): The resulting register pair contains the
3364 higher order word first.
3365
3366 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3367
3368 PR tree-optimization/46728
3369 * builtins.c (powi_table): Remove.
3370 (powi_lookup_cost): Remove.
3371 (powi_cost): Remove.
3372 (expand_powi_1): Remove.
3373 (expand_powi): Remove.
3374 (expand_builtin_pow_root): Remove.
3375 (expand_builtin_pow): Remove.
3376 (expand_builtin_powi): Eliminate handling of constant exponent.
3377 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3378
3379 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3380
3381 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3382
3383 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3384
3385 * dce.c (reset_unmarked_insns_debug_uses): New.
3386 (delete_unmarked_insns): Skip debug insns.
3387 (prescan_insns_for_dce): Likewise.
3388 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3389 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3390 active reg can be found.
3391 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3392 (convert_regs_1): Use it.
3393
3394 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3395
3396 * tree-pretty-print.c (dump_function_header): Add flags.
3397 Don't dump decl_uid with nouid.
3398 * tree-pretty-print.h (dump_function_header): Adjust.
3399 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3400 * passes.c (pass_init_dump_file): Pass dump_flags on.
3401 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3402
3403 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3404
3405 PR bootstrap/49270
3406 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3407
3408 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3409
3410 PR tree-optimization/49243
3411 * calls.c (setjmp_call_p): Also check if fndecl has the
3412 returns_twice attribute.
3413
3414 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415
3416 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3417 -ffast-math etc.
3418
3419 2011-06-06 Richard Henderson <rth@redhat.com>
3420 Georg-Johann Lay <avr@gjlay.de>
3421
3422 PR target/42210
3423 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3424 New predicates.
3425 * config/avr/avr.md ("insv"): New insn expander.
3426 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3427 "*insv.not.io", "*insv.reg"): New insns.
3428
3429 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3430
3431 PR target/49285
3432 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3433 to nonimmediate_operand from memory_operand for the operand that is to
3434 be forced to memory by the expander. Lose the constraints.
3435
3436 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3437
3438 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3439 EH return when delayed branches are disabled.
3440
3441 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3442
3443 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3444 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3445 calculation.
3446 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3447 Simplify MODE_V1DF and MODE_V2SF handling.
3448 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3449 Simplify MODE_SF handling.
3450
3451 2011-06-04 Jan Hubicka <jh@suse.cz>
3452
3453 PR tree-optimization/48893
3454 PR tree-optimization/49091
3455 PR tree-optimization/49179
3456 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3457 Bounds check.
3458
3459 2011-06-04 Jan Hubicka <jh@suse.cz>
3460
3461 PR lto/48954
3462 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3463 bitmaps.
3464
3465 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3466
3467 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3468
3469 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3470
3471 PR target/49281
3472 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3473 to be strictly smaller than 1 << shiftcount.
3474
3475 2011-06-04 Jan Hubicka <jh@suse.cz>
3476
3477 PR tree-optimize/48929
3478 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3479 of empty predicate.
3480
3481 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3482
3483 PR debug/48333
3484 * calls.c (emit_call_1): Prefer the __builtin declaration of
3485 builtin functions.
3486
3487 2011-06-03 Diego Novillo <dnovillo@google.com>
3488
3489 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3490 (lto_input_tree_pointers): Likewise.
3491 * lto-streamer-out.c (pack_value_fields): Likewise.
3492 (lto_output_tree_pointers): Likewise.
3493 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3494 and OPTIMIZATION_NODE.
3495
3496 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3497
3498 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3499 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3500 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3501 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3502 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3503 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3504 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3505 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3506 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3507 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3508 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3509 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3510 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3511 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3512 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3513 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3514 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3515 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3516 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3517 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3518 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3519 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3520 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3521 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3522 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3523 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3524 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3525 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3526 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3527 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3528 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3529 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3530 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3531 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3532 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3533 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3534 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3535 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3536 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3537 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3538 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3539 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3540 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3541 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3542 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3543 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3544 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3545 * system.h (MD_UNWIND_SUPPORT): Poison.
3546 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3547 * doc/tm.texi: Regenerate.
3548 * unwind-dw2.c: Include md-unwind-support.h instead of
3549 MD_UNWIND_SUPPORT.
3550 * config/ia64/unwind-ia64.c: Likewise.
3551 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3552
3553 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3554
3555 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3556
3557 2011-06-03 Richard Henderson <rth@redhat.com>
3558 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3559
3560 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3561 (sigill_hdlr): Correct insn, insn size.
3562 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3563
3564 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3565
3566 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3567 t-slibgcc-dummy.
3568 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3569 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3570 * config/mips/t-iris: Remove.
3571 * config/mips/t-irix6: New file.
3572 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3573
3574 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3575
3576 * Makefile.in (LIB2ADDEHDEP): Remove.
3577 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3578 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3579 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3580 * config/t-darwin (LIB2ADDEHDEP): Remove.
3581 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3582 * config/t-linux (LIB2ADDEHDEP): Remove.
3583
3584 2011-06-03 Diego Novillo <dnovillo@google.com>
3585
3586 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3587 (lto_register_var_decl_in_symtab): Likewise.
3588 (lto_register_function_decl_in_symtab): Likewise.
3589 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3590 logic to uniquify_nodes.
3591
3592 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3593
3594 * config/alpha/t-osf5: Remove.
3595 * config/alpha/t-osf-pthread: Remove.
3596 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3597 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3598
3599 2011-06-03 Julian Brown <julian@codesourcery.com>
3600
3601 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3602 (strongarm1110): Use strongarm tuning.
3603 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3604 * config/arm/arm.c (arm_strongarm_tune): New.
3605 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3606 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3607 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3608 setting, using previous defaults or 1 for Cortex-A5.
3609 (arm_option_override): Set max_insns_skipped from current tuning.
3610
3611 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3612
3613 * doc/install.texi (Options specification): Document --with-specs.
3614
3615 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3616
3617 * config/arm/neon.md (orndi3_neon): Actually split it.
3618
3619 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3620
3621 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3622 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3623
3624 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3625
3626 PR debug/47590
3627 * target.def (delay_sched2, delay_vartrack): New.
3628 * doc/tm.texi.in: Update.
3629 * doc/tm.texi: Rebuild.
3630 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3631 * var-tracking.c (gate_handle_var_tracking): Likewise.
3632 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3633 (bfin_flag_var_tracking): Drop.
3634 (output_file_start): Don't save and override flag_var_tracking.
3635 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3636 (bfin_reorg): Test original variables.
3637 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3638 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3639 (ia64_flag_var_tracking): Drop.
3640 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3641 (ia64_file_start): Don't save and override flag_var_tracking.
3642 (ia64_override_options_after_change): Ditto
3643 flag_schedule_insns_after_reload.
3644 (ia64_reorg): Test original variables.
3645 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3646 (picochip_flag_var_tracking): Drop.
3647 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3648 (picochip_option_override): Don't save and override
3649 flag_schedule_insns_after_reload.
3650 (picochip_asm_file_start): Ditto flag_var_tracking.
3651 (picochip_reorg): Test original variables.
3652 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3653 (TARGET_DELAY_VARTRACK): Define.
3654 (spu_var_tracking): New.
3655 (spu_machine_dependent_reorg): Call it.
3656 (asm_file_start): Don't save and override flag_var_tracking.
3657
3658 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3659
3660 PR target/49163
3661 * config/sh/predicates.md (general_movsrc_operand): Return 0
3662 for memory and memory subreg of which address is an invalid
3663 indexed address for QI and HImode.
3664 (general_movdst_operand): Likewise.
3665
3666 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3667
3668 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3669 edges only, when there is a non-local label in the function.
3670 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3671
3672 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3673
3674 * config/i386/constraints.md (Y3): New register constraint.
3675 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3676 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3677 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3678 *sse2_interleave_lowv2df.
3679
3680 2011-06-02 Julian Brown <julian@codesourcery.com>
3681
3682 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3683 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3684 (arm_cortex_a5_tune): New.
3685
3686 2011-06-02 Julian Brown <julian@codesourcery.com>
3687
3688 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3689 * config/arm/arm.c (arm_default_branch_cost): New.
3690 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3691 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3692 (arm_fa726_tune): Set branch_cost field using
3693 arm_default_branch_cost.
3694 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3695 current_tune structure.
3696 * dojump.c (tm_p.h): Include file.
3697
3698 2011-06-02 Julian Brown <julian@codesourcery.com>
3699
3700 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3701 tuning.
3702 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3703 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3704 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3705 field.
3706 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3707 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3708 (arm_fa726te_tune): Add prefer_constant_pool setting.
3709 (arm_v6t2_tune, arm_cortex_tune): New.
3710 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3711 prefer_constant_pool setting.
3712
3713 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3714
3715 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3716 switch statement.
3717 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3718 (*movdf_internal) <case 6,7,8>: Ditto.
3719
3720 * config/i386/constraints.md (Y4): New register constraint.
3721 * config/i386/sse.md (vec_set<mode>_0): Merge with
3722 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3723 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3724 *vec_extractv2di_1_sse.
3725 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3726 and *vec_concatv2di_rex64_sse.
3727
3728 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3729
3730 PR target/48807
3731 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3732 of cgraph_local_info for null before attempting to use it.
3733
3734 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3735
3736 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3737 (current_function_dynamic_alloc_count): Delete.
3738 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3739 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3740 (expand_builtin_update_setjmp_buf): Remove dead code.
3741 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3742 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3743 support.
3744 * function.c (instantiate_virtual_regs): Likewise.
3745 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3746 for a block with a single abnormal incoming edge.
3747 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3748 (SETJMP_VIA_SAVE_AREA): Delete.
3749 * config/sparc/sparc-protos.h (load_got_register): Declare.
3750 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3751 (load_got_register): Make global.
3752 (sparc_frame_pointer_required): Add 'static'.
3753 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3754 (sparc_builtin_setjmp_frame_value): New function.
3755 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3756 (save_stack_nonlocal): New expander.
3757 (restore_stack_nonlocal): Likewise.
3758 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3759 (nonlocal_goto_internal): New insn.
3760 (goto_handler_and_restore): Delete.
3761 (builtin_setjmp_setup): Likewise.
3762 (do_builtin_setjmp_setup): Likewise.
3763 (setjmp): Likewise.
3764 (builtin_setjmp_receiver): New expander.
3765
3766 2011-06-01 David Li <davidxl@google.com>
3767
3768 PR middle-end/49261
3769 * tree-pretty-print.c (dump_function_header): Format cleanup.
3770
3771 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3772
3773 PR target/49238
3774 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3775 needed when original operands are used for msw_skip comparison.
3776
3777 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3778
3779 PR debug/49250
3780 * var-tracking.c (add_uses, add_stores): Don't call
3781 cselib_subst_to_values on ENTRY_VALUE.
3782
3783 2011-06-01 Diego Novillo <dnovillo@google.com>
3784
3785 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3786 output_record_start with LTO_null instead of output_zero.
3787 (lto_output_ts_binfo_tree_pointers): Likewise.
3788 (lto_output_tree): Likewise.
3789 (output_eh_try_list): Likewise.
3790 (output_eh_region): Likewise.
3791 (output_eh_lp): Likewise.
3792 (output_eh_regions): Likewise.
3793 (output_bb): Likewise.
3794 (output_function): Likewise.
3795 (output_unreferenced_globals): Likewise.
3796 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3797 instead of NUM_TREE_CODES.
3798 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3799 (lto_output_int_in_range): Change << to >> when shifting VAL.
3800
3801 2011-06-01 Diego Novillo <dnovillo@google.com>
3802
3803 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3804 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3805
3806 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3807
3808 PR target/45074
3809 * optabs.h (valid_multiword_target_p): Declare.
3810 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3811 doing multi-word operations.
3812 * optabs.c (expand_binop): Likewise.
3813 (expand_doubleword_bswap): Likewise.
3814 (expand_absneg_bit): Likewise.
3815 (expand_unop): Likewise.
3816 (expand_copysign_bit): Likewise.
3817 (multiword_target_p): New function.
3818
3819 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3820
3821 PR rtl-optimization/48830
3822 PR rtl-optimization/48808
3823 PR rtl-optimization/48792
3824 * reload.c (push_reload): Check contains_reg_of_mode.
3825 * reload1.c (strip_paradoxical_subreg): New function.
3826 (gen_reload_chain_without_interm_reg_p): Use it to handle
3827 paradoxical subregs.
3828 (emit_output_reload_insns, gen_reload): Likewise.
3829
3830 2011-06-01 David Li <davidxl@google.com>
3831
3832 * predict.c : Change pass name
3833 * ipa.c: Ditto.
3834 * dce.c: Ditto.
3835 * tree-profile.c: Ditto.
3836 * except.c: Ditto.
3837
3838 2011-06-01 David Li <davidxl@google.com>
3839
3840 * tree-pretty-print.c (dump_function_header): New function.
3841 * final.c (rest_of_clean_state): Use header dumper.
3842 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3843 * passes.c (pass_init_dump_file): Use header dumper.
3844
3845 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3846
3847 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3848 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3849 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3850 New functions.
3851 (mem_loc_descriptor): Use them.
3852
3853 * var-tracking.c (create_entry_value): New function.
3854 (vt_add_function_parameter): Use it.
3855
3856 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3857
3858 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3859 Include <signal.h>, <ucontext.h>.
3860 (sigill_caught): Define.
3861 (sigill_hdlr): New function.
3862 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3863 insns can be executed.
3864 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3865 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3866
3867 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3868
3869 * config/t-slibgcc-darwin: Move to ...
3870 * config/t-slibgcc-dummy: ... this. Clarify comments.
3871 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3872 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3873 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3874 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3875 Remove i386/t-crtstuff from tmake_file.
3876 (i[34567]86-*-solaris2*): Remove t-svr4,
3877 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3878 t-slibgcc-dummy.
3879 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3880 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3881 sparc/t-crtfm from tmake_file.
3882 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3883 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3884 Remove extra_parts.
3885 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3886 * config/i386/t-nwld (SHLIB_LINK): Remove.
3887 * config/i386/t-rtems-i386: Rename to ...
3888 * config/i386/t-rtems: ... this.
3889 ($(T)crti.o, $(T)crtn.o): Remove.
3890 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3891 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3892 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3893 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3894 EXTRA_MULTILIB_PARTS): Remove.
3895 * config/sparc/t-sol2-64: Likewise.
3896 * config/sparc/t-sol2: Remove.
3897 * config/sparc/t-crtin: Remove.
3898 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3899 * config/i386/gmon-sol2.c: Remove.
3900 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3901 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3902 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3903 * config/i386/sol2-gc1.asm: Remove.
3904 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3905 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3906 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3907 * config/t-slibgcc-sld: Remove.
3908
3909 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3910
3911 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3912 base_type_for_mode with op_mode instead of mode.
3913
3914 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3915
3916 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3917 Cortex-A15.
3918 * config/arm/arm-tune.md: Regenerate.
3919 * config/arm/arm-tables.opt: Regenerate.
3920 * config/arm/arm.c (FL_DIV): Rename...
3921 (FL_THUMB_DIV): ... to this.
3922 (FL_ARM_DIV): Define.
3923 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3924 (arm_arch_hwdiv): Remove.
3925 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3926 (arm_issue_rate): Add cortexr5.
3927 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3928 __ARM_ARCH_EXT_IDIV__.
3929 (TARGET_IDIV): Define.
3930 (arm_arch_hwdiv): Remove.
3931 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3932 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3933 (divsi3, udivsi3): New patterns.
3934 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3935 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3936
3937 2011-06-01 Martin Jambor <mjambor@suse.cz>
3938
3939 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3940 * ipa-utils.c (searchc): Set scc_no.
3941
3942 2011-06-01 Martin Jambor <mjambor@suse.cz>
3943
3944 * ipa-utils.c (searchc_env): New field allow_overwritable.
3945 (searchc): do not ignore edges to overwritable nodes if indicated
3946 by env->allow_overwritable.
3947 (ipa_reduced_postorder): Set env.allow_overwritable.
3948
3949 2011-06-01 Richard Guenther <rguenther@suse.de>
3950
3951 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3952 char_type_node.
3953 * lto-streamer.c (lto_record_common_node): Take node pointer,
3954 do not register types.
3955 (lto_preload_common_nodes): Explicitly skip preloading nodes
3956 that differ between frontends.
3957
3958 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3959
3960 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3961 NON_FLOAT_REGS.
3962
3963 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3964
3965 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3966 parameter value for dump. Dump cost on outermost call only.
3967 (rs6000_memory_move_cost): Dump cost on outermost call only.
3968
3969 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3970
3971 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3972 DW_OP_GNU_convert ops.
3973
3974 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3975 cselib_preserve_constants.
3976 (cselib_lookup_1): If cselib_preserve_constants,
3977 a new VALUE is being created for REG and there is a VALUE for the
3978 same register in wider mode, add another loc with lowpart SUBREG of
3979 the wider VALUE.
3980 (cselib_subst_to_values): Handle ENTRY_VALUE.
3981 * var-tracking.c (replace_expr_with_values): Return NULL for
3982 ENTRY_VALUE too.
3983 * dwarf2out.c (convert_descriptor_to_signed): New function.
3984 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3985 instead of two shifts.
3986 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3987 the right mode if needed.
3988 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3989 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3990 convert_descriptor_to_signed.
3991 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3992 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3993
3994 PR target/48688
3995 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3996
3997 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3998
3999 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4000 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4001 (SWI248x): New mode iterator, rename from X87MODEI.
4002 (X87MODEI): Remove mode iterator.
4003 (X87MODEI12): Ditto.
4004 (SSEMODEI24): Ditto.
4005
4006 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4007
4008 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4009 * doc/invoke.texi: Document max-vartrack-expr-depth.
4010 * var-tracking.c (EXPR_DEPTH): New.
4011 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4012
4013 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4014
4015 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4016 * config/i386/sse.md: Add n to negated FMA pattern names.
4017
4018 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4019
4020 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4021
4022 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4023
4024 * gengtype-state.c (read_state_params_structs): Initialize previous.
4025
4026 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4027
4028 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4029 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4030
4031 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4032
4033 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4034 registers. Penalize F*r->o alternative to prevent partial memory
4035 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4036 CONST_DOUBLE immediates when optimizing function for size. Do not move
4037 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4038 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4039 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4040 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4041 alternatives.
4042 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4043
4044 (fp_register_operand splitters): Use fp_register_operand
4045 constraint. Do not use FP_REG_P in insn condition.
4046 (any_fp_register_operand splitters): Use any_fp_register_operand
4047 constraint. Do not use ANY_FP_REG_P in insn condition.
4048
4049 2011-05-31 Jan Hubicka <jh@suse.cz>
4050
4051 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4052 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4053 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4054 (lto_output_edge): Use output_enum and var_len_unsigned.
4055 (lto_output_varpool_node): Likewise.
4056 (input_overwrite_node): Do not take resolution parameter;
4057 extract it from a bitpack.
4058 (input_node): Do not read resolution; use input_enum and
4059 var_len_unsigned.
4060 (input_varpool_node): Likewise.
4061 (input_edge): Likewise.
4062 (input_cgraph_1): Likewise.
4063
4064 2011-05-31 Richard Guenther <rguenther@suse.de>
4065
4066 * gimple.c (gimple_register_canonical_type): Do not register
4067 any types via gimple_register_type.
4068
4069 2011-05-31 Jan Hubicka <jh@suse.cz>
4070
4071 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4072 of thunks.
4073
4074 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4075
4076 PR rtl-optimization/49235
4077 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4078 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4079
4080 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
4081
4082 PR tree-optimization/49093
4083 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4084 data references.
4085
4086 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4087
4088 PR debug/49047
4089 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4090 for concrete functions containing the code of cloned functions.
4091
4092 2011-05-31 Richard Guenther <rguenther@suse.de>
4093
4094 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4095 to ...
4096 (forward_propagate_into_comparison_1): ... this.
4097 (forward_propagate_comparison): Rename to ...
4098 (forward_propagate_into_comparison): ... this. Split out
4099 real forward propagation code to ...
4100 (forward_propagate_comparison): ... this.
4101 (forward_propagate_into_gimple_cond): Remove looping.
4102 (forward_propagate_into_cond): Likewise.
4103 (simplify_not_neg_expr): Return whether we have done something.
4104 (simplify_gimple_switch): Likewise.
4105 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4106 (ssa_forward_propagate_and_combine): ... this. Re-structure
4107 to do a forward forward-propagation walk on BBs and a backward
4108 stmt combining walk on BBs. Consistently re-scan changed statements.
4109 (pass_forwprop): Adjust.
4110
4111 2011-05-30 Ian Lance Taylor <iant@google.com>
4112
4113 * godump.c (go_format_type): Correct length of name added to
4114 obstack for anonymous field.
4115
4116 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4117
4118 PR target/49186
4119 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4120 part of the second operand is 0.
4121
4122 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4123
4124 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4125 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4126 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4127 (*movdf_internal_rex64): Do not penalize F->r alternative.
4128 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4129 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4130 when optimizing function for size. Do not move CONST_DOUBLEs
4131 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4132 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4133 SUBREGs. Do not check for MEM_P operands in the insn condition,
4134 check for ANY_FP_REGNO_P instead.
4135 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4136 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4137 function for speed.
4138 * config/i386/i386.c (ix86_option_override_internal): Do not
4139 set TARGET_INTEGER_DFMODE_MOVES here.
4140
4141 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4142
4143 PR target/49168
4144 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4145
4146 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4147
4148 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4149 DW_TAG_rvalue_reference_type even for
4150 -gdwarf-4 -fno-debug-types-section.
4151
4152 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4153
4154 PR tree-optimization/46728
4155 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4156 (build_and_insert_binop): New.
4157 (gimple_expand_builtin_pow): Reorder args for
4158 build_and_insert_call; use build_and_insert_binop; add more
4159 optimizations for fractional exponents.
4160
4161 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4162
4163 PR bootstrap/49190
4164
4165 Revert:
4166 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4167
4168 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4169 tree_common.
4170 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4171 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4172 TS_BASE instead of TS_COMMON.
4173 * varasm.c (assemble_name): Remove assert.
4174
4175 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4176
4177 * config.gcc: Keep obselete list sorted.
4178
4179 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4180 Eric Botcazou <ebotcazou@adacore.com>
4181
4182 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4183 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4184 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4185 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4186 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4187
4188 2011-05-30 Richard Guenther <rguenther@suse.de>
4189
4190 * gimple.c (gimple_types_compatible_p_1): Compare record
4191 and union type members properly.
4192
4193 2011-05-30 Richard Guenther <rguenther@suse.de>
4194
4195 PR tree-optimization/49210
4196 * ipa-split.c (split_function): Care for the case where the call
4197 result is not trivially convertible to the result holding variable.
4198
4199 2011-05-30 Richard Guenther <rguenther@suse.de>
4200
4201 PR tree-optimization/49218
4202 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4203 overflow occured.
4204
4205 2011-05-30 Richard Guenther <rguenther@suse.de>
4206
4207 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4208 New function split out from ...
4209 (forward_propagate_into_gimple_cond): ... here. Adjust.
4210 (forward_propagate_into_cond): Likewise.
4211 (forward_propagate_comparison): Also propagate into
4212 comparisons on assignment RHS. Change return value to
4213 behave similar to forward_propagate_into_cond.
4214 (tree_ssa_forward_propagate_single_use_vars): Handle
4215 strict-overflow warnings properly for forward_propagate_comparison.
4216
4217 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4218
4219 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4220 from plugin linker.
4221 * configure: Regenerate.
4222
4223 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4224
4225 PR tree-optimization/49199
4226 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4227 non-reduction operands are either defined in the loop or by induction.
4228
4229 2011-05-29 Xinliang David Li <davidxl@google.com>
4230
4231 * opts-global.c (handle_common_deferred_options): Handle new options.
4232 * passes.c (register_one_dump_file): Call register_pass_name.
4233 (execute_one_pass): Check explicit enable/disable flag.
4234 (passr_hash): New function.
4235 (passr_eq): Ditto.
4236 (register_pass_name): Ditto.
4237 (get_pass_by_name): Ditto.
4238 (pass_hash): Ditto.
4239 (pass_eq): Ditto.
4240 (enable_pass): Ditto.
4241 (disable_pass): Ditto.
4242 (is_pass_explicitly_enabled_or_disabled): Ditto.
4243
4244 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4245
4246 * config/i386/i386.md (*movoi_internal_avx): Use
4247 standard_sse_constant_opcode for alternative 0.
4248 (*movti_internal_sse): Ditto.
4249 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4250 alternative 2.
4251 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4252 sselog1 type moves.
4253 (*movsi_internal): Ditto.
4254 (*movdi_internal): Ditto. Add ssecvt type moves.
4255
4256 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4257
4258 PR target/48830
4259 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4260
4261 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4262
4263 PR rtl-optimization/49095
4264 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4265 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4266
4267 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4268
4269 PR target/43995
4270 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4271 recurse_p argument. Only follow register copies if it is set,
4272 and prevent mips_find_pic_call_symbol from recursing.
4273 (mips_find_pic_call_symbol): Add a recurse_p argument.
4274 Pass it to mips_pic_call_symbol_from_set.
4275 (mips_annotate_pic_calls): Update accordingly.
4276
4277 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4278
4279 * emit-rtl.c (try_split): Use a loop to search for
4280 NOTE_INSN_CALL_ARG_LOCATIONs.
4281
4282 2011-05-29 Richard Guenther <rguenther@suse.de>
4283
4284 PR tree-optimization/49217
4285 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4286
4287 2011-05-28 Jan Hubicka <jh@suse.cz>
4288
4289 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4290 length.
4291 (string_slot_free): Remove
4292 (create_output_block): Initialize obstack.
4293 (destroy_output_block): Free obstack.
4294 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4295 the string unless it needs to be added into the hash.
4296 (lto_output_string_with_length): Add persistent attribute;
4297 handle NULL strings.
4298 (lto_output_string): Add PERSISTENT parameter.
4299 (output_string_cst, output_identifier): Simplify.
4300 (lto_output_location_bitpack): Update.
4301 (lto_output_builtin_tree): Update.
4302 * lto-streamer.h (struct output_block): Add obstack.
4303 (lto_output_string, lto_output_string_with_length): Remove
4304 declarations; functions are static now.
4305
4306 2011-05-28 Jan Hubicka <jh@suse.cz>
4307
4308 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4309 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4310 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4311 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4312 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4313 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4314 unpack_ts_decl_with_vis_value_fields,
4315 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4316 lto_get_builtin_tree): Use enum and variable length i/o.
4317 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4318 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4319 New functions.
4320 (bp_pack_enum, bp_unpack_enum): New macros.
4321
4322 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4323
4324 * genrecog.c: Remove redundant forward declarations.
4325
4326 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4327
4328 * config.gcc: Deprecate mips*-*-openbsd*.
4329
4330 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4331
4332 PR bootstrap/49195
4333 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4334 for match_op_dup.
4335
4336 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4337
4338 PR middle-end/48981
4339 * gengtype.c (vec_prefix_type): New function.
4340 (note_def_vec): Use vec_prefix_type and change the length
4341 attribute to be based on the prefix.
4342 * vec.c: Include coretypes.h before vec.h.
4343 (struct vec_prefix): Remove.
4344 (vec_gc_p_reserve): Change the offsetof to sizeof.
4345 (vec_gc_p_reserve_exact): Likewise.
4346 (vec_heap_p_reserve): Likewise.
4347 (vec_heap_p_reserve_exact): Likewise.
4348 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4349 (vec_stack_p_reserve): Change the offsetof to sizeof.
4350 (vec_stack_p_reserve_exact): Likewise.
4351 * vec.h (struct vec_prefix): New struct definition.
4352 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4353 (VEC_T_GTY(T,B)): Likewise.
4354 (DEF_VEC_FUNC_P(T)): Use prefix field.
4355 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4356 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4357
4358 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4359
4360 PR tree-optimization/46728
4361 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4362 (powi_as_mults): Add gimple_set_location.
4363 (build_and_insert_call): New.
4364 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4365 0.5, 0.25, 0.75, 1./3., or 1./6.
4366
4367 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4368
4369 * doc/contrib.texi: Update copyright years.
4370 (Contributors): Add Zdenek Sojka.
4371
4372 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4373
4374 * c-decl.c (c_push_function_context): Copy the current statement
4375 list stack.
4376 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4377 (finish_struct): Call building_stmt_list_p instead of checking
4378 cur_stmt_list.
4379 * c-parser.c (c_parser_postfix_expression): Likewise.
4380 * c-typeck.c (c_end_compound_stmt): Likewise.
4381 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4382 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4383 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4384 (free_stmt_list): Likewise.
4385 * tree.h (struct tree_statement_list): Include typed_tree instead
4386 of tree_common.
4387 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4388 as TS_TYPED instead of TS_COMMON.
4389
4390 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4391 Uros Bizjak <ubizjak@gmail.com>
4392
4393 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4394 (HAVE_AS_IX86_TLSGDPTL): Define.
4395 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4396 (HAVE_AS_IX86_TLSLDMPLT): Define.
4397 * configure: Regenerate.
4398 * config.in: Regenerate.
4399 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4400 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4401 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4402 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4403 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4404 @tlsldmplt or @plt.
4405 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4406
4407 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4408
4409 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4410 and reverse_cond.
4411 (INSN_COND, INSN_REVERSE_COND): New macros.
4412 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4413 once.
4414 (sched_get_condition_with_rev): Cache the results, and look them up
4415 if possible.
4416 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4417 are clobbered by the current insn.
4418 * target.def (exposed_pipline): New sched data hook.
4419 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4420 * doc/tm.texi: Regenerate.
4421
4422 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4423
4424 PR tree-optimization/49170
4425 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4426 sincos or cexp.
4427
4428 2011-05-27 Richard Guenther <rguenther@suse.de>
4429
4430 PR middle-end/49189
4431 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4432 of comparisons.
4433
4434 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4435
4436 * haifa-sched.c (sched_scan_info): Remove.
4437 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4438 with NULL args.
4439 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4440 Remove functions.
4441 (sched_scan): Remove.
4442 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4443 static. All callers changed.
4444 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4445 static. All callers changed.
4446 (sched_init_luids): Remove all arguments except the first. All
4447 callers changed. Don't use sched_scan.
4448 (haifa_init_h_i_d): Likewise.
4449 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4450 manually rather than using sched_init_luids. Likewise with
4451 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4452 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4453 rather than sched_init_luids with NULL args.
4454 * sel-sched-ir.c (new_insns): Remove variable.
4455 (sched_scan): New static function, previously in haifa-sched.c. Remove
4456 all arguments but the first two; all callers changed.
4457 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4458 rather than sched_init_luids.
4459 (sel_init_bbs): Remove second argument. All callers changed.
4460 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4461 with NULL arguments.
4462 (create_insn_rtx_from_pattern): Likewise.
4463 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4464 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4465 (sched_init_insn_luid, sched_extend_luids): Declare.
4466 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4467 declarations.
4468
4469 2011-05-27 Richard Guenther <rguenther@suse.de>
4470
4471 PR middle-end/49177
4472 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4473 A CMP B ? (T) true : (T) false for non-integral types T again.
4474
4475 2011-05-27 Jan Hubicka <jh@suse.cz>
4476
4477 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4478 so 0 means NULL string.
4479 (lto_output_string_with_length): ... here.
4480 (lto_output_string, output_string_cst, output_identifier): Update
4481 handling of NULL strings.
4482 (lto_output_location_bitpack): New function.
4483 (lto_output_location): Use it.
4484 (lto_output_tree_ref): Use output_record_start.
4485 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4486 len values.
4487 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4488 values by 1.
4489 (input_string_internal): ... here;
4490 (input_string_cst, input_identifier, lto_input_string): Update handling
4491 of NULL strings.
4492 (lto_input_location_bitpack): New function
4493 (lto_input_location): Use it.
4494 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4495 values.
4496 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4497 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4498 (bp_pack_value): Sanity check the value range.
4499 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4500 New functions.
4501 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4502 New functions.
4503
4504 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4505
4506 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4507 call_arg_location instructions down the floor.
4508
4509 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4510
4511 PR rtl-optimization/49154
4512 * ira.c (setup_pressure_classes): Process class without sublcasses
4513 as a candidate for pressure classes.
4514
4515 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4516
4517 PR rtl-optimization/48575
4518 * genrecog.c (position_type): New enum.
4519 (position): New structure.
4520 (decision): Use position structure instead of a string.
4521 (root_pos, peep2_insn_pos_list): New variables.
4522 (next_position, compare_positions): New functions.
4523 (new_decision): Use position structures instead of strings.
4524 (maybe_both_true): Likewise.
4525 (change_state): Likewise.
4526 (write_tree): Likewise.
4527 (make_insn_sequence): Likewise.
4528
4529 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4530
4531 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4532 TS_BASE instead of TS_COMMON.
4533 (find_decls_types_r): Check for TS_TYPED structure before looking at
4534 TREE_TYPE.
4535 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4536 Add chain field.
4537 (BLOCK_CHAIN): Use new chain field.
4538
4539 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4540
4541 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4542 moves expensive on Power7 also.
4543
4544 2011-05-26 Richard Guenther <rguenther@suse.de>
4545
4546 * fold-const.c (fold_unary_loc): Remove bogus code.
4547
4548 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4549
4550 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4551 tree_common.
4552 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4553 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4554 TS_BASE instead of TS_COMMON.
4555 * varasm.c (assemble_name): Remove assert.
4556
4557 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4558
4559 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4560 substituted first.
4561 * libgcc-std.ver: Delete file.
4562
4563 2011-05-26 Richard Guenther <rguenther@suse.de>
4564
4565 PR tree-optimization/48702
4566 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4567 only when we know the base address is within bounds.
4568 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4569 assume the base address of TARGET_MEM_REFs is in bounds.
4570
4571 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4572
4573 PR target/49099
4574 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4575 declaration in TARGET_SOLARIS.
4576
4577 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4578
4579 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4580 The instruction is then expanded explicitly.
4581 (supported_compare): Callable instruction.
4582 (compare): Likewise.
4583
4584 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4585
4586 PR c++/49165
4587 * gimplify.c (shortcut_cond_r): Don't special case
4588 COND_EXPRs if they have void type on one of their arms.
4589
4590 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4591
4592 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4593 to reduce duplication, and to achieve a slightly more logical order
4594 of operations.
4595
4596 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4597
4598 PR tree-optimization/49161
4599 * tree-vrp.c (struct case_info): New type.
4600 (compare_case_labels): Sort case_info structs instead of
4601 trees, and not primarily by CASE_LABEL uids but by
4602 label_for_block indexes.
4603 (find_switch_asserts): Put case labels into struct case_info
4604 array instead of TREE_VEC, adjust sorting, compare label_for_block
4605 values instead of CASE_LABELs.
4606
4607 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4608
4609 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4610 ("orndi3_neon"): Likewise.
4611 ("bic<mode>3_neon"): Likewise.
4612
4613 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4614
4615 PR tree-optimization/49038
4616 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4617 Ensure at least one epilogue iteration if required by data
4618 accesses with gaps.
4619 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4620 to mark loops that require peeling for gaps.
4621 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4622 (vect_get_known_peeling_cost): Take peeling for gaps into
4623 account.
4624 (vect_transform_loop): Generate epilogue if required by data
4625 access with gaps.
4626 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4627 loop as requiring an epilogue if there are gaps in the end of
4628 the strided group.
4629
4630 2011-05-25 Ian Lance Taylor <iant@google.com>
4631
4632 * godump.c (go_format_type): Output the first field with a usable
4633 Go type, if any.
4634
4635 2011-05-25 Ian Lance Taylor <iant@google.com>
4636
4637 * godump.c (go_format_type): Check for invalid type names, pointer
4638 target types, and struct field types.
4639
4640 2011-05-25 Jason Merrill <jason@redhat.com>
4641
4642 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4643
4644 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4645
4646 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4647
4648 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4649
4650 * config/i386/i386.md (*movqi_extv_1)): Put back
4651 "register_operand" check in "type" calculation.
4652 (*movqi_extzv_2): Likewise.
4653
4654 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4655
4656 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4657
4658 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4659
4660 PR bootstrap/49160
4661 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4662 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4663 __divxc3, __divtc3): Wrap definitions in #ifndef.
4664
4665 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4666
4667 PR target/49142
4668 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4669 "register_operand" check and replace q_regs_operand with
4670 QIreg_operand in "type" calculation.
4671 (*movqi_extv_1): Likewise.
4672 (*movqi_extzv_2_rex64): Likewise.
4673 (*movqi_extzv_2): Likewise.
4674
4675 * config/i386/predicates.md (QIreg_operand): New.
4676
4677 2011-05-25 Richard Guenther <rguenther@suse.de>
4678
4679 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4680 type-based offset disambiguation, streamline MEM_REF and
4681 TARGET_MEM_REF handling.
4682
4683 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4684
4685 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4686 (bdesc_special_args): Add pause intrinsic.
4687
4688 * config/i386/i386.md (UNSPEC_PAUSE): New.
4689 (pause): Likewise.
4690 (*pause): Likewise.
4691 * config/i386/ia32intrin.h (__pause): Likewise.
4692
4693 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4694 pause intrinsic.
4695
4696 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4697
4698 PR tree-optimization/46728
4699 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4700 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4701
4702 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4703
4704 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4705 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4706 instead of TS_COMMON.
4707
4708 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4709
4710 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4711 LIBGCC2_GNU_PREFIX is defined.
4712 (__N): New macro.
4713 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4714 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4715 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4716 __clz_tab): Define using __N.
4717 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4718 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4719 * target.def (libfunc_gnu_prefix): New hook.
4720 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4721 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4722 * doc/tm.texi: Regenerate.
4723 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4724 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4725 account.
4726 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4727 (init_optabs): Likewise for the bswap libfuncs.
4728 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4729 and divide.
4730 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4731 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4732 * libgcc-std.ver: Remove.
4733 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4734 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4735 libgcc-std.ver.
4736 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4737 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4738 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4739 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4740 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4741 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4742 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4743 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4744 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4745 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4746
4747 2011-05-25 Jan Hubicka <jh@suse.cz>
4748
4749 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4750 (lto_output_tree): Use output_record_start.
4751 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4752 (lto_get_pickled_tree): Use input_record_start.
4753 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4754 (lto_value_range_error): New function.
4755 * lto-streamer.h (lto_value_range_error): Declare.
4756 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4757 (lto_output_enum, lto_input_enum): New macros.
4758
4759 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4760
4761 * common.opt (flag_stack_usage_info): New variable.
4762 (-Wstack-usage): New option.
4763 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4764 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4765 <OPT_fstack_usage>: Likewise.
4766 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4767 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4768 of flag_stack_usage.
4769 (emit_library_call_value_1): Likewise.
4770 * explow.c (allocate_dynamic_stack_space): Likewise.
4771 * function.c (instantiate_virtual_regs ): Likewise.
4772 (prepare_function_start): Likewise.
4773 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4774 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4775 * config/arm/arm.c (arm_expand_prologue): Likewise.
4776 (thumb1_expand_prologue): Likewise.
4777 * config/avr/avr.c (expand_prologue): Likewise.
4778 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4779 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4780 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4781 * config/mips/mips.c (mips_expand_prologue): Likewise.
4782 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4783 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4784 * config/s390/s390.c (s390_emit_prologue): Likewise.
4785 * config/sh/sh.c (sh_expand_prologue): Likewise.
4786 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4787 * config/spu/spu.c (spu_expand_prologue): Likewise.
4788
4789 2011-05-25 Richard Guenther <rguenther@suse.de>
4790
4791 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4792 (gimple_canonical_types_compatible_p): Likewise.
4793
4794 2011-05-25 Jan Hubicka <jh@suse.cz>
4795
4796 PR middle-end/49062
4797 * ipa.c (function_and_variable_visibility): Only add to same
4798 comdat group list if DECL_ONE_ONLY.
4799
4800 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4801
4802 PR rtl-optimization/49014
4803 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4804
4805 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4806
4807 PR target/49128
4808 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4809
4810 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4811
4812 PR rtl-optimization/48757
4813 * ira-build.c (loop_with_eh_edge_p): Rename to
4814 loop_with_complex_edge_p, check edges on complexity, make function
4815 conditional.
4816 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4817 conditional.
4818
4819 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4820
4821 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4822 force flag_ira_share_save_slots to 0.
4823
4824 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4825
4826 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4827 (vt_initialize): Set PROLOGUE_BB unconditionally.
4828 Add block comment about CFA_BASE_RTX machinery.
4829 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4830 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4831
4832 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4833
4834 PR objc/48187
4835 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4836 parsing of syntax error in ObjC instance variable lists. In
4837 particular, avoid an infinite loop if there is a stray ']'.
4838 Updated error message.
4839
4840 2011-05-24 Ian Lance Taylor <iant@google.com>
4841
4842 * godump.c (go_define): Don't accept a string immediately after
4843 another operand.
4844
4845 2011-05-24 Ian Lance Taylor <iant@google.com>
4846
4847 * godump.c (struct godump_container): Add invalid_hash field.
4848 (go_format_type): Return false if type is found in invalid_hash.
4849 (go_output_typedef): Add invalid type to invalid_hash.
4850 (go_finish): Create and delete invalid_hash.
4851
4852 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4853
4854 PR tree-optimization/46728
4855 * tree-ssa-math-opts.c (powi_table): New.
4856 (powi_lookup_cost): New.
4857 (powi_cost): New.
4858 (powi_as_mults_1): New.
4859 (powi_as_mults): New.
4860 (gimple_expand_builtin_powi): New.
4861 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4862 (gate_cse_sincos): Remove sincos/cexp restriction.
4863
4864 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4865
4866 PR target/3746
4867 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4868 mips-tdump native.
4869 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4870 * mips-tdump.c: Likewise.
4871
4872 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4873
4874 PR target/49128
4875 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4876 add -mno-XXX. Handle FMA.
4877
4878 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4879
4880 PR rtl-optimization/48633
4881 * ira-build.c (loop_with_eh_edge_p): New function.
4882 (mark_loops_for_removal): Use it.
4883
4884 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4885
4886 PR rtl-optimization/48971
4887 * ira.c (setup_pressure_classes): Don't check register move cost
4888 for classes with one registers. Don't add pressure class if there
4889 is a pressure class with the same available hard registers.
4890 Check contains_reg_of_mode. Fix a typo in collecting
4891 temp_hard_regset. Ignore hard registers not belonging to a class.
4892
4893 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4894
4895 PR target/49133
4896 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4897
4898 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4899 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4900
4901 PR gcov-profile/48845
4902 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4903
4904 2011-05-24 Richard Guenther <rguenther@suse.de>
4905
4906 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4907 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4908 (gimple_types_compatible_p_1): Adjust.
4909 (iterative_hash_canonical_type): Do not bother about complete vs.
4910 incomplete types.
4911 (gimple_canonical_types_compatible_p): Likewise.
4912
4913 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4914
4915 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4916
4917 2011-05-24 Richard Guenther <rguenther@suse.de>
4918
4919 PR bootstrap/49078
4920 * gimple.c (gimple_register_canonical_type): Revert
4921 previous change.
4922 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4923 does not for a tree for the case where it matters. Cache
4924 pointer-type alias-sets.
4925
4926 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4927
4928 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4929 (OBJS): Remove options.o, opts-common.o and prefix.o.
4930 (OBJS-libcommon-target): New.
4931 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4932 (BACKEND): Include libcommon-target.a.
4933 (MOSTLYCLEANFILES): Include libcommon-target.a.
4934 (libcommon-target.a): New.
4935 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4936 prefix.o.
4937
4938 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4939
4940 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4941 parts of output shared with the driver.
4942 * optc-gen.awk: Don't generate parts of output not shared with the
4943 driver.
4944 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4945 * doc/options.texi (SourcerInclude): Mention options-save.c.
4946 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4947 (OBJS): Add options-save.o.
4948 (options-save.c, options-save.o): New.
4949 (options.o): Update dependencies.
4950 (gcc-options.o): Remove.
4951 (mostlyclean): Remove options-save.c.
4952
4953 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4954
4955 PR debug/49032
4956 * dbxout.c: Include cgraph.h.
4957 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4958 and without value expr, return NULL if no varpool node exists for
4959 it or if it is not needed.
4960 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4961
4962 PR c/49120
4963 * c-decl.c (start_decl): Convert expr to void_type_node.
4964
4965 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4966
4967 PR rtl-optimization/48826
4968 * emit-rtl.c (try_split): When splitting a call that is followed
4969 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4970
4971 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4972
4973 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4974 parameters passed in memory prefer using DECL_INCOMING_RTL over
4975 the pseudos it will be copied into.
4976
4977 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4978
4979 PR target/47315
4980 * config/i386/i386.c (ix86_option_override_internal): Save the
4981 initial options after checking vzeroupper.
4982
4983 2011-05-23 David Li <davidxl@google.com>
4984
4985 PR tree-optimization/48988
4986 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4987 Initialize has_valid_pred for each pred chain.
4988
4989 2011-05-23 Richard Guenther <rguenther@suse.de>
4990
4991 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4992 (iterative_hash_gimple_type): Always hash type names.
4993
4994 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4995
4996 * c-typeck.c (build_function_call_vec): Tweak call to
4997 check_function_arguments.
4998
4999 2011-05-23 Richard Guenther <rguenther@suse.de>
5000
5001 PR tree-optimization/49115
5002 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5003 is not necessarily carried out, do not claim it kills the ref.
5004 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5005
5006 2011-05-23 Richard Guenther <rguenther@suse.de>
5007
5008 PR middle-end/15419
5009 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5010 what pointer types we accept for folding.
5011
5012 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5013
5014 * gthr-gnat.c: Remove.
5015 * gthr-gnat.h: Remove.
5016 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5017 * config/t-freebsd (LIB2ADDEH): Likewise.
5018 * config/t-linux (LIB2ADDEH): Likewise.
5019 * config/t-sol2 (LIB2ADDEH): Likewise.
5020 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5021 * configure.ac (target_thread_file): Remove gnat handling.
5022 * configure: Regenerate.
5023 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5024
5025 2011-05-23 Tristan Gingold <gingold@adacore.com>
5026 Eric Botcazou <ebotcazou@adacore.com>
5027
5028 * gcov.c (create_file_names): If no object directory is specified,
5029 keep the directory of the file.
5030
5031 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5032
5033 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5034 * configure: Regenerate.
5035
5036 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5037
5038 PR middle-end/48973
5039 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5040 failed and the comparison has a single bit signed type, use
5041 constm1_rtx instead of const1_rtx for true value.
5042 (do_store_flag): If ops->type is single bit signed type, disable
5043 signel bit test optimization and pass -1 instead of 1 as last
5044 parameter to emit_store_flag_force.
5045
5046 2011-05-23 Tom de Vries <tom@codesourcery.com>
5047
5048 PR target/45098
5049 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5050 function.
5051 (infer_loop_bounds_from_undefined): Use new function.
5052
5053 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5054
5055 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5056 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5057 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5058 and -O0 otherwise.
5059 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5060
5061 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5062
5063 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5064 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5065 returns true.
5066
5067 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5068
5069 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5070
5071 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5072
5073 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5074 UNSPEC_MOVE_PIC pattern.
5075
5076 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5077
5078 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5079 (sparc-*-rtems*): Likewise.
5080 (sparc64-*-elf*): Likewise.
5081 (sparc64-*-rtems*): Likewise.
5082 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5083 * config/sparc/t-crtin: New file.
5084 * config/sparc/t-sol2 (crti.o): Delete rule.
5085 (crtn.o): Likewise.
5086 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5087 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5088 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5089 (ENDFILE_SPEC): Add crtn.o.
5090
5091 2011-05-22 Tom de Vries <tom@codesourcery.com>
5092
5093 PR middle-end/48689
5094 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5095 CODE_CONTAINS_STRUCT (TS_COMMON).
5096
5097 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5098
5099 PR middle-end/49029
5100 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5101 only after deciding which mode to use.
5102
5103 2011-05-22 Tom de Vries <tom@codesourcery.com>
5104
5105 PR target/45098
5106 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5107 for call to get_shiftadd_cost.
5108
5109 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5110
5111 PR target/49104
5112 * config/i386/cpuid.h (bit_MMXEXT): New define.
5113
5114 2011-05-22 Nick Clifton <nickc@redhat.com>
5115
5116 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5117 initialisation of non-existant args[2] element. Use args[] array
5118 not arg[] array to pass arguments to build_function_type_list.
5119
5120 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5121
5122 PR tree-optimization/49087
5123 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5124
5125 2011-05-21 Jason Merrill <jason@redhat.com>
5126
5127 PR c++/49092
5128 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5129 static storage duration.
5130
5131 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5132
5133 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5134 frame pointer.
5135
5136 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5137
5138 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5139 false if there are call-saved registers here...
5140 (sparc_can_use_return_insn_p): ...but here instead.
5141 (save_or_restore_regs): Fix thinko.
5142 (sparc_expand_prologue): Use current_function_is_leaf.
5143 (sparc_frame_pointer_required): Likewise.
5144
5145 2011-05-21 Nick Clifton <nickc@redhat.com>
5146
5147 PR target/49098
5148 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5149
5150 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5151
5152 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5153 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5154
5155 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5156
5157 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5158 * optc-gen.awk: Move common code to opt-read.awk.
5159 * opth-gen.awk: Likewise.
5160 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5161
5162 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5163
5164 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5165
5166 2011-05-20 Tom de Vries <tom@codesourcery.com>
5167
5168 PR target/45098
5169 * tree-ssa-loop-ivopts.c: Include expmed.h.
5170 (get_shiftadd_cost): New function.
5171 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5172
5173 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5174
5175 PR bootstrap/49086
5176 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5177 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5178
5179 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5180
5181 * Makefile.in: Update comment referring to $(OBJS-common).
5182
5183 2011-05-20 Ian Lance Taylor <iant@google.com>
5184
5185 * godump.c (go_output_typedef): Put enum constants in the macro
5186 hash table to avoid duplicate Go const definitions.
5187
5188 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5189
5190 * Makefile.in (LIBDEPS): Add libcommon.a.
5191 (LIBS): Likewise.
5192 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5193 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5194 pretty-print.o and version.o.
5195 (OBJS-libcommon): New.
5196 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5197 (BACKEND): Add libcommon.a.
5198 (MOSTLYCLEANFILES): Likewise.
5199 (libcommon.a): New.
5200 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5201 (cpp$(exeext)): Likewise.
5202 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5203 pretty-print.o and input.o.
5204 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5205 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5206 (errors.o): Remove.
5207 (mips-tfile): Don't explicitly use version.o.
5208 (mips-tdump): Likewise.
5209 (gcov.o): Depend on $(DIAGNOSTIC_H).
5210 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5211 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5212 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5213 * gcov-dump.c: Include intl.h and diagnostic.h.
5214 (main): Initialize diagnostics.
5215 * gcov.c: Include diagnostic.h.
5216 (fnotice): Remove.
5217 (main): Initialize diagnostics.
5218 * lto-wrapper.c: Include diagnostic.h.
5219 (main): Initialize diagnostics.
5220
5221 2011-05-20 Michael Matz <matz@suse.de>
5222
5223 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5224
5225 2011-05-20 Michael Matz <matz@suse.de>
5226 Richard Guenther <rguenther@suse.de>
5227
5228 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5229 use lto_streamer_cache_append directly instead of returning a VEC.
5230 (preload_common_node): Remove.
5231 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5232 track seen nodes.
5233 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5234
5235 2011-05-20 Richard Guenther <rguenther@suse.de>
5236
5237 PR tree-optimization/49079
5238 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5239 MEM_REFs correctly for the trailing array access detection.
5240 Special case constants the same way as decls for overall size
5241 constraining.
5242
5243 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5244
5245 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5246 argument expansion.
5247
5248 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5249
5250 PR tree-optimization/49073
5251 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5252 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5253 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5254
5255 2011-05-20 Richard Guenther <rguenther@suse.de>
5256
5257 PR middle-end/48849
5258 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5259 of pointer types the same way the middle-end does.
5260
5261 2011-05-20 Richard Guenther <rguenther@suse.de>
5262
5263 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5264 or pointer-to chains. Delay all fixup to uniquify_nodes.
5265
5266 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5267
5268 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5269 (fma4_fmaddsub): Likewise
5270
5271 2011-05-19 Jan Hubicka <jh@suse.cz>
5272
5273 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5274 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5275 (type_pair_cache): New static var.
5276 (lookup_type_pair): Use fixed sized custom hash; make inline.
5277 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5278 calls of lookup_type_pair.
5279 (print_gimple_types_stats): Remove cache stats.
5280 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5281 and gtc_ob.
5282
5283 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5284
5285 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5286 when TARGET_RDRND is active.
5287 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5288 Generate dummy SImode target register when target is NULL.
5289
5290 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5291
5292 * config/arm/arm-fpus.def: New.
5293 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5294 arm-fpus.def.
5295 * config/arm/arm-tables.opt: Regenerate.
5296 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5297 (arm_option_override): Don't decode FPU name to string here.
5298 * config/arm/arm.opt (mfpu=): Use Enum.
5299 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5300 Update dependencies.
5301
5302 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5303
5304 * collect2.c: Include diagnostic.h.
5305 (fatal_perror, fatal, error, fancy_abort): Remove.
5306 (main): Set progname. Call xmalloc_set_program_name and
5307 diagnostic_initialize.
5308 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5309 scan_libraries, resolve_lib_name): Call fatal_error instead of
5310 fatal and fatal_perror.
5311 * collect2.h (error, fatal, fatal_perror): Don't declare.
5312 * tlink.c: Include diagnostic-core.h.
5313 (recompile_files): Call fatal_error instead of fatal_perror.
5314 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5315 pretty-print.o and input.o.
5316 (collect2.o, tlink.o): Update dependencies.
5317
5318 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5319
5320 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5321
5322 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5323
5324 PR target/40483
5325 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5326 COMDAT group syntax, both SPARC and x86 variants.
5327 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5328 * configure: Regenerate.
5329 * config/sol2.h (TARGET_SOLARIS): Define.
5330 (PUSHSECTION_FORMAT): Remove.
5331 (SECTION_NAME_FORMAT): Define.
5332 * config/sol2.c: Include hashtab.h.
5333 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5334 expansion, using SECTION_NAME_FORMAT.
5335 (solaris_comdat_htab): New variable.
5336 (struct comdat_entry): Define.
5337 (comdat_hash): New function.
5338 (comdat_eq): New function.
5339 (solaris_elf_asm_comdat_section): New function.
5340 (solaris_define_comdat_signature): New function.
5341 (solaris_code_end): New function.
5342 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5343 (solaris_code_end): Declare.
5344 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5345 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5346 solaris_code_end.
5347 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5348 Remove ATTRIBUTE_UNUSED.
5349 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5350 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5351 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5352 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5353 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5354 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5355 (PUSHSECTION_FORMAT): Remove.
5356 (SECTION_NAME_FORMAT): Redefine.
5357
5358 2011-05-19 Kai Tietz <ktietz@redhat.com>
5359
5360 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5361 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5362 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5363
5364 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5365 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5366
5367 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5368
5369 2011-05-19 Richard Guenther <rguenther@suse.de>
5370
5371 PR middle-end/48985
5372 * tree-object-size.c (addr_object_size): If the pointed-to
5373 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5374
5375 2011-05-19 Richard Guenther <rguenther@suse.de>
5376
5377 * gimple.c (gimple_types_compatible_p_1): Compare names of
5378 the types themselves.
5379 (iterative_hash_gimple_type): And hash them that way.
5380 (gimple_register_type_1): If we register a main variant properly
5381 initialize the leader to ourselves.
5382
5383 2011-05-19 Tom de Vries <tom@codesourcery.com>
5384
5385 PR target/45098
5386 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5387 get_loop_invariant_expr_id.
5388 (get_loop_invariant_expr_id): Use get_expr_id.
5389 (parm_decl_cost): New function.
5390 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5391 Improve bound cost estimation. Use different inv_expr_id for elim and
5392 express cases.
5393
5394 2011-05-19 Tom de Vries <tom@codesourcery.com>
5395
5396 PR target/45098
5397 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5398 cost_base.cost == 0.
5399
5400 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5401
5402 PR target/49002
5403 * config/i386/sse.md
5404 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5405 load cast.
5406
5407 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5408
5409 PR tree-optimization/49039
5410 * tree-vrp.c (extract_range_from_binary_expr): For
5411 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5412 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5413
5414 2011-05-18 Tom de Vries <tom@codesourcery.com>
5415
5416 PR target/45098
5417 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5418
5419 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5420
5421 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5422 (*tls_global_dynamic_64): Ditto.
5423 (*tls_local_dynamic_base_32_gnu): Ditto.
5424 (*tls_local_dynamic_base_64): Ditto.
5425 (tls_initial_exec_64_sun): Ditto.
5426
5427 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5428
5429 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5430 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5431 bf592-none.
5432 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5433 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5434 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5435 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5436 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5437 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5438 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5439
5440 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5441
5442 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5443 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5444 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5445 target_thread_pointer, arm_structure_size_boundary, struct
5446 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5447 struct abi_name, arm_all_abis): Remove.
5448 (arm_option_override) Don't process most enumerated option values here.
5449 Don't process target_fpe_name here. Work with integer not string for
5450 structure size boundary; use separate diagnostics for each case.
5451 * config/arm/arm.h (enum float_abi_type, enum
5452 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5453 to arm-opts.h.
5454 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5455 arm_structure_size_boundary): Remove.
5456 * config/arm/arm.opt (mabi=): Use Enum and Init.
5457 (arm_abi_type): New Enum and EnumValue entries.
5458 (mfloat-abi=): Use Enum and Init.
5459 (float_abi_type): New Enum and EnumValue entries.
5460 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5461 (mfp16-format=): Use Enum and Init.
5462 (arm_fp16_format_type): New Enum and EnumValue entries.
5463 (mstructure-size-boundary=): Use UInteger and Init.
5464 (mtp=): Use Enum and Init.
5465 (arm_tp_type): New Enum and EnumValue entries.
5466
5467 2011-05-18 Richard Guenther <rguenther@suse.de>
5468
5469 PR tree-optimization/49018
5470 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5471 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5472 gimple_has_side_effects.
5473
5474 2011-05-18 Richard Guenther <rguenther@suse.de>
5475
5476 * gimple.c (gimple_register_type_1): New function, split out from ...
5477 (gimple_register_type): ... here. Avoid infinite recursion.
5478
5479 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5480
5481 PR tree-optimization/41881
5482 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5483 reduction_chains along with a macro for its access.
5484 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5485 (destroy_loop_vec_info): Free reduction chains.
5486 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5487 (vect_is_slp_reduction): New function.
5488 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5489 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5490 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5491 definition types for reduction chains.
5492 (vect_supported_load_permutation_p): Don't allow permutations for
5493 reduction chains.
5494 (vect_analyze_slp_instance): Support reduction chains.
5495 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5496 (vect_get_constant_vectors): Handle reduction chains.
5497 (vect_schedule_slp_instance): Mark the first statement of the
5498 reduction chain as reduction.
5499
5500 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5501
5502 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5503 names for group elements access.
5504 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5505 reduction chains as well. Remove data reference and interleaving
5506 related words from the fields names.
5507 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5508 elements access.
5509 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5510 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5511 vect_update_interleaving_chain, vect_same_range_drs,
5512 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5513 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5514 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5515 vect_analyze_group_access, vect_analyze_data_ref_access,
5516 vect_create_data_ref_ptr, vect_transform_strided_load,
5517 vect_record_strided_load_vectors): Likewise.
5518 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5519 vect_model_load_cost, vectorizable_store, vectorizable_load,
5520 vect_remove_stores, new_stmt_vec_info): Likewise.
5521 * tree-vect-slp.c (vect_build_slp_tree,
5522 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5523
5524 2011-05-18 Richard Guenther <rguenther@suse.de>
5525
5526 PR middle-end/48989
5527 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5528 operand verification.
5529 (verify_gimple_assign_binary): Likewise.
5530 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5531 to non-1-precision BOOLEAN_TYPEs.
5532
5533 2011-05-18 Tom de Vries <tom@codesourcery.com>
5534
5535 PR target/45098
5536 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5537
5538 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5539
5540 PR tree-optimization/49000
5541 * tree-ssa.c (execute_update_addresses_taken): Call
5542 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5543 be rewritten and decl has been marked for renaming, reset
5544 the debug stmt.
5545
5546 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5547
5548 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5549 enum_opts_set when testing if attributes have set -mfpmath=.
5550
5551 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5552
5553 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5554
5555 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5556
5557 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5558 info->entry with 0
5559 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5560 id.transform_lang_insert_block with NULL.
5561
5562 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5563
5564 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5565 (output_fp_compare): Change args 3 and 4 to bool.
5566 (ix86_expand_call): Change arg 6 to bool.
5567 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5568 (ix86_attr_length_vex_default): Change arg 3 to bool.
5569 * config/i386/i386.md: Update all uses.
5570 * config/i386/i386.c: Ditto.
5571 (ix86_flags_dependent): Change return type to bool.
5572
5573 2011-05-17 Richard Guenther <rguenther@suse.de>
5574
5575 * gimple.c (type_hash_pair_compare): Fix comparison.
5576
5577 2011-05-17 Richard Guenther <rguenther@suse.de>
5578
5579 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5580 case some more, fix final hash value of the non-singleton case.
5581
5582 2011-05-17 Richard Guenther <rguenther@suse.de>
5583
5584 PR bootstrap/49013
5585 Revert
5586 2011-05-16 Richard Guenther <rguenther@suse.de>
5587
5588 * gimple.c (gimple_types_compatible_p_1): Use names of the
5589 type itself, not its main variant.
5590 (iterative_hash_gimple_type): Likewise.
5591
5592 2011-05-17 Richard Guenther <rguenther@suse.de>
5593
5594 * gimple.c (gimple_register_canonical_type): Use the main-variant
5595 leader for computing the canonical type.
5596
5597 2011-05-17 Nick Clifton <nickc@redhat.com>
5598
5599 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5600 moves.
5601
5602 * config/rx/rx.md: Add peephole to remove redundant extensions
5603 after loads.
5604 (bitset_in_memory): Use rx_restricted_mem_operand.
5605 (bitinvert_in_memory): Likewise.
5606 (bitclr_in_memory): Likewise.
5607
5608 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5609 Nick Clifton <nickc@redhat.com>
5610
5611 * config/rx/rx.md: Add peepholes to match a register move followed
5612 by a comparison of the moved register. Replace these with an
5613 addition of zero that does both actions in one instruction.
5614
5615 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5616
5617 PR target/48986
5618 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5619 predicate to allow CONST_INT.
5620 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5621
5622 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5623
5624 * opts-common.c (opt_enum_arg_to_value): New.
5625 * opts.h (opt_enum_arg_to_value): Declare.
5626 * config/i386/i386.opt (fpmath): Remove.
5627 (mfpmath=): Use Enum, Init and Save.
5628 (fpmath_unit): New Enum and EnumValue entries.
5629 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5630 name for function fpmath state.
5631 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5632 * config/i386/i386.c: Include diagnostic.h.
5633 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5634 (ix86_target_string): Take enum fpmath_unit value instead of string.
5635 (ix86_debug_options): Update call to ix86_target_string.
5636 (ix86_option_override_internal): Don't process fpmath strings here.
5637 (x86_function_specific_save, ix86_function_specific_restore):
5638 Don't handle fpmath state specially.
5639 (ix86_function_specific_print): Pass fpmath state to
5640 ix86_target_string instead of printing in this function.
5641 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5642 Handle enum attributes.
5643 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5644 (ix86_valid_target_attribute_tree): Update option_strings
5645 handling. Handle fpmath as enum option.
5646 (ix86_can_inline_p): Update field names for function fpmath state.
5647 (ix86_expand_builtin): Update call to ix86_target_string.
5648 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5649 (ix86_fpmath): Remove.
5650 * config/i386/t-i386 (i386.o): Update dependencies.
5651
5652 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5653
5654 PR preprocessor/48677
5655 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5656 from decoded_options[0], not from itself.
5657
5658 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5659
5660 * config/i386/constraints.md (z): New constraint.
5661 * config/i386/i386.c (c): New mode attribute.
5662 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5663 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5664 constraint for operand 0.
5665 (*call_vzeroupper): Ditto.
5666 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5667 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5668 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5669 Use "lzm" constraint for operand 0.
5670 (*call_pop_vzeroupper): Ditto.
5671 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5672 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5673 constraint for operand 0.
5674 (*sibcall_vzeroupper): Ditto.
5675 (*sibcall_rex64_ms_sysv): Ditto.
5676 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5677 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5678 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5679 (*sibcall_pop_vzeroupper): Ditto.
5680 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5681 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5682 mode iterator. Use "<c>zm" constraint for operand 1.
5683 (*call_value_vzeroupper): Ditto.
5684 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5685 for operand 1.
5686 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5687 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5688 *call_value_pop_1. Use "lzm" constraint for operand 1.
5689 (*call_value_pop_vzeroupper): Ditto.
5690 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5691 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5692 mode iterator. Use "Uz" constraint for operand 1.
5693 (*sibcall_value_vzeroupper): Ditto.
5694 (*sibcall_value_rex64_ms_sysv): Ditto.
5695 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5696 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5697 constraint for operand 1.
5698 (*sibcall_value_pop_vzeroupper): Ditto.
5699 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5700 and "z" constraint for operand 2.
5701 (*tls_global_dynamic_32_gnu): Ditto.
5702 (*tls_local_dynamic_base_32_gnu): Ditto.
5703 (*tls_local_dynamic_base_64): Ditto.
5704 (*tls_local_dynamic_32_once): Ditto.
5705 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5706 Update all callers.
5707 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5708
5709 2011-05-16 Richard Guenther <rguenther@suse.de>
5710
5711 * gimple.c (gimple_types_compatible_p_1): Use names of the
5712 type itself, not its main variant.
5713 (iterative_hash_gimple_type): Likewise.
5714
5715 2011-05-16 Richard Guenther <rguenther@suse.de>
5716
5717 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5718 always visit pointer target and function result and argument types.
5719
5720 2011-05-16 Jason Merrill <jason@redhat.com>
5721
5722 PR c++/48999
5723 * tree-inline.c (copy_statement_list): Put back recursion.
5724
5725 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5726
5727 PR target/27663
5728 PR target/41076
5729 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5730 * config/avr/avr.md ("*ior<mode>qi.byte0",
5731 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5732
5733 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5734
5735 PR target/45099
5736 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5737 register is needed for a function argument.
5738
5739 2011-05-16 Richard Guenther <rguenther@suse.de>
5740
5741 * gimple.c (struct type_hash_pair): New type.
5742 (type_hash_pair_compare): New function.
5743 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5744
5745 2011-05-16 Revital Eres <revital.eres@linaro.org>
5746
5747 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5748
5749 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5750
5751 * config/i386/i386.md (floating point move splitters): Fix
5752 usage of standard_80387_constant_p.
5753 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5754
5755 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5756
5757 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5758
5759 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5760
5761 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5762 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5763 (tree_ssa_lim_finalize): Likewise.
5764
5765 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5766
5767 * config/i386/constraint.md (Yd, Yx): New register constraints.
5768 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5769 Yd conditional register constraint.
5770 (*movtf_internal): Use standard_sse_constant_opcode.
5771 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5772 Yx conditional register constraint.
5773 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5774 Yd conditional register constraint. Use standard_sse_constant_p to
5775 check for valid SSE constants and call standard_sse_constant_opcode to
5776 output SSE insn.
5777 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5778 constants and call standard_sse_constant_opcode to output SSE insn.
5779 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5780 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5781 optimize_size is set.
5782 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5783
5784 2011-05-14 Tobias Burnus <burnus@net-b.de>
5785
5786 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5787
5788 2011-05-13 Martin Jambor <mjambor@suse.cz>
5789
5790 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5791 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5792 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5793 (evaluate_conditions_for_ipcp_clone): Removed.
5794 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5795 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5796 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5797
5798 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5799
5800 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5801 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5802 lieu of MAY_HAVE_DEBUG_STMTS.
5803 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5804 debug statements if !MAY_HAVE_DEBUG_STMTS.
5805
5806 2011-05-13 Martin Thuresson <martint@google.com>
5807
5808 PR gcov-profile/47793
5809 * libgcov.c (gcov_exit): Support relative profile paths.
5810 * doc/invoke.texi (-fprofile-dir): Update for above change.
5811
5812 2011-05-13 Richard Guenther <rguenther@suse.de>
5813
5814 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5815 type-pair caching, do not compare hashes.
5816
5817 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5818
5819 PR middle-end/48965
5820 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5821 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5822
5823 2011-05-13 Kai Tietz <ktietz@redhat.com>
5824
5825 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5826 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5827 compatible type for TRUTH_NOT_EXPR.
5828
5829 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5830
5831 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5832 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5833 can_create_pseudo_p ().
5834
5835 2011-05-13 Richard Guenther <rguenther@suse.de>
5836
5837 PR lto/48978
5838 * gimple.c (iterative_hash_gimple_type): Revert change in
5839 pointer target and function result and argument hashing.
5840
5841 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5842
5843 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5844 (*movxf_internal_nointeger): Ditto.
5845 (*movdf_internal_rex64): Ditto.
5846 (*movdf_internal): Ditto.
5847 (*movdf_internal_nointeger): Ditto.
5848 (*movsf_internal): Ditto.
5849 (sincos splitters): Use can_create_pseudo ().
5850
5851 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5852
5853 * config/i386/i386-opts.h: New.
5854 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5855 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5856 ix86_section_threshold): Remove.
5857 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5858 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5859 OPT_mbranch_cost_.
5860 (ix86_option_override_internal): Don't decode strings for options
5861 other than -march=, -mtune= and -mfpmath=. Don't allow for
5862 __attribute__ uses in remaining diagnostics for options with
5863 string arguments. Don't check for integer arguments being negative.
5864 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5865 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5866 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5867 ix86_branch_cost, ix86_section_threshold): Remove.
5868 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5869 HeaderInclude.
5870 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5871 but not Var.
5872 (masm=): Use Enum and Init.
5873 (asm_dialect): New Enum and EnumValue entries.
5874 (mbranch-cost=): Use UInteger.
5875 (mlarge-data-threshold=): Use UInteger and Init.
5876 (mcmodel=): Use Enum and Init.
5877 (cmodel): New Enum and EnumValue entries.
5878 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5879 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5880 mregparm=): Use UInteger.
5881 (mstringop-strategy=): Use Enum and Init.
5882 (stringop_alg): New Enum and EnumValue entries.
5883 (mtls-dialect=): Use Enum and Init.
5884 (tls_dialect): New Enum and EnumValue entries.
5885 (mabi=): Use Enum and Init.
5886 (calling_abi): New Enum and EnumValue entries.
5887 (mveclibabi=): Use Enum and Init.
5888 (ix86_veclibabi): New Enum and EnumValue entries.
5889
5890 2011-05-13 Nick Clifton <nickc@redhat.com>
5891
5892 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5893 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5894
5895 2011-05-13 Kai Tietz <ktietz@redhat.com>
5896
5897 PR middle-end/48984
5898 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5899 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5900 (gimple_boolify): Check for cast for boolean_type_node instead for
5901 BOOLEAN_TYPE.
5902
5903 2011-05-13 Richard Guenther <rguenther@suse.de>
5904
5905 PR tree-optimization/48172
5906 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5907 multiplying by number of iterations for equal step.
5908 (vect_create_cond_for_alias_checks): Likewise.
5909
5910 2011-05-13 Andreas Schwab <schwab@redhat.com>
5911
5912 * configure.ac: Use AS_HELP_STRING throughout.
5913 * configure: Regenerate.
5914
5915 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5916
5917 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5918 (ix86_emit_restore_regs_using_mov): Likewise.
5919 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5920
5921 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5922
5923 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5924 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5925 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5926 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5927 RTX_OK_FOR_OLO10_P): ...here.
5928 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5929 SYMBOLIC_CONST.
5930
5931 2011-05-12 Kai Tietz <ktietz@redhat.com>
5932
5933 * gimplify.c (gimple_boolify): Re-boolify expression
5934 arguments even if expression type is of kind BOOLEAN_TYPE.
5935 (gimplify_boolean_expr): Removed.
5936 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5937 and XOR. Additional take care that we keep expression's type.
5938 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5939 of TRUTH_AND|OR|XOR_EXPR.
5940
5941 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5942
5943 PR tree-optimization/48975
5944 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5945 on all bbs here and free and clear ifc_bbs at the end.
5946
5947 2011-05-12 Richard Guenther <rguenther@suse.de>
5948
5949 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5950 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5951 until after simple checks.
5952 (gimple_types_compatible_p): Likewise.
5953 (iterative_hash_gimple_type): Always hash pointer targets
5954 and function return and argument types.
5955 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5956 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5957 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5958 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5959 completely in the simple compare section.
5960 (gimple_register_canonical_type): Query the cache again after
5961 registering.
5962
5963 2011-05-12 Richard Guenther <rguenther@suse.de>
5964
5965 PR tree-optimization/48172
5966 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5967 the number of iterations from the segment size calculation.
5968 (vect_create_cond_for_alias_checks): Adjust.
5969
5970 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5971
5972 PR debug/48967
5973 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5974 if validate_subreg fails.
5975
5976 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5977
5978 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5979 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5980 early.
5981
5982 2011-05-12 DJ Delorie <dj@redhat.com>
5983
5984 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5985 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5986 created builtin into rx_builtins array.
5987 (rx_builtin_decl): New function.
5988 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5989
5990 2011-05-12 DJ Delorie <dj@redhat.com>
5991 Nick Clifton <nickc@redhat.com>
5992
5993 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5994 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5995 (rx_is_legitimate_address): Add pre-decrement and post-increment
5996 addressing in HImode and QImode. Fix test for out of range
5997 REG+INT addressing.
5998 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5999 (rx_align_for_label): Test label before extracting its usage count.
6000 (rx_adjust_insn_lengths): Fix selection of insn codes.
6001 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6002
6003 2011-05-11 Jason Merrill <jason@redhat.com>
6004
6005 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6006
6007 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6008
6009 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6010 reindent the subsequent block.
6011
6012 2011-05-11 Satoru Takabayashi <satorux@google.com>
6013 Paul Pluzhnikov <ppluzhnikov@google.com>
6014
6015 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6016 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6017 * config.in: Add LINKER_HASH_STYLE.
6018 * configure.ac: Add --with-linker-hash-style.
6019 * configure: Regenerate.
6020
6021 2011-05-11 Richard Guenther <rguenther@suse.de>
6022
6023 PR middle-end/48964
6024 * gimple.c (iterative_hash_canonical_type): Fix typo.
6025
6026 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6027
6028 * config/i386/i386.c (legitimize_tls_address)
6029 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6030 expanders directly for TARGET_GNU2_TLS. Determine pic and
6031 __tls_get_addr symbol reference here. Update call to
6032 gen_tls_global_dynamic_{32,64} for added arguments.
6033 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6034 expanders directly for TARGET_GNU2_TLS. Determine
6035 __tls_get_addr symbol reference here. Update call to
6036 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6037 unique UNSPEC REG_EQUIV to libcall block.
6038 (ix86_tls_get_addr): Declare static.
6039 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6040 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6041 Do not determine pic and __tls_get_addr symbol reference here. Do not
6042 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6043 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6044 (tls_global_dynamic_64): Add operand 2. Do not determine
6045 __tls_get_addr symbol reference here. Do not call
6046 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6047 (tls_local_dynamic_base64): Ditto for operand 1.
6048
6049 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6050
6051 * function.c (expand_function_start): Initialize stack_check_probe_note
6052 only if the generic stack checking mechanism is used.
6053
6054 2011-05-11 Richard Guenther <rguenther@suse.de>
6055
6056 PR tree-optimization/15256
6057 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6058 (A & B) | C, combine (A op CST1) op CST2.
6059 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6060 visit assigns that have uses.
6061
6062 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6063
6064 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6065 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6066 (unpack_ts_type_common_value_fields): ...this. Update comment.
6067 (unpack_value_fields): Adjust for renaming.
6068 (lto_input_ts_type_tree_pointers): Split into...
6069 (lto_input_ts_type_common_tree_pointer): ...this and...
6070 (lto_input_ts_type_non_common_tree_pointers): ...this.
6071 (lto_input_tree_pointers): Adjust for above split.
6072 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6073 (pack_ts_type_common_value_fields): ...this. Update comment.
6074 (lto_output_ts_type_tree_pointers): Split into...
6075 (lto_output_ts_type_common_tree_pointers): ...this and...
6076 (lto_output_ts_type_non_common_tree_pointers): ...this.
6077 (lto_output_tree_pointers): Adjust for above split.
6078 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6079 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6080 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6081 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6082 Define.
6083 (struct tree_type): Split into...
6084 (struct tree_type_common: ...this and...
6085 (struct tree_type_with_lang_specific): ...this and...
6086 (struct tree_type_non_common): ...this. Adjust accessor macros
6087 accordingly.
6088 (TYPE_VALUES_RAW): Define.
6089 (union tree_node): Update for above changes.
6090 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6091 TS_TYPE_NON_COMMON.
6092 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6093 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6094 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6095 * treestructu.def (TS_TYPE): Remove.
6096 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6097 Define.
6098
6099 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6100
6101 PR debug/48159
6102 * tree-ssa.c (reset_debug_uses): New function.
6103 * tree-flow.h (reset_debug_uses): New prototype.
6104 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6105 * tree-loop-distribution.c (generate_loops_for_partition): Call
6106 reset_debug_uses on the stmts that will be removed. Keep around
6107 all debug stmts, don't count them as bits in partition bitmap.
6108 (generate_builtin): Don't count debug stmts or labels as bits in
6109 partition bitmap.
6110
6111 2011-05-11 Richard Guenther <rguenther@suse.de>
6112
6113 * gimple.c (gimple_type_hash_1): Merge with ...
6114 (gimple_type_hash): ... this.
6115 (gtc_visit): Remove mode parameter and simplify accordingly.
6116 (gimple_types_compatible_p_1): Likewise.
6117 (gimple_types_compatible_p): Likewise.
6118 (iterative_hash_gimple_type): Likewise.
6119 (visit): Likewise.
6120 (gimple_type_eq): Adjust.
6121
6122 2011-05-11 Revital Eres <revital.eres@linaro.org>
6123
6124 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6125 enters the branch create an anti edge in the opposite direction
6126 to prevent the creation of reg-moves.
6127 * modulo-sched.c: Adjust comment to reflect the fact we are
6128 scheduling closing branch.
6129 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6130 (stage_count): New field in struct partial_schedule.
6131 (calculate_stage_count): New function.
6132 (normalize_sched_times): Rename to reset_sched_times and handle
6133 incrementing the sched time of the nodes by a constant value
6134 passed as parameter.
6135 (duplicate_insns_of_cycles): Skip closing branch.
6136 (sms_schedule_by_order): Schedule closing branch.
6137 (ps_insn_find_column): Handle closing branch.
6138 (sms_schedule): Call reset_sched_times and adjust the code to
6139 support scheduling of the closing branch.
6140 (ps_insert_empty_row): Update calls to normalize_sched_times
6141 and rotate_partial_schedule functions.
6142
6143 2011-05-11 Richard Guenther <rguenther@suse.de>
6144
6145 PR middle-end/48953
6146 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6147
6148 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6149
6150 * opts.c (finish_options): Move warning settings from process_options.
6151 * toplev.c (process_options): Move warning settings to finish_options.
6152
6153 2011-05-11 Richard Guenther <rguenther@suse.de>
6154
6155 PR tree-optimization/18041
6156 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6157 (simplify_bitwise_binary): ... this. Handle operand conversions
6158 by applying them to the result instead.
6159 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6160
6161 2011-05-11 Richard Guenther <rguenther@suse.de>
6162
6163 * gimple.c (gimple_canonical_types_compatible_p): Split out
6164 from gimple_types_compatible_p and friends. Do not recurse
6165 to pointed-to types.
6166 (gimple_canonical_type_eq): Use it.
6167 (iterative_hash_canonical_type): Split out from
6168 iterative_hash_gimple_type and friends. Do not recurse
6169 to pointed-to types.
6170 (gimple_canonical_type_hash): Use it, allocate the hash here.
6171
6172 2011-05-11 Revital Eres <revital.eres@linaro.org>
6173
6174 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6175 recognizing doloop.
6176
6177 2011-05-11 Revital Eres <revital.eres@linaro.org>
6178
6179 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6180 instead of PREV_INSN.
6181
6182 2011-05-11 Revital Eres <revital.eres@linaro.org>
6183
6184 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6185 * loop-doloop.c (doloop_condition_get): Likewise.
6186 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6187 (doloop_end): New.
6188 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6189
6190 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6191
6192 * tree.def (CASE_LABEL_EXPR): Add an operand.
6193 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6194
6195 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6196
6197 * c-decl.c (c_override_global_bindings_to_false): Remove.
6198 (global_bindings_p): Don't check
6199 c_override_global_bindings_to_false.
6200 * c-tree.h (c_override_global_bindings_to_false): Remove.
6201 * c-typeck.c (composite_type): Don't set
6202 c_override_global_bindings_to_false.
6203
6204 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6205
6206 PR target/48857, 48495
6207 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6208 (VSX_MODE): Ditto.
6209 (VSX_MOVE_MODE): Ditto.
6210 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6211 VSX vector types. Add V2DImode.
6212 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6213 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6214 (MODES_TIEABLE_P): Ditto.
6215
6216 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6217 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6218 VSX_VECTOR_MODE.
6219 (init_cumulative_args): Ditto.
6220 (rs6000_function_arg_boundary): Ditto.
6221 (rs6000_function_arg_advance_1): Ditto.
6222 (rs6000_function_arg): Ditto.
6223 (rs6000_function_ok_for_sibcall): Ditto.
6224 (emit_frame_save): Ditto.
6225 (rs6000_function_value): Ditto.
6226 (rs6000_libcall_value): Ditto.
6227
6228 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6229
6230 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6231 i386/darwin-lib.h to $libgcc_tm_file.
6232 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6233
6234 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6235
6236 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6237
6238 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6239
6240 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6241 * config/rs6000/rs6000-tables.opt: New file (generated).
6242 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6243 rs6000/rs6000-tables.opt to extra_options.
6244 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6245 * config/rs6000/rs6000.c (rs6000_select): Remove.
6246 (processor_target_table): Move contents to rs6000-cpus.def.
6247 (darwin_rs6000_override_options): Check
6248 global_options_set.x_rs6000_cpu_index instead of
6249 rs6000_select[1].string.
6250 (rs6000_option_override_internal): Likewise.
6251 (rs6000_handle_option): Don't assert that global structures are in
6252 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6253 (rs6000_default_cpu): New variable.
6254 (rs6000_file_start): Set it instead of local default_cpu. Check
6255 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6256 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6257 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6258 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6259 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6260 rs6000_select): Remove.
6261 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6262 Remove.
6263 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6264 * config/rs6000/t-rs6000
6265 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6266 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6267 global_options_set.x_rs6000_cpu_index instead of
6268 rs6000_select[1].string.
6269 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6270 global_options_set.x_rs6000_cpu_index instead of
6271 rs6000_select[1].string.
6272
6273 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6274
6275 * config.gcc (libgcc_tm_file): Define instead of including files
6276 from ../../libgcc/config/ in tm_file.
6277 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6278 * configure: Regenerate.
6279 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6280 libgcc_tm.h, cs-libgcc_tm.h): New.
6281 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6282 (clean): Remove libgcc_tm.h.
6283 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6284 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6285 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6286
6287 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6288
6289 PR target/48896
6290 * config/avr/avr.c (avr_ret_register): Return unsigned int
6291 instead of int.
6292 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6293 it to avr_libcall_value.
6294 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6295 expand_expr.
6296 (avr_expand_binop_builtin): Ditto.
6297 (avr_expand_unop_builtin): Ditto.
6298
6299 2011-05-10 DJ Delorie <dj@redhat.com>
6300
6301 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6302 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6303 * config/rx/rx.c (rx_align_for_label): Add label and
6304 uses_threshold parameters. Do not align when the label is not
6305 used enough.
6306 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6307
6308 2011-05-10 Richard Guenther <rguenther@suse.de>
6309
6310 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6311 a series of conversions and apply foldings similar to what
6312 fold-const does.
6313 (tree_ssa_forward_propagate_single_use_vars): Call it.
6314
6315 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6316
6317 PR tree-optimization/48611
6318 PR tree-optimization/48794
6319 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6320 referenced from RESX or EH_DISPATCH arguments.
6321
6322 PR debug/48928
6323 * dfp.c (decimal_to_decnumber): Handle conversion from
6324 dconst{1,2,m1,half}.
6325
6326 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6327
6328 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6329 for !flag_prefer_avx128.
6330 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6331
6332 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6333
6334 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6335 (fold_ternary_loc): Use expr_location_or.
6336
6337 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6338
6339 PR debug/48853
6340 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6341 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6342 Pmode and mem_mode is not VOIDmode.
6343
6344 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6345
6346 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6347 TYPE_QUAL_RESTRICT): Convert to enum.
6348
6349 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6350
6351 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6352 (const_pow2_1_to_8_operand): Ditto.
6353 (const_pow2_1_to_128_operand): Ditto.
6354 (const_pow2_1_to_32768_operand): Ditto.
6355 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6356 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6357 in insn constraint to check integer value of operand 3.
6358 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6359
6360 (PINSR_MODE): New mode iterator.
6361 (sse2p4_1): New mode attribute.
6362 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6363 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6364 iterator. Use const_int_operand instead of
6365 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6366 exact_log2 in insn constraint to check integer value of operand 3.
6367
6368 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6369
6370 * config/i386/sse.md (blendbits): Remove mode attribute.
6371 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6372 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6373 Check integer value of operand 3 in insn constraint.
6374
6375 2011-05-09 Richard Guenther <rguenther@suse.de>
6376
6377 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6378 for diagnostics.
6379 (lto_symtab_merge): Likewise. Do not register types here.
6380 (lto_symtab_merge_decls_2): Likewise.
6381 (lto_symtab_merge_decls_1): Likewise.
6382 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6383 * gimple.c (enum gtc_mode): Declare.
6384 (gimple_types_compatible_p): Make static.
6385
6386 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6387
6388 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6389 temporary register to match Pmode.
6390
6391 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6392
6393 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6394 and *vec_concatv4si_1_avx.
6395
6396 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6397
6398 PR rtl-optimization/48927
6399 * ira-conflicts.c (commutative_constraint_p): Use
6400 recog_data.alternative_enabled_p to disable alternatives where
6401 "enabled" attribute is false.
6402 (get_dup_num): Ditto.
6403 * ira-lives.c (single_reg_class): Ditto.
6404 (ira_implicitly_set_insn_hard_regs): Ditto.
6405
6406 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6407
6408 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6409 (dataflow_set_preserve_mem_locs): Likewise.
6410
6411 2011-05-09 Philipp Thomas <pth@suse.de>
6412
6413 * config/mep/mep.c (mep_validate_vliw): Syntax description
6414 should not be translated.
6415
6416 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6417
6418 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6419 * config/mips/mips-tables.opt: New file (generated).
6420 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6421 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6422 MIPS_ARCH_OPTION_NATIVE): Define.
6423 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6424 mips-cpus.def.
6425 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6426 mips_parse_cpu): Remove.
6427 (mips_cpu_info_from_opt, mips_default_arch): New.
6428 (mips_handle_option): Don't assert that global structures are in
6429 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6430 (mips_option_override): Use new variables and functions to set
6431 state of these options. Use strcmp to check for individual CPU names.
6432 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6433 definition.
6434 * config/mips/mips.opt (march=): Use ToLower and Enum.
6435 (mips): Use ToLower, Enum and Var.
6436 (mtune=): Use ToLower and Enum.
6437 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6438
6439 2011-05-08 Jan Hubicka <jh@suse.cz>
6440
6441 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6442 Arrange type pairs to be UID ordered.
6443 (gimple_lookup_type_leader): Make inline.
6444
6445 2011-05-09 Nick Clifton <nickc@redhat.com>
6446
6447 PR target/48899
6448 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6449 PROCESSOR_DEFAULT.
6450
6451 PR target/48897
6452 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6453 variable 's'.
6454
6455 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6456
6457 * combine.c (simplify_comparison): Abstract out parts into...
6458 (simplify_compare_const): ... new function.
6459 (try_combine): Generalize parallel arithmetic/compare combining
6460 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6461
6462 2011-05-08 Jan Hubicka <jh@suse.cz>
6463
6464 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6465 (cgraph_create_virtual_clone): Call hooks once virtual clone
6466 is finished.
6467 * cgraph.h (cgraph_clone_node): Update prototype.
6468 * ipa-cp.c (ipcp_estimate_growth): Use
6469 estimate_ipcp_clone_size_and_time.
6470 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6471 * lto-cgraph.c (input_node): Update.
6472 * ipa-inline.c (recursive_inlining): Update.
6473 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6474 (evaluate_conditions_for_known_args): Break out from ...
6475 (evaluate_conditions_for_edge): ... here.
6476 (evaluate_conditions_for_ipcp_clone): New function.
6477 (inline_node_duplication_hook): Update clone summary based
6478 on parameter map.
6479 (estimate_callee_size_and_time): Rename to ...
6480 (estimate_node_size_and_time): take NODE instead of EDGE;
6481 take POSSIBLE_TRUTHS as argument.
6482 (estimate_callee_size_and_time): Update.
6483 (estimate_ipcp_clone_size_and_time): New function.
6484 (do_estimate_edge_time): Update.
6485
6486 2011-05-08 Richard Guenther <rguenther@suse.de>
6487
6488 PR middle-end/48908
6489 PR middle-end/48905
6490 * expmed.c (expand_shift_1): Compute adjusted constant shift
6491 amount manually.
6492
6493 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6494
6495 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6496
6497 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6498
6499 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6500
6501 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6502
6503 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6504
6505 2011-05-07 Jan Hubicka <jh@suse.cz>
6506
6507 * ipa-inline-transform.c (inline_call): Account when program size
6508 decreases.
6509 * ipa-inline.c (relative_time_benefit): New function.
6510 (edge_badness): Reorganize to be power 2 based; fix thinko when
6511 computing badness for negative growth; update comments to match
6512 reality; better dumps.
6513
6514 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6515
6516 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6517 type to bool and adjust comment.
6518 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6519 (fold_mathfn_compare): Remove calls to global_bindings_p.
6520 (fold_inf_compare): Likewise.
6521 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6522 * c-tree.h (global_bindings_p): Adjust prototype.
6523 * c-decl.c (global_bindings_p): Return bool and simplify.
6524
6525 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6526
6527 PR tree-optimization/48837
6528 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6529 when accumulator transformation is performed.
6530
6531 2011-05-06 Jan Hubicka <jh@suse.cz>
6532
6533 * i386.h (ix86_tune_indices): Add
6534 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6535 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6536 * i386.c (initial_ix86_tune_features): Add
6537 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6538 (software_prefetching_beneficial_p): Remove predicate.
6539 (ix86_option_override_internal): Use new macro.
6540
6541 2011-05-06 Jan Hubicka <jh@suse.cz>
6542
6543 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6544
6545 2011-05-06 Jan Hubicka <jh@suse.cz>
6546
6547 * cgraph.c (cgraph_add_thunk): Create real function node instead
6548 of alias node; finalize it and mark needed/reachale; arrange visibility
6549 to be right and add it into the corresponding same comdat group list.
6550 (dump_cgraph_node): Dump thunks.
6551 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6552 cgraph_function_with_gimple_body_p,
6553 cgraph_first_function_with_gimple_body,
6554 cgraph_next_function_with_gimple_body): New functions.
6555 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6556 New macros.
6557 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6558 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6559 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6560 devirtualization when optimizing.
6561 (verify_cgraph_node): Verify thunks.
6562 (cgraph_analyze_function): Analyze thunks.
6563 (cgraph_mark_functions_to_output): Output thunks only in combination
6564 with function they are assigned to.
6565 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6566 alias into normal node.
6567 (assemble_thunks): New functoin.
6568 (cgraph_expand_function): Use it.
6569 * lto-cgraph.c (lto_output_node): Stream thunks.
6570 (input_overwrite_node): Stream in thunks.
6571 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6572 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6573 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6574 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6575 (inline_analyze_function): Do not care about thunk jump functions.
6576 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6577 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6578 cgraph_function_with_gimple_body_p.
6579 * passes.c (do_per_function_toporder): Use
6580 cgraph_function_with_gimple_body_p.
6581 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6582 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6583 (function_called_by_processed_nodes_p): Likewise.
6584
6585 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6586
6587 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6588 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6589 entries.
6590 (mabi=): Replace with separate entries for mabi=altivec,
6591 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6592 mabi=ieeelongdouble and mabi=ibmlongdouble.
6593 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6594 check for -mabi=spe without SPE ABI support here.
6595 (rs6000_handle_option): Replace OPT_mabi_ handling with
6596 OPT_mabi_altivec and OPT_mabi_spe handling.
6597
6598 2011-05-06 Cary Coutant <ccoutant@google.com>
6599
6600 * dwarf2out.c (contains_subprogram_definition): New function.
6601 (should_move_die_to_comdat): Call it.
6602
6603 2011-05-06 Jeff Law <law@redhat.com>
6604
6605 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6606 remove_ctrl_stmt_and_useless_edges.
6607 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6608 (fixup_template_block, thread_single_edge): Likewise.
6609 (mark_threaded_blocks): Use THREAD_TARGET.
6610
6611 2011-05-06 Alan Modra <amodra@gmail.com>
6612
6613 PR target/48900
6614 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6615 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6616
6617 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6618
6619 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6620 constraint modifier to "r".
6621
6622 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6623
6624 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6625 fall through for OPT_mcmodel_.
6626
6627 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6628
6629 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6630 instruction sizes.
6631 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6632
6633 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6634
6635 PR target/47930
6636 * config/arm/arm.opt (marm): Document it.
6637 (mthumb): Reject negative variant.
6638
6639 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6640
6641 PR target/48898
6642 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6643 Fix typo in "ccvt" variable name.
6644
6645 2011-05-06 Tristan Gingold <gingold@adacore.com>
6646
6647 PR target/48895
6648 * config/vms/vms-ar.c (main): Remove cwd variable.
6649
6650 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6651
6652 PR debug/48902
6653 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6654
6655 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6656
6657 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6658 * gimplify.c (gimplify_switch_expr): Likewise.
6659 * omp-low.c (expand_omp_sections): Likewise.
6660 * tree-eh.c (lower_try_finally_switch): Likewise.
6661 (lower_eh_dispatch): Likewise.
6662 * tree.h (build_case_label): Declare.
6663 * tree.c (build_case_label): Define.
6664
6665 2011-05-05 Jason Merrill <jason@redhat.com>
6666
6667 PR c++/40975
6668 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6669 (copy_statement_list): Don't recurse.
6670 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6671 STATEMENT_LIST.
6672
6673 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6674
6675 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6676 through from -mfpu= handling.
6677 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6678
6679 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6680
6681 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6682 POST_MODIFY.
6683
6684 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6685
6686 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6687 for 11.31.
6688 (hppa[12]*-*-hpux11*): Ditto.
6689 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6690 * config/ia64/hpux-unix2003.h: New.
6691 * config/pa/pa-hpux1131.opt: New.
6692 * config/pa/pa-hpux1131.h: New.
6693 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6694 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6695 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6696
6697 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6698
6699 PR debug/48853
6700 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6701 instead of mode as 3rd argument to recursive call.
6702 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6703 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6704 VOIDmode.
6705 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6706 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6707 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6708 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6709
6710 2011-05-05 Julian Brown <julian@codesourcery.com>
6711
6712 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6713 parenthesis in D-register case.
6714
6715 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6716
6717 * opt-functions.awk (var_type_struct): Handle Enum options.
6718 * optc-gen.awk: Don't check range of variables of character type.
6719 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6720 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6721 rs6000_sdata_name, rs6000_explicit_options): Remove.
6722 (rs6000_option_override_internal): Check for -malign-power here.
6723 Use global_options_set instead of rs6000_explicit_options.
6724 (rs6000_parse_fpu_option): Remove.
6725 (rs6000_handle_option): Access variables via opts and opts_set
6726 pointers. Use error_at and warning_at. Add fall-through
6727 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6728 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6729 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6730 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6731 here. Don't use rs6000_parse_fpu_option.
6732 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6733 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6734 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6735 (mrecip=): Use Var.
6736 (mspe): Use Var and Save.
6737 (mtraceback=): Use Enum and Var.
6738 (rs6000_traceback_type): New Enum and EnumValue entries.
6739 (mfloat-gprs=): Use Enum, Var and Save.
6740 (rs6000_float_gprs): New Enum and EnumValue entries.
6741 (mlong-double-): use Var and Save.
6742 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6743 (malign-): Use Enum and Var.
6744 (rs6000_alignment_flags): New Enum and EnumValue entries.
6745 (mfpu=): Use Enum.
6746 (fpu_type_t): New Enum and EnumValue entries.
6747 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6748 global_options_set instead of rs6000_explicit_options.
6749 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6750 global_options_set instead of rs6000_explicit_options.
6751 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6752 global_options_set instead of rs6000_explicit_options.
6753 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6754 global_options_set instead of rs6000_explicit_options.
6755 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6756 global_options_set instead of rs6000_explicit_options.
6757 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6758 global_options_set instead of rs6000_explicit_options.
6759 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6760 definition.
6761 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6762 global_options_set instead of rs6000_explicit_options.
6763 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6764 (rs6000_cmodel): New Enum and EnumValue entries.
6765 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6766 global_options_set instead of rs6000_explicit_options.
6767 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6768 (mtls-size=): Use Enum and Var.
6769 (rs6000_tls_size): New Enum and EnumValue entries.
6770
6771 2011-05-05 Michael Matz <matz@suse.de>
6772
6773 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6774 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6775 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6776 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6777 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6778 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6779 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6780 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6781 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6782 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6783 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6784 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6785 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6786 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6787 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6788 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6789
6790 2011-05-05 Richard Guenther <rguenther@suse.de>
6791
6792 * expmed.c (expand_variable_shift): Rename to ...
6793 (expand_shift_1): ... this. Take an expanded shift amount.
6794 For rotates recurse directly not building trees for the shift amount.
6795 (expand_variable_shift): Wrap around expand_shift_1.
6796 (expand_shift): Adjust.
6797
6798 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6799
6800 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6801
6802 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6803
6804 * tree.h (get_pending_sizes): Remove prototype.
6805 (put_pending_size): Likewise.
6806 (put_pending_sizes): Likewise.
6807 * stor-layout.c (pending_sizes): Delete.
6808 (get_pending_sizes): Likewise.
6809 (put_pending_size): Likewise.
6810 (put_pending_sizes): Likewise.
6811 (variable_size): Do not call put_pending_size and tidy up.
6812 * function.h (struct function): Remove dont_save_pending_sizes_p.
6813 * lto-streamer-in.c (input_function): Do not stream it.
6814 * lto-streamer-out.c (output_function): Likewise.
6815 * tree-inline.c (initialize_cfun): Do not copy it.
6816 * c-decl.c (store_parm_decls): Do not set it.
6817 * omp-low.c (create_task_copyfn): Likewise.
6818 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6819
6820 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6821
6822 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6823 conditions.
6824 (*movdf_internal): Ditto.
6825 (*movdf_internal_nointeger): Ditto.
6826 (*movsf_internal): Ditto.
6827
6828 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6829
6830 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6831 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6832 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6833 (c_variable_size): Remove.
6834 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6835 call put_pending_sizes.
6836 (get_parm_info): Add parameter expr. Use it to set
6837 arg_info->pending_sizes.
6838 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6839 get_pending_sizes.
6840 * c-parser.c (c_parser_parms_declarator): Update call to
6841 c_parser_parms_list_declarator.
6842 (c_parser_parms_list_declarator): Take parameter expr. Update
6843 call to push_parm_decl. Update recursive call. Don't call
6844 get_pending_sizes. Update calls to get_parm_info.
6845 (c_parser_objc_method_definition): Update calls to
6846 c_parser_objc_method_decl and objc_start_method_definition.
6847 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6848 (c_parser_objc_method_decl): Add parameter expr. Update call to
6849 grokparm.
6850 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6851 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6852 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6853
6854 2011-05-05 Michael Hope <michael.hope@linaro.org>
6855
6856 PR pch/45979
6857 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6858 __ARM_EABI__ hosts.
6859
6860 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6861
6862 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6863 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6864 (spu_output_mi_thunk): New function.
6865
6866 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6867
6868 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6869 targetm.asm_out.print_operand.
6870 * config/sol2.c: Include target.h.
6871
6872 2011-05-04 Jan Hubicka <jh@suse.cz>
6873
6874 * ipa-inline.c (reset_edge_caches): New function.
6875 (update_caller_keys): Add check_inlinablity_for; do not
6876 reset edge caches; remove now unnecesary loop.
6877 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6878 (update_all_callee_keys): Likewise.
6879 (inline_small_functions): Sanity check cache; update code
6880 recomputing it.
6881
6882 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6883
6884 PR rtl-optimization/47612
6885 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6886 as the last insn of the sequence to be moved.
6887
6888 2011-05-04 Tobias Burnus <burnus@net-b.de>
6889
6890 PR fortran/48864
6891 * doc/invoke.texi (Ofast): Document that it
6892 enables Fortran's -fno-protect-parens.
6893
6894 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6895
6896 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6897
6898 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6899
6900 * stor-layout.c (variable_size): Do not issue errors.
6901
6902 2011-05-04 Richard Guenther <rguenther@suse.de>
6903
6904 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6905 for array-ref indices.
6906 (tree_coverage_counter_addr): Likewise.
6907 (build_fn_info_type): Use size_int for index types.
6908 (build_gcov_info): Likewise.
6909
6910 2011-05-04 Richard Guenther <rguenther@suse.de>
6911
6912 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6913 to build_int_cst.
6914 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6915 for constructor indices.
6916 (push_init_level): Likewise.
6917
6918 2011-05-04 Richard Guenther <rguenther@suse.de>
6919
6920 * explow.c (promote_mode): Move variable declarations before code.
6921
6922 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6923
6924 * tree.h (build_function_type_array): Declare.
6925 (build_varargs_function_type_array): Declare.
6926 (build_function_type_vec, build_varargs_function_type_vec): Define.
6927 * tree.c (build_function_type_array_1): New function.
6928 (build_function_type_array): New function.
6929 (build_varargs_function_type_array): New function.
6930
6931 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6932
6933 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6934 before setting STMT_VINFO_TYPE.
6935
6936 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6937
6938 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6939 instead of spu_pass_by_reference.
6940
6941 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6942
6943 * calls.c (emit_library_call_value_1): Invoke
6944 promote_function_mode hook on libcall arguments.
6945 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6946 argument being NULL.
6947 * targhooks.c (default_promote_function_mode): Lisewise.
6948 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6949 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6950
6951 * doc/tm.texi: Document that TYPE argument might be NULL.
6952
6953 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6954
6955 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6956
6957 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6958
6959 From Bernd Schmidt
6960 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6961
6962 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6963
6964 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6965 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6966 Move ...
6967 * mips-tfile.c: ... here.
6968 Don't include coretypes.h, tm.h, filenames.h.
6969 (saber_stop): Remove definition and all calls.
6970 [__SABER__]: Remove.
6971 (__LINE__): Remove default.
6972 (Size_t, Ptrdiff_t): Remove definitions.
6973 Replace by size_t, ptrdiff_t.
6974 [!MIPS_DEBUGGING_INFO]: Remove.
6975 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6976 (progname): Add const.
6977 (STATIC): Remove.
6978 Replace all uses by static.
6979 (ALIGN_SYMTABLE_OFFSET): Remove default.
6980 * mips-tdump.c: Don't include coretypes.h, tm.h.
6981 Remove !MIPS_IS_STAB guard.
6982 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6983 $(TM_H), filenames.h dependencies.
6984 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6985
6986 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6987
6988 From Jie Zhang
6989 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6990 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6991
6992 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6993
6994 From Bernd Schmidt
6995 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6996 account and save/restore RETS.
6997 (PROFILE_BEFORE_PROLOGUE): Define.
6998 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6999 the push insn to use predecrement.
7000
7001 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7002
7003 From Jie Zhang
7004 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7005
7006 2011-05-04 Nick Clifton <nickc@redhat.com>
7007
7008 * config/mn10300/mn10300.c: Include cfgloop.h.
7009 (DUMP): New macro.
7010 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7011 Lcc or a FLcc insn into the instruction stream.
7012 (mn10300_block_contains_call): New function. Returns true if the
7013 given basic block contains a CALL insn.
7014 (mn10300_loop_contains_call_insn): New function. Returns true if
7015 the given loop contains a CALL insn.
7016 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7017 to use the SETLB and Lcc or FLcc insns.
7018 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7019 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7020 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7021 disable the SETLB optimization.
7022 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7023 __SETLB__ or __NO_SETLB__.
7024 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7025 (movsf_internal): Handle MDR register.
7026 (cmpsi): Make visible.
7027 (setlb): New pattern.
7028 (Lcc): New pattern.
7029 (FLcc): New pattern.
7030
7031 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7032
7033 PR target/48860
7034 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7035 for reg<->xmm moves.
7036 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7037 (vec_concatv2di_rex64_sse): Ditto.
7038 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7039 (*vec_extractv2di_1_rex64): Ditto.
7040
7041 Revert:
7042 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7043
7044 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7045 reg<->xmm moves.
7046 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7047
7048 2011-05-04 Richard Guenther <rguenther@suse.de>
7049
7050 * tree.h (int_const_binop): Remove notrunc argument.
7051 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7052 create integer constants that are properly truncated.
7053 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7054 (const_binop): Remove zero notrunc argument to int_const_binop.
7055 (size_binop_loc): Likewise.
7056 (fold_div_compare): Likewise.
7057 (maybe_canonicalize_comparison_1): Likewise.
7058 (fold_comparison): Likewise.
7059 (fold_binary_loc): Likewise.
7060 (multiple_of_p): Likewise.
7061 * expr.c (store_constructor): Likewise.
7062 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7063 (maybe_fold_stmt_addition): Likewise.
7064 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7065 * stor-layout.c (layout_type): Likewise.
7066 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7067 * tree-sra.c (build_ref_for_offset): Likewise.
7068 (build_user_friendly_ref_for_offset): Likewise.
7069 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7070 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7071 * tree-ssa-loop-niter.c (inverse): Likewise.
7072 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7073 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7074 * tree-switch-conversion.c (check_range): Likewise.
7075 (build_constructors): Likewise.
7076 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7077 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7078 (extract_range_from_assert): Likewise.
7079 (vrp_int_const_binop): Likewise.
7080 (extract_range_from_binary_expr): Likewise.
7081 (extract_range_from_unary_expr): Likewise.
7082 (check_array_ref): Likewise.
7083 (find_case_label_range): Likewise.
7084 (simplify_div_or_mod_using_ranges): Likewise.
7085 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7086 comparing case labels for merging.
7087
7088 2011-05-03 Mark Wielaard <mjw@redhat.com>
7089
7090 * dwarf2out.c (debug_str_hash_forced): Removed.
7091 (gen_label_for_indirect_string): Removed.
7092 (get_debug_string_label): Removed.
7093 (AT_string_form): Generate label directly.
7094 (output_indirect_string): Test indirect_string_node for
7095 DW_FORM_strp instead of checking label and refcount.
7096 (prune_indirect_string): Removed.
7097 (prune_unused_types): Don't check debug_str_hash_forced or
7098 call prune_indirect_string.
7099
7100 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7101
7102 PR other/48093
7103 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7104
7105 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7106
7107 PR debug/47994
7108 PR debug/47919
7109 * combine.c (try_combine): Skip debug insns at m_split tests.
7110
7111 2011-04-26 Mark Wielaard <mjw@redhat.com>
7112
7113 PR42288
7114 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7115 when info_section_emitted.
7116
7117 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7118
7119 * config/mips/mips-opts.h: New.
7120 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7121 to mips-opts.h.
7122 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7123 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7124 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7125 via opts pointer.
7126 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7127 mips-opts.h.
7128 (mips_abi, mips_code_readable): Don't declare.
7129 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7130 (mabi=): Use Enum and Var.
7131 (mips_abi): New Enum and EnumValue entries.
7132 (mcode-readable=): Use Enum and Var.
7133 (mips_code_readable_setting): New Enum and EnumValue entries.
7134 (mr10k-cache-barrier=): Use Enum and Var.
7135 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7136
7137 2011-05-03 Jan Hubicka <jh@suse.cz>
7138
7139 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7140 replace hash by pointer map.
7141 (cgraph_node_set_element_def, cgraph_node_set_element,
7142 const_cgraph_node_set_element, varpool_node_set_element_def,
7143 varpool_node_set_element, const_varpool_node_set_element): Remove.
7144 (free_cgraph_node_set, free_varpool_node_set): New function.
7145 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7146 * tree-emutls.c: Free varpool node set.
7147 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7148 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7149 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7150 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7151 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7152 Move here from ipa.c; implement using pointer_map
7153 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7154 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7155 debug_cgraph_node_set, varpool_node_set_new,
7156 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7157 dump_varpool_node_set, debug_varpool_node_set):
7158 Move to ipa-uitls.c.
7159 * passes.c (ipa_write_summaries): Update.
7160
7161 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7162
7163 From Mike Frysinger:
7164 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7165 bf542/bf544/bf547/bf548/bf549.
7166
7167 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7168
7169 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7170
7171 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7172
7173 From Bernd Schmidt:
7174 * config/bfin/bfin.md (MOVCC): New mode_macro.
7175 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7176 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7177 comments from generated assembly.
7178
7179 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7180
7181 From Bernd Schmidt
7182 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7183 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7184 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7185 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7186 * config/bfin/lib1funcs.asm (___muldi3): New function.
7187
7188 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7189
7190 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7191 build_function_type_list instead of build_function_type.
7192 Rearrange initialization of `args' to do so.
7193
7194 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7195
7196 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7197 instead of build_function_type.
7198
7199 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7200
7201 * config/rs6000/rs6000.c (spe_init_builtins): Call
7202 build_function_type_list instead of build_function_type.
7203 (paired_init_builtins, altivec_init_builtins): Likewise.
7204 (builtin_function_type): Likewise.
7205
7206 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7207
7208 * config/sh/sh.c (sh_media_init_builtins): Call
7209 build_function_type_list instead of build_function_type.
7210
7211 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7212
7213 * config/sparc/sparc.c (sparc_file_end): Call
7214 build_function_type_list instead of build_function_type.
7215
7216 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7217
7218 * config/alpha/alpha.c (alpha_init_builtins): Call
7219 build_function_type_list instead of build_function_type.
7220
7221 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7222
7223 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7224 build_function_type_list instead of build_function_type.
7225
7226 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7227
7228 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7229 build_function_type_list instead of build_function_type.
7230 Delete `endlink' variable.
7231
7232 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7233
7234 * config/avr/avr.c (avr_init_builtins): Call
7235 build_function_type_list instead of build_function_type.
7236
7237 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7238
7239 * config/picochip/picochip.c (picochip_init_builtins): Call
7240 build_function_type_list instead of build_function_type.
7241 Delete `endlink' variable.
7242
7243 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7244
7245 * config/bfin/bfin.c (bfin_init_builtins): Call
7246 build_function_type_list instead of build_function_type.
7247
7248 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7249
7250 From Bernd Schmidt
7251 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7252 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7253
7254 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7255
7256 From Jie Zhang:
7257 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7258 libbffastfp overrides libgcc when -mfast-fp.
7259
7260 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7261
7262 Originally from Bernd Schmidt
7263 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7264 * config/bfin/bfin.c (override_options): Test it and error if
7265 TARGET_FDPIC.
7266
7267 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7268
7269 Originally From Bernd Schmidt
7270 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7271 FD-PIC.
7272
7273 2011-05-03 Jeff Law <law@redhat.com>
7274
7275 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7276 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7277 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7278 than accessing AUX field directly. Free the AUX field before
7279 clearing it.
7280 (thread_block, thread_through_loop_header): Likewise.
7281 (thread_single_edge, mark_threaded_blocks): Likewise.
7282 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7283 (register_jump_thread): Do not attempt to thread to a NULL edge.
7284
7285 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7286
7287 * function.c (init_function_start): Call decide_function_section.
7288 * varasm.c (decide_function_section): New function.
7289 (assemble_start_function): When not using
7290 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7291 or first_function_block_is_cold.
7292 * rtl.h (decide_function_section): Declare.
7293
7294 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7295 Jakub Jelinek <jakub@redhat.com>
7296
7297 PR target/48774
7298 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7299 only succeed if req_mode is the same as set_mode.
7300
7301 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7302
7303 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7304 * genemit.c (gen_exp): Handle RETURN.
7305 * emit-rtl.c (verify_rtx_sharing): Likewise.
7306 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7307 * rtl.c (copy_rtx): RETURN is shared.
7308 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7309 (ret_rtx): New.
7310 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7311 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7312 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7313 * config/cris/cris.c (cris_expand_return): Likewise.
7314 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7315 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7316 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7317 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7318 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7319 Likewise.
7320 * config/v850/v850.c (expand_epilogue): Likewise.
7321 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7322 * config/arm/arm.md (epilogue): Likewise.
7323 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7324 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7325 variable to ret_reg.
7326
7327 2011-05-03 Richard Guenther <rguenther@suse.de>
7328
7329 PR lto/48846
7330 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7331 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7332 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7333
7334 2011-05-03 Richard Guenther <rguenther@suse.de>
7335
7336 * c-decl.c (grokdeclarator): Instead of looking at
7337 TREE_OVERFLOW check if the constant fits in the index type.
7338
7339 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7340
7341 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7342 (vec_store_lanes<mode><mode>): Likewise.
7343
7344 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7345
7346 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7347 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7348 convert_optab_index values.
7349 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7350 * genopinit.c (optabs): Initialize the new optabs.
7351 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7352 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7353 (expand_STORE_LANES): New functions.
7354 * tree.h (build_array_type_nelts): Declare.
7355 * tree.c (build_array_type_nelts): New function.
7356 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7357 (vect_model_load_cost): Likewise.
7358 (vect_store_lanes_supported, vect_load_lanes_supported)
7359 (vect_record_strided_load_vectors): Declare.
7360 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7361 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7362 (vect_transform_strided_load): Split out statement recording into...
7363 (vect_record_strided_load_vectors): ...this new function.
7364 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7365 (write_vector_array, create_array_ref): New functions.
7366 (vect_model_store_cost): Add store_lanes_p argument.
7367 (vect_model_load_cost): Add load_lanes_p argument.
7368 (vectorizable_store): Try to use store-lanes functions for
7369 interleaved stores.
7370 (vectorizable_load): Likewise load-lanes and loads.
7371 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7372 to vect_model_store_cost.
7373 (vect_build_slp_tree): Likewise vect_model_load_cost.
7374
7375 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7376
7377 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7378 * hooks.c (hook_bool_mode_uhwi_false): New function.
7379 * target.def (array_mode_supported_p): New hook.
7380 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7381 * doc/tm.texi: Regenerate.
7382 * stor-layout.c (mode_for_array): New function.
7383 (layout_type): Use it.
7384 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7385 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7386
7387 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7388
7389 PR target/48723
7390 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7391 for -fstack-check if the size to allocate is negative.
7392
7393 2011-05-02 Lawrence Crowl <crowl@google.com>
7394
7395 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7396 (timevar_cond_start): New for starting a timer only when it is not
7397 already running.
7398 (timevar_cond_stop): New for stopping a timer when it was not already
7399 running.
7400
7401 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7402 (timevar_cond_start): New as above.
7403 (timevar_cond_stop): New as above.
7404
7405 * timevar.def: Add start/stop timers for compiler phases,
7406 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7407 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7408 and TV_PHASE_FINALIZE.
7409 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7410 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7411 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7412 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7413 Make unused TV_OVERLOAD into a start/stop timer.
7414
7415 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7416 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7417 to indicate that they are start/stop timers.
7418
7419 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7420 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7421 Move initialization to do_compile.
7422 (do_compile): Add initialization from above.
7423 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7424
7425 * c-decl.c (c_write_global_declarations): Add start/stop of
7426 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7427
7428 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7429 or TV_PARSE_INLINE, as appropriate.
7430 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7431 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7432
7433 2011-05-02 Jason Merrill <jason@redhat.com>
7434
7435 PR c++/40975
7436 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7437
7438 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7439
7440 PR c/35445
7441 * c-decl.c (finish_decl): Only create a composite if the types are
7442 compatible.
7443
7444 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7445
7446 * config/fr30/fr30-protos.h (Mmode): Don't define.
7447 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7448 definition where used.
7449 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7450 define. Expand definitions where used.
7451 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7452 Expand definitions where used.
7453 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7454 rx_function_arg, rx_function_arg_advance,
7455 rx_function_arg_boundary): Expand definitions of those macros.
7456 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7457 definition where used.
7458
7459 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7460
7461 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7462 reg<->xmm moves.
7463 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7464 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7465 with *movv2sf_internal_rex64_avx.
7466 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7467 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7468 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7469 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7470 "vex" in "prefix" attribute calculation.
7471 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7472
7473 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7474
7475 PR target/47951
7476 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7477 inputs match the output.
7478
7479 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7480
7481 PR target/47955
7482 * config/m68k/m68k.c (m68k_expand_prologue): Set
7483 current_function_static_stack_size.
7484
7485 2011-05-02 Jan Hubicka <jh@suse.cz>
7486
7487 * lto-streamer.c (lto_streamer_cache_insert_1,
7488 lto_streamer_cache_lookup, lto_streamer_cache_create,
7489 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7490 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7491
7492 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7493
7494 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7495 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7496 config/m68k/t-opts: New files.
7497 * config/m68k/m68k-tables.opt: New file (generated).
7498 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7499 extra_options and m68k/t-opts to tmake_file.
7500 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7501 (all_isas): Initialize using m68k-isas.def.
7502 (all_microarchs): Initialize using m68k-microarchs.def.
7503 (m68k_find_selection): Remove.
7504 (m68k_handle_option): Don't assert that global structures are in
7505 use. Use error_at. Access variables via opts pointer. Don't
7506 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7507 directly for -m68020-40 and -m68020-60.
7508 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7509 m68k_tune_entry here.
7510 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7511 to m68k-opts.h.
7512 (m68k_library_id_string): Remove declaration.
7513 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7514 (m68k_library_id_string): New Variable.
7515 (march=, mcpu=, mtune=): Use Enum and Var.
7516
7517 2011-05-02 Richard Guenther <rguenther@suse.de>
7518
7519 * varasm.c (output_constructor_regular_field): Compute zero-based
7520 index with double-ints. Make sure to ICE instead of producing
7521 wrong code.
7522 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7523 in asserts. Properly use a signed type.
7524
7525 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7526
7527 * config/i386/sse.md (V): New mode iterator.
7528 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7529 TARGET_SSE2.
7530 (V_256): Rename from AVX256MODE.
7531 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7532 condition to all users.
7533 (VF1): Ditto.
7534 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7535 condition to all users.
7536 (VF_128): Make V4SF mode unconditional.
7537 (VF_256): Rename from AVX256MODEF2P.
7538 (VI4F_128): Rename from SSEMODE4S.
7539 (VI8F_128): Rename from SSEMODE2D.
7540 (VI4F_256): Rename from AVX256MODE8P.
7541 (VI8F_256): Rename from AVX256MODE4P.
7542 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7543 (ssescalarmodesuffix): Remove SF and DF modes.
7544 (SSEMODE124): Remove.
7545 (SSEMODE1248): Ditto.
7546 (SSEMODEF2P): Ditto.
7547 (AVXMODEF2P): Ditto.
7548 (AVXMODEFDP): Ditto.
7549 (AVXMODEFSP): Ditto.
7550 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7551 unconditional.
7552 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7553 unconditional.
7554 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7555 xop_pcmov_<mode>256. Use V mode iterator.
7556
7557 Adjust RTX patterns globally for renamed mode attributes.
7558
7559 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7560
7561 * haifa-sched.c (sched_emit_insn): Emit insn before first
7562 non-scheduled insn. Inform back-end about new insn. Add
7563 new insn to scheduled_insns list.
7564
7565 2011-05-02 Richard Guenther <rguenther@suse.de>
7566
7567 PR tree-optimization/48822
7568 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7569 (process_scc): Indicate which iteration we start.
7570
7571 2011-05-02 Jan Hubicka <jh@suse.cz>
7572
7573 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7574 (lto_section_overrun): New.
7575 * lto-section-out.c (append_block): Rename to ...
7576 (lto_append_block): ... this one; export.
7577 (lto_output_1_stream): Move lto lto-streamer.h
7578 (lto_output_data_stream): Update.
7579 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7580 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7581 functions.
7582
7583 2011-05-02 Richard Guenther <rguenther@suse.de>
7584
7585 * tree.c (tree_code_counts): New global array.
7586 (record_node_allocation_statistics): Count individual tree codes.
7587 (dump_tree_statistics): Dump individual code stats.
7588
7589 2011-05-01 Jan Hubicka <jh@suse.cz>
7590
7591 * ipa-inline.c (caller_growth_limits): Fix thinko when
7592 looking for largest stack frame.
7593 * ipa-inline.h (dump_inline_summary): Declare.
7594 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7595 on stack usage.
7596 (dump_inline_summary): Export.
7597 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7598
7599 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7600
7601 * reginfo.c (memory_move_cost): Change rclass argument type form
7602 'enum reg_class' to reg_class_t.
7603 * reload.h (memory_move_cost): Update prototype.
7604 * postreload.c reload_cse_simplify_set): Change type dclass var to
7605 reg_class_t.
7606 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7607 Update prototype.
7608 (ira_allocate_and_set_costs): Change aclass argument type form
7609 'enum reg_class' to reg_class_t.
7610 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7611 Change aclass argument type to reg_class_t.
7612 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7613 to reg_class_t.
7614 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7615 memory_move_cost call.
7616
7617 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7618 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7619 Change type tmp var to reg_class_t.
7620
7621 2011-04-30 Jan Hubicka <jh@suse.cz>
7622
7623 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7624 inlining into function with flatten attribute.
7625 (want_inline_small_function_p): Be more realistic about inlining
7626 cold calls where callee size grows.
7627
7628 2011-04-30 Jan Hubicka <jh@suse.cz>
7629
7630 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7631 flags.
7632
7633 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7634
7635 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7636 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7637 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7638 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7639 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7640 (print_operand): Rename to...
7641 (sparc_print_operand): ...this. Make static. Adjust
7642 sparc_print_operand function call.
7643 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7644 functions.
7645
7646 2011-04-30 Jan Hubicka <jh@suse.cz>
7647
7648 PR middle-end/48752
7649 * ipa-inline.c (early_inliner): Disable when doing late
7650 addition of function.
7651
7652 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7653
7654 * dwarf2out.c (get_address_mode): New inline.
7655 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7656 if not dwarf_strict emit
7657 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7658 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7659 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7660 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7661 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7662 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7663 mem_loc_descriptor callers.
7664 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7665 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7666 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7667 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7668 (base_types): New variable.
7669 (get_base_type_offset, calc_base_type_die_sizes,
7670 base_type_for_mode, mark_base_types, base_type_cmp,
7671 move_marked_base_types): New functions.
7672 (calc_die_sizes): Assert that die_offset is 0 or equal to
7673 next_die_offset.
7674 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7675 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7676 callers. If not dwarf_strict, call mem_loc_descriptor even for
7677 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7678 (gen_subprogram_die): Don't give up on call site parameters
7679 with non-integral or large integral modes. Adjust
7680 mem_loc_descriptor callers.
7681 (prune_unused_types): Call prune_unused_types_mark on base_types
7682 vector entries.
7683 (resolve_addr): Call mark_base_types.
7684 (dwarf2out_finish): Call move_marked_base_types.
7685
7686 PR tree-optimization/48809
7687 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7688 type.
7689 (gen_inbound_check): Don't compute index_expr - range_min in utype
7690 again, instead reuse SSA_NAME initialized in build_arrays.
7691 Remove two useless gsi_for_stmt calls.
7692
7693 2011-04-29 Jeff Law <law@redhat.com>
7694
7695 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7696
7697 2011-04-29 Martin Jambor <mjambor@suse.cz>
7698
7699 * cgraph.h (cgraph_postorder): Remove declaration.
7700 * ipa-utils.h (ipa_free_postorder_info): Declare.
7701 (ipa_reverse_postorder): Likewise.
7702 * cgraphunit.c: Include ipa-utils.h.
7703 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7704 * ipa-inline.c: Include ipa-utils.h.
7705 (ipa_inline): Update call to ipa_reverse_postorder.
7706 * ipa-pure-const.c (propagate_pure_const): Update call to
7707 ipa_reduced_postorder and ipa_print_order. Call
7708 ipa_free_postorder_info to clean up.
7709 (propagate_nothrow): Likewise.
7710 * ipa-reference.c (propagate): Removed a useless call to
7711 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7712 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7713 * ipa.c: Include ipa-utils.h.
7714 (ipa_profile): Update call to ipa_reverse_postorder.
7715 (cgraph_postorder): Moved to...
7716 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7717 (ipa_utils_print_order): Renamed to ipa_print_order.
7718 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7719 comments.
7720 (ipa_free_postorder_info): New function.
7721 * passes.c: Include ipa-utils.h.
7722 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7723 (ipa_write_summaries): Likewise.
7724 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7725 (cgraphunit.o): Likewise.
7726 (ipa.o): Likewise.
7727 (ipa-inline.o): Likewise.
7728
7729 2011-04-29 Jan Hubicka <jh@suse.cz>
7730
7731 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7732 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7733 * ipa-inline.h (clause_t): Turn into unsigned int.
7734 * ipa-inline-analysis.c (add_clause): Do more simplification.
7735 (and_predicates): Shortcut more cases.
7736 (predicates_equal_p): Move forward; check that clauses are properly
7737 ordered.
7738 (or_predicates): Shortcut more cases.
7739 (edge_execution_predicate): Rewrite as...
7740 (set_cond_stmt_execution_predicate): ... this function; handle
7741 __builtin_constant_p.
7742 (set_switch_stmt_execution_predicate): New .
7743 (compute_bb_predicates): New.
7744 (will_be_nonconstant_predicate): Update TODO.
7745 (estimate_function_body_sizes): Use compute_bb_predicates
7746 and free them later, always try to estimate if stmt is constant.
7747 (estimate_time_after_inlining, estimate_size_after_inlining):
7748 Gracefully handle optimized out edges.
7749 (read_predicate): Fix off by one error.
7750
7751 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7752
7753 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7754
7755 2011-04-27 Xinliang David Li <davidxl@google.com>
7756
7757 * tree-profile.c (init_ic_make_global_vars): Set
7758 tls attribute on ic vars.
7759 * coverage.c (coverage_end_function): Initialize
7760 function_list with zero.
7761
7762 2011-04-29 Richard Guenther <rguenther@suse.de>
7763
7764 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7765 for the type of the result.
7766 (fold_builtin_isascii): Likewise.
7767 (fold_builtin_toascii): Use integer_type_node where appropriate.
7768 (fold_builtin_logb): Likewise.
7769 (fold_builtin_frexp): Likewise.
7770 (fold_builtin_strstr): Likewise.
7771 (fold_builtin_strpbrk): Likewise.
7772 (fold_builtin_fputs): Likewise.
7773 (fold_builtin_sprintf): Likewise.
7774 (fold_builtin_snprintf): Likewise.
7775 (fold_builtin_printf): Likewise.
7776 (do_mpfr_remquo): Use a proper type for the assigned constant.
7777 (do_mpfr_lgamma_r): Likewise.
7778 * dwarf2out.c (resolve_one_addr): Use size_int.
7779 * except.c (init_eh): Likewise.
7780 (assign_filter_values): Use integer_type_node for filter values.
7781 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7782 indices.
7783 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7784 for EH region numbers.
7785 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7786 for the shift amount.
7787
7788 2011-04-29 Richard Guenther <rguenther@suse.de>
7789
7790 * expr.h (expand_shift): Rename to ...
7791 (expand_variable_shift): ... this.
7792 (expand_shift): Take a constant shift amount.
7793 * expmed.c (expand_shift): Rename to ...
7794 (expand_variable_shift): ... this.
7795 (expand_shift): New wrapper around expand_variable_shift.
7796 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7797 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7798 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7799 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7800 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7801 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7802 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7803 emit_store_flag_1, emit_store_flag): Likewise.
7804 * builtins.c (expand_builtin_signbit): Likewise.
7805 * calls.c (load_register_parameters): Likewise.
7806 * function.c (assign_parm_setup_block): Likewise.
7807 * lower-subreg.c (resolve_shift_zext): Likewise.
7808 * optabs.c (widen_bswap, expand_abs_nojump,
7809 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7810 * spu/spu.c (spu_expand_extv): Likewise.
7811 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7812
7813 2011-04-29 Richard Guenther <rguenther@suse.de>
7814
7815 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7816 for the remapped region number.
7817 * predict.c (build_predict_expr): Use integer_type_node for the
7818 predict kind.
7819 * fold-const.c (fold_binary_loc): Use integer_type_node for
7820 the shift amount. Use a proper type for the PLUS_EXPR operand.
7821
7822 2011-04-29 Michael Matz <matz@suse.de>
7823
7824 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7825 other trees that just builtins.
7826 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7827
7828 2011-04-29 Richard Guenther <rguenther@suse.de>
7829
7830 * tree-nested.c (get_trampoline_type): Use size_int.
7831 (get_nl_goto_field): Likewise.
7832 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7833 for all indexes.
7834 (lower_eh_constructs_2): Likewise.
7835 (lower_resx): Likewise.
7836 (lower_eh_dispatch): Likewise.
7837 * tree-mudflap.c (mf_build_string): Use size_int.
7838 (mudflap_register_call): Use integer_type_node for the flag.
7839 (mudflap_enqueue_constant): Use size_int.
7840 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7841 instead of rebuilding it.
7842
7843 2011-04-29 Richard Guenther <rguenther@suse.de>
7844
7845 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7846 Handle OBJ_TYPE_REF.
7847 (find_func_aliases_for_call): Use it more consistently.
7848
7849 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7850
7851 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7852 (rank_for_schedule): Use it.
7853 (schedule_block): Set it.
7854
7855 2011-04-28 David Li <davidxl@google.com>
7856
7857 * tree.c (crc32_string): Use crc32_byte.
7858 (crc32_byte): New function.
7859 * tree.h (crc32_byte): New function.
7860 * gcov.c (read_graph_file): Handle new cfg_cksum.
7861 (read_count_file): Ditto.
7862 * profile.c (instrument_values): Ditto.
7863 (get_exec_counts): Ditto.
7864 (read_profile_edge_counts): Ditto.
7865 (compute_branch_probabilities): Ditto.
7866 (compute_value_histograms): Ditto.
7867 (branch_prob): Ditto.
7868 (end_branch_prob): Ditto.
7869 * coverage.c (read_counts_file): Ditto.
7870 (get_coverage_counts): Ditto.
7871 (tree_coverage_counter_addr): Ditto.
7872 (coverage_checksum_string): Ditto.
7873 (coverage_begin_output): Ditto.
7874 (coverage_end_function): Ditto.
7875 (build_fn_info_type): Ditto.
7876 (build_fn_info_value): Ditto.
7877 * libgcov.c (gcov_exit): Ditto.
7878 * gcov-dump.c (tag_function): Ditto.
7879 (compute_checksum): Remove.
7880
7881 2011-04-29 Alan Modra <amodra@gmail.com>
7882
7883 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7884 unspec plus offset. Tidy macho code.
7885
7886 2011-04-29 Martin Jambor <mjambor@suse.cz>
7887
7888 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7889 node instead of a decl. Update all callers.
7890 * cgraph.h: Update declaration.
7891
7892 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7893
7894 PR tree-optimization/48765
7895 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7896 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7897 to indicate if loop aware SLP is being used. Scan the statements
7898 and update the vectorization factor according to the type of
7899 vectorization before statement analysis.
7900 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7901 pass it to vect_analyze_loop_operations.
7902 (vectorizable_reduction): Set number of copies to 1 in case of pure
7903 SLP statement.
7904 * tree-vect-stmts.c (vectorizable_conversion,
7905 vectorizable_assignment, vectorizable_shift,
7906 vectorizable_operation, vectorizable_type_demotion,
7907 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7908 Likewise.
7909 (vectorizable_condition): Move the check that it is not SLP
7910 vectorization before the number of copies check.
7911 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7912 to vectorize the loop using SLP.
7913
7914 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7915
7916 PR middle-end/48597
7917 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7918 inline asm.
7919
7920 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7921
7922 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7923 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7924 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7925 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7926 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7927 linux*.h headers.
7928 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7929 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7930 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7931 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7932 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7933 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7934 REG_NAME.
7935 * config/i386/linux.h (REG_NAME): Don't define.
7936 * config/i386/linux64.h (REG_NAME): Don't define.
7937 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7938 Undefine before defining.
7939
7940 2011-04-28 Jan Hubicka <jh@suse.cz>
7941
7942 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7943 nonconstant_names array.
7944 (estimate_function_body_sizes): Build nonconstant_names array; handle
7945 BUILT_IN_CONSTANT_P.
7946
7947 2011-04-28 Richard Guenther <rguenther@suse.de>
7948
7949 PR bootstrap/48804
7950 Revert
7951 2011-04-28 Richard Guenther <rguenther@suse.de>
7952
7953 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7954 as late as possible.
7955
7956 2011-04-28 Richard Guenther <rguenther@suse.de>
7957
7958 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7959 (debug_constraint): Do it here.
7960 (dump_constraints): And here.
7961 (rewrite_constraints): And here.
7962 (dump_constraint_edge): Remove.
7963 (dump_constraint_graph): Rewrite to produce DOT output.
7964 (solve_constraints): Build succ graph as late as possible.
7965 Dump constraint graphs before and after solving.
7966
7967 2011-04-28 Richard Guenther <rguenther@suse.de>
7968
7969 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7970 New function split out from ...
7971 (find_func_aliases): ... here. Call it.
7972 (find_func_aliases_for_call): Likewise.
7973
7974 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7975
7976 * internal-fn.h (internal_fn_name_array): Declare.
7977 (internal_fn_flags_array): Likewise.
7978
7979 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7980
7981 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7982 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7983 Move from sse.md.
7984 (ssemodefsuffix): Remove.
7985 (ssevecmodesuffix): New mode attribute.
7986 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7987 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7988 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7989 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7990 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7991 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7992 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7993 ssemodesuffix mode attribute.
7994 (float splitters): Use ssevecmodesuffix mode attribute.
7995 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7996 (sseinsmode): Rename from avxvecmode.
7997 (avxsizesuffix): Rename from avxmodesuffix.
7998 (sseintvecmode): Rename from avxpermvecmode.
7999 (ssedoublevecmode): Rename from ssedoublesizemode.
8000 (ssehalfvecmode): Rename from avxhalfvecmode.
8001 (ssescalarmode): Rename from avxscalarmode.
8002 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8003 templates for ssemodesuffix mode attribute.
8004 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8005 mode attribute.
8006
8007 Adjust RTX patterns globally for renamed mode attributes.
8008
8009 2011-04-27 Jan Hubcika <jh@suse.cz>
8010
8011 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8012 * ipa-inline-analysis.c: Include alloc-pool.h.
8013 (edge_predicate_pool): New.
8014 (trye_predicate_p): New function
8015 (false_predicate_p): New function.
8016 (add_clause): Sanity check that false clauses are "optimized";
8017 never add clauses to predicate that is already known to be false.
8018 (and_predicate): Use flase_predicate_p.
8019 (evaulate_predicate): Rename to ...
8020 (evaluate_predicate): ... this one; update all callers; assert
8021 that false is not listed among possible truths.
8022 (dump_predicate): Use true_predicate_p.
8023 (account_size_time): Use false_predicate_p.
8024 (evaulate_conditions_for_edge): Rename to ...
8025 (evaluate_conditions_for_edge) ... this one.
8026 (edge_set_predicate): New function.
8027 (inline_edge_duplication_hook): Duplicate edge predicates.
8028 (inline_edge_removal_hook): Free edge predicates.
8029 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8030 (dump_inline_summary): Update.
8031 (estimate_function_body_sizes): Set edge predicates.
8032 (estimate_calls_size_and_time): Handle predicates.
8033 (estimate_callee_size_and_time): Update.
8034 (remap_predicate): Add toplev_predicate; update comment.
8035 (remap_edge_predicates): New function.
8036 (inline_merge_summary): Compute toplev predicate; update.
8037 (read_predicate): New function.
8038 (read_inline_edge_summary): Use it.
8039 (inline_read_section): Likewise.
8040 (write_predicate): New function.
8041 (write_inline_edge_summary): Use it.
8042 (inline_write_summary): Likewise.
8043 (inline_free_summary): Free alloc pool and edge summary vec.
8044
8045 2011-04-27 Richard Guenther <rguenther@suse.de>
8046
8047 * tree-ssa-structalias.c (changed_count): Remove.
8048 (changed): Use a bitmap.
8049 (unify_nodes): Adjust.
8050 (do_sd_constraint): Likewise.
8051 (do_ds_constraint): Likewise.
8052 (do_complex_constraint): Likewise.
8053 (solve_graph): Likewise.
8054
8055 2011-04-27 Jan Hubicka <jh@suse.cz>
8056
8057 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8058
8059 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8060
8061 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8062 (avx_vperm2f128_*_operand): Ditto.
8063 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8064 Use avx_vpermilp_parallel in insn condition.
8065 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8066 Use avx_vperm2f128_parallel in insn condition.
8067
8068 2011-04-27 Richard Guenther <rguenther@suse.de>
8069
8070 * Makefile.in (tree-ssa-structalias.o): Remove
8071 gt-tree-ssa-structalias.h dependency.
8072 (GTFILES): Remove tree-ssa-structalias.c.
8073 * tree.c (allocate_decl_uid): New function.
8074 (make_node_stat): Use it.
8075 (copy_node_stat): Likewise.
8076 * tree.h (allocate_decl_uid): Declare.
8077 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8078 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8079 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8080 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8081 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8082 (struct heapvar_map): Likewise.
8083 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8084 heapvar_insert): Likewise.
8085 (make_heapvar_for): Rename to ...
8086 (make_heapvar): ... this. Simplify.
8087 (fake_var_decl_obstack): New global var.
8088 (build_fake_var_decl): New function.
8089 (make_constraint_from_heapvar): Adjust.
8090 (handle_lhs_call): Likewise.
8091 (create_function_info_for): Likewise.
8092 (intra_create_variable_infos): Likewise.
8093 (init_alias_vars): Allocate fake_var_decl_obstack.
8094 (init_alias_heapvars, delete_alias_heapvars): Remove.
8095 (compute_points_to_sets): Do not call init_alias_heapvars.
8096 (ipa_pta_execute): Likewise.
8097 (delete_points_to_sets): Free fake_var_decl_obstack.
8098
8099 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8100
8101 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8102 (si_from_UTItype, si_to_UTItype): New functions.
8103 (__udivmodti4): Use them to implement type-punning.
8104 * config/spu/multi3.c (union qword_TItype): New data type.
8105 (si_from_TItype, si_to_TItype): New functions.
8106 (__multi3): Use them to implement type-punning.
8107
8108 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8109
8110 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8111
8112 2011-04-27 Jan Hubicka <jh@suse.cz>
8113
8114 * ipa-prop.c (function_insertion_hook_holder): New holder.
8115 (ipa_add_new_function): New function.
8116 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8117 Register/deregister holder.
8118
8119 2011-04-27 Richard Guenther <rguenther@suse.de>
8120
8121 PR tree-optimization/48772
8122 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8123
8124 2011-04-27 Richard Guenther <rguenther@suse.de>
8125
8126 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8127 TARGET_MEM_REF handling.
8128
8129 2011-04-27 Nick Clifton <nickc@redhat.com>
8130
8131 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8132 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8133 (REG_CLASS_NAMES): Likewise.
8134 (REG_CLASS_CONTENTS): Likewise.
8135 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8136 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8137 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8138 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8139 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8140 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8141 duplicate register classes.
8142 (frv_class_likely_spilled_p): Likewise.
8143 (frv_register_move_cost): Likewise.
8144
8145 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8146 end of the regno_reg_class array.
8147
8148 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8149
8150 PR c/48742
8151 * c-typeck.c (build_binary_op): Don't wrap arguments if
8152 int_operands is true.
8153
8154 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8155
8156 PR target/48767
8157 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8158 targetm.calls.must_pass_in_stack for void type.
8159
8160 2011-04-26 Jan Hubicka <jh@suse.cz>
8161
8162 * cgraphbuild.c (build_cgraph_edges): Update call
8163 of cgraph_create_edge and cgraph_create_indirect_edge.
8164 * cgraph.c (cgraph_create_edge_including_clones,
8165 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8166 cgraph_update_edges_for_call_stmt_node): Do not take nest
8167 argument; do not initialize call_stmt_size/time.
8168 (dump_cgraph_node): Do not dump nest.
8169 (cgraph_clone_edge): Do not take loop_nest argument;
8170 do not propagate it; do not clone call_stmt_size/time.
8171 (cgraph_clone_node): Likewise.
8172 (cgraph_create_virtual_clone): Update.
8173 * cgraph.h (struct cgraph_edge): Remove
8174 call_stmt_size/call_stmt_time/loop_nest.
8175 (cgraph_create_edge, cgraph_create_indirect_edge,
8176 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8177 prototype.
8178 * tree-emutls.c (gen_emutls_addr): Update.
8179 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8180 loop_nest; handle indirect calls, too.
8181 (clone_inlined_nodes): Do not care about updating inline summaries.
8182 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8183 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8184 stream call_stmt_size/call_stmt_time/loop_nest.
8185 * ipa-inline.c (edge_badness): Update.
8186 (ipa_inline): dump summaries after inlining.
8187 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8188 New.
8189 (inline_edge_summary): New function.
8190 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8191 (inline_edge_removal_hook): Handle edge summaries.
8192 (inline_edge_duplication_hook): New hook.
8193 (inline_summary_alloc): Alloc hooks.
8194 (initialize_growth_caches): Do not register removal hooks.
8195 (free_growth_caches); Do not free removal hook.
8196 (dump_inline_edge_summary): New function.
8197 (dump_inline_summary): Use it.
8198 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8199 (inline_update_callee_summaries): New function.
8200 (inline_merge_summary): Use it.
8201 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8202 (read_inline_edge_summary): New function.
8203 (inline_read_section): Use it.
8204 (write_inline_edge_summary): New function.
8205 (inline_write_summary): Use it.
8206 (inline_free_summary): Free edge new holders.
8207 * tree-inline.c (copy_bb): Update.
8208
8209 2011-04-26 Jason Merrill <jason@redhat.com>
8210
8211 * tree-eh.c (lower_try_finally_switch): Create the label along with
8212 the CASE_LABEL_EXPR.
8213
8214 2011-04-26 David S. Miller <davem@davemloft.net>
8215 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8216
8217 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8218 * configure: Regenerate.
8219
8220 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8221
8222 PR target/48258
8223 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8224 reduction.
8225 (VEC_reduc): New code iterator and splitters for vector reduction.
8226 (VEC_reduc_name): Ditto.
8227 (VEC_reduc_rtx): Ditto.
8228 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8229 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8230
8231 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8232 support for extracting SF on VSX.
8233
8234 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8235 generating xscvspdp.
8236 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8237 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8238 double add, minimum, maximum vector reduction.
8239 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8240 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8241 optimize double vector reduction.
8242 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8243
8244 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8245
8246 * config/fr30/fr30.h (inhibit_libc): Don't define.
8247 * config/m32r/m32r-protos.h: Correct comment.
8248 * config/v850/v850.h (GHS_default_section_names,
8249 GHS_current_section_names): Use tree, not union tree_node *.
8250
8251 2011-04-26 Xinliang David Li <davidxl@google.com>
8252
8253 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8254 * c-family/c-opts.c (c_common_handle_option): Set
8255 warn_maybe_uninitialized.
8256 * opts.c (common_handle_option): Ditto.
8257 * common.opt: New option.
8258 * tree-ssa.c (warn_uninit): Add one more parameter.
8259 (warn_uninitialized_var): Pass warning code.
8260 * tree-flow.h: Interface change.
8261
8262 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8263
8264 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8265 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8266 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8267
8268 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8269
8270 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8271 * config/mips/mips.opt (mmips-tfile): Remove.
8272
8273 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8274 mips-tdump reference to ...
8275 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8276 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8277 reference by Tru64 UNIX.
8278
8279 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8280
8281 PR debug/48768
8282 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8283 is error_mark_node, set value to NULL.
8284
8285 PR tree-optimization/48734
8286 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8287 if return value from maybe_fold_*_comparsions isn't something
8288 the code is prepared to handle.
8289
8290 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8291
8292 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8293 mode check.
8294 (ext_QIreg_nomode_operands): Remove.
8295 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8296 (*andsi_1): Ditto.
8297 (*andhi_1): Ditto.
8298
8299 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8300
8301 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8302
8303 2011-04-26 Richard Guenther <rguenther@suse.de>
8304
8305 * c-typeck.c (build_unary_op): Do not expand array-refs via
8306 pointer arithmetic. Only adjust qualifiers for function types.
8307
8308 2011-04-26 Richard Guenther <rguenther@suse.de>
8309
8310 PR middle-end/48694
8311 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8312 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8313 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8314 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8315
8316 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8317
8318 * doc/extend.texi: Document __underlying_type.
8319
8320 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8321
8322 * config/rs6000/titan.md (automata_option "progress"): Remove.
8323
8324 2011-04-25 Jeff Law <law@redhat.com>
8325
8326 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8327
8328 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8329
8330 * system.h (ENUM_BITFIELD): Remove.
8331
8332 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8333 Eric Botcazou <ebotcazou@adacore.com>
8334
8335 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8336 for STORE_FLAG_VALUE==-1 case.
8337
8338 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8339
8340 PR target/43804
8341 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8342 LEGITIMATE_PIC_OPERAND_P.
8343
8344 2011-04-24 Jan Hubicka <jh@suse.cz>
8345
8346 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8347 WPA hack.
8348 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8349 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8350 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8351 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8352 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8353 Sanity check predicate length.
8354 (remap_predicate): Likewise; sanity check jump functions.
8355 (inline_read_section, inline_write_summary): Sanity check
8356 predicate length.
8357
8358 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8359
8360 PR other/48748
8361 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8362 __is_literal_type, and __is_trivial; update throughout about
8363 possibly cv-qualified void types.
8364
8365 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8366
8367 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8368 testsuite and make it version agnostic.
8369
8370 2011-04-22 Jan Hubicka <jh@suse.cz>
8371
8372 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8373
8374 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8375
8376 PR c/48685
8377 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8378 to VOID_TYPE even around MODIFY_EXPR.
8379
8380 2011-04-22 Mike Stump <mikestump@comcast.net>
8381
8382 * gensupport.c (read_md_rtx): Fix typo in comment.
8383 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8384 comment.
8385
8386 2011-04-22 Jan Hubicka <jh@suse.cz>
8387
8388 * gengtype.c (open_base_files): Add ipa-inline.h include.
8389 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8390 ipa-prop.c; update all uses.
8391 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8392 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8393 merge summary of inlined function into former caller.
8394 * ipa-inline.c (max_benefit): Remove.
8395 (edge_badness): Compensate for removal of benefits.
8396 (update_caller_keys): Use
8397 reset_node_growth_cache/reset_edge_growth_cache.
8398 (update_callee_keys): Likewise.
8399 (update_all_callee_keys): Likewise.
8400 (inline_small_functions): Do not collect max_benefit; do not reset
8401 estimated_growth; call free_growth_caches and initialize_growth_caches.
8402 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8403 struct size_time_entry): New structures.
8404 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8405 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8406 and estimated_growth.
8407 (edge_growth_cache_entry): New structure.
8408 (node_growth_cache, edge_growth_cache): New global vars.
8409 (estimate_growth): Turn into inline.
8410 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8411 initialize_growth_caches, free_growth_caches): Declare.
8412 (estimate_edge_growth): Rewrite.
8413 (estimate_edge_time): Implement as inline cache lookup.
8414 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8415 functions.
8416 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8417 (NUM_CONDITIONS): New constant.
8418 (predicate_conditions): New enum.
8419 (IS_NOT_CONSTANT): New constant.
8420 (edge_removal_hook_holder): New var.
8421 (node_growth_cache, edge_growth_cache): New global vars.
8422 (true_predicate, single_cond_predicate, false_predicate,
8423 not_inlined_predicate, add_condition, add_clause, and_predicates,
8424 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8425 dump_clause, dump_predicate, account_size_time,
8426 evaulate_conditions_for_edge): New functions.
8427 (inline_summary_alloc): Move to heap.
8428 (inline_node_removal_hook): Clear condition and entry vectors.
8429 (inline_edge_removal_hook): New function.
8430 (initialize_growth_caches, free_growth_caches): New function.
8431 (dump_inline_summary): Update.
8432 (edge_execution_predicate): New function.
8433 (will_be_nonconstant_predicate): New function.
8434 (estimate_function_body_sizes): Compute BB and constantness predicates.
8435 (compute_inline_parameters): Do not clear estimated_growth.
8436 (estimate_edge_size_and_time): New function.
8437 (estimate_calls_size_and_time): New function.
8438 (estimate_callee_size_and_time): New function.
8439 (remap_predicate): New function.
8440 (inline_merge_summary): New function.
8441 (do_estimate_edge_time): New function based on...
8442 (estimate_edge_time): ... this one.
8443 (do_estimate_edge_growth): New function.
8444 (do_estimate_growth): New function based on....
8445 (estimate_growth): ... this one.
8446 (inline_analyze_function): Analyze after deciding on jump functions.
8447 (inline_read_section): New function.
8448 (inline_read_summary): Use it.
8449 (inline_write_summary): Write all the new data.
8450 * ipa-prop.c (ipa_get_param_decl_index): Export.
8451 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8452 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8453 Declare.
8454 (ipa_get_lattice): Move here from ipa-cp.c
8455 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8456 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8457 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8458 cgraph_edge_inlinable_p): Remove.
8459 * cgraphunit.c: Include ipainline.h
8460 (cgraph_process_new_functions): Update call of
8461 compute_inline_parameters.
8462
8463 2011-04-22 Richard Guenther <rguenther@suse.de>
8464
8465 * tree.c (build_int_cst): Properly create canonicalized integer
8466 constants.
8467 (build_int_cst_type): Remove scary comments.
8468
8469 2011-04-22 Xinliang David Li <davidxl@google.com>
8470
8471 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8472 by default when -Wno-error is not specified.
8473 * opts-global.c (decode_options): Remove call to
8474 control_warning_options.
8475
8476 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8477
8478 PR tree-optimization/48717
8479 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8480 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8481
8482 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8483
8484 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8485 definition where used.
8486
8487 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8488
8489 PR c/48716
8490 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8491 TREE_STATIC variables declared inside of some OpenMP construct.
8492
8493 2011-04-22 Martin Jambor <mjambor@suse.cz>
8494
8495 PR middle-end/48585
8496 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8497
8498 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8499
8500 PR c/36750
8501 * c-typeck.c (pop_init_level): Do not warn about initializing
8502 with ` = {0}'.
8503
8504 2011-04-22 Alan Modra <amodra@gmail.com>
8505
8506 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8507 when returning call_cookie.
8508 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8509 pointers, to functions with no more vector args than the current
8510 function, and some non-local calls for ABI_V4.
8511 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8512 sibcall_nonlocal_aix64): Combine to ..
8513 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8514 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8515 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8516 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8517 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8518 operand.
8519 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8520 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8521 sibcall_value_symbolic_64): Delete.
8522
8523 2011-04-21 Xinliang David Li <davidxl@google.com>
8524
8525 * cgraph.h: Remove pid.
8526 * cgraph.c: Remove pid.
8527 * value-prof.c (init_node_map): New function.
8528 (del_node_map): New function.
8529 (find_func_by_funcdef_no): New function.
8530 (gimple_ic_transform): Call new function.
8531 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8532 * function.c (get_last_funcdef_no): New function.
8533 * function.h (get_last_funcdef_no): New function.
8534 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8535 to libgcov function.
8536 (tree-profiling): Call node map init and delete function.
8537
8538 2011-04-21 Ian Lance Taylor <iant@google.com>
8539
8540 * godump.c (go_format_type): Use exported Go name for anonymous
8541 field name.
8542
8543 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8544
8545 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8546 Call builtin_function_type_list instead of builtin_function_type.
8547 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8548
8549 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8550
8551 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8552 build_function_type_list instead of build_function_type.
8553 Delete variable `endlink'.
8554
8555 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8556
8557 * config/s390/s390.c (s390_init_builtins): Call
8558 build_function_type_list instead of build_function_type.
8559
8560 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8561
8562 * config/ia64/ia64.c (ia64_init_builtins): Call
8563 build_function_type_list instead of builtin_function_type.
8564
8565 2011-04-21 Easwaran Raman <eraman@google.com>
8566
8567 * cfgexpand.c (stack_var): Remove OFFSET...
8568 (add_stack_var): ...and its reference here...
8569 (expand_stack_vars): ...and here.
8570 (stack_var_cmp): Sort by descending order of size.
8571 (partition_stack_vars): Change heuristic.
8572 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8573 (dump_stack_var_partition): Add newline after each partition.
8574
8575 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8576 Jeff Law <law@redhat.com>
8577
8578 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8579 * gengtype.c (matching_file_name_substitute): Likewise.
8580
8581 2011-04-21 Richard Guenther <rguenther@suse.de>
8582
8583 PR lto/48703
8584 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8585
8586 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8587
8588 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8589
8590 2011-04-21 Richard Guenther <rguenther@suse.de>
8591
8592 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8593 file name.
8594
8595 2011-04-21 Richard Guenther <rguenther@suse.de>
8596
8597 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8598 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8599 Use DECL_P, not SSA_VAR_P.
8600 (ptr_derefs_may_alias_p): Likewise.
8601 (ptr_deref_may_alias_ref_p_1): Likewise.
8602 (decl_refs_may_alias_p): Likewise.
8603 (refs_may_alias_p_1): Likewise.
8604 (ref_maybe_used_by_call_p_1): Likewise.
8605 (call_may_clobber_ref_p_1): Likewise.
8606 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8607 are either MEM_REF or TARGET_MEM_REF.
8608 (indirect_refs_may_alias_p): Likewise.
8609 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8610 for MEM_EXPR of indirect calls.
8611
8612 2011-04-21 Tristan Gingold <gingold@adacore.com>
8613
8614 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8615 (dst_file_info_struct): Remove flen field.
8616 (lookup_filename): Remove code that set flen field.
8617
8618 2011-04-21 Tristan Gingold <gingold@adacore.com>
8619
8620 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8621
8622 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8623
8624 PR target/48708
8625 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8626 vec_extract and vec_concat for non-SSE4_1 targets.
8627
8628 2011-04-21 Richard Guenther <rguenther@suse.de>
8629
8630 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8631 return statements.
8632
8633 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8634
8635 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8636 undefine.
8637 (FILE): Don't undefine.
8638
8639 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8640
8641 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8642 struct rtx_def *.
8643 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8644 struct rtx_def *.
8645 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8646 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8647 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8648 rtx_def *.
8649 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8650 definitions where used.
8651 * config/microblaze/microblaze.h (struct microblaze_args): Use
8652 rtx, not struct rtx_def *.
8653 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8654 rtx_def *.
8655 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8656 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8657 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8658 not struct rtx_def *.
8659 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8660 struct rtx_def *.
8661 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8662 rtx_def *.
8663 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8664
8665 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8666
8667 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8668 operand_equal_p to compare DR_BASE_ADDRESSes.
8669 (vect_check_interleaving): Likewise.
8670
8671 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8672
8673 PR target/46329
8674 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8675 for all Neon struct constants.
8676
8677 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8678
8679 * target.def (legitimate_constant_p): New hook.
8680 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8681 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8682 * doc/tm.texi: Regenerate.
8683 * hooks.h (hook_bool_mode_rtx_true): Declare.
8684 * hooks.c (hook_bool_mode_rtx_true): Define.
8685 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8686 * calls.c (precompute_register_parameters): Replace uses of
8687 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8688 (emit_library_call_value_1): Likewise.
8689 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8690 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8691 * ira-costs.c (scan_one_insn): Likewise.
8692 * recog.c (general_operand, immediate_operand): Likewise.
8693 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8694 * reload1.c (init_eliminable_invariants): Likewise.
8695
8696 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8697 mode argument.
8698 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8699 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8700 argument.
8701 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8702 * config/alpha/predicates.md (input_operand): Update call to
8703 alpha_legitimate_constant_p.
8704
8705 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8706 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8707 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8708 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8709 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8710 (arm_legitimate_constant_p): New functions.
8711 (arm_cannot_force_const_mem): Make static.
8712
8713 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8714
8715 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8716 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8717 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8718 instead of bfin_legitimate_constant_p.
8719 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8720 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8721
8722 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8723
8724 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8725
8726 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8727 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8728 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8729 (frv_legitimate_constant_p): Make static. Add a mode argument.
8730
8731 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8732 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8733 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8734
8735 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8736 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8737 * config/i386/i386.c (legitimate_constant_p): Rename to...
8738 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8739 argument.
8740 (ix86_cannot_force_const_mem): Update accordingly.
8741 (ix86_legitimate_address_p): Likewise.
8742 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8743 * config/i386/i386.md: Update commentary.
8744
8745 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8746 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8747 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8748 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8749
8750 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8751
8752 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8753 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8754 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8755 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8756
8757 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8758 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8759 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8760
8761 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8762 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8763 (m32r_legitimate_constant_p): New function.
8764
8765 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8766 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8767 LEGITIMATE_CONSTANT_P.
8768 (LEGITIMATE_CONSTANT_P): Delete.
8769 * config/m68k/m68k.c (m68k_expand_prologue): Call
8770 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8771 (m68k_legitimate_constant_p): New function.
8772 * config/m68k/m68k.md: Update comments.
8773
8774 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8775 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8776 (mcore_legitimate_constant_p): New function.
8777
8778 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8779 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8780 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8781 Add a mode argument.
8782 (mep_legitimate_address): Update accordingly.
8783 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8784
8785 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8786 Delete.
8787 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8788 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8789 static. Check OP's mode for VOIDmode.
8790 (microblaze_legitimate_constant_p): New function.
8791 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8792
8793 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8794 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8795 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8796 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8797 * config/mips/predicates.md: Update comments.
8798
8799 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8800 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8801 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8802 (mmix_legitimate_constant_p): Make static, return a bool, and take
8803 a mode argument.
8804 (mmix_print_operand_address): Update accordingly.
8805
8806 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8807 Delete.
8808 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8809 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8810 static. Add a mode argument.
8811 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8812
8813 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8814
8815 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8816 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8817 (pa_legitimate_constant_p): New function.
8818
8819 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8820
8821 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8822 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8823 (pdp11_legitimate_constant_p): New function.
8824
8825 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8826 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8827 (rs6000_legitimate_constant_p): New function.
8828
8829 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8830 (rx_legitimate_constant_p): ...this.
8831 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8832 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8833 (rx_legitimate_constant_p): ...this.
8834 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8835 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8836
8837 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8838 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8839 * config/s390/s390.c (legitimate_constant_p): Rename to...
8840 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8841 and add a mode argument.
8842 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8843
8844 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8845
8846 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8847 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8848 (sh_legitimate_constant_p): New function.
8849
8850 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8851 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8852 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8853 (legitimate_constant_p): Rename to...
8854 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8855 argument.
8856 (constant_address_p): Update accordingly.
8857
8858 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8859 argument and return a bool.
8860 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8861 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8862 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8863 (spu_rtx_costs): Update accordingly.
8864 * config/spu/predicates.md (vec_imm_operand): Likewise.
8865
8866 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8867
8868 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8869 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8870 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8871
8872 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8873 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8874 * config/vax/vax.c (legitimate_constant_p): Likewise.
8875
8876 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8877 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8878 (xtensa_legitimate_constant_p): New function.
8879
8880 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8881
8882 * target.def (cannot_force_const_mem): Add a mode argument.
8883 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8884 * doc/tm.texi: Regenerate.
8885 * hooks.h (hook_bool_mode_rtx_false): Declare.
8886 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8887 (hook_bool_mode_const_rtx_true): Likewise.
8888 (hook_bool_mode_rtx_false): New function.
8889 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8890 to be non-VOID. Update call to cannot_force_const_mem.
8891 (find_reloads): Update accordingly.
8892 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8893 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8894 argument.
8895 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8896 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8897 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8898 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8899 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8900 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8901 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8902 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8903 (m68k_cannot_force_const_mem): ...this new function.
8904 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8905 argument.
8906 (mips_const_insns, mips_legitimize_const_move): Update calls.
8907 (mips_secondary_reload_class): Likewise.
8908 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8909 (pa_cannot_force_const_mem): ...this new function.
8910 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8911 (rs6000_cannot_force_const_mem): ...this new function.
8912 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8913 argument.
8914 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8915 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8916 to...
8917 (xtensa_cannot_force_const_mem): ...this new function.
8918
8919 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8920
8921 * config/mips/mips.c (mips16_build_function_stub): Call
8922 build_function_type_list instead of build_function_type.
8923 (mips16_build_call_stub): Likewise.
8924
8925 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8926
8927 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8928 instead of build_function_type.
8929
8930 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8931
8932 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8933 instead of build_function_type.
8934
8935 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8936
8937 PR target/48678
8938 * config/i386/i386.md (insv): Change operand 0 constraint to
8939 "register_operand". Change operand 1 and 2 constraint to
8940 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8941 * config/i386/sse.md (sse4_1_pinsrb): Export.
8942 (sse2_pinsrw): Ditto.
8943 (sse4_1_pinsrd): Ditto.
8944 (sse4_1_pinsrq): Ditto.
8945 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8946 * config/i386/i386.c (ix86_expand_pinsr): New.
8947
8948 2011-04-20 Easwaran Raman <eraman@google.com>
8949
8950 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8951 containing union type only with -fstrict-aliasing.
8952
8953 2011-04-20 Jim Meyering <meyering@redhat.com>
8954
8955 Remove useless if-before-free tests.
8956 * calls.c (expand_call, save_area): Likewise.
8957 * cfgcleanup.c (try_forward_edges): Likewise.
8958 * collect2.c (collect_execute): Likewise.
8959 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8960 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8961 * coverage.c (coverage_checksum_string): Likewise.
8962 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8963 * cselib.c (cselib_init): Likewise.
8964 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8965 (df_set_clean_cfg): Likewise.
8966 * function.c (free_after_compilation): Likewise.
8967 * gcc.c (do_spec_1, main): Likewise.
8968 * gcov.c (create_file_names): Likewise.
8969 * gensupport.c (identify_predicable_attribute): Likewise.
8970 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8971 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8972 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8973 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8974 * ipa-pure-const.c (local_pure_const): Likewise.
8975 * ipa-reference.c (propagate): Likewise.
8976 * ira-costs.c (free_ira_costs): Likewise.
8977 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8978 * matrix-reorg.c (mat_free): Likewise.
8979 * prefix.c (get_key_value): Likewise.
8980 * profile.c (compute_value_histograms): Likewise.
8981 * reload1.c (free_reg_equiv): Likewise.
8982 * sched-deps.c (free_deps): Likewise.
8983 * sel-sched-ir.c (fence_clear): Likewise.
8984 * sese.c (set_rename, if_region_set_false_region): Likewise.
8985 * tree-data-ref.c (free_rdg): Likewise.
8986 * tree-eh.c (lower_try_finally): Likewise.
8987 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8988 * tree-ssa-live.c (delete_var_map): Likewise.
8989 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8990 * tree-ssa-pre.c (phi_trans_add): Likewise.
8991
8992 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8993
8994 PR tree-optimization/48611
8995 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8996 beyond ERT_MUST_NOT_THROW region.
8997
8998 2011-04-20 Catherine Moore <clm@codesourcery.com>
8999
9000 * config/mips/mips.opt (mfix-24k): New.
9001 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9002 * config/mips/mips.md (length): Increase by 4 for stores if
9003 fixing 24K errata.
9004 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9005 all noreorder if fixing 24K errata.
9006 * doc/invoke.texi: Document mfix-24k.
9007
9008 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9009
9010 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9011 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9012
9013 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9014
9015 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9016 (const_ok_for_op): ... to here.
9017
9018 2011-04-20 Kai Tietz <ktietz@redhat.com>
9019
9020 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9021 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9022
9023 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9024
9025 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9026
9027 2011-04-20 Richard Guenther <rguenther@suse.de>
9028
9029 PR tree-optimization/47892
9030 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9031 are if-convertible.
9032
9033 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9034
9035 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9036
9037 2011-04-20 Tristan Gingold <gingold@adacore.com>
9038
9039 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9040
9041 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
9042
9043 PR target/18145
9044
9045 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9046 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9047 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9048 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9049 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9050
9051 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9052 New prototype.
9053
9054 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9055 (avr_asm_named_section, avr_asm_output_aligned_common,
9056 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9057 New functions to update...
9058 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9059 (avr_asm_init_sections): Overwrite section callbacks for
9060 data_section, bss_section.
9061 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9062 from here to...
9063 (avr_file_end): ...here.
9064
9065 2011-04-20 Richard Guenther <rguenther@suse.de>
9066
9067 PR middle-end/48695
9068 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9069 objects and types here. Adjust for their offset before comparing.
9070
9071 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9072
9073 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9074 statement per copy.
9075
9076 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9077
9078 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9079 (GIMPLE_H): Include $(INTERNAL_FN_H).
9080 (OBJS-common): Add internal-fn.o.
9081 (internal-fn.o): New rule.
9082 * internal-fn.def: New file.
9083 * internal-fn.h: Likewise.
9084 * internal-fn.c: Likewise.
9085 * gimple.h: Include internal-fn.h.
9086 (GF_CALL_INTERNAL): New gf_mask.
9087 (gimple_statement_call): Put fntype into a union with a new
9088 internal_fn field.
9089 (gimple_build_call_internal): Declare.
9090 (gimple_build_call_internal_vec): Likewise.
9091 (gimple_call_same_target_p): Likewise.
9092 (gimple_call_internal_p): New function.
9093 (gimple_call_internal_fn): Likewise.
9094 (gimple_call_fntype): Return null for internal calls.
9095 (gimple_call_set_fntype): Assert that the function is not internal.
9096 (gimple_call_set_fn): Likewise.
9097 (gimple_call_set_fndecl): Likewise.
9098 (gimple_call_set_internal_fn): New function.
9099 (gimple_call_addr_fndecl): Handle null functions.
9100 (gimple_call_return_type): Likewise null types.
9101 * gimple.c (gimple_build_call_internal_1): New function.
9102 (gimple_build_call_internal): Likewise.
9103 (gimple_build_call_internal_vec): Likewise.
9104 (gimple_call_same_target_p): Likewise.
9105 (gimple_call_flags): Handle calls to internal functions.
9106 (gimple_call_fnspec): New function.
9107 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9108 (gimple_has_side_effects): Handle null functions.
9109 (gimple_rhs_has_side_effects): Likewise.
9110 (gimple_call_copy_skip_args): Handle calls to internal functions.
9111 * cfgexpand.c (expand_call_stmt): Likewise.
9112 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9113 * gimple-fold.c (gimple_fold_call): Handle null functions.
9114 (gimple_fold_stmt_to_constant_1): Don't fold
9115 calls to internal functions.
9116 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9117 functions.
9118 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9119 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9120 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9121 (do_warn_unused_result): Likewise.
9122 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9123 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9124 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9125 the target of a call.
9126 (initialize_hash_element): Update accordingly.
9127 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9128 (iterative_hash_hashable_expr): Handle calls to internal functions.
9129 (print_expr_hash_elt): Likewise.
9130 * tree-ssa-pre.c (can_value_number_call): Likewise.
9131 (eliminate): Handle null functions.
9132 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9133 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9134 (find_func_aliases): Likewise.
9135 * value-prof.c (gimple_ic_transform): Likewise.
9136 (gimple_indirect_call_to_profile): Likewise.
9137 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9138 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9139
9140 2011-04-19 Jan Hubicka <jh@suse.cz>
9141
9142 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9143 * ipa-inline.c (inline_small_functions): Compute summaries first,
9144 populate heap later.
9145
9146 2011-04-19 Jan Hubicka <jh@suse.cz>
9147
9148 * cgraph.h (save_inline_function_body): Remove.
9149 * ipa-inline-transform.c: New file, broke out of...
9150 * ipa-inline.c: ... this one; Update toplevel comment.
9151 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9152 make global.
9153 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9154 (cgraph_mark_inline_edge): Rename to inline_call; move to
9155 ipa-inline-transform.c.
9156 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9157 move to ipa-inline-transform.c
9158 (recursive_inlining, inline_small_functions, flatten_function,
9159 ipa_inline, inline_always_inline_functions,
9160 early_inline_small_functions): Update.
9161 (inline_transform): Move to ipa-inline-transform.c.
9162 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9163 Declare.
9164 * Makefile.in (ipa-inline-transform.o): New file.
9165 * cgraphunit.c (save_inline_function_body): Move to
9166 ipa-inline-transform.c
9167
9168 2011-04-19 DJ Delorie <dj@redhat.com>
9169
9170 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9171 registers if we already know there aren't any.
9172 (m32c_emit_epilogue): Don't emit a barrier here.
9173 (m32c_emit_eh_epilogue): Likewise.
9174 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9175 operands at expand time.
9176 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9177 int" wchar type.
9178 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9179 duplicates. Provide aliases instead.
9180 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9181 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9182 the compiler.
9183
9184 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9185
9186 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9187 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9188 (general_or_i64_p, sparc_register_move_cost): New function.
9189
9190 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9191
9192 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9193 Add lynx, mipssde. Sort table.
9194
9195 2011-04-19 Xinliang David Li <davidxl@google.com>
9196
9197 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9198 not negative.
9199
9200 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9201
9202 PR target/48678
9203 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9204 is a SUBREG with non-MODE_INT mode inside of it.
9205
9206 2011-04-19 Martin Jambor <mjambor@suse.cz>
9207
9208 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9209 also according to actual contants.
9210 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9211 (gimple_fold_call): Use it.
9212 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9213
9214 2011-04-19 Martin Jambor <mjambor@suse.cz>
9215
9216 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9217 non-pointer assignments.
9218
9219 2011-04-19 Martin Jambor <mjambor@suse.cz>
9220
9221 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9222 account anc_offset and otr_type from the indirect edge info.
9223 * ipa-prop.c (get_ancestor_addr_info): New function.
9224 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9225 get_ancestor_addr_info, call it.
9226 (ipa_note_param_call): Do not initialize information about polymorphic
9227 calls, return the indirect call graph edge. Remove the last
9228 parameter, adjust all callers.
9229 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9230 parameters. Initialize polymorphic information in the indirect edge.
9231
9232 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9233
9234 PR lto/48148
9235 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9236 the types if they have different enumeration identifiers.
9237
9238 2011-04-19 Jan Hubicka <jh@suse.cz>
9239
9240 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9241 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9242 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9243 (optimize_function_for_size_p) ... here.
9244
9245 2011-04-19 Richard Guenther <rguenther@suse.de>
9246
9247 PR lto/48207
9248 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9249 langhook.
9250
9251 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9252
9253 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9254 if DECL_NO_INLINE_WARNING_P is set on the function.
9255
9256 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9257
9258 PR fortran/47976
9259 * reload1.c (inc_for_reload): Return void. All callers changed.
9260 (emit_input_reload_insns): Don't try to delete previous output
9261 reloads to a register, or record spill_reg_store for autoincs.
9262
9263 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9264
9265 * gengtype.h: Updated copyright year.
9266 (struct input_file_st): Add inpisplugin field.
9267 (type_fileloc): New function.
9268 * gengtype.c
9269 (write_typed_struct_alloc_def): Add gcc_assert.
9270 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9271 (write_typed_alloc_defns): Don't output for plugin files.
9272 (input_file_by_name): Clear inpisplugin field.
9273 (main): Set inpisplugin field for plugin files.
9274
9275 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9276
9277 * gengtype-state.c (string_eq): New.
9278 (read_state): Use string_eq instead of strcmp when creating the
9279 state_ident_tab.
9280
9281 2011-04-19 Wei Guozhi <carrot@google.com>
9282
9283 PR target/47855
9284 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9285 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9286 linkage.
9287 * config/arm/constraints.md (Uu): New constraint.
9288 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9289
9290 2011-04-19 Tristan Gingold <gingold@adacore.com>
9291
9292 * config.gcc (-*-*-*vms): Added.
9293 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9294 definitions moved.
9295 * config/vms/vms-ld.c: New file.
9296 * config/vms/vms-ar.c: New file.
9297 * config/vms/t-vmsnative: New file.
9298
9299 2011-04-18 Xinliang David Li <davidxl@google.com>
9300
9301 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9302
9303 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9304
9305 PR middle-end/48661
9306 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9307 if TREE_TYPE (v) is non-NULL.
9308
9309 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9310 gimple_get_virt_mehtod_for_binfo.
9311 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9312 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9313 callers.
9314 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9315
9316 2011-04-18 Michael Matz <matz@suse.de>
9317 Steve Ellcey <sje@cup.hp.com>
9318
9319 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9320 use its mode as source mode if it isn't VOIDmode.
9321
9322 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9323
9324 * doc/passes.texi: Fill crossref nodes.
9325
9326 2011-04-18 Jim Meyering <meyering@redhat.com>
9327
9328 Fix doubled-word typos in comments and strings
9329 * config/alpha/vms-unwind.h: s/for for/for/
9330 * config/arm/unwind-arm.h: Likewise.
9331 * config/microblaze/microblaze.c: Likewise.
9332 * config/sh/constraints.md: s/in in/in/
9333 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9334
9335 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9336
9337 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9338 (AVX_FLOAT_MODE_P): Ditto.
9339 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9340 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9341 (AVX_VEC_FLOAT_MODE_P): Ditto.
9342 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9343 (UNSPEC_MASKSTORE): Ditto.
9344 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9345 Merge from <sse>_movmsk<ssemodesuffix> and
9346 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9347 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9348 iterator.
9349 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9350 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9351 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9352
9353 2011-04-18 Jan Hubicka <jh@suse.cz>
9354
9355 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9356
9357 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9358 (want_inline_function_called_once_p): Break out the logic from
9359 ipa_inline.
9360 (edge_badness): Ensure that profile is not misupdated.
9361 (lookup_recursive_calls): Prioritize by call frequencies.
9362 (inline_small_functions): Move program size estimates here;
9363 actually process whole queue even when unit growth has been
9364 met. (to properly compute inline_failed reasons and for the
9365 case unit size decrease.) Revisit comments on recursive inlining.
9366 (ipa_inline): Remove unit summary code; first inline hot calls
9367 of functions called once, cold calls next.
9368 (order, nnodes): Remove unused variables.
9369 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9370 (GTFILES): Remove ipa-inline.c
9371 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9372
9373 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9374
9375 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9376
9377 2011-04-18 Jie Zhang <jie@codesourcery.com>
9378 Richard Earnshaw <rearnsha@arm.com>
9379
9380 * arm.c (neon_builtin_type_bits): Remove.
9381 (typedef enum neon_builtin_mode): New.
9382 (T_MAX): Don't define.
9383 (typedef enum neon_builtin_datum): Remove bits, codes[],
9384 num_vars and base_fcode. Add mode, code and fcode.
9385 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9386 VAR10): Change accordingly.
9387 (neon_builtin_data[]): Change accordingly
9388 (arm_init_neon_builtins): Change accordingly.
9389 (neon_builtin_compare): Remove.
9390 (locate_neon_builtin_icode): Remove.
9391 (arm_expand_neon_builtin): Change accordingly.
9392
9393 * arm.h (enum arm_builtins): Move to ...
9394 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9395
9396 * arm.c (arm_builtin_decl): Declare.
9397 (TARGET_BUILTIN_DECL): Define.
9398 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9399 (arm_builtin_decls[]): New.
9400 (arm_init_neon_builtins): Store builtin declarations in
9401 arm_builtin_decls[].
9402 (arm_init_tls_builtins): Likewise.
9403 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9404 (arm_builtin_decl): New.
9405
9406 2011-04-18 Richard Guenther <rguenther@suse.de>
9407
9408 * tree.c (upper_bound_in_type): Build properly canonicalized
9409 INTEGER_CSTs.
9410 (lower_bound_in_type): Likewise.
9411
9412 2011-04-18 Richard Guenther <rguenther@suse.de>
9413
9414 * gimple.h (gimple_call_addr_fndecl): New function.
9415 (gimple_call_fndecl): Use it.
9416 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9417 for direct calls.
9418 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9419 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9420
9421 2011-04-18 Richard Guenther <rguenther@suse.de>
9422
9423 PR middle-end/48650
9424 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9425
9426 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9427
9428 PR lto/48492
9429 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9430 DECL_IN_CONSTANT_POOL without RTL.
9431
9432 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9433 Ira Rosen <ira.rosen@linaro.org>
9434
9435 PR target/48252
9436 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9437 to match neon_vzip/vuzp/vtrn_internal.
9438 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9439 outputs explicitly dependent on both inputs.
9440 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9441
9442 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9443
9444 PR tree-optimization/48616
9445 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9446 whether the shift is by scalar or vector based on whether all SLP
9447 scalar stmts have the same rhs.
9448
9449 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9450
9451 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9452 memory operands.
9453
9454 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9455
9456 PR target/43700
9457 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9458 registers.
9459
9460 2011-04-17 Jan Hubicka <jh@suse.cz>
9461
9462 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9463 * cgrpahunit.c (cgraph_finalize_function): Do not set
9464 finalized_by_frontend.
9465 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9466 finalized_by_frontend.
9467
9468 2011-04-17 Jan Hubicka <jh@suse.cz>
9469
9470 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9471 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9472 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9473 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9474 method.
9475 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9476 gimple-fold.c
9477 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9478
9479 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9480
9481 PR lto/48538
9482 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9483 is non-null before accessing it.
9484 (input_cgraph): Remove trailing spaces.
9485
9486 2011-04-17 Revital Eres <revital.eres@linaro.org>
9487
9488 * params.def (sms-min-sc): New param flag.
9489 * modulo-sched.c (sms_schedule): Use it.
9490 * doc/invoke.texi (sms-min-sc): Document it.
9491
9492 2011-04-17 Jan Hubicka <jh@suse.cz>
9493
9494 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9495 present, also set gimple_call_set_cannot_inline.
9496 * ipa-inline.c: Update toplevel comment.
9497 (MAX_TIME): Remove.
9498 (cgraph_clone_inlined_nodes): Fix linebreaks.
9499 (cgraph_check_inline_limits): Restructure to ...
9500 (caller_growth_limits): ... this one; be more tolerant
9501 on growth in nested inline chains; add explanatory comment;
9502 fix stack accounting thinko introduced by previous patch.
9503 (cgraph_default_inline_p): Remove.
9504 (report_inline_failed_reason): New function.
9505 (can_inline_edge_p): New function.
9506 (can_early_inline_edge_p): New function.
9507 (leaf_node_p): Move upwards in file.
9508 (want_early_inline_function_p): New function.
9509 (want_inline_small_function_p): New function.
9510 (want_inline_self_recursive_call_p): New function.
9511 (cgraph_edge_badness): Rename to ...
9512 (edge_badness) ... this one; fix linebreaks.
9513 (update_edge_key): Update call of edge_baddness; add
9514 detailed dump about queue updates.
9515 (update_caller_keys): Use can_inline_edge_p and
9516 want_inline_small_function_p.
9517 (cgraph_decide_recursive_inlining): Rename to...
9518 (recursive_inlining): Use can_inline_edge_p and
9519 want_inline_self_recursive_call_p; simplify and remove no longer
9520 valid FIXME.
9521 (cgraph_set_inline_failed): Remove.
9522 (add_new_edges_to_heap): Use can_inline_edge_p and
9523 want_inline_small_function_p.
9524 (cgraph_decide_inlining_of_small_functions): Rename to ...
9525 (inline_small_functions): ... this one; cleanup; use
9526 can/want predicates; cleanup debug ouput; work edges till fibheap
9527 is exhausted and do not stop once unit growth is reached; remove
9528 later loop processing remaining edges.
9529 (cgraph_flatten): Rename to ...
9530 (flatten_function): ... this one; use can_inline_edge_p
9531 and can_early_inline_edge_p predicates.
9532 (cgraph_decide_inlining): Rename to ...
9533 (ipa_inline): ... this one; remove unreachable nodes before
9534 inlining functions called once; simplify the pass.
9535 (cgraph_perform_always_inlining): Rename to ...
9536 (inline_always_inline_functions): ... this one; use
9537 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9538 (cgraph_decide_inlining_incrementally): Rename to ...
9539 (early_inline_small_functions): ... this one; simplify
9540 using new predicates; cleanup; make dumps prettier.
9541 (cgraph_early_inlining): Rename to ...
9542 (early_inliner): newer inline regular functions into always-inlines;
9543 fix updating of call stmt summaries.
9544 (pass_early_inline): Update for new names.
9545 (inline_transform): Fix formating.
9546 (gate_cgraph_decide_inlining): Rename to ...
9547 (pass_ipa_inline): ... this one.
9548 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9549 * ipa-inline-analysis.c (dump_inline_summary): Update.
9550 (compute_inline_parameters): Do not compute disregard_inline_limits;
9551 look for mismatching arguments.
9552 (estimate_growth): Fix handlig of non-trivial self recursion.
9553 (inline_read_summary): Do not read info->disregard_inline_limits.
9554 (inline_write_summary): Do not write info->disregard_inline_limits.
9555 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9556 and move all checks into can_inline_edge_p predicate; re-enable code
9557 comparing optimization levels.
9558 (expand_call_inline): Do not test inline_forbidden_into_p.
9559 * Makefile.in (ipa-inline.o): Update arguments.
9560
9561 2011-04-17 Revital Eres <revital.eres@linaro.org>
9562
9563 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9564
9565 2011-04-17 Revital Eres <revital.eres@linaro.org>
9566
9567 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9568
9569 2011-04-17 Michael Matz <matz@suse.de>
9570
9571 PR tree-optimization/48622
9572 PR lto/48645
9573 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9574 in same order as they're written.
9575
9576 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9577
9578 * config/pa/predicates.md: Reorganize and simplify predicates.
9579 Eliminate duplicate code checks.
9580 (arith_operand): Rename to arith14_operand
9581 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9582 * config/pa/pa.md: Use renamed operands.
9583 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9584 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9585 arith11_operand, adddi3_operand, indexed_memory_operand,
9586 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9587 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9588 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9589 move_dest_operand, move_src_operand, prefetch_cc_operand,
9590 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9591 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9592 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9593 div_operand, int5_operand, movb_comparison_operator,
9594 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9595 arith_double_operand, ireg_operand, lhs_lshift_operand,
9596 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9597 integer_store_memory_operand): Likewise.
9598 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9599 (integer_store_memory_operand, read_only_operand,
9600 function_label_operand, borx_reg_operand,
9601 non_hard_reg_operand): Likewise.
9602 (eq_neq_comparison_operator): Delete unused operator.
9603 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9604 function_label_operand.
9605 (emit_move_sequence): Likewise.
9606
9607 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9608
9609 * config/i386/sse.md (sseunpackmode): New mode attribute.
9610 (ssepackmode): Ditto.
9611 (vec_pack_trunc_<mode>): Macroize expander from
9612 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9613 (vec_unpacks_lo_<mode>): Macroize expander from
9614 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9615 (vec_unpacks_hi_<mode>): Macroize expander from
9616 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9617 (vec_unpacku_lo_<mode>): Macroize expander from
9618 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9619 (vec_unpacku_hi_<mode>): Macroize expander from
9620 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9621 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9622 ix86_expand_sse4_unpack.
9623 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9624
9625 2011-04-16 Jan Hubicka <jh@suse.cz>
9626
9627 * cgraphbuild.c: Include ipa-inline.h.
9628 (reset_inline_failed): Use initialize_inline_failed.
9629 * cgraph.c: Include ipa-inline.h.
9630 (cgraph_create_node_1): Do not initialize estimated_growth.
9631 (initialize_inline_failed): More to ipa-inline-analysis.c
9632 (dump_cgraph_node): Do not dump inline flags.
9633 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9634 and disregard_inline_limits flags.
9635 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9636 time, size, estimated_growth.
9637 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9638 Update.
9639 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9640 DECL_DISREGARD_INLINE_LIMITS.
9641 (cgraph_analyze_function): Do not initialize
9642 node->local.disregard_inline_limits.
9643 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9644 inlinable, versionable and disregard_inline_limits.
9645 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9646 cgraph_check_inline_limits, cgraph_default_inline_p,
9647 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9648 add_new_edges_to_heap): Update.
9649 (cgraph_decide_inlining_of_small_function): Update; set
9650 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9651 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9652 cgraph_decide_inlining_incrementally): Update.
9653 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9654 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9655 time, size and estimated_growth parameters.
9656 (estimate_edge_growth): Update.
9657 (initialize_inline_failed): Declare.
9658 * ipa-split.c: Include ipa-inline.h
9659 (execute_split_functions): Update.
9660 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9661 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9662 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9663 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9664 estimated_growth to INT_MIN.
9665 (inline_node_duplication_hook): Likewise.
9666 (dump_inline_summary): Dump new fields.
9667 (compute_inline_parameters): Update.
9668 (estimate_edge_time, estimate_time_after_inlining,
9669 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9670 inline_write_summary):
9671 (initialize_inline_failed): Move here from cgraph.c.
9672 * tree-sra.c: Include ipa-inline.h.
9673 (ipa_sra_preliminary_function_checks): Update.
9674 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9675 ipa-inline.h.
9676
9677 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9678
9679 * config/i386/sse.md (V16): New mode iterator.
9680 (VI1, VI8): Ditto.
9681 (AVXMODEQI, AVXMODEDI): Remove.
9682 (sse2, sse3): New mode attribute.
9683 (mov<mode>): Use V16 mode iterator.
9684 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9685 (push<mode>1): Use V16 mode iterator.
9686 (movmisalign<mode>): Ditto.
9687 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9688 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9689 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9690 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9691 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9692 avx_movdqu<avxmodesuffix>.
9693 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9694 *avx_movdqu<avxmodesuffix>.
9695 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9696 avx_lddqu<avxmodesuffix>.
9697 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9698 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9699 avx_movnt<AVXMODEDI:mode>.
9700 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9701 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9702
9703 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9704
9705 PR target/48629
9706 * haifa-sched.c (prune_ready_list, schedule_block): Use
9707 sched_pressure_p rather than flag_sched_pressure.
9708
9709 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9710
9711 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9712 cgraph_get_node instead of cgraph_get_create_node.
9713
9714 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9715
9716 * cfgexpand.c (expand_debug_expr): Use
9717 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9718
9719 2011-04-15 Michael Matz <matz@suse.de>
9720
9721 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9722 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9723 * function.c (gimplify_parameters): Ditto.
9724 * gimplify.c (gimplify_vla_decl): Ditto.
9725
9726 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9727 (gimple_call_set_alloca_for_var): New inline function.
9728 (gimple_call_alloca_for_var_p): Ditto.
9729 * gimple.c (gimple_build_call_from_tree): Remember
9730 CALL_ALLOCA_FOR_VAR_P state.
9731 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9732
9733 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9734 calls if they were for VLA objects.
9735
9736 2011-04-15 Martin Jambor <mjambor@suse.cz>
9737
9738 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9739 of ADR_EXPRs.
9740
9741 2011-04-15 Martin Jambor <mjambor@suse.cz>
9742
9743 PR middle-end/48601
9744 * tree-emutls.c (lower_emutls_function_body): Call
9745 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9746 result is non-NULL.
9747
9748 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9749
9750 * c-decl.c (detect_field_duplicates): Call
9751 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9752
9753 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9754
9755 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9756 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9757 * ipa-pure-const.c (check_stmt): Call it.
9758 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9759
9760 2011-04-15 Richard Guenther <rguenther@suse.de>
9761
9762 PR tree-optimization/48290
9763 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9764 Properly decide inhibiting propagation based on the valueized
9765 operand. Do loop-closed SSA form preserving here ...
9766 (init_copy_prop): ... not here.
9767
9768 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9769
9770 PR target/48612
9771 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9772 (*ieee_smax<mode>3): Likewise.
9773
9774 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9775
9776 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9777 Replace match_operand with match_dup for the third operand in
9778 these expanders.
9779
9780 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9781
9782 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9783 to track processing of conditionals. Update all callers.
9784 (try_combine, simplify_if_then_else): Update.
9785
9786 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9787
9788 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9789 -fsched-pressure.
9790
9791 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9792
9793 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9794 instead of match_operand for operand 3.
9795
9796 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9797
9798 * recog.h (insn_operand_data): Add an "allows_mem" field.
9799 * genoutput.c (output_operand_data): Initialize it.
9800 * optabs.c (maybe_legitimize_operand_same_code): New function.
9801 (maybe_legitimize_operand): Use it when matching the original
9802 op->value.
9803
9804 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9805
9806 * gimplify.c: Fix issues in comments throughout.
9807 (voidify_wrapper_expr): Fix long line.
9808 (build_stack_save_restore): Likewise.
9809 (gimplify_loop_expr): Likewise.
9810 (gimplify_compound_lval): Likewise.
9811 (gimplify_init_ctor_eval): Likewise.
9812 (gimplify_modify_expr_rhs): Likewise.
9813 (omp_notice_threadprivate_variable): Likewise.
9814
9815 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9816
9817 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9818 original one if this is not a builtin function.
9819
9820 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR target/48605
9823 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9824 offset it as needed based on top 2 bits in operands[3], change
9825 MEM mode to SFmode and mask those 2 bits away from operands[3].
9826
9827 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9828
9829 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9830 change from objc_declare_protocols() to objc_declare_protocol().
9831
9832 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9833
9834 * config/i386/sse.md (sse4_1): New mode attribute.
9835 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9836 avx_blend<ssemodesuffix><avxmodesuffix> and
9837 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9838 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9839 avx_blendv<ssemodesuffix><avxmodesuffix> and
9840 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9841 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9842 avx_dp<ssemodesuffix><avxmodesuffix> and
9843 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9844 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9845 (sse4_1_packusdw): Merge with *avx_packusdw.
9846 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9847 (sse4_1_pblendw): Merge with *avx_pblendw.
9848 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9849 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9850 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9851 VF mode iterator.
9852 (sse4_1_round<ssescalarmodesuffix>): Merge with
9853 *avx_round<ssescalarmodesuffix>.
9854 (aesenc): Merge with *avx_aesenc.
9855 (aesenclast): Merge with *avx_aesenclast.
9856 (aesdec): Merge with *avx_aesdec.
9857 (aesdeclast): Merge with *avx_aesdeclast.
9858 (pclmulqdq): Merge with *pclmulqdq.
9859 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9860 New predicate.
9861 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9862
9863 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9864
9865 PR middle-end/48608
9866 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9867 (align_local_variable): This. Update DECL_ALIGN.
9868 (add_stack_var): Updated.
9869 (expand_one_stack_var): Likewise.
9870
9871 2011-04-14 Richard Guenther <rguenther@suse.de>
9872
9873 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9874 Remove.
9875 (dse_initialize_block_local_data, dse_leave_block,
9876 record_voperand_set, get_stmt_uid): Likewise.
9877 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9878 (dse_optimize_stmt): Remove voperand set handling code.
9879 Simplify and improve to handle any kind of killing stmt.
9880 (dse_record_phi): Remove.
9881 (dse_enter_block): Simplify.
9882 (tree_ssa_dse): Likewise.
9883 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9884
9885 2011-04-14 Jan Hubicka <jh@suse.cz>
9886
9887 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9888 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9889 (cgraph_local_info): Remove inline_summary.
9890 * ipa-cp.c: Include ipa-inline.h.
9891 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9892 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9893 accesor.
9894 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9895 (input_overwrite_node): Do not set inline summary.
9896 (input_node): Do not stream inline summary.
9897 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9898 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9899 growth; we do not have inline parameters computed for that anyway.
9900 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9901 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9902 (inline_summary_t): New type and VECtor.
9903 (debug_inline_summary, dump_inline_summaries): Declare.
9904 (inline_summary): Use VOCtor.
9905 (estimate_edge_growth): Kill hack computing call stmt size directly.
9906 * lto-section-in.c (lto_section_name): Add inline section.
9907 * ipa-inline-analysis.c: Include lto-streamer.h
9908 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9909 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9910 (inline_summary_vec): Define.
9911 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9912 dump_inline_summaries): New functions.
9913 (estimate_function_body_sizes): Properly compute size/time of outgoing
9914 calls.
9915 (compute_inline_parameters): Alloc inline_summary; do not compute
9916 size/time of incomming calls.
9917 (estimate_edge_time): Avoid missing time summary hack.
9918 (inline_read_summary): Read inline summary info.
9919 (inline_write_summary): Write inline summary info.
9920 (inline_free_summary): Free all hooks and inline summary vector.
9921 * lto-streamer.h: Add LTO_section_inline_summary section.
9922 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9923 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9924
9925 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9926
9927 * tree-vectorizer.h (vect_strided_store_supported): Add a
9928 HOST_WIDE_INT argument.
9929 (vect_strided_load_supported): Likewise.
9930 (vect_permute_store_chain): Return void.
9931 (vect_transform_strided_load): Likewise.
9932 (vect_permute_load_chain): Delete.
9933 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9934 count argument. Check that the count is a power of two.
9935 (vect_strided_load_supported): Likewise.
9936 (vect_permute_store_chain): Return void. Update after above changes.
9937 Assert that the access is supported.
9938 (vect_permute_load_chain): Likewise.
9939 (vect_transform_strided_load): Return void.
9940 * tree-vect-stmts.c (vectorizable_store): Update calls after
9941 above interface changes.
9942 (vectorizable_load): Likewise.
9943 (vect_analyze_stmt): Don't check for strided powers of two here.
9944
9945 2011-04-14 Richard Guenther <rguenther@suse.de>
9946
9947 PR tree-optimization/48590
9948 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9949 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9950 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9951 BUILT_IN_STACK_SAVE.
9952 * tree-ssa-dce.c (propagate_necessity): Handle
9953 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9954
9955 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9956
9957 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9958 objc_declare_class.
9959
9960 2011-04-14 Richard Guenther <rguenther@suse.de>
9961
9962 * tree.h (get_object_alignment_1): Declare.
9963 * builtins.c (get_object_alignment_1): Split out worker from ...
9964 (get_object_alignment): ... here.
9965 * fold-const.c (get_pointer_modulus_and_residue): Use
9966 get_object_alignment_1.
9967
9968 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9969
9970 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9971 type parameter.
9972 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9973 parameter. Generalise code to handle arrays as well as vectors.
9974 (vect_setup_realignment): Update accordingly.
9975 * tree-vect-stmts.c (vectorizable_store): Likewise.
9976 (vectorizable_load): Likewise.
9977
9978 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9979
9980 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9981 within the per-copy loop.
9982
9983 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9984
9985 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9986 in the dump file.
9987
9988 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9989
9990 * doc/options.texi (Negative): Explicitly mention that the
9991 Negative chain must be circular.
9992
9993 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9994
9995 * function.h (block_chainon): Declare.
9996 * function.c (block_chainon): Define.
9997
9998 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9999 Eric Weddington <eric.weddington@atmel.com>
10000 Georg-Johann Lay <avr@gjlay.de>
10001
10002 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10003 New Includes
10004 (avr_init_builtins, avr_expand_builtin,
10005 avr_expand_delay_cycles, avr_expand_unop_builtin,
10006 avr_expand_binop_builtin ): New functions.
10007 (avr_builtin_id): New enum
10008 (struct avr_builtin_description): New struct
10009 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10010 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10011
10012 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10013 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10014 UNSPECV_DELAY_CYCLES): new enumeration values
10015 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10016 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10017 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10018 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10019 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10020 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10021 "fmulsu"): New insns
10022
10023 * config/avr/avr-c.c: fix line endings
10024 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10025 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10026 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10027 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10028 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10029
10030 * doc/extend.texi (AVR Built-in Functions): New node
10031 (Target Builtins): Add documentation of AVR
10032 built-in functions.
10033
10034 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
10035
10036 PR target/44643
10037 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10038 alone. Error if non-const data has attribute progmem.
10039
10040 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10041
10042 * tree.h (struct tree_constructor): Include tree_typed instead of
10043 tree_common.
10044 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10045 TS_TYPED instead of TS_COMMON.
10046
10047 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10048
10049 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10050 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10051 (sse2_psadbw): Merge with *avx_psadbw.
10052 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10053 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10054 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10055 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10056 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10057 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10058 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10059 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10060 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10061 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10062 (ssse3_palignrti): Merge with *avx_palignrti.
10063
10064 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10065
10066 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10067 * tree-ssanames.c (fini_ssanames): VEC_free it.
10068 (make_ssa_name_fn): Update for VECness of free_ssanames.
10069 (release_ssa_name, release_dead_ssa_names): Likewise.
10070 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10071 tree_common.
10072 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10073 TS_TYPED instead of TS_COMMON.
10074
10075 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10076
10077 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10078 statistics_counter_event.
10079 * tree-ssa-copyrename.c (stats): Define.
10080 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10081 statistics_counter_event.
10082 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10083 (bswap_stats, widen_mul_stats): Define.
10084 (insert_reciprocals): Increment rdivs_inserted.
10085 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10086 rfuncs_inserted. Add calls to statistics_counter_event.
10087 (execute_cse_sincos_1): Increment inserted.
10088 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10089 statistics_counter_event.
10090 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10091 of bswap_stats. Add calls to statistics_counter_event.
10092 (convert_mult_to_widen): Increment widen_mults_inserted.
10093 (convert_plusminus_to_widen): Increment maccs_inserted.
10094 (convert_mult_to_fma): Increment fmas_inserted.
10095 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10096 calls to statistics_counter_event.
10097
10098 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10099
10100 PR rtl-optimization/48455
10101 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10102 `temp_costs->mem_cost'.
10103
10104 2011-04-13 Jan Hubicka <jh@suse.cz>
10105
10106 * ipa-inline.h: New file.
10107 * ipa-inline-analysis.c: New file. Broken out of ...
10108 * ipa-inline.c: ... this file; update toplevel comment;
10109 include ipa-inline.h
10110 (inline_summary): Move to ipa-inline.h
10111 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10112 ipa-inline-analysis.c.
10113 (cgraph_estimate_time_after_inlining): Rename to
10114 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10115 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10116 to estimate_edge_growth.
10117 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10118 rename to estimate_size_after_inlining.
10119 (cgraph_mark_inline_edge): Update for new naming convention.
10120 (cgraph_check_inline_limits): Likewise.
10121 (cgraph_edge_badness): Likewise.
10122 (cgraph_decide_recursive_inlining): Likewise.
10123 (cgraph_decide_inlining_of_small_functions): Likewise.
10124 (cgraph_decide_inlining_incrementally): Likewise.
10125 (cgraph_estimate_growth): Rename to estimate_growth; move to
10126 ipa-inline-analysis.c.
10127 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10128 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10129 (compute_inline_parameters): Likewise.
10130 (compute_inline_parameters_for_current): Likewise.
10131 (pass_inline_parameters): Likewise.
10132 (inline_indirect_intraprocedural_analysis): Likewise.
10133 (analyze_function): Rename to inline_analyze_function; likewise.
10134 (add_new_function): Move to ipa-inline-analysis.c.
10135 (inline_generate_summary): Likewise.
10136 (inline_read_summary): Likewise.
10137 (inline_write_summary): Likewise.
10138 * Makefile.in (ipa-inline-analysis.c): New file.
10139
10140 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10141
10142 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10143 * configure: Regenerate.
10144
10145 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10146
10147 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10148 instead of tree_common.
10149 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10150 Likewise.
10151 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10152 TS_TYPED rather than TS_COMMON.
10153 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10154
10155 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10156
10157 PR target/45263
10158 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10159 r20 around calls of __tablejump_elpm__
10160
10161 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10162
10163 PR middle-end/48591
10164 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10165 NULL.
10166 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10167
10168 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10169
10170 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10171 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10172 (cfi_vec): New typedef.
10173 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10174 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10175 (cie_cfi_vec): New static variable.
10176 (cie_cfi_head): Delete.
10177 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10178 declaration changed. Use vector rather than list operations.
10179 (new_cfi): Don't initialize the dw_cfi_next field.
10180 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10181 rather than list operations.
10182 (lookup_cfa): Use vector rather than list operations.
10183 (output_cfis): New argument upto. Accept a cfi_vec rather than
10184 a dw_cfi_ref list head as argument. All callers changed.
10185 Iterate over the vector using upto as a maximum index.
10186 (output_all_cfis): New static function.
10187 (output_fde): Use vector rather than list operations. Use the
10188 new upto argument for output_cfis rather than manipulating a
10189 list.
10190 (dwarf2out_begin_prologue): Change initializations to match
10191 new struct members.
10192 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10193 from the vector length rather than searching for the end of a list.
10194 Use output_all_cfis.
10195 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10196
10197 2011-04-13 Nick Clifton <nickc@redhat.com>
10198
10199 * config/rx/rx.md (movmemsi): Do not use this pattern when
10200 volatile pointers are involved.
10201
10202 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10203
10204 * config/i386/sse.md (pinsrbits): Remove.
10205 (sse2_packsswb): Merge with *avx_packsswb.
10206 (sse2_packssdw): Merge with *avx_packssdw.
10207 (sse2_packuswb): Merge with *avx_packuswb.
10208 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10209 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10210 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10211 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10212 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10213 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10214 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10215 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10216 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10217 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10218 (sse2_loadld): Merge with *avx_loadld.
10219 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10220 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10221 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10222 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10223 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10224
10225 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10226
10227 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10228 calling TREE_CHAIN.
10229 * print-tree.c (print_node): Likewise.
10230 * tree-inline.c (copy_tree_r): Likewise.
10231 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10232 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10233 instead of TS_COMMON.
10234 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10235 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10236 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10237 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10238 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10239 ...and these...
10240 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10241 * tree.h: ...here.
10242 (TREE_CHAIN): Check for a TS_COMMON structure.
10243 (TREE_TYPE): Check for a TS_TYPED structure.
10244
10245 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10246
10247 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10248 cgraph_get_create_node instead of cgraph_node.
10249
10250 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10251
10252 * c-parser.c (c_parser_initelt): Updated call to
10253 objc_build_message_expr.
10254 (c_parser_postfix_expression): Likewise.
10255
10256 2011-04-12 Kai Tietz <ktietz@redhat.com>
10257
10258 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10259 MASK_MS_BITFIELD_LAYOUT bit.
10260
10261 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10262
10263 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10264 assert it is always true.
10265 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10266 moves.
10267
10268 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10269
10270 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10271 compiling Objective-C to be more efficient.
10272
10273 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10274
10275 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10276 argv_copied.
10277
10278 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10279
10280 * recog.h, genoutput.c, optabs.c: Revert last patch.
10281
10282 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10283
10284 PR target/48090
10285 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10286
10287 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10288
10289 * recog.h (insn_operand_data): Add an "allows_mem" field.
10290 * genoutput.c (output_operand_data): Initialize it.
10291 * optabs.c (maybe_legitimize_operand_same_code): New function.
10292 (maybe_legitimize_operand): Use it when matching the original
10293 op->value.
10294
10295 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10296
10297 * genpreds.c (process_define_predicate): Move most processing
10298 to gensupport.c. Continue to validate the expression.
10299 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10300 (process_define_predicate): Move processing to gensupport.c.
10301 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10302 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10303 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10304 argument.
10305 (valid_predicate_name_p): New function, split out from old
10306 genpreds.c:process_define_predicate.
10307 (process_define_predicate): New function, combining code from
10308 old genpreds.c and genrecog.c functions.
10309 (process_rtx): Call it for DEFINE_PREDICATE and
10310 DEFINE_SPECIAL_PREDICATE.
10311
10312 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10313
10314 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10315 size of a '%A' memory reference.
10316 (T_DREG, T_QREG): New neon_builtin_type_bits.
10317 (arm_init_neon_builtins): Assert that the load and store operands
10318 are neon_struct_operands.
10319 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10320 (NEON_ARG_MEMORY): New builtin_arg.
10321 (neon_dereference_pointer): New function.
10322 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10323 Handle NEON_ARG_MEMORY.
10324 (arm_expand_neon_builtin): Update after above interface changes.
10325 Use NEON_ARG_MEMORY for loads and stores.
10326 * config/arm/predicates.md (neon_struct_operand): New predicate.
10327 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10328 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10329 (V_four_elem): Tweak formatting.
10330 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10331 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10332 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10333 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10334 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10335 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10336 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10337 Use %A in the output template.
10338 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10339 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10340 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10341 the width of the memory access. Remove post-increment.
10342 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10343
10344 2011-04-12 Nick Clifton <nickc@redhat.com>
10345
10346 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10347 instruction for interrupt handlers if the target is the basic V850
10348 architecture.
10349 (expand_epilogue): Likewise.
10350
10351 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10352
10353 PR rtl-optimization/48549
10354 * combine.c (propagate_for_debug): Also stop after BB_END of
10355 this_basic_block. Process LAST and just stop processing after it.
10356 (combine_instructions): If last_combined_insn has been deleted,
10357 set last_combined_insn to its PREV_INSN.
10358
10359 2011-04-12 Richard Guenther <rguenther@suse.de>
10360
10361 PR tree-optimization/46076
10362 * gimple.h (struct gimple_statement_call): Add fntype field.
10363 (gimple_call_fntype): Adjust.
10364 (gimple_call_set_fntype): New function.
10365 * gimple.c (gimple_build_call_1): Set the call function type.
10366 * gimplify.c (gimplify_call_expr): Preserve the function
10367 type the frontend used for the call.
10368 (gimplify_modify_expr): Likewise.
10369 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10370 function type.
10371 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10372 function type.
10373 * tree-ssa.c (useless_type_conversion_p): Function pointer
10374 conversions are useless.
10375
10376 2011-04-12 Martin Jambor <mjambor@suse.cz>
10377
10378 * cgraph.h (cgraph_node): Remove function declaration.
10379 (cgraph_create_node): Declare.
10380 (cgraph_get_create_node): Likewise.
10381 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10382 Updated all callers.
10383 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10384 the decl does not already exist. Call cgraph_get_create_node instead
10385 of cgraph_node.
10386 (cgraph_get_create_node): New function.
10387 (cgraph_same_body_alias): Update comment.
10388 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10389 assert it does not return NULL.
10390 (cgraph_update_edges_for_call_stmt): Likewise.
10391 (cgraph_clone_edge): Likewise.
10392 (cgraph_create_virtual_clone): Likewise.
10393 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10394 instead of cgraph_node.
10395 (cgraph_add_new_function): Call cgraph_create_node or
10396 cgraph_get_create_node instead of cgraph_node.
10397 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10398 instead of cgraph_node.
10399 (record_eh_tables): Likewise.
10400 (mark_address): Likewise.
10401 (mark_load): Likewise.
10402 (build_cgraph_edges): Call cgraph_get_create_node instead
10403 of cgraph_node.
10404 (rebuild_cgraph_edges): Likewise.
10405 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10406 instead of cgraph_node.
10407 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10408 cgraph_node.
10409 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10410 cgraph_create_node instead of cgraph_node.
10411 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10412 of cgraph_node.
10413 * lto-cgraph.c (input_node): Likewise.
10414 * lto-streamer-in.c (input_function): Likewise.
10415 * varasm.c (mark_decl_referenced): Likewise.
10416 (assemble_alias): Likewise.
10417
10418 2011-04-12 Martin Jambor <mjambor@suse.cz>
10419
10420 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10421 instead of cgraph_node and assert it does not return NULL.
10422 * lto-streamer-in.c (lto_read_body): Likewise.
10423 * omp-low.c (new_omp_context): Likewise.
10424 (create_task_copyfn): Likewise.
10425 * tree-emutls.c (lower_emutls_function_body): Likewise.
10426 * matrix-reorg.c (transform_allocation_sites): Likewise.
10427
10428 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10429
10430 PR c/48552
10431 * c-typeck.c (build_asm_expr): Error out on attempts to use
10432 void type outputs or inputs for constraints that allow reg or
10433 don't allow memory.
10434
10435 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10436 Richard Earnshaw <rearnsha@arm.com>
10437
10438 PR target/48250
10439 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10440 to use sign-magnitude offsets. Reject unsupported unaligned
10441 cases. Add detailed description in comments.
10442 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10443 condition from TARGET_32BIT to TARGET_ARM.
10444
10445 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10446
10447 * tree.h (struct typed_tree): New.
10448 (struct tree_common): Include it instead of tree_base.
10449 (TREE_TYPE): Update for new location of type field.
10450 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10451 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10452 (union tree_node): Add typed field.
10453 * treestruct.def (TS_TYPED): New.
10454 * lto-streamer.c (check_handled_ts_structures): Handle it.
10455 * tree.c (MARK_TS_TYPED): New macro.
10456 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10457
10458 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10459
10460 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10461 (force_nonfallthru): Do not alter the loop nest if no basic block
10462 was created.
10463
10464 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10465
10466 * config/i386/sse.md (VI): New mode iterator.
10467 (SSEMODEI): Remove.
10468 (AVX256MODEI): Ditto.
10469 (AVXMODEF4P): Ditto.
10470 (avxvecpsmode): Ditto.
10471 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10472 (sse2_andnot<mode>3): New expander.
10473 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10474 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10475 (<any_logic:code><mode>3): Use VI mode iterator.
10476 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10477 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10478 (*andnottf3): Handle AVX three-operand constraints.
10479 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10480
10481 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10482 Robert Millan <rmh@gnu.org>
10483
10484 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10485 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10486 GNU_USER_DYNAMIC_LINKER64): Define.
10487 (REG_NAME): Don't undefine.
10488 (MD_UNWIND_SUPPORT): Undefine.
10489 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10490 (REG_NAME): Don't undefine.
10491 (MD_UNWIND_SUPPORT): Undefine.
10492 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10493
10494 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10495
10496 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10497 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10498
10499 2011-04-11 Xinliang David Li <davidxl@google.com>
10500
10501 * value-profile.c (check_ic_target): New function.
10502 (gimple_ic_transform): Sanity check indirect call target.
10503 * gimple-low.c (gimple_check_call_args): Interface change.
10504 (gimple_check_call_matching_types): New function.
10505 * tree-inline.c (tree_can_inline_p): Call new function.
10506
10507 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10508
10509 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10510 tree-pretty-print.h & realmpfr.h.
10511
10512 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10513
10514 PR middle-end/48464
10515 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10516 (setup_allocno_and_important_classes): Ditto.
10517
10518 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10519
10520 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10521 GNU_USER_DYNAMIC_LINKER.
10522 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10523 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10524 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10525 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10526 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10527 GNU_USER_TARGET_OS_CPP_BUILTINS.
10528 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10529 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10530 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10531 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10532 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10533 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10534 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10535 GNU_USER_TARGET_OS_CPP_BUILTINS.
10536 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10537 GNU_USER_DYNAMIC_LINKER.
10538 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10539 GNU_USER_TARGET_OS_CPP_BUILTINS.
10540 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10541 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10542 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10543 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10544 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10545 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10546 GNU_USER_DYNAMIC_LINKER64): Remove.
10547 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10548 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10549 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10550 GNU_USER_DYNAMIC_LINKER.
10551 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10552 GNU_USER_TARGET_OS_CPP_BUILTINS.
10553 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10554 GNU_USER_TARGET_OS_CPP_BUILTINS.
10555 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10556 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10557 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10558 GNU_USER_TARGET_OS_CPP_BUILTINS.
10559 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10560 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10561 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10562 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10563 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10564 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10565 GNU_USER_DYNAMIC_LINKER.
10566 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10567 GNU_USER_TARGET_OS_CPP_BUILTINS.
10568 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10569 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10570 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10571 GNU_USER_DYNAMIC_LINKER.
10572 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10573 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10574 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10575 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10576 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10577 GNU_USER_DYNAMIC_LINKER.
10578 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10579 GNU_USER_DYNAMIC_LINKERN32.
10580 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10581 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10582 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10583 GNU_USER_DYNAMIC_LINKER32.
10584 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10585 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10586 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10587 GNU_USER_DYNAMIC_LINKER.
10588 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10589 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10590 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10592 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10593 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10594 GNU_USER_DYNAMIC_LINKER32.
10595 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10596 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10597 GNU_USER_DYNAMIC_LINKER.
10598 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10599 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10600 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10601 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10602 GNU_USER_DYNAMIC_LINKER64.
10603 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10604 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10605 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10606 GNU_USER_DYNAMIC_LINKER.
10607 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10609 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10610 GNU_USER_DYNAMIC_LINKER.
10611 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10612 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10613 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10614 GNU_USER_DYNAMIC_LINKER32.
10615 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10616 GNU_USER_DYNAMIC_LINKER64.
10617 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10618 GNU_USER_DYNAMIC_LINKER64.
10619 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10620 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10621 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10622 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10623 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10624
10625 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10626
10627 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10628 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10629 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10630 GNU_USER_DYNAMIC_LINKER.
10631 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10632 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10633 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10634 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10635 GNU_USER_DYNAMIC_LINKER64.
10636 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10637 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10638 GNU_USER_LINK_EMULATION.
10639 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10640 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10641 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10642 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10643 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10644 CPP_SPEC, CC1_SPEC): Remove.
10645 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10646 (GNU_USER_DYNAMIC_LINKER): Define.
10647 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10648 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10649 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10650 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10651 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10652 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10653 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10654 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10655 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10656 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10657 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10658 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10659 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10660 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10661 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10662 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10663 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10664 GNU_USER_DYNAMIC_LINKER.
10665 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10666 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10667 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10668 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10669 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10670 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10671 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10672 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10673 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10674 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10675
10676 2011-04-11 Kai Tietz <ktietz@redhat.com>
10677
10678 PR target/9601
10679 PR target/11772
10680 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10681 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10682 comment.
10683 (ix86_is_msabi_thiscall): Removed.
10684 (ix86_is_type_thiscall): Likewise.
10685 (ix86_get_callcvt): New function.
10686 (ix86_comp_type_attributes): Simplify check.
10687 (ix86_function_regparm): Use ix86_get_callcvt for calling
10688 convention attribute checks.
10689 (ix86_return_pops_args): Likewise.
10690 (ix86_static_chain): Likewise.
10691 (x86_this_parameter): Likewise.
10692 (x86_output_mi_thunk): Likewise.
10693 (ix86_function_type_abi): Optimize check for types without attributes.
10694 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10695 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10696 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10697 by flag-values.
10698 (IX86_BASE_CALLCVT): Helper macro.
10699 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10700 Use ix86_get_callcvt for calling convention attribute checks and avoid
10701 symbol-decoration for stdcall in TARGET_RTD case.
10702 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10703 Likewise.
10704 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10705 for declaration.
10706
10707 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10708
10709 * config/i386/sse.md (VI_128): New mode iterator.
10710 (VI12_128): Rename from SSEMODE12.
10711 (VI14_128): Rename from SSEMODE14.
10712 (VI124_128): New mode iterator.
10713 (VI24_128): Rename from SSEMODE248.
10714 (VI248_128): Rename from SSEMODE248.
10715 (SSEMODE124C8): Remove.
10716 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10717 (*sse2_<plusminus_insn><mode>3): Merge with
10718 *avx_<plusminus_insn><mode>3.
10719 (*mulv8hi3): Merge with *avx_mulv8hi3.
10720 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10721 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10722 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10723 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10724 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10725 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10726 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10727 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10728 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10729 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10730 (*<smaxmin:code>v8hi3): Ditto.
10731 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10732 (*<smaxmin:code>v16qi3): Ditto.
10733 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10734 (*sse2_eq<mode>3): Ditto.
10735 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10736 (*sse2_gt<mode>3): Ditto.
10737 (vcondv2di): Split out of vcond<mode>.
10738 (vconduv2di): Split out of vcondu<mode>.
10739
10740 2011-04-11 Richard Guenther <rguenther@suse.de>
10741
10742 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10743 before calling tree_low_cst.
10744
10745 2011-04-11 Richard Guenther <rguenther@suse.de>
10746
10747 * stor-layout.c (layout_type): Compute all array index size operations
10748 in the original type.
10749 (initialize_sizetypes): Add comment.
10750 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10751
10752 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10753
10754 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10755
10756 2011-04-11 Martin Jambor <mjambor@suse.cz>
10757
10758 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10759 of cgraph_node, handle NULL return value.
10760 (cgraph_global_info): Likewise.
10761 (cgraph_rtl_info): Likewise.
10762 * tree-inline.c (estimate_num_insns): Likewise.
10763 * gimplify.c (unshare_body): Likewise.
10764 (unvisit_body): Likewise.
10765 (gimplify_body): Likewise.
10766 * predict.c (optimize_function_for_size_p): Likewise.
10767 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10768 (call_may_clobber_ref_p_1): Likewise.
10769 * varasm.c (function_section_1): Likewise.
10770 (assemble_start_function): Likewise.
10771
10772 2011-04-11 Martin Jambor <mjambor@suse.cz>
10773
10774 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10775 of cgraph_node.
10776 * final.c (rest_of_clean_state): Likewise.
10777 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10778 * passes.c (pass_init_dump_file): Likewise.
10779 (execute_all_ipa_transforms): Likewise.
10780 (function_called_by_processed_nodes_p): Likewise.
10781 * predict.c (maybe_hot_frequency_p): Likewise.
10782 (probably_never_executed_bb_p): Likewise.
10783 (compute_function_frequency): Likewise.
10784 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10785 (unnest_nesting_tree_1): Likewise.
10786 (lower_nested_functions): Likewise.
10787 * tree-optimize.c (execute_fixup_cfg): Likewise.
10788 (tree_rest_of_compilation): Likewise.
10789 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10790 * tree-sra.c (ipa_early_sra): Likewise.
10791 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10792 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10793 * ipa.c (record_cdtor_fn): Likewise.
10794 * ipa-inline.c (cgraph_early_inlining): Likewise.
10795 (compute_inline_parameters_for_current): Likewise.
10796 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10797 * ipa-pure-const.c (local_pure_const): Likewise.
10798 * ipa-split.c (split_function): Likewise.
10799 (execute_split_functions): Likewise.
10800 * cgraphbuild.c (build_cgraph_edges): Likewise.
10801 (rebuild_cgraph_edges): Likewise.
10802 (cgraph_rebuild_references): Likewise.
10803 (remove_cgraph_callee_edges): Likewise.
10804 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10805 (verify_cgraph_node): Likewise.
10806 (cgraph_analyze_functions): Likewise.
10807 (cgraph_preserve_function_body_p): Likewise.
10808 (save_inline_function_body): Likewise.
10809 (save_inline_function_body): Likewise.
10810 * tree-inline.c (copy_bb): Likewise.
10811 (optimize_inline_calls): Likewise.
10812
10813 2011-04-11 Martin Jambor <mjambor@suse.cz>
10814
10815 PR tree-optimization/48195
10816 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10817 ipa_check_create_edge_args.
10818 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10819 ipa_check_create_edge_args.
10820 * ipa-inline.c (inline_generate_summary): Do not call
10821 ipa_check_create_node_params and ipa_check_create_edge_args.
10822 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10823 ipa_check_create_edge_args.
10824
10825 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10826
10827 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10828 instead of loop.
10829 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10830 * function.c (record_hard_reg_sets): Likewise.
10831 * ira.c (compute_regs_asm_clobbered): Likewise.
10832 * sched-deps.c (sched_analyze_1): Likewise.
10833 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10834
10835 2011-04-09 Xinliang David Li <davidxl@google.com>
10836
10837 PR tree-optimization/PR48484
10838 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10839 has_valid_pred lazily
10840
10841 2011-04-09 Duncan Sands <baldrick@free.fr>
10842
10843 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10844
10845 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10846
10847 * combine.c (combine_validate_cost): Adjust comments. Set registered
10848 cost of I0 to zero at the end, if any.
10849
10850 2011-04-08 Xinliang David Li <davidxl@google.com>
10851
10852 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10853 to insane profile data.
10854
10855 2011-04-08 Xinliang David Li <davidxl@google.com>
10856
10857 * ipa-cp.c (ipcp_update_profiling): Correct
10858 negative scale factor due to insane profile data.
10859
10860 2011-04-08 Xinliang David Li <davidxl@google.com>
10861
10862 * final.c (dump_basic_block_info): New function.
10863 (final): Dump basic block.
10864 (final_scan_insn): Remove old dump.
10865
10866 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10867
10868 PR target/47829
10869 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10870 crtbegin/crtend.
10871
10872 2011-04-08 Michael Matz <matz@suse.de>
10873
10874 PR middle-end/48389
10875 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10876 functions.
10877 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10878 * rtl.h (rebuild_jump_labels_chain): Declare.
10879 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10880 insns inserted on edges.
10881
10882 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10883
10884 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10885 * config/arm/arm-arches.def: New.
10886 * config/arm/arm-opts.h: New.
10887 * config/arm/genopt.sh: New.
10888 * config/arm/arm-tables.opt: New (generated).
10889 * config/arm/arm.c (arm_handle_option, arm_target_help,
10890 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10891 (all_architectures): Get most table contents from arm-arches.def.
10892 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10893 arm_selected_tune here.
10894 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10895 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10896 (march=, mcpu=, mtune=): Use Enum and Var.
10897 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10898 (arm.o): Update dependencies.
10899
10900 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10901
10902 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10903 of header_file.
10904 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10905 (write_typed_alloc_defns): Likewise.
10906 (main): Calls write_typed_alloc_defns with output_header.
10907
10908 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10909
10910 PR inline-asm/48435
10911 * ira-color.c (setup_profitable_hard_regs): Add comments.
10912 Don't take prohibited hard regs into account.
10913 (setup_conflict_profitable_regs): Rename to
10914 get_conflict_profitable_regs.
10915 (check_hard_reg_p): Check prohibited hard regs.
10916
10917 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10918
10919 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10920 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10921 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10922
10923 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10924
10925 PR target/48366
10926 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10927 move from floating point to shift amount register.
10928 (emit_move_sequence): Remove secondary reload support for floating
10929 point to shift amount amount register copies.
10930 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10931 amount register copies.
10932 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10933 register, return false if mode isn't a scalar integer mode.
10934 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10935
10936 2011-04-08 Richard Guenther <rguenther@suse.de>
10937
10938 * gimple.c (gimple_call_flags): Remove kludge.
10939
10940 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10941
10942 * sel-sched.c (sel_region_init): Move call to
10943 sel_setup_region_sched_flags after setup_current_loop_nest.
10944
10945 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10946
10947 PR rtl-optimization/48272
10948 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10949 init_insn_reg_pressure_info. Adjust a caller.
10950 * sched-int.h (init_insn_reg_pressure_info): Declare.
10951 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10952 when sched-pressure is enabled.
10953
10954 2011-04-08 Richard Guenther <rguenther@suse.de>
10955
10956 * gimple.c (gimple_set_modified): Do not queue calls to
10957 MODIFIED_NORETURN_CALLS here ...
10958 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10959
10960 2011-04-08 Richard Guenther <rguenther@suse.de>
10961
10962 PR lto/48467
10963 * toplev.c (lang_dependent_init): Do not open asm_out_file
10964 in WPA mode, nor perform debug machinery initialization.
10965 (finalize): Do not unlink asm_out_file in WPA mode.
10966
10967 2011-04-08 Richard Guenther <rguenther@suse.de>
10968
10969 * gimple.h (gimple_call_fntype): New function.
10970 (gimple_call_return_type): Use it.
10971 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10972 * gimple-low.c (gimple_check_call_args): Likewise.
10973 * gimple.c (gimple_call_flags): Likewise.
10974 (gimple_call_arg_flags): Likewise.
10975 (gimple_call_return_flags): Likewise.
10976 * tree-cfg.c (verify_gimple_call): Likewise.
10977 (do_warn_unused_result): Likewise.
10978 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10979 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10980
10981 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10982
10983 PR rtl-optimization/48235
10984 * sel-sched.c (code_motion_process_successors): Recompute the last
10985 insn in basic block if control flow changed.
10986 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10987 Update condition for ilist_remove.
10988
10989 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10990
10991 PR rtl-optimization/48302
10992 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10993 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10994 it to record added preheader blocks.
10995 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10996 on to sel_add_loop_preheaders.
10997 (sel_region_init): Move call to setup_current_loop_nest after
10998 sel_init_bbs.
10999
11000 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11001
11002 PR target/48273
11003 * cfgloop.h (loop_has_exit_edges): New helper.
11004 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11005 non-clonable.
11006 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11007 that have no exit edges.
11008
11009 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11010
11011 PR rtl-optimization/48442
11012 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11013 all callers. Adjust assert.
11014
11015 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11016
11017 PR tree-optimization/48377
11018 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11019 is_packed to true even for types with smaller TYPE_ALIGN than
11020 TYPE_SIZE.
11021
11022 2011-04-08 Richard Guenther <rguenther@suse.de>
11023
11024 PR bootstrap/48513
11025 * doc/tm.texi: Re-generate.
11026
11027 2011-04-08 Wei Guozhi <carrot@google.com>
11028
11029 PR target/47855
11030 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11031 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11032 * config/arm/arm.md (*push_multi): Change the length computation to
11033 call a C function.
11034
11035 2011-04-08 Anatoly Sokolov <aesok@post.ru>
11036
11037 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11038 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11039 * doc/tm.texi: Regenerate.
11040 * system.h (ASM_OUTPUT_BSS): Poison.
11041 * varasm.c (asm_output_bss): Remove function.
11042 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11043
11044 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11045 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11046 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11047 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11048 Likewise.
11049 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11050 Likewise.
11051 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11052 Likewise.
11053 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11054
11055 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11056
11057 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11058 EnumValue lines.
11059
11060 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11061
11062 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11063 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11064 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11065 OPT_mcpu32.
11066 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11067 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11068 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11069 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11070 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11071 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11072 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11073 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11074 options. Don't map other m68k options manually. Don't handle
11075 old-style options as canonical.
11076 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11077 * doc/install.texi (m68k-*-*): Document binutils version requirement.
11078
11079 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11080
11081 * basic-block.h (force_nonfallthru): Move to...
11082 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11083 (force_nonfallthru): ...here.
11084 * cfghooks.c (force_nonfallthru): New function.
11085 * cfgrtl.c (force_nonfallthru): Rename into...
11086 (rtl_force_nonfallthru): ...this.
11087 (commit_one_edge_insertion): Do not set AUX field.
11088 (commit_edge_insertions): Do not discover new basic blocks.
11089 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11090 (cfg_layout_rtl_cfg_hooks): Likewise.
11091 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11092 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11093 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11094
11095 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11096
11097 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11098 Remove macros.
11099
11100 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11101
11102 * config/i386/sse.md: Update copyright year.
11103 (avxcvtvecmode): Remove.
11104 (sse_movhlps): Merge with *avx_movhlps.
11105 (sse_movlhps): Merge with *avx_movlhps.
11106 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11107 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11108 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11109 (sse_loadhps): Merge with *avx_loadhps.
11110 (sse_storelps): Merge with *avx_storelps.
11111 (sse_loadlps): Merge with *avx_loadlps.
11112 (sse_movss): Merge with *avx_movss.
11113 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11114 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11115 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11116 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11117 (vec_set<mode>_0): Ditto.
11118 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11119 (sse4_1_insertps): Merge with *avx_insertps.
11120 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11121 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11122 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11123 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11124 (sse2_storehpd): Merge with *avx_storehpd.
11125 (sse2_loadhpd): Merge with *avx_loadhpd.
11126 (sse2_loadlpd): Merge with *avx_loadlpd.
11127 (sse2_movsd): Merge with *avx_movsd.
11128 (*vec_concatv2df): Merge with *vec_concatv2df.
11129
11130 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11131
11132 PR debug/48343
11133 * combine.c (combine_instructions): Add last_combined_insn,
11134 update it if insn is after it, pass it to all try_combine calls.
11135 (try_combine): Add last_combined_insn parameter, pass it instead of
11136 i3 to propagate_for_debug.
11137
11138 2011-04-07 Nick Clifton <nickc@redhat.com>
11139
11140 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11141 to handle MDR <-> data register transfers.
11142 (movhi_internal): Likewise.
11143
11144 2011-04-07 Alan Modra <amodra@gmail.com>
11145
11146 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11147 previous stack info.
11148
11149 2011-04-07 Tom de Vries <tom@codesourcery.com>
11150
11151 PR target/43920
11152 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11153 flow_find_cross_jump. Swap variables to implement backward replacement.
11154 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11155
11156 2011-04-07 Tom de Vries <tom@codesourcery.com>
11157
11158 PR target/43920
11159 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11160 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11161 and bb2.
11162 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11163 src1 or src2. Redirect edges to the last basic block. Update
11164 frequency and count on multiple basic blocks in case of fallthru.
11165
11166 2011-04-07 Tom de Vries <tom@codesourcery.com>
11167
11168 PR target/43920
11169 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11170 function.
11171 (old_insns_match_p): Change return type. Replace return false/true
11172 with return dir_none/dir_both. Use can_replace_by.
11173 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11174 direction from dir_p. Register replacement direction in dir, last_dir
11175 and afterlast_dir. Handle new return type of old_insns_match_p using
11176 merge_dir. Return replacement direction in dir_p.
11177 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11178 return type of old_insns_match_p.
11179 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11180 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11181 flow_find_cross_jump.
11182 * basic-block.h (enum replace_direction): New type.
11183 (flow_find_cross_jump): Add parameter to declaration.
11184
11185 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11186
11187 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11188 (AVXMODEDCVTPS2DQ): Ditto.
11189 (VEC_FLOAT_MODE): Ditto.
11190 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11191 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11192 (<any_logic:code><mode>3): Use VF mode iterator.
11193 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11194 Use VF mode iterator.
11195 (copysign<mode>3): Use VF mode iterator.
11196 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11197 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11198 (*<any_logic:code><MODEF:mode>3): Merge with
11199 *avx_<any_logic:code><MODEF:mode>3.
11200 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11201 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11202 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11203 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11204 (sse2_cvtdq2ps): Use %v modifier.
11205 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11206 (avx_cvtps2dq<avxmodesuffix>): Remove.
11207 (sse2_cvtps2dq): Use %v modifier.
11208 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11209 (avx_cvttps2dq<avxmodesuffix>): Remove.
11210 (sse2_cvttps2dq): Use %v modifier.
11211 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11212 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11213 (sse2_cvtsd2siq): Fix insn template.
11214 (sse2_cvtsd2siq_2): Ditto.
11215 (sse2_cvttsd2siq): Ditto.
11216 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11217 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11218
11219 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11220
11221 * gcov-io.c: Use GCC Runtime Library Exception.
11222
11223 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR debug/48466
11226 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11227 as base_reg whatever register reg has been eliminated to, instead
11228 of hardcoding STACK_POINTER_REGNUM.
11229
11230 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11231
11232 * doc/tm.texi.in: Document C target hooks as separate from general
11233 target hooks.
11234 * doc/tm.texi: Regenerate.
11235 * genhooks.c (struct hook_desc): Add docname field.
11236 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11237 docname field.
11238 (hook_array): Include c-target.def.
11239 (emit_documentation): Use docname field in output.
11240 (emit_init_macros): Take docname argument. Only emit definitions
11241 for hooks matching docname.
11242 (main): Expect additional arguments in all cases. Pass argument
11243 to emit_init_macros.
11244 * target.def: Move initial macro definitions and comments to
11245 target-hooks-macros.h.
11246 (gcc_targetcm): Move to c-family/c-target.def.
11247 * target.h (targetcm): Move declaration to c-family/c-target.h.
11248 * targhooks.c (default_handle_c_option): Move to
11249 c-family/c-opts.c.
11250 * targhooks.h (default_handle_c_option): Move declaration to
11251 c-family/c-common.h.
11252 * target-hooks-macros.h: New file.
11253 * config.gcc (target_has_targetcm): Define and use to add to
11254 c_target_objs and cxx_target_objs.
11255 * config/default-c.c: New file.
11256 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11257 of target.h and target-def.h.
11258 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11259 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11260 darwin_check_cfstring_format_arg): Make static.
11261 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11262 TARGET_STRING_OBJECT_REF_TYPE_P,
11263 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11264 * config/darwin-protos.h (darwin_objc_construct_string,
11265 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11266 declare.
11267 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11268 TARGET_STRING_OBJECT_REF_TYPE_P,
11269 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11270 * config/t-darwin (darwin-c.o): Update dependencies.
11271 * system.h (TARGET_HAS_TARGETCM): Poison.
11272 * Makefile.in (TARGET_H): Update.
11273 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11274 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11275 (default-c.o): New target.
11276 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11277 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11278 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11279 c-target.def.
11280 (build/genhooks.o): Update dependencies.
11281
11282 2011-04-06 Richard Guenther <rguenther@suse.de>
11283
11284 * ipa-inline.c (enum inlining_mode): Remove.
11285 (cgraph_flatten): Use some other token.
11286 (cgraph_edge_early_inlinable_p): New function, split out from ...
11287 (cgraph_perform_always_inlining): New function, split out from ...
11288 (cgraph_decide_inlining_incrementally): ... here.
11289 (cgraph_mark_inline_edge): Adjust.
11290 (cgraph_early_inlining): Re-structure.
11291 (pass_early_inline): Require SSA form.
11292
11293 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11294 Julian Brown <julian@codesourcery.com>
11295 Mark Shinwell <shinwell@codesourcery.com>
11296
11297 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11298 LO_REGS only for Thumb-1.
11299 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11300 be used in short instructions when optimising for size on Thumb-2.
11301
11302 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11303
11304 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11305 associated with user returns to be preserved.
11306
11307 2011-04-06 Tristan Gingold <gingold@adacore.com>
11308
11309 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11310 symbol_queue_size, DBXOUT_DECR_NESTING,
11311 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11312 if XCOFF_DEBUGGING_INFO.
11313
11314 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11315
11316 * config/i386/i386.md (attribute isa): New.
11317 (attribute enabled): New.
11318 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11319 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11320 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11321 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11322 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11323 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11324 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11325 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11326
11327 * config/i386/sse.md (VF): New mode iterator.
11328 (VF1): Ditto.
11329 (VF2): Ditto.
11330 (VF_128): Ditto.
11331 (SSEMODEF4): Remove.
11332 (attribute sse): Handle V8SF and V4DF modes.
11333 (<absneg:code><mode>2): Use VF mode iterator.
11334 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11335 mode iterator.
11336 (<plusminus_insn><mode>3): Use VF mode iterator.
11337 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11338 Use VF mode iterator.
11339 (<sse>_vm<plusminus_insn><mode>3): Merge with
11340 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11341 (mul<mode>3): Use VF mode iterator.
11342 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11343 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11344 mode iterator.
11345 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11346 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11347 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11348 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11349 mode iterator.
11350 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11351 Use VF1 mode iterator.
11352 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11353 (sqrt<VF2:mode>2): New expander.
11354 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11355 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11356 and sqrtv2df2. Use VF mode iterator.
11357 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11358 mode iterator.
11359 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11360 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11361 Use VF1 mode iterator.
11362 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11363 (<smaxmin:code><mode>3): Use VF mode iterator.
11364 (*<smaxmin:code><mode>3_finite): Merge with
11365 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11366 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11367 (<sse>_vm<smaxmin:code><mode>2): Merge with
11368 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11369 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11370 mode iterator.
11371 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11372 mode iterator.
11373 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11374 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11375 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11376 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11377 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11378 VF mode iterator.
11379 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11380 Use VF_128 mode iterator.
11381 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11382 mode iterator.
11383 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11384 VF_128 mode iterator.
11385 (vcond<mode>): Use VF mode iterator.
11386 * config/i386/predicates.md (sse_comparison_operator): Merge with
11387 avx_comparison_float_operator. Do not declare as special_predicate.
11388 * config/i386/i386.c (struct builtin_description): Update for renamed
11389 compare patterns.
11390 (ix86_expand_args_builtin): Ditto.
11391 (ix86_expand_sse_compare_mask): Ditto.
11392
11393 2011-04-06 Richard Guenther <rguenther@suse.de>
11394
11395 * tree-inline.c (estimate_num_insns): For calls simply account
11396 for all passed arguments and a used return value.
11397
11398 2011-04-06 Richard Guenther <rguenther@suse.de>
11399
11400 PR tree-optimization/47663
11401 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11402 call_stmt_time fields.
11403 (cgraph_edge_inlinable_p): Declare.
11404 (cgraph_edge_recursive_p): New inline function.
11405 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11406 (cgraph_clone_edge): Copy it.
11407 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11408 Account for call stmt time.
11409 (cgraph_estimate_time_after_inlining): Take edge argument.
11410 (cgraph_estimate_edge_growth): Account call stmt size.
11411 (cgraph_estimate_size_after_inlining): Take edge argument.
11412 (cgraph_mark_inline_edge): Adjust.
11413 (cgraph_check_inline_limits): Likewise.
11414 (cgraph_recursive_inlining_p): Remove.
11415 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11416 (cgraph_decide_recursive_inlining): Take edge argument and
11417 adjust.
11418 (cgraph_decide_inlining_of_small_functions): Do not avoid
11419 diags for recursive inlining here.
11420 (cgraph_flatten): Adjust.
11421 (cgraph_decide_inlining_incrementally): Likewise.
11422 (estimate_function_body_sizes): Remove call cost handling.
11423 (compute_inline_parameters): Initialize caller edge call costs.
11424 (cgraph_estimate_edge_growth): New function.
11425 (cgraph_estimate_growth): Use it.
11426 (cgraph_edge_badness): Likewise.
11427 (cgraph_check_inline_limits): Take an edge argument.
11428 (cgraph_decide_inlining_of_small_functions): Adjust.
11429 (cgraph_decide_inlining): Likewise.
11430 * tree-inline.c (estimate_num_insns): Only account for call
11431 return value if it is used.
11432 (expand_call_inline): Avoid diagnostics on recursive inline
11433 functions here.
11434 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11435 (input_edge): Input edge call costs.
11436
11437 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11438
11439 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11440
11441 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11442
11443 * doc/invoke.texi (Spec Files): Fix typo.
11444
11445 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11446
11447 * profile.c (branch_prob): Move declaration of local variable. Remove
11448 obsolete ??? comment. Expand the location explicitly instead of using
11449 the LOCATION_FILE and LOCATION_LINE macros.
11450
11451 2011-04-06 Wei Guozhi <carrot@google.com>
11452
11453 PR target/47855
11454 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11455 (arm_cond_branch): Likewise.
11456 (arm_cond_branch_reversed): Likewise.
11457 (arm_jump): Likewise.
11458 (push_multi): Likewise.
11459 * config/arm/constraints.md (Py): New constraint.
11460
11461 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11462
11463 PR bootstrap/48471
11464 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11465 Move these...
11466 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11467 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11468 #ifdef DBX_DEBUGGING_INFO.
11469
11470 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11471
11472 PR bootstrap/48403
11473 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11474 if old and new states differ.
11475
11476 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11477
11478 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11479 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11480 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11481 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11482 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11483 mcfv4e): Use Alias.
11484 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11485 ColdFire options to -mcpu= options.
11486
11487 2011-04-05 Jeff Law <law@redhat.com>
11488
11489 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11490 check if BB is a successor of LOOP->header and return
11491 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11492
11493 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11494
11495 * cprop.c (struct reg_use): Remove.
11496 (reg_use_table): Make an array of RTX.
11497 (find_used_regs, constprop_register, local_cprop_pass,
11498 bypass_block): Simplify users of reg_use_table.
11499 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11500 on one of the uses found by find_used_regs.
11501
11502 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11503
11504 PR bootstrap/48469
11505 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11506 declaration.
11507
11508 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11509
11510 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11511 as an rtx.
11512 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11513
11514 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11515
11516 PR middle-end/48441
11517 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11518
11519 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11520
11521 * combine.c: Include obstack.h.
11522 (struct insn_link): Define.
11523 (uid_log_links): Adjust type.
11524 (FOR_EACH_LOG_LINK): New macro.
11525 (insn_link_obstack): Declare.
11526 (alloc_insn_link): Define.
11527 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11528 type of link variables.
11529 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11530 (try_combine, record_promoted_values, distribute_notes): Likewise.
11531 (distribute_links): Likewise. Tweak prototype.
11532 (clear_log_links): Delete.
11533 (adjust_for_new_dest): Call alloc_insn_link.
11534 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11535
11536 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11537
11538 * gcse.c (modify_mem_list): Convert to an array of VECs.
11539 (canon_modify_mem_list, compute_transp): Tweak formatting.
11540 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11541 (load_killed_in_block_p): Likewise.
11542 (record_last_mem_set_info): Likewise.
11543 (clear_modify_mem_tables): Likewise.
11544
11545 2011-04-05 Tom de Vries <tom@codesourcery.com>
11546
11547 PR middle-end/48461
11548 * function.c (emit_use_return_register_into_block): Only define if
11549 HAVE_return.
11550
11551 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11552
11553 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11554
11555 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11556
11557 * config/rx/rx-opts.h: New.
11558 * config/rx/rx.c (rx_cpu_type): Remove.
11559 (rx_handle_option): Don't assert that global structures are in
11560 use. Access variables via opts pointer. Defer most handling of
11561 OPT_mint_register_. Use error_at.
11562 (rx_option_override): Handle deferred OPT_mint_register_ here.
11563 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11564 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11565 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11566 (rx_cpu_types): New Enum and EnumValue entries.
11567 (mint-register=): Use Defer and use Var accordingly.
11568
11569 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11570
11571 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11572 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11573 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11574 Move these...
11575 (debug_free_queue, debug_nesting, symbol_queue_index):
11576 ...and these...
11577 * dbxout.c: ...to here. Make static.
11578
11579 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11580
11581 * gcse.c (modify_pair): Define. Define a VEC of it.
11582 (canon_modify_mem_list): Convert to an array of VECs.
11583 (free_insn_expr_list_list): Delete.
11584 (clear_modify_mem_tables): Call VEC_free instead.
11585 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11586 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11587 (canon_list_insert, compute_transp): Likewise.
11588
11589 2011-04-05 Tom de Vries <tom@codesourcery.com>
11590
11591 PR target/43920
11592 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11593 for size.
11594
11595 2011-04-05 Tom de Vries <tom@codesourcery.com>
11596
11597 PR target/43920
11598 * function.c (emit_use_return_register_into_block): New function.
11599 (thread_prologue_and_epilogue_insns): Use
11600 emit_use_return_register_into_block.
11601
11602 2011-04-05 Tom de Vries <tom@codesourcery.com>
11603
11604 PR target/43920
11605 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11606 insn.
11607
11608 2011-04-05 Tom de Vries <tom@codesourcery.com>
11609
11610 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11611
11612 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11613
11614 * config/arm/arm.md (define_constants for unspec): Replace with
11615 define_c_enum.
11616 (define_constants for unspecv): Replace with define_c_enum.
11617 * config/arm/neon.md (define_constants for unspec): Replace with
11618 define_c_enum.
11619
11620 2011-04-04 Richard Henderson <rth@redhat.com>
11621
11622 PR bootstrap/48400
11623 * dwarf2out.c (output_line_info): Always emit line info from
11624 at least one section.
11625 (dwarf2out_init): Create text_section_line_info here ...
11626 (set_cur_line_info_table): ... not here.
11627
11628 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11629
11630 PR target/48380
11631 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11632 not called.
11633
11634 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11635
11636 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11637
11638 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11639 (expr_equiv_p): Remove.
11640 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11641 (hash_scan_set): Update call to insert_set_in_table.
11642 (dump_hash_table): Dump <dest, src> pair.
11643 (lookup_set): Simplify. Lookup <dest, src> pair.
11644 (compute_transp): Remove, fold heavily simplified code into...
11645 (compute_local_properties): ...here. Expect COMP and TRANSP
11646 unconditionally.
11647 (find_avail_set): Take set directly from struct expr.
11648 (find_bypass-set): Likewise.
11649 (bypass_block): Likewise.
11650 (cprop_insn): Likewise. Remove redundant INSN_P test.
11651
11652 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11653 checks on form of COND from find_implicit_sets to here.
11654 (find_implicit_sets): Cleanup control flow. Split critical edges
11655 if it exposes implicit sets. Allocate/resize implicit_sets as
11656 necessary.
11657 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11658 changed something. Run df_analyze after find_implicit_sets if any
11659 edges were split. Do not allocate implicit_sets here.
11660
11661 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11662 (gcse_obstack): Renamed to cprop_obstack.
11663 (GNEW, GNEWVEC, GNEWVAR): Remove.
11664 (gmalloc): Remove.
11665 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11666 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11667 (gcse_alloc): Likewise, and rename to cprop_alloc.
11668 (alloc_gcse_men, free_gcse_mem): Remove.
11669 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11670 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11671 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11672
11673 * cprop.c (oprs_not_set_p): Remove.
11674 (mark_set, mark_clobber): Remove.
11675 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11676 (reg_not_set_p): New function.
11677 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11678 (cprop_insn): Likewise.
11679 (cprop_jump): Use FOR_EACH_EDGE.
11680
11681 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11682
11683 PR bootstrap/48403
11684 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11685 (rank_for_schedule): Use scheduled_insns vector instead of
11686 last_scheduled_insn.
11687 (ok_for_early_queue_removal): Likewise.
11688 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11689 we have a dbg_cnt.
11690 (choose_ready): Likewise.
11691 (commit_schedule): Use VEC_iterate.
11692 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11693 a dbg_cnt, use it and ensure the first insn is in the ready list.
11694 (haifa_sched_init): Allocate scheduled_insns.
11695 (sched_extend_ready_list): Don't allocate it; reserve space.
11696 (haifa_sched_finish): Free it.
11697
11698 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11699
11700 * optc-gen.awk: Always remove type from Variable entry before
11701 recording in var_seen.
11702
11703 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11704
11705 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11706 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11707 call to tidy_fallthru_edges.
11708
11709 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11710
11711 * doc/options.texi (ToLower): Document.
11712 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11713 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11714 * opts.h (cl_option): Add cl_tolower field.
11715 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11716 arguments with lowercase strings.
11717 * config/rx/rx.opt (mcpu=): Add ToLower.
11718 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11719 argument.
11720
11721 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11722
11723 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11724
11725 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11726
11727 * config/vax/vax.c: Include reload.h.
11728
11729 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11730
11731 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11732 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11733 (sparc_preferred_reload_class): New function.
11734
11735 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11736
11737 PR debug/48401
11738 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11739 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11740
11741 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11742
11743 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11744 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11745
11746 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11747
11748 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11749 (ASM_OUTPUT_ALIGNED_BSS): Define.
11750
11751 2011-04-03 Michael Matz <matz@suse.de>
11752
11753 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11754 and next_slot members.
11755 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11756 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11757 (lto_streamer_cache_append): Declare.
11758 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11759 unsigned index, remove offset parameter, ensure that we append
11760 or update existing entries.
11761 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11762 parameter, update next_slot for append.
11763 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11764 parameter.
11765 (lto_streamer_cache_insert_at): Likewise.
11766 (lto_streamer_cache_append): New function.
11767 (lto_streamer_cache_lookup): Use unsigned index.
11768 (lto_streamer_cache_get): Likewise.
11769 (lto_record_common_node): Don't test tree_node_can_be_shared.
11770 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11771 (lto_streamer_cache_delete): Don't free offsets member.
11772 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11773 (lto_output_string_with_length): Use lto_output_data_stream.
11774 (lto_output_tree_header): Remove ix parameter, don't write it.
11775 (lto_output_builtin_tree): Likewise.
11776 (lto_write_tree): Adjust callers to above, don't track and write
11777 offset, write unsigned index.
11778 (output_unreferenced_globals): Don't emit all global vars.
11779 (write_global_references): Use unsigned indices.
11780 (lto_output_decl_state_refs): Likewise.
11781 (write_symbol): Likewise.
11782 * lto-streamer-in.c (lto_input_chain): Move earlier.
11783 (input_function): Use unsigned index.
11784 (input_alias_pairs): Don't read and then ignore all global vars.
11785 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11786 don't pass it back, use lto_streamer_cache_append.
11787 (lto_register_var_decl_in_symtab): Use unsigned index.
11788 (lto_register_function_decl_in_symtab): Likewise.
11789 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11790 index.
11791 (lto_get_builtin_tree): Don't read index, use
11792 lto_streamer_cache_append.
11793 (lto_read_tree): Adjust call to lto_materialize_tree.
11794
11795 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11796 don't use function calls in arguments to MIN.
11797
11798 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11799 twice.
11800
11801 * gimple.c (gimple_type_leader_entry): Mark deletable.
11802
11803 2011-04-03 Alan Modra <amodra@gmail.com>
11804
11805 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11806
11807 2011-04-03 Michael Matz <matz@suse.de>
11808
11809 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11810 an integer.
11811 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11812
11813 2011-04-03 Michael Matz <matz@suse.de>
11814
11815 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11816 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11817 without function context.
11818 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11819 current_function_decl and cfun.
11820
11821 2011-04-03 Michael Matz <matz@suse.de>
11822
11823 * tree.c (decl_init_priority_insert): Don't create entry for
11824 default priority.
11825 (decl_fini_priority_insert): Ditto.
11826 (fields_compatible_p, find_compatible_field): Remove.
11827 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11828 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11829
11830 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11831
11832 * combine.c (try_combine): Remove useless local variable.
11833
11834 2011-04-03 Richard Guenther <rguenther@suse.de>
11835 Ira Rosen <ira.rosen@linaro.org>
11836
11837 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11838 non-variable offsets and compare the remaining bases of the two
11839 accesses instead of looking for exact same data-ref.
11840
11841 2011-04-02 Kai Tietz <ktietz@redhat.com>
11842
11843 PR target/48416
11844 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11845
11846 * i386.c (ix86_is_msabi_thiscall): New helper function.
11847 (ix86_is_type_thiscall): New helper function.
11848 (ix86_comp_type_attributes): Handle thiscall for method-functions
11849 special.
11850 (init_cumulative_args): Likewise.
11851 (find_drap_reg): Likewise.
11852 (ix86_static_chain): Likewise.
11853 (x86_this_parameter): Likewise.
11854 (x86_output_mi_thunk): Likewise.
11855
11856 2011-04-01 Olivier Hainque <hainque@adacore.com>
11857 Nicolas Setton <setton@adacore.com>
11858 Eric Botcazou <ebotcazou@adacore.com>
11859
11860 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11861 (add_gnat_descriptive_type_attribute): New function.
11862 (gen_array_type_die): Call it.
11863 (gen_enumeration_type_die): Likewise.
11864 (gen_struct_or_union_type_die): Likewise.
11865 (modified_type_die): Likewise.
11866 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11867 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11868 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11869
11870 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11871
11872 PR bootstrap/48148
11873 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11874 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11875
11876 Revert:
11877 2011-03-17 Richard Guenther <rguenther@suse.de>
11878
11879 PR bootstrap/48148
11880 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11881 origin for decls in other ltrans units.
11882 (input_varpool_node): Likewise.
11883
11884 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11885
11886 PR middle-end/48335
11887 * expr.c (expand_assignment): Handle all possibilities
11888 if TO_RTX is CONCAT.
11889 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11890 (store_split_bit_field): If SUBREG_REG (op0) or
11891 op0 itself has smaller mode than word, return it
11892 for offset 0 and const0_rtx for out-of-bounds stores.
11893 If word is const0_rtx, skip it.
11894
11895 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11896
11897 * config/h8300/h8300.c (print_operand_address): Rename to...
11898 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11899 Call h8300_print_operand and h8300_print_operand_address instead of
11900 print_operand and print_operand_address. Declare.
11901 (print_operand): Renake to...
11902 (h8300_print_operand): ...this. Make static. Adjust comments.
11903 Call h8300_print_operand instead of print_operand. Declare.
11904 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11905 (h8300_register_move_cost): Likewise.
11906 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11907 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11908 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11909 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11910 * config/h8300/h8300-protos.h (print_operand): Delete.
11911 (print_operand_address): Delete.
11912
11913 2011-04-01 Richard Henderson <rth@redhat.com>
11914
11915 PR 48400
11916 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11917 in strict mode before dwarf4. Re-order tests to early out
11918 before switching sections.
11919
11920 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11921
11922 * config/h8300/constraints.md: New file.
11923 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11924 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11925 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11926 * config/h8300/predicates.md (bit_operand): Likewise.
11927 (incdec_operand): Use satisfies_constraint_M and
11928 satisfies_constraint_O. Don't use C code block.
11929 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11930 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11931 (compute_mov_length): Use satisfies_constraint_G.
11932 (fix_bit_operand): Use satisfies_constraint_U.
11933 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11934 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11935 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11936 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11937 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11938 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11939 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11940 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11941 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11942 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11943 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11944 (EXTRA_MEMORY_CONSTRAINT): Delete.
11945
11946 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11947 Michael Meissner <meissner@linux.vnet.ibm.com>
11948
11949 PR target/48262
11950 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11951 operands, as per the specifications.
11952
11953 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11954 (vec_extract_evenv4sf): Ditto.
11955 (vec_extract_evenv8hi): Ditto.
11956 (vec_extract_evenv16qi): Ditto.
11957 (vec_extract_oddv4si): Ditto.
11958
11959 2011-03-31 Mark Wielaard <mjw@redhat.com>
11960
11961 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11962 high_pc attribute if the CU has no associated code. Only output
11963 DW_AT_entry_pc for CU if not generating strict dwarf and
11964 dwarf_version < 4.
11965
11966 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11967
11968 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11969 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11970 out of ...
11971 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11972 * final.c (final_start_function): Call the new function rather
11973 than using a NULL argument for dwarf2out_frame_debug.
11974
11975 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11976 that contains the prologue.
11977
11978 * haifa-sched.c (queue_insn): New arg REASON. All callers
11979 changed. Print it in debugging output.
11980
11981 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11982
11983 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11984 Split most of the code into...
11985 (begin_move_insn): ... here. New function.
11986 (ebb_sched_info): Add a pointer to it.
11987 * haifa-sched.c (scheduled_insns): New static variable.
11988 (sched_extend_ready_list): Allocate it.
11989 (schedule_block): Use it to record the order of scheduled insns.
11990 Perform RTL changes to move insns only after all scheduling
11991 decisions have been made.
11992 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11993 begin_move_insn field.
11994 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11995 * sched-int.h (struct haifa_sched_info): Remove second argument
11996 from begin_schedule_ready hook. Add new member begin_move_insn.
11997 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11998 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11999
12000 * haifa-sched.c (prune_ready_list): New function, broken out of
12001 schedule_block.
12002 (schedule_block): Use it.
12003
12004 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12005
12006 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12007
12008 2011-04-01 Kai Tietz <ktietz@redhat.com>
12009
12010 * config.gcc (*-*-mingw*): Allow as option the
12011 posix threading model.
12012 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12013 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12014 definition.
12015 (CPP_SPEC): Add pthread/no-pthread handling.
12016 (LIB_SPEC): Likewise.
12017 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12018 (LIB_SPEC): Likewise.
12019 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12020 flag to pass -pthread option for shared libgcc build.
12021 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12022 for shared libgcc build.
12023 * config/i386/t-mingw-pthread: New file.
12024 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12025 New define to enable use of library pthread by default.
12026 * config/i386/mingw.opt (pthread): New driver option.
12027 (no-pthread): New driver option.
12028 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12029 * config/i386/mingw-w64.opt: Likewise.
12030
12031 2011-04-01 Gary Funck <gary@intrepid.com>
12032
12033 * c-decl.c (grokdeclarator): Fix formatting.
12034
12035 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12036
12037 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12038 instead of n_operands.
12039 (set_storage_via_setmem): Likewise.
12040 * optabs.c (maybe_gen_insn): Likewise.
12041 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12042 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12043 (mips_expand_builtin_direct): Likewise.
12044 * config/spu/spu.c (expand_builtin_args): Likewise.
12045
12046 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12047
12048 * recog.h (insn_data_d): Add n_generator_args.
12049 * genoutput.c (data): Likewise.
12050 (output_insn_data): Print it.
12051 (max_opno, num_dups): Delete.
12052 (scan_operands): Just fill in "d->operand[...]".
12053 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12054
12055 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12056
12057 * gensupport.h (pattern_stats): New structure.
12058 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12059 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12060 (max_operand_1, max_operand_vec): Delete.
12061 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12062
12063 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12064
12065 * emit-rtl.c (emit_pattern_after_setloc): New function.
12066 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12067 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12068 (emit_pattern_after): New function.
12069 (emit_insn_after, emit_jump_insn_after): Call it.
12070 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12071 (emit_pattern_before_setloc): New function.
12072 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12073 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12074 Likewise.
12075 (emit_pattern_before): New function.
12076 (emit_insn_before, emit_jump_insn_before): Call it.
12077 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12078
12079 2011-03-31 Richard Henderson <rth@redhat.com>
12080
12081 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12082 (dw_separate_line_info_entry): Remove.
12083 (enum dw_line_info_opcode): New.
12084 (dw_line_info_entry): Use it.
12085 (dw_line_info_table, dw_line_info_table_p): New.
12086 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12087 (line_info_table, line_info_label_num): Remove.
12088 (line_info_table_in_use): Remove.
12089 (separate_line_info_table): Remove.
12090 (separate_line_info_table_allocated): Remove.
12091 (separate_line_info_table_in_use): Remove.
12092 (LINE_INFO_TABLE_INCREMENT): Remove.
12093 (line_info_label_num): New.
12094 (cur_line_info_table): New.
12095 (text_section_line_info, cold_text_section_line_info): New.
12096 (separate_line_info): New.
12097 (SEPARATE_LINE_CODE_LABEL): Remove.
12098 (print_dwarf_line_table): Remove.
12099 (debug_dwarf): Don't dump it.
12100 (output_one_line_info_table): New.
12101 (output_line_info): Use it.
12102 (new_line_info_table): New.
12103 (set_cur_line_info_table): New.
12104 (dwarf2out_switch_text_section): Use it.
12105 (dwarf2out_begin_function): Likewise.
12106 (push_dw_line_info_entry): New.
12107 (dwarf2out_source_line): Rewrite for new line info tables.
12108 (dwarf2out_init): Remove dead initailizations.
12109
12110 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12111
12112 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12113 various flags.
12114 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12115 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12116 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12117 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12118 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12119 * opt-functions.awk (flag_init, switch_bit_fields): New.
12120 (switch_flags): Don't handle flags moved to bit-fields. Don't
12121 generate CL_MISSING_OK or CL_SAVE.
12122 * optc-gen.awk: Update to generate bit-field output as well as
12123 flags field.
12124 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12125 bit-field instead of CL_REJECT_DRIVER flag.
12126 * opts-common.c (generate_canonical_option,
12127 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12128 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12129 instead of CL_REJECT_NEGATIVE flag.
12130 * toplev.c (print_switch_values): Use cl_report bit-field instead
12131 of CL_REPORT flag.
12132
12133 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12134
12135 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12136 a zero minimum index only if it is redundant.
12137
12138 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12139
12140 PR rtl-optimization/48381
12141 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12142 instead of ira_class_hard_reg_index for calculating conflicting
12143 hard registers.
12144
12145 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12146
12147 * cprop.c: Clean up hash table building.
12148 (reg_avail_info): Remove.
12149 (oprs_available_p): Remove.
12150 (record_last_reg_set_info): Remove.
12151 (record_last_set_info): Remove.
12152 (reg_available_p): New function.
12153 (gcse_constant_p): Do not treat unfolded conditions as constants.
12154 (make_set_regs_unavailable): New function.
12155 (hash_scan_set): Simplify with new reg_available_p.
12156 (compute_hash_table_work): Traverse insns stream only once.
12157 Do not compute reg_avail_info. Traverse insns in reverse order.
12158 Record implicit sets after recording explicit sets from the block.
12159
12160 2011-03-31 Michael Matz <matz@suse.de>
12161
12162 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12163
12164 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12165
12166 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12167 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12168 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12169 (h8300_mode_dependent_address_p): New function.
12170 (h8300_get_index): Make static.
12171
12172 2011-03-31 Jeff Law <law@redhat.com>
12173
12174 * reload1.c (elimination_effects): Fix typo in recent change.
12175
12176 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12177 typo potentially leading to null pointer dereference.
12178
12179 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12180 (setup_save_areas): Corresponding changes to avoid useless
12181 assignments.
12182
12183 * jump.c (reversed_comparison_code_parts): Avoid successive return
12184 statements when REVERSE_CONDITION is defined.
12185
12186 * expr.c (expand_assignment): Avoid useless assignments.
12187 (expand_expr_real_1): Likewise.
12188 (expand_expr_real_2): Avoid useless statements.
12189
12190 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12191
12192 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12193
12194 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12195 statements.
12196
12197 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12198
12199 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12200
12201 PR target/47109
12202 * doc/tm.texi.in (TARGET_VERSION): Remove.
12203 * doc/tm.texi: Regenerate.
12204 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12205 * collect2.c (main): Don't use TARGET_VERSION.
12206 * mips-tdump.c (main): Don't use TARGET_VERSION.
12207 * mips-tfile.c (main): Don't use TARGET_VERSION.
12208 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12209 * config/rs6000/vxworksae.h: Remove.
12210 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12211 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12212 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12213 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12214 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12215 * config/arm/arm.h (TARGET_VERSION): Remove.
12216 * config/arm/coff.h (TARGET_VERSION): Remove.
12217 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12218 * config/arm/elf.h (TARGET_VERSION): Remove.
12219 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12220 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12221 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12222 * config/arm/pe.h (TARGET_VERSION): Remove.
12223 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12224 * config/arm/semi.h (TARGET_VERSION): Remove.
12225 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12226 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12227 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12228 * config/avr/avr.h (TARGET_VERSION): Remove.
12229 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12230 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12231 * config/frv/frv.h (TARGET_VERSION): Remove.
12232 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12233 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12234 * config/i386/darwin.h (TARGET_VERSION): Remove.
12235 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12236 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12237 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12238 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12239 * config/i386/gnu.h (TARGET_VERSION): Remove.
12240 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12241 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12242 * config/i386/linux.h (TARGET_VERSION): Remove.
12243 * config/i386/linux64.h (TARGET_VERSION): Remove.
12244 * config/i386/lynx.h (TARGET_VERSION): Remove.
12245 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12246 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12247 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12248 * config/i386/netware.h (TARGET_VERSION): Remove.
12249 * config/i386/nto.h (TARGET_VERSION): Remove.
12250 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12251 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12252 * config/ia64/elf.h (TARGET_VERSION): Remove.
12253 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12254 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12255 * config/ia64/linux.h (TARGET_VERSION): Remove.
12256 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12257 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12258 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12259 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12260 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12261 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12262 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12263 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12264 * config/m68k/linux.h (TARGET_VERSION): Remove.
12265 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12266 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12267 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12268 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12269 * config/mep/mep.h (TARGET_VERSION): Remove.
12270 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12271 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12272 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12273 * config/mips/linux.h (TARGET_VERSION): Remove.
12274 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12275 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12276 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12277 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12278 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12279 * config/pa/pa.h (TARGET_VERSION): Remove.
12280 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12281 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12282 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12283 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12284 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12285 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12286 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12287 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12288 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12289 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12290 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12291 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12292 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12293 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12294 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12295 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12296 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12297 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12298 * config/s390/linux.h (TARGET_VERSION): Remove.
12299 * config/s390/s390.h (TARGET_VERSION): Remove.
12300 * config/s390/tpf.h (TARGET_VERSION): Remove.
12301 * config/score/score.h (TARGET_VERSION): Remove.
12302 * config/sh/linux.h (TARGET_VERSION): Remove.
12303 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12304 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12305 * config/sh/sh.h (TARGET_VERSION): Remove.
12306 * config/sh/sh64.h (TARGET_VERSION): Remove.
12307 * config/sh/superh.h (TARGET_VERSION): Remove.
12308 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12309 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12310 * config/sparc/linux.h (TARGET_VERSION): Remove.
12311 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12312 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12313 TARGET_NAME32, TARGET_NAME): Remove.
12314 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12315 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12316 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12317 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12318 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12319 * config/spu/spu.h (TARGET_VERSION): Remove.
12320 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12321 * config/v850/v850.h (TARGET_VERSION): Remove.
12322 * config/vax/linux.h (TARGET_VERSION): Remove.
12323 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12324 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12325 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12326
12327 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12328
12329 PR target/48142
12330 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12331 frame-related from frame-unrelated adjustments to the stack pointer.
12332
12333 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12334
12335 * common.opt (fdebug-types-section): Move earlier.
12336 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12337
12338 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12339
12340 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12341 var.
12342
12343 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12344
12345 * tree.h (CASE_CHAIN): Define.
12346 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12347 (gimple_redirect_edge_and_branch): Likewise.
12348
12349 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12350
12351 PR middle-end/48367
12352 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12353 calculation.
12354
12355 2011-03-30 Jeff Law <law@redhat.com>
12356
12357 * PR bootstrap/48371
12358 * reload1.c (reload): Fix botch in last change.
12359
12360 * reload.h (struct reload): Fix typo introduced in last change.
12361
12362 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12363
12364 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12365 Undocumented. Remove help text.
12366 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12367 -mhard-float.
12368
12369 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12370
12371 * doc/options.texi (NegativeAlias): Document.
12372 (Alias): Mention NegativeAlias.
12373 * opt-functions.awk: Handle NegativeAlias.
12374 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12375 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12376 * opts.h (CL_NEGATIVE_ALIAS): Define.
12377 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12378 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12379 OPT_mspe_.
12380 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12381 Alias entries.
12382 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12383 mno-spe and mno-isel instead of mspe=no and -misel=no.
12384
12385 2011-03-29 Mark Wielaard <mjw@redhat.com>
12386
12387 * common.opt (fdebug-types-section): New flag.
12388 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12389 * dwarf2out.c (use_debug_types): New define.
12390 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12391 (print_die): Guard output of type unit signatures using
12392 use_debug_types.
12393 (build_abbrev_table): Replace assert of dwarf_version >= 4
12394 with assert on use_debug_types.
12395 (size_of_die): Likewise.
12396 (unmark_dies): Likewise.
12397 (value_format): Decide AT_ref_external form on use_debug_types.
12398 (output_die): Replace dwarf_version version check guard with
12399 use_debug_types where appropriate.
12400 (modified_type_die): Likewise.
12401 (gen_reference_type_die): Likewise.
12402 (dwarf2out_start_source_file): Likewise.
12403 (dwarf2out_end_source_file): Likewise.
12404 (prune_unused_types_walk_attribs): Likewise.
12405 (dwarf2out_finish): Likewise.
12406
12407 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12408
12409 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12410
12411 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12412
12413 PR rtl-optimization/48332
12414 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12415 mode of input operand N and modeN to its actual mode.
12416
12417 2011-03-30 Jeff Law <law@redhat.com>
12418
12419 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12420 define accessor macro.
12421 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12422 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12423 (reg_equiv_init): Likewise.
12424 (reg_equivs_size): New variable.
12425 (reg_equiv_init_size): Remove.
12426 (allocate_initial_values): Move prototype to here from....
12427 * integrate.h (allocate_initial_values): Remove prototype.
12428 * integrate.c: Include reload.h.
12429 (allocate_initial_values): Corresponding changes.
12430 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12431 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12432 (update_equiv_regs): Corresponding changes.
12433 (ira): Corresponding changes.
12434 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12435 (push_secondary_reload): Corresponding changes.
12436 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12437 (make_memloc, find_reloads_address): Corresponding changes.
12438 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12439 (find_reloads_address_1): Corresponding changes.
12440 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12441 (refers_to_regno_for_reload_p): Corresponding changes.
12442 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12443 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12444 * reload1.c: Include ggc.h.
12445 (grow_reg_equivs): New function.
12446 (replace_pseudos_in, reload): Corresponding changes.
12447 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12448 (eliminate_regs_1, elimination_effects): Corresponding changes.
12449 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12450 (delete_output_reload): Likewise.
12451 * caller-save.c (mark_referenced_regs): Corresponding changes.
12452 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12453 * frv/predicates.md (frv_load_operand): Corresponding changes.
12454 * microblaze/microblaze.c (double_memory_operand): Corresponding
12455 changes.
12456 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12457 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12458 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12459 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12460 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12461 changes.
12462 * pa/pa.c (emit_move_sequence): Corresponding changes.
12463 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12464
12465 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12466
12467 PR target/47551
12468 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12469 structure modes. Don't check neon_vector_mem_operand for
12470 vector or structure modes.
12471
12472 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12473 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12474
12475 PR target/43590
12476 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12477 operand 1 and reshuffle the operands to match.
12478 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12479
12480 2011-03-30 Christian Schüler <cschueler@gmx.de>
12481
12482 PR driver/48208
12483 * config/c.opt (F): Added 'Driver' to -F option.
12484
12485 PR driver/48260
12486 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12487 handler function.
12488 * config/darwin.opt: Added '-arch' option.
12489
12490 2011-03-30 Nick Clifton <nickc@redhat.com>
12491
12492 * config/rx/rx.md: Add peepholes and patterns to combine
12493 extending loads and simple arithmetic instructions.
12494 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12495 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12496 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12497 modes to use pre-decrement and post-increment addressing.
12498 (rx_is_restricted_memory_address): Add range checking of REG+INT
12499 addresses.
12500 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12501 (rx_memory_move_cost): Adjust cost of stores.
12502 (rx_adjust_insn_length): New function.
12503
12504 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12505
12506 PR c/48305
12507 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12508 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12509 matching arg00/arg01 types.
12510
12511 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12512
12513 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12514 last_location to UNKNOWN_LOCATION.
12515
12516 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12517
12518 PR target/48349
12519 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12520 FLOAT_SSE_REGS.
12521
12522 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12523 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12524
12525 PR bootstrap/48337
12526 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12527 Init(PROCESSOR_V7).
12528 (sparc_cpu): Likewise.
12529 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12530 PROCESSOR_V7.
12531
12532 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12533
12534 PR target/48336
12535 PR middle-end/48342
12536 PR rtl-optimization/48345
12537 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12538 hard regs for given mode from profitable regs when doing secondary
12539 allocation.
12540
12541 2011-03-29 Jeff Law <law@redhat.com>
12542
12543 PR bootstrap/48327
12544 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12545 do_not_duplicate field.
12546 (lookup_redirection_data): Corresponding changes.
12547 (create_duplicates): Always create a template block.
12548 (redirect_edges): Remove code which reused the original block
12549 when it was going to become unreachable code.
12550 (thread_block): Don't set do_not_duplicate field.
12551
12552 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12553
12554 * lto-opts.c (register_user_option_p, lto_register_user_option):
12555 Make type argument unsigned.
12556 * lto-streamer.h (lto_register_user_option): Make type argument
12557 unsigned.
12558 * opth-gen.awk: Make CL_* macros unsigned.
12559 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12560 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12561 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12562 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12563 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12564 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12565 (find_opt): Make lang_mask argument unsigned.
12566
12567 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12568
12569 PR rtl-optimization/48331
12570 PR rtl-optimization/48334
12571 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12572 for any used algorithm.
12573
12574 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12575
12576 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12577 to parent_max.
12578
12579 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12580
12581 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12582 (alpha_option_override): Don't set alpha_sr_alias_set.
12583 (emit_frame_store_1): Use gen_frame_mem rather than calling
12584 set_mem_alias_set.
12585 (alpha_expand_epilogue): Ditto.
12586
12587 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12588
12589 PR tree-optimization/48290
12590 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12591 vectorization, check that relevant phis in the basic block after
12592 the inner loop are really inner loop's exit phis.
12593
12594 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12595
12596 PR debug/48190
12597 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12598 (cached_dw_loc_list_def): New structure.
12599 (cached_dw_loc_list): New typedef.
12600 (cached_dw_loc_list_table): New variable.
12601 (cached_dw_loc_list_table_hash): New function.
12602 (cached_dw_loc_list_table_eq): Likewise.
12603 (add_location_or_const_value_attribute): Take a bool cache_p.
12604 Cache the list when the parameter is true.
12605 (gen_formal_parameter_die): Update caller.
12606 (gen_variable_die): Likewise.
12607 (dwarf2out_finish): Likewise.
12608 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12609 while generating debug info for the decl.
12610 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12611 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12612 (resolve_addr): Cache the result of resolving a chain of
12613 location lists.
12614
12615 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12616
12617 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12618 conflict object hard regset nodes have intersecting hard reg sets.
12619
12620 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12621 after regstat_init_n_sets_and_refs.
12622
12623 * ira.c: Add more comments at the top.
12624 (setup_stack_reg_pressure_class, setup_pressure_classes):
12625 Add comments how we compute the register pressure classes.
12626 (setup_allocno_and_important_classes): Add more comments.
12627 (setup_class_translate_array, reorder_important_classes)
12628 (setup_reg_class_relations): Add comments.
12629
12630 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12631 start of the file.
12632
12633 * ira-color.c: Add 2011 to the Copyright line.
12634 (assign_hard_reg): Add more comments.
12635 (improve_allocation): Ditto.
12636
12637 * ira-costs.c: Add 2011 to the Copyright line.
12638 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12639 comments.
12640 (setup_regno_cost_classes_by_mode): Ditto.
12641
12642 Initial patches from ira-improv branch:
12643
12644 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12645
12646 * ira-build.c (ira_create_object): Remove initialization of
12647 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12648 (ira_create_allocno): Remove initialization of
12649 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12650 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12651 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12652 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12653 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12654 Initialize ALLOCNO_ADD_DATA.
12655 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12656 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12657 ALLOCNO_REG.
12658 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12659 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12660
12661 * ira.c (ira_reallocate): Remove.
12662 (setup_pressure_classes): Call
12663 ira_init_register_move_cost_if_necessary. Use
12664 ira_register_move_cost instead of ira_get_register_move_cost.
12665 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12666 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12667
12668 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12669 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12670 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12671 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12672 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12673 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12674 Fix formatting.
12675 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12676 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12677 (struct allocno_color_data): New.
12678 (allocno_color_data_t): New typedef.
12679 (allocno_color_data): New definition.
12680 (ALLOCNO_COLOR_DATA): New macro.
12681 (struct object_color_data): New.
12682 (object_color_data_t): New typedef.
12683 (object_color_data): New definition.
12684 (OBJECT_COLOR_DATA): New macro.
12685 (update_copy_costs, calculate_allocno_spill_cost): Call
12686 ira_init_register_move_cost_if_necessary. Use
12687 ira_register_move_cost instead of ira_get_register_move_cost.
12688 (move_spill_restore, update_curr_costs): Ditto.
12689 (allocno_spill_priority): Make it inline.
12690 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12691 (struct coalesce_data, coalesce_data_t): New.
12692 (allocno_coalesce_data): New definition.
12693 (ALLOCNO_COALESCE_DATA): New macro.
12694 (merge_allocnos, coalesced_allocno_conflict_p): Use
12695 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12696 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12697 (coalesce_allocnos): Ditto.
12698 (setup_coalesced_allocno_costs_and_nums): Ditto.
12699 (collect_spilled_coalesced_allocnos): Ditto.
12700 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12701 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12702 (coalesce_spill_slots): Ditto.
12703 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12704 free allocno_coalesce_data.
12705
12706 * ira-conflicts.c: Fix formatting.
12707 (process_regs_for_copy): Call
12708 ira_init_register_move_cost_if_necessary. Use
12709 ira_register_move_cost instead of ira_get_register_move_cost.
12710 (build_object_conflicts): Optimize.
12711
12712 * ira-costs.c (record_reg_classes): Optimize. Call
12713 ira_init_register_move_cost_if_necessary. Use
12714 ira_register_move_cost, ira_may_move_in_cost, and
12715 ira_may_move_out_cost instead of ira_get_register_move_cost and
12716 ira_get_may_move_cost.
12717 (record_address_regs): Ditto.
12718 (scan_one_insn): Optimize.
12719 (find_costs_and_classes): Optimize.
12720 (process_bb_node_for_hard_reg_moves): Call
12721 ira_init_register_move_cost_if_necessary. Use
12722 ira_register_move_cost instead of ira_get_register_move_cost.
12723
12724 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12725 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12726 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12727 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12728 definitions.
12729 (ira_initiate_emit_data, ira_finish_emit_data)
12730 (create_new_allocno): New functions.
12731 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12732 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12733 Use ira_register_move_cost instead of ira_get_register_move_cost.
12734
12735 * ira-int.h: Fix some comments.
12736 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12737 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12738 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12739 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12740 add_data.
12741 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12742 bitfield after mode. Make hard_regno a short int. Make
12743 hard_regno short. Remove first_coalesced_allocno and
12744 next_coalesced_allocno. Move mem_optimized_dest_p,
12745 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12746 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12747 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12748 temp, colorable_p. Add new member add_data.
12749 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12750 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12751 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12752 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12753 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12754 (ALLOCNO_ADD_DATA): New macro.
12755 (ira_emit_data_t): New typedef.
12756 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12757 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12758 from struct ira_allocno.
12759 (ALLOCNO_EMIT_DATA): New macro.
12760 (ira_allocno_emit_data, allocno_emit_reg): New.
12761 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12762 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12763 (OBJECT_ADD_DATA): New macro.
12764 (ira_reallocate): Remove.
12765 (ira_initiate_emit_data, ira_finish_emit_data): New.
12766 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12767 (ira_init_register_move_cost_if_necessary): New.
12768 (ira_object_conflict_iter_next): Merge into
12769 ira_object_conflict_iter_cond.
12770 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12771
12772 * ira-live.c (process_single_reg_class_operands): Call
12773 ira_init_register_move_cost_if_necessary. Use
12774 ira_register_move_cost instead of ira_get_register_move_cost.
12775
12776 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12777
12778 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12779
12780 * ira-costs.c: Fix formatting.
12781 (cost_classes, cost_classes_num): Remove.
12782 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12783 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12784 (cost_classes_del, cost_classes_htab): New.
12785 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12786 (initiate_regno_cost_classes, setup_cost_classes): New.
12787 (setup_regno_cost_classes_by_aclass): New.
12788 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12789 (record_reg_classes): Use regno_cost_classes instead of
12790 cost_classes. Move checking opposite operand up.
12791 (record_address_regs): Use regno_cost_classes
12792 instead of cost_classes.
12793 (scan_one_insn): Ditto. Use always general register.
12794 (print_allocno_costs): Use regno_cost_classes instead of
12795 cost_classes.
12796 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12797 (find_costs_and_classes): Set up cost classes for each registers.
12798 Use also their mode for this. Use regno_cost_classes instead of
12799 cost_classes.
12800 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12801 cost_classes.
12802 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12803 (ira_costs, ira_set_pseudo_classes): Call
12804 initiate_regno_cost_classes and finish_regno_cost_classes.
12805
12806 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12807
12808 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12809
12810 * target.def (ira_cover_classes): Remove.
12811
12812 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12813
12814 * doc/tm.texi.in: Ditto.
12815
12816 * ira-conflicts.c: Remove mentioning cover classes from the file.
12817 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12818 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12819
12820 * targhooks.c (default_ira_cover_classes): Remove.
12821
12822 * targhooks.h (default_ira_cover_classes): Ditto.
12823
12824 * haifa-sched.c: Remove mentioning cover classes from the file.
12825 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12826 ira_pressure_classes and ira_pressure_classes_num instead of
12827 ira_reg_class_cover_size and ira_reg_class_cover. Use
12828 sched_regno_pressure_class instead of sched_regno_cover_class.
12829 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12830 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12831
12832 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12833 classes from the file.
12834 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12835 (struct object_hard_regs, struct object_hard_regs_node): New.
12836 (struct ira_object): New members profitable_hard_regs,
12837 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12838 (struct ira_allocno): Rename cover_class to aclass. Rename
12839 cover_class_cost and updated_cover_class_cost to class_cost and
12840 updated_class_cost. Remove splay_removed_p and
12841 left_conflict_size. Add new members colorable_p.
12842 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12843 (ALLOCNO_COLORABLE_P): New macro.
12844 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12845 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12846 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12847 (OBJECT_...): Rename parameter C to O.
12848 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12849 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12850 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12851 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12852 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12853 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12854 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12855 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12856 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12857 x_ira_reg_class_subunion.
12858 (ira_max_memory_move_cost, ira_max_register_move_cost)
12859 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12860 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12861 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12862 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12863 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12864 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12865 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12866 (ira_tune_allocno_costs_and_cover_classes): Rename to
12867 ira_tune_allocno_costs.
12868 (ira_debug_hard_regs_forest): New.
12869 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12870 (ira_object_conflict_iter_next): Fix comments.
12871 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12872 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12873 cover_class to aclass.
12874 (ira_allocate_and_accumulate_costs): Ditto.
12875 (ira_allocate_and_set_or_copy_costs): Ditto.
12876
12877 * opts.c (decode_options): Remove ira_cover_class check.
12878
12879 * ira-color.c: Remove mentioning cover classes from the file. Use
12880 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12881 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12882 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12883 (splay-tree.h): Remove include.
12884 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12885 before copy_freq_compare_func.
12886 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12887 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12888 New definitions.
12889 (hard_regs_roots, hard_regs_node_vec): Ditto.
12890 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12891 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12892 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12893 (create_new_object_hard_regs_node): Ditto.
12894 (add_new_object_hard_regs_node_to_forest): Ditto.
12895 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12896 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12897 Ditto.
12898 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12899 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12900 (remove_unused_object_hard_regs_nodes): Ditto.
12901 (enumerate_object_hard_regs_nodes): Ditto.
12902 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12903 (object_hard_regs_subnode_t): Ditto.
12904 (struct object_hard_regs_subnode): Ditto.
12905 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12906 (setup_object_hard_regs_subnode_index): Ditto.
12907 (get_object_hard_regs_subnodes_num): Ditto.
12908 (form_object_hard_regs_nodes_forest): Ditto.
12909 (finish_object_hard_regs_nodes_tree): Ditto.
12910 (finish_object_hard_regs_nodes_forest): Ditto.
12911 (allocnos_have_intersected_live_ranges_p): Rename to
12912 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12913 (pseudos_have_intersected_live_ranges_p): Rename to
12914 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12915 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12916 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12917 (update_copy_costs): Remove assert. Skip cost update if the hard
12918 reg does not belong the class.
12919 (assign_hard_reg): Process only profitable hard regs.
12920 (uncolorable_allocnos_num): Make it scalar.
12921 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12922 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12923 and ira_reg_class_max_nregs.
12924 (bucket_allocno_compare_func): Check frequency first.
12925 (sort_bucket): Add compare function as a parameter.
12926 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12927 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12928 (push_allocno_to_stack): Rewrite for checking new allocno
12929 colorability.
12930 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12931 (push_only_colorable): Pass new parameter to sort_bucket.
12932 (push_allocno_to_spill): Remove.
12933 (allocno_spill_priority_compare): Make it inline and rewrite.
12934 (splay_tree_allocate, splay_tree_free): Remove.
12935 (allocno_spill_sort_compare): New function.
12936 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12937 build and use splay tree. Choose first allocno in uncolorable
12938 allocno bucket to spill. Remove setting spill cost.
12939 (all_conflicting_hard_regs): Remove.
12940 (setup_allocno_available_regs_num): Check only profitable hard
12941 regs. Print info about hard regs nodes.
12942 (setup_allocno_left_conflicts_size): Remove.
12943 (put_allocno_into_bucket): Don't call
12944 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12945 (improve_allocation): New.
12946 (color_allocnos): Call setup_profitable_hard_regs,
12947 form_object_hard_regs_nodes_forest, improve_allocation,
12948 finish_object_hard_regs_nodes_forest. Setup spill cost.
12949 (print_loop_title): Use pressure classes.
12950 (color_allocnso): Ditto.
12951 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12952 and allocnos_for_spilling.
12953 (ira_sort_regnos_for_alter_reg): Don't setup members
12954 {first,next}_coalesced_allocno.
12955 (color): Remove allocating and freeing removed_splay_allocno_vec.
12956 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12957 prohibited_class_mode_regs.
12958
12959 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12960 formatting.
12961 (update_allocno_pressure_excess_length): Use pressure classes.
12962 (inc_register_pressure, dec_register_pressure): Check for pressure
12963 class.
12964 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12965 pressure class. Use ira_reg_class_nregs instead of
12966 ira_reg_class_max_nregs.
12967 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12968 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12969 (single_reg_class): Use ira_reg_class_nregs instead of
12970 ira_reg_class_max_nregs.
12971 (process_bb_node_lives): Use pressure classes.
12972
12973 * ira-emit.c: Remove mentioning cover classes from the file. Use
12974 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12975 (change_loop): Use pressure classes.
12976 (modify_move_list): Call ira_set_allocno_class instead of
12977 ira_set_allocno_cover_class.
12978
12979 * ira-build.c: Remove mentioning cover classes from the file. Use
12980 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12981 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12982 ALLOCNO_UPDATED_CLASS_COST instead of
12983 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12984 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12985 (ira_create_allocno): Remove initialization of
12986 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12987 ALLOCNO_COLORABLE_P.
12988 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12989 Update conflict regs for the objects.
12990 (create_cap_allocno): Remove assert. Don't propagate
12991 ALLOCNO_AVAILABLE_REGS_NUM.
12992 (ira_free_allocno_costs): New function.
12993 (finish_allocno): Change a part of code into call of
12994 ira_free_allocno_costs.
12995 (low_pressure_loop_node_p): Use pressure classes.
12996 (object_range_compare_func): Don't compare classes.
12997 (setup_min_max_conflict_allocno_ids): Ditto.
12998
12999 * loop-invariant.c: Remove mentioning cover classes from the file.
13000 Use ira_pressure_classes and ira_pressure_classes_num instead of
13001 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13002 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13003 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13004 Use reg_allocno_class instead of reg_cover_class.
13005 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13006 STACK_REG_COVER_CLASS.
13007 (get_regno_cover_class): Rename to get_regno_pressure_class.
13008 (move_loop_invariants): Initialize and finalize regstat.
13009
13010 * ira.c: Remove mentioning cover classes from the file. Add
13011 comments about coloring without cover classes. Use ALLOCNO_CLASS
13012 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13013 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13014 setup_class_subset_and_memory_move_costs.
13015 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13016 (setup_cover_and_important_classes): Rename to
13017 setup_allocno_and_important_classes.
13018 (setup_class_translate_array): New.
13019 (setup_class_translate): Call it for allocno and pressure classes.
13020 (cover_class_order): Rename to allocno_class_order.
13021 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13022 of ira_class_translate.
13023 (reorder_important_classes): Set up ira_important_class_nums.
13024 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13025 (print_class_cover): Rename to print_classes. Add parameter.
13026 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13027 Print pressure classes too.
13028 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13029 setup_reg_subclasses.
13030 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13031 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13032 (setup_prohibited_class_mode_regs): Use
13033 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13034 (clarify_prohibited_class_mode_regs): New function.
13035 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13036 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13037 (ira_init_once): Initialize them.
13038 (free_register_move_costs): Process them.
13039 (ira_init): Move calls of find_reg_classes and
13040 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13041 Call clarify_prohibited_class_mode_regs.
13042 (ira_no_alloc_reg): Remove.
13043 (too_high_register_pressure_p): Use pressure classes.
13044
13045 * sched-deps.c: Remove mentioning cover classes from the file.
13046 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13047 ira_pressure_classes and ira_pressure_classes_num instead of
13048 ira_reg_class_cover_size and ira_reg_class_cover.
13049 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13050 sched_regno_pressure_class instead of sched_regno_cover_class.
13051 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13052 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13053
13054 * ira.h: Add 2010 to Copyright.
13055 (ira_no_alloc_reg): Remove external.
13056 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13057 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13058 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13059 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13060 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13061 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13062 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13063 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13064 x_ira_no_alloc_regs.
13065 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13066 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13067 ira_allocno_classes_num and ira_allocno_classes.
13068 (ira_class_translate): Rename to ira_allocno_class_translate.
13069 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13070 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13071 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13072 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13073 (ira_no_alloc_regs): New.
13074
13075 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13076 classes from the file. Use ALLOCNO_CLASS instead of
13077 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13078 ALLOCNO_COVER_CLASS_COST.
13079 (regno_cover_class): Rename to regno_aclass.
13080 (record_reg_classes): Use ira_reg_class_subunion instead of
13081 ira_reg_class_union.
13082 (record_address_regs): Check overflow.
13083 (scan_one_insn): Ditto.
13084 (print_allocno_costs): Print total mem cost fore regional allocation.
13085 (print_pseudo_costs): Use REG_N_REFS.
13086 (find_costs_and_classes): Use classes intersected with them on the
13087 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13088 ira_reg_class_union. Use ira_allocno_class_translate and
13089 regno_aclass instead of ira_class_translate and regno_cover_class.
13090 Modify code for finding regno_aclass. Setup preferred classes for
13091 the next pass.
13092 (setup_allocno_cover_class_and_costs): Rename to
13093 setup_allocno_class_and_costs. Use regno_aclass instead of
13094 regno_cover_class. Use ira_set_allocno_class instead of
13095 ira_set_allocno_cover_class.
13096 (init_costs, finish_costs): Use regno_aclass instead of
13097 regno_cover_class.
13098 (ira_costs): Use setup_allocno_class_and_costs instead of
13099 setup_allocno_cover_class_and_costs.
13100 (ira_tune_allocno_costs_and_cover_classes): Rename to
13101 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13102 by processing objects. Use ira_reg_class_max_nregs instead of
13103 ira_reg_class_nregs.
13104
13105 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13106
13107 * sched-int.h: Remove mentioning cover classes from the file.
13108 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13109
13110 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13111 classes from the file.
13112 (struct reg_pref): Rename coverclass into allocnoclass.
13113 (reg_cover_class): Rename to reg_allocno_class.
13114
13115 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13116
13117 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13118
13119 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13120
13121 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13122
13123 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13124
13125 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13126
13127 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13128
13129 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13130
13131 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13132
13133 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13134
13135 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13136 (i386_ira_cover_classes): Ditto.
13137
13138 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13139
13140 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13141
13142 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13143
13144 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13145
13146 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13147
13148 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13149
13150 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13151 (mips_ira_cover_classes): Ditto.
13152
13153 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13154
13155 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13156
13157 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13158
13159 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13160
13161 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13162
13163 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13164 (IRA_COVER_CLASSES_VSX): Ditto.
13165
13166 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13167 (rs6000_ira_cover_classes): Ditto.
13168
13169 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13170
13171 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13172
13173 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13174
13175 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13176
13177 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13178
13179 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13180
13181 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13182
13183 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13184
13185 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13186
13187 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13188
13189 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13190
13191 PR debug/48253
13192 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13193 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13194 dw_fde_unlikely_section_end_label, cold_in_std_section,
13195 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13196 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13197 fields.
13198 (output_fde): Use dw_fde_second_{begin,end} if second is
13199 true, otherwise dw_fde_{begin,end}.
13200 (output_call_frame_info): Test dw_fde_second_begin != NULL
13201 instead of dw_fde_switched_sections.
13202 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13203 fields, initialize new fields. Initialize in_std_section
13204 unconditionally from the first partition.
13205 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13206 dw_fde_second_begin is non-NULL.
13207 (dwarf2out_switch_text_section): Stop initializing removed
13208 dw_fde_struct fields, initialize new fields, initialize
13209 also dw_fde_end here. Set dw_fde_switch_cfi even when
13210 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13211 (struct var_loc_list_def): Add last_before_switch field.
13212 (arange_table, arange_table_allocated, arange_table_in_use,
13213 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13214 (size_of_aranges): Count !in_std_section and !second_in_std_section
13215 hunks in fdes, instead of looking at arange_table_in_use.
13216 (output_aranges): Add aranges_length argument, don't call
13217 size_of_aranges here. Instead of using aranges_table*
13218 emit ranges for fdes when !in_std_section resp.
13219 !second_in_std_section.
13220 (dw_loc_list): Break ranges crossing section switch.
13221 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13222 use dw_fde_second_end instead of dw_fde_end as end of last range.
13223 (gen_subprogram_die): Don't call add_arange. Use
13224 dw_fde_{begin,end} for first partition and if switched
13225 section dw_fde_second_{begin,end} for the second.
13226 (var_location_switch_text_section_1,
13227 var_location_switch_text_section): New functions.
13228 (dwarf2out_begin_function): Initialize cold_text_section even
13229 when function_section () isn't text_section.
13230 (prune_unused_types): Don't walk arange_table.
13231 (dwarf2out_finish): Don't needlessly test
13232 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13233 If info_section_emitted, call size_of_aranges and if it indicates
13234 non-empty .debug_aranges, call output_aranges with the computed
13235 size. Stop using removed dw_fde_struct fields, use
13236 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13237 for second.
13238
13239 PR debug/48203
13240 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13241 create ENTRY_VALUE if incoming or address of incoming's MEM
13242 is a hard REG.
13243 * dwarf2out.c (mem_loc_descriptor): Don't emit
13244 DW_OP_GNU_entry_value of DW_OP_fbreg.
13245 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13246 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13247 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13248 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13249 ENTRY_VALUE_EXPs.
13250 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13251 is a REG_P or MEM_P with REG_P address, compute hash directly
13252 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13253 (preserve_only_constants): Don't clear VALUES forwaring
13254 ENTRY_VALUE to some other VALUE.
13255
13256 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13257
13258 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13259 instead of GEN_INT.
13260
13261 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13262
13263 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13264 block before expanding the statement.
13265 (expand_gimple_stmt_1): Likewise. Set them here...
13266 (expand_gimple_stmt): ...and not here. Tidy.
13267 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13268 unknown.
13269
13270 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13271
13272 * Makefile.in: New rule for cprop.o.
13273 * gcse.c: Move constant/copy propagation to cprop.c.
13274 (compute_local_properties): Only handle expression tables.
13275 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13276 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13277 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13278 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13279 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13280 compute_cprop_data, find_used_regs, try_replace_reg,
13281 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13282 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13283 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13284 find_bypass_set, reg_killed_on_edge, bypass_block,
13285 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13286 execute_rtl_cprop, pass_rtl_cprop): Move to...
13287 * cprop.c: ...here. New file, constant/copy propagation for RTL
13288 moved from gcse.c to here with minor cleanups in duplicated code.
13289
13290 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13291
13292 * config/i386/i386.c (flag_opts): Fix a typo in
13293 -mavx256-split-unaligned-store.
13294
13295 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13296
13297 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13298 LIBCALL_VALUE): Remove macros.
13299 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13300 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13301 (h8300_function_value, h8300_libcall_value,
13302 h8300_function_value_regno_p): New functions.
13303
13304 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13305
13306 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13307
13308 2011-03-28 Jeff Law <law@redhat.com>
13309
13310 * tree-ssa-threadupdate.c (redirect_edges): Call
13311 create_edge_and_update_destination_phis as needed.
13312 (create_edge_and_update_destination_phis): Accept new BB argument.
13313 All callers updated.
13314 (thread_block): Do not update the profile when threading around
13315 intermediate blocks.
13316 (thread_single_edge): Likewise.
13317 (determine_bb_domination_status): If BB is not a successor of the
13318 loop header, return NONDOMINATING.
13319 (register_jump_thread): Note when we register a jump thread around
13320 an intermediate block.
13321 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13322 (thread_across_edge): Use it.
13323
13324 2011-03-28 Tristan Gingold <gingold@adacore.com>
13325
13326 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13327 when for_return is 2.
13328
13329 2011-03-28 Jeff Law <law@redhat.com>
13330
13331 * var-tracking.c (canonicalize_values_mark): Delete unused
13332 lhs assignment.
13333 (canonicalize_values_star, set_variable_part): Likewise.
13334 (clobber_variable_part, delete_variable_part): Likewise.
13335
13336 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13337
13338 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13339
13340 2011-03-28 Martin Jambor <mjambor@suse.cz>
13341
13342 * tree-inline.c (expand_call_inline): Do not check that destination
13343 node is analyzed.
13344 (optimize_inline_calls): Assert that destination node is analyzed.
13345 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13346 not call tree_lowering_passes.
13347 * cgraph.h (cgraph_analyze_function): Declare.
13348 * cgraphunit.c (cgraph_analyze_function): Make public.
13349
13350 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13351
13352 * config/sparc/sparc-opts.h: New.
13353 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13354 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13355 (sparc_option_override): Store processor_type enumeration rather
13356 than string in cpu_default. Remove name and enumeration from
13357 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13358 without using sparc_select. Use target_flags_explicit instead of
13359 fpu_option_set.
13360 * config/sparc/sparc.h (enum processor_type): Move to
13361 sparc-opts.h.
13362 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13363 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13364 HeaderInclude entry.
13365 (mcpu=, mtune=): Use Var and Enum.
13366 (sparc_processor_type): New Enum and EnumValue entries.
13367
13368 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13369 Iain Sandoe <iains@gcc.gnu.org>
13370
13371 PR target/48245
13372 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13373
13374 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13375
13376 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13377 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13378 Insert new statements at it in lieu of STMT.
13379 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13380 * tree-vect-stmts.c (vectorizable_store): Likewise.
13381 (vectorizable_load): Likewise.
13382
13383 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13384
13385 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13386 (divtf3): Ditto.
13387 (multf3): Ditto.
13388 (subtf3): Ditto.
13389
13390 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13391
13392 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13393 unaligned 256bit load/store.
13394 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13395 (*avx_movdqu<avxmodesuffix>): Likewise.
13396
13397 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13398
13399 PR target/48288
13400 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13401 * config/pa/pa.md (iordi3): Use new predicate in expander.
13402 (iorsi3): Likewise.
13403
13404 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13405
13406 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13407 FUNCTION_VALUE_REGNO_P): Remove macros.
13408 * config/mips/mips-protos.h (mips_function_value): Remove.
13409 * config/mips/mips.c (mips_function_value): Rename to...
13410 (mips_function_value_1): ... this. Make static. Handle receiving
13411 the function type in 'fn_decl_or_type' argument.
13412 (mips_function_value, mips_libcall_value,
13413 mips_function_value_regno_p): New function.
13414 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13415 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13416
13417 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13418
13419 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13420 and -mavx256-split-unaligned-store.
13421 (ix86_option_override_internal): Split 32-byte AVX unaligned
13422 load/store by default.
13423 (ix86_avx256_split_vector_move_misalign): New.
13424 (ix86_expand_vector_move_misalign): Use it.
13425
13426 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13427 -mavx256-split-unaligned-store.
13428
13429 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13430 256bit load/store. Generate unaligned store on misaligned memory
13431 operand.
13432 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13433 256bit load/store.
13434 (*avx_movdqu<avxmodesuffix>): Likewise.
13435
13436 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13437 -mavx256-split-unaligned-store.
13438
13439 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13440
13441 PR target/38598
13442 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13443 Update commentary.
13444
13445 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13446
13447 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13448 opno arguments with an expand_operand. Use create_input_operand.
13449 (mips_prepare_builtin_target): Delete.
13450 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13451 functions.
13452 (mips_expand_builtin_direct): Use create_output_operand and
13453 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13454 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13455 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13456
13457 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13458
13459 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13460 function.
13461 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13462
13463 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13464
13465 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13466 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13467 basic blocks and call commit_edge_insertions directly.
13468 (fixup_abnormal_edges): Move from here to...
13469 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13470 on the edges and return whether some have actually been inserted.
13471 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13472 compensation code.
13473
13474 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13475
13476 PR rtl-optimization/48144
13477 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13478 (merge_expr_data): ... here.
13479 (av_set_intersect): Rename to av_set_code_motion_filter.
13480 Update all callers. Call merge_history_vect when an expression
13481 is found in both sets.
13482 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13483
13484 2011-03-26 Alan Modra <amodra@gmail.com>
13485
13486 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13487 cmodel medium addresses.
13488 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13489 64-bit gpr loads and stores.
13490 (rs6000_secondary_reload_ppc64): New function.
13491 * config/rs6000/rs6000-protos.h: Declare it.
13492 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13493
13494 2011-03-26 Alan Modra <amodra@gmail.com>
13495
13496 PR target/47487
13497 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13498 GNU Go in traceback table.
13499
13500 2011-03-25 Richard Henderson <rth@redhat.com>
13501
13502 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13503 if there are exactly 6 operands.
13504 (set_storage_via_setmem): Similarly.
13505
13506 2011-03-25 Kai Tietz <ktietz@redhat.com>
13507
13508 * collect2.c (write_c_file_stat): Handle backslash
13509 as right-hand directory separator.
13510 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13511 checking just for slash.
13512 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13513 instead of checking for trailing slash.
13514 * gcc.c (record_temp_file): Use filename_cmp instead
13515 of strcmp.
13516 (do_spec_1): Likewise.
13517 (replace_outfile_spec_function): Likewise.
13518 (is_directory): Use filename_ncmp instead of strncmp.
13519 (print_multilib_info): Likewise.
13520 * gcov.c (find_source): Use filename_cmp instead
13521 instead of strcmp.
13522 (make_gcov_file_name): Fix order of slash/backslash
13523 checks.
13524 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13525 (add_standard_paths): Likewise.
13526 * mips-tfile.c (saber_stop): Handle backslash.
13527 * prefix.c (update_path): Use filename_ncmp instead of
13528 strncmp.
13529 * profile.c (output_location): Use filename_cmp instead
13530 of strcmp.
13531 * read-md.c (handle_toplevel_file): Handle backslash.
13532 * tlink.c (frob_extension): Likewise.
13533 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13534 strcmp.
13535 * tree-dump.c (dequeue_and_dump): Handle backslash.
13536 * tree.c (get_file_function_name): Likewise.
13537 * gengtype.c (read_input_list): Likewise.
13538 (get_file_realbasename): Likewise.
13539 (get_output_file_with_visibility): Use filename_cmp
13540 instead of strcmp.
13541
13542 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13543
13544 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13545 case to VFPv1.
13546
13547 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13548
13549 * fold-const.c (expr_location_or): New function.
13550 (fold_truth_not_expr): Call it.
13551
13552 2011-03-25 Jeff Law <law@redhat.com>
13553
13554 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13555 va_end.
13556 * c-family/c-common.c (def_fn_type): Likewise.
13557 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13558 * emit-rtl.c (gen_rtvec): Likewise.
13559 * lto/lto-lang.c (def_fn_type): Likewise.
13560
13561 2011-03-25 Richard Guenther <rguenther@suse.de>
13562
13563 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13564 also generate copies.
13565 (fini_copy_prop): Handle constant values properly.
13566
13567 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13568
13569 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13570 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13571 (hash_loc_operands, compare_loc_operands): Handle
13572 DW_OP_GNU_entry_value.
13573
13574 2011-03-25 Kai Tietz <ktietz@redhat.com>
13575
13576 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13577 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13578 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13579 comment and use macro TARGET_64BIT_MS_ABI instead.
13580 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13581 and change default behavior for 32-bit MS_ABI.
13582 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13583 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13584 32-bit, too.
13585 (ix86_cfun_abi): Likewise.
13586 (ix86_maybe_switch_abi): Adjust comment.
13587 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13588 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13589 instead of checking for SYSV_ABI.
13590 (ix86_nsaved_sseregs): Likewise.
13591 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13592 to 16 bytes.
13593 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13594 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13595 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13596 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13597 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13598
13599 2011-03-25 Richard Guenther <rguenther@suse.de>
13600
13601 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13602 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13603 (verify_gimple): Remove.
13604 * tree-cfg.c (verify_gimple_call): Merge verification
13605 from verify_stmts.
13606 (verify_gimple_phi): Merge verification from verify_stmts.
13607 (verify_gimple_label): New function.
13608 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13609 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13610 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13611 (verify_stmts): Rename to verify_gimple_in_cfg.
13612 (verify_gimple_in_cfg): New function.
13613 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13614 * tree-ssa.c (verify_ssa): Likewise.
13615 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13616
13617 2011-03-25 Richard Guenther <rguenther@suse.de>
13618
13619 * passes.c (init_optimization_passes): Add FRE pass after
13620 early SRA.
13621
13622 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13623 Andrew Stubbs <ams@codesourcery.com>
13624
13625 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13626 for Cortex-A8.
13627 (arm_movdi_vfp_cortexa8): New pattern.
13628 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13629 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13630 instructions when tuning for Cortex-A8. Set attribute "arch".
13631 * config/arm/arm.md: Move include arm-tune.md up a bit.
13632 (define_attr "arch"): Add "onlya8" and "nota8" values.
13633 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13634
13635 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13636
13637 PR bootstrap/48282
13638 Revert:
13639 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13640
13641 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13642 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13643 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13644 * passes.c (init_optimization_passes): Move
13645 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13646
13647 2011-03-25 Kai Tietz <ktietz@redhat.com>
13648
13649 * c-typeck.c (comptypes_internal): Replace target
13650 hook call of comp_type_attributes by version in tree.c file.
13651 * gimple.c (gimple_types_compatible_p_1): Likewise.
13652 * tree-ssa.c (useless_type_conversion_p): Likewise.
13653 * tree.c (build_type_attribute_qual_variant): Likewise.
13654 (attribute_value_equal): New static helper function.
13655 (comp_type_attributes): New function.
13656 (merge_attributes): Use attribute_value_equal for comparison.
13657 (attribute_list_contained): Likewise.
13658 * tree.h (comp_type_attributes): New prototype.
13659
13660 2011-03-25 Richard Guenther <rguenther@suse.de>
13661
13662 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13663 of complex types at -O0.
13664 (verify_gimple_assign_binary): Likewise.
13665 (verify_gimple_assign_ternary): Likewise.
13666
13667 2011-03-24 Mark Wielaard <mjw@redhat.com>
13668
13669 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13670 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13671
13672 2011-03-24 Mark Wielaard <mjw@redhat.com>
13673
13674 PR debug/48041
13675 * dwarf2out.c (output_abbrev_section): Only write table when
13676 abbrev_die_table_in_use > 1.
13677
13678 2011-02-24 Richard Henderson <rth@redhat.com>
13679
13680 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13681 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13682 (alpha_expand_unaligned_load_words): Use extql.
13683 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13684 (emit_insxl): Handle all modes for consistency.
13685
13686 2011-02-24 Richard Henderson <rth@redhat.com>
13687
13688 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13689 (alpha_expand_unaligned_load): Likewise.
13690 (alpha_expand_unaligned_store): Likewise.
13691 (alpha_expand_unaligned_load_words): Likewise.
13692 (alpha_expand_unaligned_store_words): Likewise.
13693 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13694 (alpha_split_lock_test_and_set_12): Likewise.
13695 (print_operand, alpha_fold_builtin_extxx): Likewise.
13696 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13697 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13698 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13699 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13700 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13701 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13702 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13703 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13704 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13705 (extwl, extll, extql): Similarly.
13706 (inswh, inslh, insqh): Similarly.
13707 (mskbl, mskwl, mskll, mskql): Similarly.
13708 (mskwh, msklh, mskqh): Similarly.
13709
13710 2011-02-24 Richard Henderson <rth@redhat.com>
13711
13712 * config/alpha/alpha.md (attribute isa): Add er, ner.
13713 (attribute enabled): Handle them.
13714 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13715
13716 2011-02-24 Richard Henderson <rth@redhat.com>
13717
13718 * config/alpha/alpha.md (attribute isa): Add vms.
13719 (attribute enabled): Handle it.
13720 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13721 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13722 (*movtf): Rename from *movtf_internal for consistency.
13723 (*movsi): Merge with *movsi_nt_vms.
13724 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13725 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13726 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13727 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13728
13729 2011-02-24 Richard Henderson <rth@redhat.com>
13730
13731 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13732 (extendqisi2, extendhisi2): Likewise.
13733 (extendqidi2): Simplify BWX/non-BWX expansions.
13734 (extendhidi2): Similarly.
13735
13736 2011-02-24 Richard Henderson <rth@redhat.com>
13737
13738 * config/alpha/alpha.md (attribute isa): New.
13739 (attribute enabled): New.
13740 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13741 (zero_extendqisi2, zero_extendqidi2): Similarly.
13742 (zero_extendhisi2, zero_extendhidi2): Similarly.
13743 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13744
13745 2011-02-24 Richard Henderson <rth@redhat.com>
13746
13747 * config/alpha/predicates.md (input_operand): Revert last change;
13748 update comment to mention 32-bit VMS rather than Windows.
13749
13750 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13751
13752 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13753 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13754 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13755 * passes.c (init_optimization_passes): Move
13756 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13757
13758 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13759
13760 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13761
13762 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13763
13764 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13765 correctly.
13766
13767 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13768
13769 PR debug/48204
13770 * simplify-rtx.c (simplify_const_unary_operation): Call
13771 real_convert when changing mode class with FLOAT_EXTEND.
13772
13773 2011-03-24 Nick Clifton <nickc@redhat.com>
13774
13775 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13776 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13777 * config/rx/rx.c (rx_option_override): Set align_jumps,
13778 align_loops and align_labels if not set by the user.
13779 (rx_align_for_label): New function.
13780 (rx_max_skip_for_label): New function.
13781 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13782 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13783 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13784 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13785 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13786
13787 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13788
13789 PR rtl-optimization/48263
13790 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13791 and original commutative_p handling. Use maybe_gen_insn.
13792
13793 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13794
13795 * reload.c (find_reloads_subreg_address): Add address_reloaded
13796 parameter and return true there if the full address has been
13797 reloaded.
13798 (find_reloads_toplev): Pass address_reloaded flag.
13799 (find_reloads_address_1): Don't use address_reloaded parameter.
13800
13801 2011-03-24 Jeff Law <law@redhat.com>
13802
13803 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13804 unused variable "ann".
13805 (remove_unused_locals): Likewise.
13806
13807 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13808 statement.
13809
13810 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13811 after it is freed.
13812
13813 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13814
13815 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13816 for invalid symbolic addresses.
13817 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13818 larl operands.
13819
13820 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13821
13822 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13823 the argument in calls to fold_truth_not_expr.
13824
13825 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13826
13827 * tree.c (record_node_allocation_statistics): New function.
13828 (make_node_stat, copy_node_stat, build_string): Call it.
13829 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13830 (build1_stat, build_omp_clause): Likewise.
13831
13832 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13833
13834 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13835 last commit.
13836
13837 2011-03-24 Richard Guenther <rguenther@suse.de>
13838
13839 PR tree-optimization/48271
13840 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13841 blocks that still exist.
13842
13843 2011-03-24 Richard Guenther <rguenther@suse.de>
13844
13845 PR tree-optimization/48270
13846 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13847 not free datarefs before ddrs.
13848
13849 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13850
13851 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13852 from the address built for a reference with variable offset.
13853
13854 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13855
13856 PR target/48237
13857 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13858 alternatives that can be handled with movq or movabsq insn.
13859 (*movdf_internal): Disable for !TARGET_64BIT.
13860 (*movdf_internal_nointeger): Ditto.
13861 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13862
13863 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13864
13865 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13866 (FUNCTION_ARG_ADVANCE): Likewise.
13867 * tm.texi.in: Change references to them to hook references.
13868 * tm.texi: Regenerate.
13869 * targhooks.c (default_function_arg): Eliminate check for target macro.
13870 (default_function_incoming_arg): Likewise.
13871 (default_function_arg_advance): Likewise.
13872 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13873 (function_arg_advance): Likewise.
13874 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13875
13876 2011-03-24 Richard Guenther <rguenther@suse.de>
13877
13878 PR middle-end/48269
13879 * tree-object-size.c (addr_object_size): Do not double-account
13880 for MEM_REF offsets.
13881
13882 2011-03-24 Diego Novillo <dnovillo@google.com>
13883
13884 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13885 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13886 (lto_input_data_block): Move from lto-opts.c. Make extern.
13887 Update all users.
13888 (lto_input_string): Rename from input_string. Make extern.
13889 Update all users.
13890 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13891 output_string_with_length.
13892 Output 0 to indicate a non-NULL string. Update all callers to
13893 not emit 0.
13894 (lto_output_string): Rename from output_string. Make extern.
13895 Update all users.
13896 (lto_output_decl_state_streams): Make extern.
13897 (lto_output_decl_state_refs): Make extern.
13898 * lto-streamer.h (lto_input_string): Declare.
13899 (lto_input_data_block): Declare.
13900 (lto_output_string): Declare.
13901 (lto_output_string_with_length): Declare.
13902 (lto_output_decl_state_streams): Declare.
13903 (lto_output_decl_state_refs): Declare.
13904
13905 2011-03-24 Richard Guenther <rguenther@suse.de>
13906
13907 PR tree-optimization/46562
13908 * tree.c (build_invariant_address): New function.
13909 * tree.h (build_invariant_address): Declare.
13910 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13911 a renamed function moved ...
13912 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13913 Take valueization callback parameter.
13914 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13915 * gimple-fold.h: New file.
13916 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13917 (ccp_fold, fold_const_aggregate_ref,
13918 fold_ctor_reference, fold_nonarray_ctor_reference,
13919 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13920 get_base_constructor): Move ...
13921 * gimple-fold.c: ... here.
13922 (gimple_fold_stmt_to_constant_1): New function
13923 split out from ccp_fold. Take a valueization callback parameter.
13924 Valueize all operands.
13925 (gimple_fold_stmt_to_constant): New wrapper function.
13926 (fold_const_aggregate_ref_1): New function split out from
13927 fold_const_aggregate_ref. Take a valueization callback parameter.
13928 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13929 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13930 invariant POINTER_PLUS_EXPRs to invariant form.
13931 (vn_valueize): New function.
13932 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13933 * tree-vrp.c (vrp_valueize): New function.
13934 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13935 to fold statements to constants.
13936 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13937 function declarations.
13938 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13939 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13940
13941 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13942
13943 * config/h8300/predicates.md (jump_address_operand): Fix register
13944 mode check.
13945
13946 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13947
13948 * doc/invoke.texi (max-stores-to-sink): Document.
13949 * params.h (MAX_STORES_TO_SINK): Define.
13950 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13951 if either vectorization or if-conversion is disabled.
13952 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13953 tree-vect-data-refs.c vect_equal_offsets.
13954 (dr_equal_offsets_p): New function.
13955 (find_data_references_in_bb): Remove static.
13956 * tree-data-ref.h (find_data_references_in_bb): Declare.
13957 (dr_equal_offsets_p): Likewise.
13958 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13959 (vect_drs_dependent_in_basic_block): Update calls to
13960 vect_equal_offsets.
13961 (vect_check_interleaving): Likewise.
13962 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13963 (cond_if_else_store_replacement): Rename to...
13964 (cond_if_else_store_replacement_1): ... this. Change arguments and
13965 documentation.
13966 (cond_if_else_store_replacement): New function.
13967 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13968 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13969
13970 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13971
13972 PR target/46934
13973 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13974 to subtract lower bound instead of GEN_INT().
13975
13976 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13977
13978 PR other/48179
13979 PR other/48221
13980 PR other/48234
13981 * doc/extend.texi (Alignment): Move section to match order in TOC.
13982 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13983 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13984
13985 2011-03-23 Jeff Law <law@redhat.com>
13986
13987 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13988 before removing the edge.
13989
13990 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13991 it may have been freed by redirect_branch_edge or
13992 redirect_edge_succ_nodup.
13993
13994 2011-03-23 Richard Guenther <rguenther@suse.de>
13995
13996 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13997 (check_va_list_escapes): Likewise.
13998 (check_all_va_list_escapes): Likewise.
13999
14000 2011-03-23 Richard Guenther <rguenther@suse.de>
14001
14002 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14003 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14004 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14005 (alias.o): Likewise.
14006 (ipa-type-escape.o): Remove.
14007 (ipa-struct-reorg.o): Likewise.
14008 (GTFILES): Remove ipa-struct-reorg.c.
14009 * alias.c: Do not include ipa-type-escape.h.
14010 * tree-ssa-alias.c: Likewise.
14011 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14012 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14013 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14014 and ipa-type-escape passes.
14015 * tree-pass.h (pass_ipa_type_escape): Remove.
14016 (pass_ipa_struct_reorg): Likewise.
14017 * ipa-struct-reorg.h: Remove.
14018 * ipa-struct-reorg.c: Likewise.
14019 * ipa-type-escape.h: Likewise.
14020 * ipa-type-escape.c: Likewise.
14021 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14022 (--param struct-reorg-cold-struct-ratio): Likewise.
14023 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14024 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14025 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14026
14027 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14028
14029 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14030 cpu attribute value.
14031 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14032 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14033 * config/s390/s390.c (processor_flags_table): New constant array.
14034 (s390_handle_arch_option): Remove.
14035 (s390_handle_option): Remove s390_handle_arch_option invocations
14036 and OPT_mwarn_framesize_ handling.
14037 (s390_option_override): Remove s390_handle_arch_option invocation.
14038 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14039 warnings.
14040 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14041 * config/s390/s390.opt (s390_tune, s390_arch)
14042 (march=): Replace s390_arch_option enum and values with
14043 processor_type. Set variable name to s390_arch. Set
14044 initialization value.
14045 (mtune=): Replace s390_arch_option with processor_type. Set
14046 variable name to s390_tune. Set initialization value.
14047
14048 2011-03-23 Julian Brown <julian@codesourcery.com>
14049
14050 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14051 accesses which are not naturally aligned.
14052
14053 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14054
14055 PR target/47553
14056 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14057
14058 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14059
14060 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14061 parameter from "int" to "enum insn_code".
14062 (expand_operand_type): New enum.
14063 (expand_operand): New structure.
14064 (create_expand_operand): New function.
14065 (create_fixed_operand, create_output_operand): Likewise
14066 (create_input_operand, create_convert_operand_to): Likewise.
14067 (create_convert_operand_from, create_address_operand): Likewise.
14068 (create_integer_operand): Likewise.
14069 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14070 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14071 (expand_insn, expand_jump_insn): Likewise.
14072 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14073 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14074 (expand_movstr, expand_builtin___clear_cache): Likewise.
14075 (expand_builtin_lock_release): Likewise.
14076 * explow.c (allocate_dynamic_stack_space): Likewise.
14077 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14078 and use the default handling in that case.
14079 * expmed.c (check_predicate_volatile_ok): Delete.
14080 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14081 (emit_cstore): Likewise.
14082 * expr.c (emit_block_move_via_movmem): Likewise.
14083 (set_storage_via_setmem, expand_assignment): Likewise.
14084 (emit_storent_insn, try_casesi): Likewise.
14085 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14086 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14087 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14088 (expand_twoval_unop, expand_twoval_binop): Likewise.
14089 (expand_unop_direct, emit_indirect_jump): Likewise.
14090 (emit_conditional_move, vector_compare_rtx): Likewise.
14091 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14092 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14093 (expand_sync_lock_test_and_set): Likewise.
14094 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14095 (emit_unop_insn): Likewise.
14096 (expand_copysign_absneg): Change icode to an insn_code.
14097 (create_convert_operand_from_type): New function.
14098 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14099 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14100 (expand_insn, expand_jump_insn): Likewise.
14101 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14102 than const_int_operand for operand 2.
14103
14104 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14105
14106 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14107 if possible.
14108
14109 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14110
14111 * emit-rtl.c (emit_pattern_before_noloc): New function.
14112 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14113 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14114 (emit_pattern_after_noloc): New function.
14115 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14116 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14117
14118 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14119
14120 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14121 (__ffsDI2): Likewise.
14122
14123 2011-03-22 Richard Henderson <rth@redhat.com>
14124
14125 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14126 of !TARGET_ABI_OPEN_VMS.
14127 (alpha_trampoline_init, alpha_start_function): Likewise.
14128 (alpha_expand_epilogue, alpha_file_start): Likewise.
14129 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14130 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14131 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14132 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14133 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14134
14135 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14136
14137 * config/s390/s390-opts.h: New.
14138 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14139 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14140 s390_stack_guard): Remove.
14141 (s390_handle_arch_option): Return void. Take enum
14142 s390_arch_option value instead of string and searching array.
14143 (s390_handle_option): Don't assert that global structures are in
14144 use. Access variables via opts pointer. Use error_at. Don't use
14145 sscanf for -mstack-guard= or -mstack-size=. Update call to
14146 s390_handle_arch_option.
14147 (s390_option_override): Update call to s390_handle_arch_option.
14148 (s390_emit_prologue): Use %d format for s390_stack_size in
14149 diagnostic. Use %wd for HOST_WIDE_INT.
14150 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14151 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14152 * config/s390/s390.opt (config/s390/s390-opts.h): New
14153 HeaderInclude entry.
14154 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14155 s390_arch_flags, s390_warn_framesize): New Variable entries.
14156 (s390_arch_option): New Enum and EnumValue entries.
14157 (march=): Use Enum instead of Var.
14158 (mstack-guard=, mstack-size=): Use UInteger and Var.
14159 (mtune=): Use Enum.
14160
14161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14162
14163 * config/score/score.c (score_handle_option): Don't assert that
14164 global structures are in use. Access target_flags via opts
14165 pointer. Use value of -march= option to determine target_flags
14166 settings.
14167 * config/score/score.opt (march=): Use Enum.
14168 (score_arch): New Enum and EnumValue entries.
14169
14170 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14171
14172 * config/mep/mep.c (option_mtiny_specified): Remove.
14173 (mep_option_override): Move register handling for -mivc2 from
14174 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14175 instead of option_mtiny_specified.
14176 (mep_handle_option): Access target_flags via opts pointer. Don't
14177 assert that global structures are in use. Defer part of -mivc2
14178 handling and move it to mep_option_override.
14179 * config/mep/mep.opt (IVC2): New Mask entry.
14180 (mivc2): Use Var and Defer instead of Mask.
14181
14182 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14183
14184 * config/v850/v850-opts.h: New.
14185 * config/v850/v850.c (small_memory): Replace with
14186 small_memory_physical_max array. Make that array static const.
14187 (v850_handle_memory_option): Take integer value of argument. Take
14188 gcc_options pointer, option text and location. Return void.
14189 Update for changes to small memory structures.
14190 (v850_handle_option): Access target_flags via opts pointer. Don't
14191 assert that global structures are in use. Update calls to
14192 v850_handle_memory_option.
14193 (v850_encode_data_area): Update references to small memory settings.
14194 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14195 (enum small_memory_type): Move to v850-opts.h.
14196 * config/v850/v850.opt (config/v850/v850-opts.h): New
14197 HeaderInclude entry.
14198 (small_memory_max): New Variable entry.
14199 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14200 (mtda, mzda): Likewise.
14201
14202 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14203
14204 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14205 pointer. Don't assert that global structures are in use.
14206
14207 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14208
14209 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14210 via opts pointer. Don't assert that global structures are in use.
14211
14212 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14213
14214 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14215 (munix=93): Use Var.
14216 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14217 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14218 * config/pa/pa-opts.h: New.
14219 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14220 (pa_handle_option): Don't assert that global structures are in
14221 use. Access target_flags via opts pointer. Don't handle
14222 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14223 OPT_munix_98 here.
14224 (pa_option_override): Handle deferred OPT_mfixed_range_.
14225
14226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14227
14228 * config/mn10300/mn10300-opts.h: New.
14229 * config/mn10300/mn10300.c (mn10300_processor,
14230 mn10300_tune_string): Remove.
14231 (mn10300_handle_option): Don't assert that global structures are
14232 in use. Access mn10300_processor via opts pointer. Don't handle
14233 OPT_mtune_ here.
14234 * config/mn10300/mn10300.h (enum processor_type): Move to
14235 mn10300-opts.h.
14236 (mn10300_processor): Remove.
14237 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14238 HeaderInclude entry.
14239 (mn10300_processor): New Variable entry.
14240 (mtune=): Use Var.
14241
14242 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14243
14244 * config/microblaze/microblaze.c: Don't include opts.h.
14245 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14246 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14247 (mno-clearbss): Use Var and Warn.
14248
14249 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14250
14251 * config/m32r/m32r-opts.h: New.
14252 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14253 (m32r_handle_option): Don't assert that global structures are in
14254 use. Access target_flags and m32r_cache_flush_func via opts
14255 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14256 OPT_mno_flush_trap here.
14257 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14258 include of m32r-opts.h.
14259 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14260 HeaderInclude entry.
14261 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14262 (mmodel=): Use Enum and Var.
14263 (m32r_model): New Enum and EnumValue entries.
14264 (mno-flush-trap): Use Var.
14265 (msdata=): Use Enum and Var.
14266 (m32r_sdata): New Enum and EnumValue entries.
14267
14268 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14269
14270 * config/m32c/m32c.c: Don't include opts.h.
14271 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14272 m32c_handle_option): Remove.
14273 (m32c_option_override): Check global_options_set.x_target_memregs
14274 instead of target_memregs_set.
14275 * config/m32c/m32c.h (target_memregs): Remove.
14276 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14277 variable.
14278
14279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14280
14281 * config/iq2000/iq2000-opts.h: New.
14282 * config/iq2000/iq2000.c: Don't include opts.h.
14283 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14284 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14285 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14286 HeaderInclude entry.
14287 (iq2000_tune): New Variable entry.
14288 (march=): Add comment. Use Enum.
14289 (iq2000_arch): New Enum and EnumValue entries.
14290 (mcpu=): Use Enum and Var.
14291 (iq2000_tune): New Enum and EnumValue entries.
14292
14293 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14294
14295 * config/ia64/ia64-opts.h: New.
14296 * config/ia64/ia64.c (ia64_tune): Remove.
14297 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14298 here. Use error_at.
14299 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14300 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14301 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14302 HeaderInclude entry.
14303 (ia64_tune): New Variable entry.
14304 (mfixed-range=): Use Defer and Var.
14305 (mtune=): Use Enum and Var.
14306 (ia64_tune): New Enum and EnumValue entries.
14307
14308 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14309
14310 * config/frv/frv-opts.h: New.
14311 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14312 frv-opts.h.
14313 (frv_cpu_type): Remove.
14314 * config/frv/frv.c: Don't include opts.h.
14315 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14316 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14317 (frv_cpu_type): New Variable entry.
14318 (frv_cpu): New Enum and EnumValue entries.
14319
14320 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14321
14322 * config/cris/cris.c (cris_handle_option): Access target_flags via
14323 opts pointer. Don't assert that global structures are in use.
14324 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14325 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14326
14327 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14328
14329 * config/bfin/bfin-opts.h: New.
14330 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14331 bfin_si_revision, bfin_workarounds): Remove.
14332 (bfin_cpus): Make static const.
14333 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14334 not bfin_lib_id_given.
14335 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14336 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14337 pointer. Use error_at. Don't assert that global structures are in use.
14338 * config/bfin/bfin.h: Include bfin-opts.h.
14339 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14340 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14341 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14342 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14343 entries.
14344
14345 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14346
14347 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14348 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14349 or -msoft-float here.
14350 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14351 -msoft-float and -mhard-float.
14352 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14353 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14354 msoft-float.
14355 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14356 -msoft-float.
14357 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14358 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14359 not mhard-float.
14360 (LIBGCC_SPEC): Don't handle -msoft-float.
14361 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14362 -mhard-float.
14363 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14364 msoft-float.
14365 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14366 -mfloat-abi=*, not -msoft-float and -mhard-float.
14367 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14368 -msoft-float.
14369 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14370 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14371 mhard-float and msoft-float.
14372 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14373 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14374 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14375 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14376 mhard-float.
14377 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14378 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14379 msoft-float.
14380 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14381 not mhard-float.
14382 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14383 not msoft-float.
14384
14385 2011-03-22 Richard Henderson <rth@redhat.com>
14386
14387 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14388 TARGET_ABI_WINDOWS_NT.
14389 (alpha_output_function_end_prologue): Likewise.
14390 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14391 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14392 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14393 (trap, *movsi_nt_vms): Likewise.
14394 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14395 (*tablejump_osf_nt_internal): Remove.
14396 * config/alpha/predicates.md (input_operand): Only test Pmode.
14397
14398 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14399
14400 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14401 via opts pointer. Use error_at. Don't assert that global
14402 structures are in use.
14403
14404 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14405
14406 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14407 (ix86_handle_option): Access ix86_isa_flags and
14408 ix86_isa_flags_explicit via opts pointer. Don't assert that
14409 global structures are in use.
14410 (ix86_function_specific_save, ix86_function_specific_restore):
14411 Update ix86_isa_flags_explicit field name.
14412 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14413 (ix86_isa_flags_explicit): Rename TargetSave entry to
14414 x_ix86_isa_flags_explicit.
14415
14416 2011-03-22 Richard Henderson <rth@redhat.com>
14417
14418 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14419 (alpha_option_override, direct_return): Likewise.
14420 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14421 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14422 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14423 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14424 (alpha_expand_epilogue, alpha_end_function): Likewise.
14425 (alpha_init_libfuncs): Likewise.
14426 (struct machine_function): Remove unicosmk members.
14427 (print_operand) ['t']: Remove.
14428 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14429 unicosmk_output_module_name, unicosmk_output_common,
14430 current_section_align, unicosmk_output_text_section_asm_op,
14431 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14432 unicosmk_section_type_flags, unicosmk_unique_section,
14433 unicosmk_asm_named_section, unicosmk_insert_attributes,
14434 unicosmk_output_align, unicosmk_defer_case_vector,
14435 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14436 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14437 unicosmk_output_ssib, unicosmk_add_call_info_word,
14438 unicosmk_extern_head, unicosmk_output_default_externs,
14439 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14440 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14441 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14442 * config/alpha/alpha-protos.h: Update.
14443 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14444 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14445 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14446 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14447 (*mulsi_se, mulvsi3): Likewise.
14448 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14449 (*divmodsi_internal, call, call_value, realign): Likewise.
14450 (moddi3, umoddi3): Likewise; remove duplicate expander.
14451 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14452 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14453 (*movdi_nofix): Remove r/U alternative.
14454 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14455 * config/alpha/constraints.md ("U"): Remove.
14456 * config/alpha/predicates.md (call_operand"): Don't test
14457 TARGET_ABI_UNICOSMK.
14458
14459 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14460
14461 * target.def (handle_option): Take gcc_options and
14462 cl_decoded_option pointers and location_t.
14463 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14464 * doc/tm.texi: Regenerate.
14465 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14466 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14467 * lto-opts.c (lto_reissue_options): Generate option structure for
14468 targetm.handle_option call.
14469 * opts.c (target_handle_option): Update call to
14470 targetm.handle_option. Remove assertions about values now passed
14471 down to hook.
14472 * targhooks.c (default_target_handle_option): New.
14473 * targhooks.h (default_target_handle_option): Declare.
14474 * config/alpha/alpha.c: Include opts.h.
14475 (alpha_handle_option): Update to new hook interface.
14476 * config/arm/arm.c: Include opts.h.
14477 (arm_handle_option): Update to new hook interface.
14478 * config/arm/t-arm (arm.o): Update dependencies.
14479 * config/bfin/bfin.c: Include opts.h.
14480 (bfin_handle_option): Update to new hook interface.
14481 * config/cris/cris.c: Include opts.h.
14482 (cris_handle_option): Update to new hook interface.
14483 * config/frv/frv.c: Include opts.h.
14484 (frv_handle_option): Update to new hook interface.
14485 * config/i386/i386.c: Include opts.h.
14486 (ix86_handle_option): Update to new hook interface.
14487 (ix86_valid_target_attribute_inner_p): Generate option structure
14488 for call to ix86_handle_option.
14489 * config/i386/t-i386 (i386.o): Update dependencies.
14490 * config/ia64/ia64.c: Include opts.h.
14491 (ia64_handle_option): Update to new hook interface.
14492 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14493 * config/iq2000/iq2000.c: Include opts.h.
14494 (iq2000_handle_option): Update to new hook interface.
14495 * config/m32c/m32c.c: Include opts.h.
14496 (m32c_handle_option): Update to new hook interface.
14497 * config/m32r/m32r.c: Include opts.h.
14498 (m32r_handle_option): Update to new hook interface.
14499 * config/m68k/m68k.c: Include opts.h.
14500 (m68k_handle_option): Update to new hook interface.
14501 * config/mep/mep.c: Include opts.h.
14502 (mep_handle_option): Update to new hook interface.
14503 * config/microblaze/microblaze.c: Include opts.h.
14504 (microblaze_handle_option): Update to new hook interface.
14505 * config/mips/mips.c: Include opts.h.
14506 (mips_handle_option): Update to new hook interface.
14507 * config/mn10300/mn10300.c: Include opts.h.
14508 (mn10300_handle_option): Update to new hook interface.
14509 * config/pa/pa.c: Include opts.h.
14510 (pa_handle_option): Update to new hook interface.
14511 * config/pdp11/pdp11.c: Include opts.h.
14512 (pdp11_handle_option): Update to new hook interface.
14513 * config/rs6000/rs6000.c: Include opts.h.
14514 (rs6000_handle_option): Update to new hook interface.
14515 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14516 * config/rx/rx.c: Include opts.h.
14517 (rx_handle_option): Update to new hook interface.
14518 * config/s390/s390.c: Include opts.h.
14519 (s390_handle_option): Update to new hook interface.
14520 * config/score/score.c: Include opts.h.
14521 (score_handle_option): Update to new hook interface.
14522 * config/sh/sh.c: Include opts.h.
14523 (sh_handle_option): Update to new hook interface.
14524 * config/sparc/sparc.c: Include opts.h.
14525 (sparc_handle_option): Update to new hook interface.
14526 * config/v850/v850.c: Include opts.h.
14527 (v850_handle_option): Update to new hook interface.
14528
14529 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14530
14531 * gcc.c (driver_unknown_option_callback): Only permit and save
14532 unknown -Wno- options.
14533 (driver_wrong_lang_callback): Save options directly instead of via
14534 driver_unknown_option_callback.
14535
14536 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14537
14538 * combine.c (simplify_set): Try harder to find the best CC mode when
14539 simplifying a nested COMPARE on the RHS.
14540
14541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14542
14543 * config/alpha/gnu.h: Remove.
14544 * config/arc: Remove directory.
14545 * config/arm/netbsd.h: Remove.
14546 * config/arm/t-pe: Remove.
14547 * config/crx: Remove directory.
14548 * config/i386/netbsd.h: Remove.
14549 * config/m68hc11: Remove directory.
14550 * config/m68k/uclinux-oldabi.h: Remove.
14551 * config/mcore/mcore-pe.h: Remove.
14552 * config/mcore/t-mcore-pe: Remove.
14553 * config/netbsd-aout.h: Remove.
14554 * config/rs6000/gnu.h: Remove.
14555 * config/sh/sh-symbian.h: Remove.
14556 * config/sh/symbian-base.c: Remove.
14557 * config/sh/symbian-c.c: Remove.
14558 * config/sh/symbian-cxx.c: Remove.
14559 * config/sh/symbian-post.h: Remove.
14560 * config/sh/symbian-pre.h: Remove.
14561 * config/sh/t-symbian: Remove.
14562 * config/svr3.h: Remove.
14563 * config/vax/netbsd.h: Remove.
14564 * config.build: Don't handle i[34567]86-*-pe.
14565 * config.gcc: Remove handling of deprecations for most deprecated
14566 targets.
14567 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14568 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14569 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14570 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14571 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14572 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14573 Remove cases.
14574 * config.host: Don't handle i[34567]86-*-pe.
14575 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14576 (ASM_SPEC32): Don't handle -mcall-gnu.
14577 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14578 -mcall-gnu.
14579 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14580 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14581 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14582 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14583 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14584 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14585 conditional on SYMBIAN.
14586 * configure.ac: Don't handle powerpc*-*-gnu*.
14587 * configure: Regenerate.
14588 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14589 * doc/install-old.texi (m6811, m6812): Don't mention.
14590 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14591 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14592 (m68k-uclinuxoldabi): Don't mention.
14593 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14594 Remove.
14595 (-mcall-gnu): Remove.
14596 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14597 families): Remove constraint documentation.
14598
14599 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14600
14601 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14602 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14603 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14604
14605 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14606
14607 PR target/48226
14608 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14609 vector when peeking at the next token for vector, don't expand the
14610 keywords.
14611
14612 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14613
14614 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14615 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14616 * config/avr/avr.c (init_cumulative_args)
14617 (avr_function_arg_advance): Use it.
14618 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14619 sibcall epilogues.
14620 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14621 (avr_function_ok_for_sibcall): ...this new function.
14622 (avr_lookup_function_attribute1): New static Function.
14623 (avr_naked_function_p, interrupt_function_p)
14624 (signal_function_p, avr_OS_task_function_p)
14625 (avr_OS_main_function_p): Use it.
14626 * config/avr/avr.md ("sibcall", "sibcall_value")
14627 ("sibcall_epilogue"): New expander.
14628 ("*call_insn", "*call_value_insn"): New insn.
14629 ("call_insn", "call_value_insn"): Remove
14630 ("call", "call_value", "epilogue"): Change expander to handle
14631 sibling calls.
14632
14633 2011-03-21 Nick Clifton <nickc@redhat.com>
14634
14635 * doc/invoke.texi (Overall Options): Move closing brace to end of
14636 options list.
14637 (Optimization Options): Add missing @gol.
14638 (Directory Options): Likewise.
14639 (i386 and x86-64 Options): Likewise.
14640 (RS6000 and PowerPC Options): Likewise.
14641 (i386 and x86-64 Windows Options): Likewise.
14642 (V850 Options): Add text missing from descriptions.
14643
14644 2011-03-22 Richard Henderson <rth@redhat.com>
14645
14646 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14647 (avr_incoming_return_addr_rtx): New.
14648 (emit_push_byte): New.
14649 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14650 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14651 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14652 (emit_pop_byte): New.
14653 (expand_epilogue): Use it. Pop frame pointer by bytes.
14654 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14655 (INCOMING_RETURN_ADDR_RTX): New.
14656 (INCOMING_FRAME_SP_OFFSET): New.
14657 (ARG_POINTER_CFA_OFFSET): New.
14658 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14659 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14660 (pophi): Remove.
14661
14662 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14663
14664 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14665
14666 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14667 (FUNCTION_ARG_ADVANCE): Likewise.
14668 * tm.texi.in: Change references to them to hook references.
14669 * tm.texi: Regenerate.
14670 * targhooks.c (default_function_arg): Eliminate check for target
14671 macro.
14672 (default_function_incoming_arg): Likewise.
14673 (default_function_arg_advance): Likewise.
14674 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14675 (function_arg_advance): Likewise.
14676 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14677
14678 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14679
14680 * tree.c (build_call_1): New function.
14681 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14682
14683 2011-03-22 Richard Guenther <rguenther@suse.de>
14684
14685 PR tree-optimization/48228
14686 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14687 for single-arg PHIs.
14688
14689 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14690
14691 PR rtl-optimization/48143
14692 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14693 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14694 sse2_cvtps2pd): Likewise.
14695
14696 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14697
14698 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14699
14700 2011-03-22 Richard Guenther <rguenther@suse.de>
14701
14702 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14703 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14704 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14705 and REALIGN_LOAD_EXPR.
14706 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14707 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14708 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14709 DOT_PROD_EXPR case ...
14710 (expand_expr_real_2): ... here.
14711 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14712 and REALIGN_LOAD_EXPR.
14713 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14714 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14715 (vect_create_epilog_for_reduction): Likewise.
14716 (vectorizable_reduction): Likewise.
14717 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14718 * tree-vect-stmts.c (vectorizable_load): Likewise.
14719
14720 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14721
14722 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14723
14724 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14725
14726 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14727 handling for PLTOFF/GOTOFF.
14728
14729 2011-03-22 Nick Clifton <nickc@redhat.com>
14730
14731 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14732 trailing backslash from the end of the macro definition.
14733
14734 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14735
14736 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14737 and PLT unspecs.
14738
14739 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14740
14741 * expr.h (prepare_operand): Move to...
14742 * optabs.h (prepare_operand): ...here and change the insn code
14743 parameter from "int" to "enum insn_code".
14744 (insn_operand_matches): Declare.
14745 * expr.c (init_expr_target): Use insn_operand_matches.
14746 (compress_float_constant): Likewise.
14747 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14748 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14749 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14750 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14751 Likewise.
14752 (gen_cond_trap): Likewise.
14753 (prepare_operand): Likewise. Change icode to an insn_code.
14754 (insn_operand_matches): New function.
14755 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14756 * reload1.c (gen_reload): Likewise.
14757 * targhooks.c (default_secondary_reload): Likewise.
14758
14759 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14760
14761 * config/alpha/alpha.md (unspec): New define_c_enum.
14762 (unspecv): Ditto.
14763
14764 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14765
14766 PR debug/48214
14767 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14768 between a call and its CALL_ARG_LOCATION note.
14769
14770 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14771
14772 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14773
14774 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14775
14776 PR c/42544
14777 PR c/48197
14778 * c-common.c (shorten_compare): If primopN is first sign-extended
14779 to opN and then zero-extended to result type, set primopN to opN.
14780
14781 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14782
14783 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14784 for barrier handlers.
14785
14786 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14787
14788 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14789 UNSPEC constants to be in the unspec enumeration, and redefine
14790 all UNSPECV constants to be in the unspecv enumeration, so that
14791 dumps print which unspec/unspec_volatile this is.
14792 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14793 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14794 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14795 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14796 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14797
14798 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14799 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14800 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14801 * config/rs6000/sync.md (isync, lwsync): Ditto.
14802
14803 2011-03-21 Richard Guenther <rguenther@suse.de>
14804
14805 * params.def (lto-min-partition): Fix typo.
14806
14807 2011-03-21 Richard Guenther <rguenther@suse.de>
14808
14809 PR c/47939
14810 * c-decl.c (grokdeclarator): Drop to the main variant only
14811 for array types. Drop flag_gen_aux_info check.
14812
14813 2011-03-21 Richard Guenther <rguenther@suse.de>
14814
14815 PR translation/47911
14816 * params.def (lto-partitions): Fix typo.
14817 (lto-min-partition): Fix wording.
14818
14819 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14820
14821 * config/rs6000/t-freebsd: Remove duplication from file.
14822
14823 2011-03-21 Richard Guenther <rguenther@suse.de>
14824
14825 PR middle-end/47661
14826 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14827
14828 2011-03-21 Richard Guenther <rguenther@suse.de>
14829
14830 PR lto/48210
14831 * params.def (lto-partitions): Require at least 1 partition.
14832
14833 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14834
14835 * gthr-solaris.h: Remove.
14836 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14837 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14838 (LIB_SPEC): Likewise.
14839 * config/sol2.opt (threads): Remove.
14840 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14841 (sparc*-*-solaris2*): Likewise.
14842 * configure.ac (enable_threads): Enable solaris support.
14843 * configure: Regenerate.
14844 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14845 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14846 solaris.
14847
14848 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14849
14850 * config.gcc: Obsolete *-*-solaris2.8*.
14851 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14852
14853 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14854
14855 PR bootstrap/48135
14856 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14857 reference. Solaris 8 perl works.
14858
14859 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14860
14861 PR bootstrap/48135
14862 * doc/install.texi (Prerequisites): Move jar etc. up.
14863 Explain support library version requirements.
14864
14865 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14866
14867 PR bootstrap/48135
14868 * doc/install.texi (Prerequisites): Move Perl to build
14869 requirements. Always necessary on Solaris 2 with Sun ld.
14870
14871 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14872
14873 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14874 binutils 2.21.
14875 (Specific, i?86-*-solaris2.[89]): Likewise.
14876 (Specific, i?86-*-solaris2.10): Likewise.
14877 (Specific, mips-sgi-irix6): Likewise.
14878 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14879 Update for binutils 2.21.
14880
14881 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14882
14883 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14884 Allow -fuse-linker-plugin for non-default plugin linker.
14885 * configure: Regenerate.
14886
14887 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14888
14889 PR bootstrap/48167
14890 * gengtype.c (files_rules): Added rule for cp/parser.h.
14891
14892 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14893
14894 PR target/48213
14895 * config/s390/s390.c (s390_delegitimize_address): Don't call
14896 lowpart_subreg if orig_x has BLKmode.
14897
14898 2011-03-21 Kai Tietz <ktietz@redhat.com>
14899
14900 PR target/12171
14901 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14902 * tree.h (attribute_spec): Add new member affects_type_identity.
14903 * attribs.c (empty_attribute_table): Adjust attribute_spec
14904 initializers.
14905 * config/alpha/alpha.c: Likewise.
14906 * config/arc/arc.c: Likewise.
14907 * config/arm/arm.c: Likewise.
14908 * config/avr/avr.c: Likewise.
14909 * config/bfin/bfin.c: Likewise.
14910 * config/crx/crx.c: Likewise.
14911 * config/darwin.h: Likewise.
14912 * config/h8300/h8300.c: Likewise.
14913 * config/i386/cygming.h: Likewise.
14914 * config/i386/i386.c: Likewise.
14915 * config/ia64/ia64.c: Likewise.
14916 * config/m32c/m32c.c: Likewise.
14917 * config/m32r/m32r.c: Likewise.
14918 * config/m68hc11/m68hc11.c: Likewise.
14919 * config/m68k/m68k.c: Likewise.
14920 * config/mcore/mcore.c: Likewise.
14921 * config/mep/mep.c: Likewise.
14922 * config/microblaze/microblaze.c: Likewise.
14923 * config/mips/mips.c: Likewise.
14924 * config/rs6000/rs6000.c: Likewise.
14925 * config/rx/rx.c: Likewise.
14926 * config/sh/sh.c: Likewise.
14927 * config/sol2.h: Likewise.
14928 * config/sparc/sparc.c: Likewise.
14929 * config/spu/spu.c: Likewise.
14930 * config/stormy16/stormy16.c: Likewise.
14931 * config/v850/v850.c: Likewise.
14932
14933 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14934
14935 * simplify-rtx.c (simplify_binary_operation_1): Handle
14936 (xor (and A B) C) case when B and C are both constants.
14937
14938 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14939
14940 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14941
14942 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14943
14944 PR bootstrap/48168
14945 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14946
14947 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14948
14949 PR rtl-optimization/48156
14950 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14951 assume df and df_lr are not NULL.
14952
14953 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14954
14955 PR debug/48023
14956 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14957 between a call and its CALL_ARG_LOCATION note.
14958
14959 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14960
14961 PR debug/48178
14962 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14963 between a call and its corresponding CALL_ARG_LOCATION note.
14964
14965 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14966
14967 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14968 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14969 * haifa-sched.c (setup_ref_regs): Ditto.
14970 * caller-save.c (add_used_regs_1): Ditto.
14971 * dse.c (look_for_hardregs): Ditto.
14972 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14973 * sched-rgn.c (check_live_1): Ditto.
14974
14975 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14976
14977 * c-decl.c (diagnose_mismatched_decls): Give an error for
14978 redefining a typedef with variably modified type.
14979
14980 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14981
14982 * c-decl.c (grokfield): Don't allow typedefs for structures or
14983 unions with no tag by default.
14984 * doc/extend.texi (Unnamed Fields): Update.
14985
14986 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14987
14988 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14989 Rewrite using indirect functions.
14990 (lwp_slwpcb): Ditto.
14991 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14992 (avx_vinsertf128<mode>): Ditto.
14993
14994 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14995
14996 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14997 unspecs.
14998
14999 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15000
15001 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15002 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15003
15004 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15005
15006 PR rtl-optimization/48170
15007 * gcse.c (hoist_code): Remove bogus asserts.
15008
15009 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15010
15011 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15012 computation for prologue/epilogue.
15013
15014 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15015
15016 * Makefile.in (check-consistency): Remove.
15017
15018 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15019
15020 PR debug/48176
15021 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15022 arange_table_in_use is 0, but either text_section_used or
15023 cold_text_section_used is true. Don't call it if
15024 !info_section_emitted.
15025
15026 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15027
15028 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15029 FUNCTION_VALUE_REGNO_P): Remove.
15030 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15031 Remove.
15032 * config/avr/avr.c (avr_ret_register): Make static inline.
15033 (avr_function_value_regno_p): New function.
15034 (avr_libcall_value): Make static. Add 'func' argument.
15035 (avr_function_value): Make static. Rename 'func' argument to
15036 'fn_decl_or_type', forward it to avr_libcall_value. Call
15037 avr_ret_register function instead of RET_REGISTER macro.
15038 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15039
15040 2011-03-18 Jason Merrill <jason@redhat.com>
15041
15042 PR c++/23372
15043 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15044
15045 2011-03-18 Richard Guenther <rguenther@suse.de>
15046
15047 * doc/install.texi (--enable-gold): Remove.
15048 (--with-plugin-ld): Document.
15049 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15050
15051 2011-03-18 Andrew Pinski <pinskia@gmail.com>
15052
15053 PR middle-end/47790
15054 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15055 again after expansion changes.
15056
15057 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15058
15059 * combine.c (try_combine): Do simplification only call of
15060 subst() on i2 even when i1 is present. Update comments.
15061
15062 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15063
15064 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15065 and UNSPEC_PCREL_SYMOFF.
15066
15067 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15068
15069 * config/s390/s390.md: Use define_c_enum for the unspec constant
15070 definitions.
15071
15072 2011-03-18 Richard Henderson <rth@redhat.com>
15073 Jakub Jelinek <jakub@redhat.com>
15074
15075 PR bootstrap/48161
15076 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15077 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15078
15079 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15080
15081 PR middle-end/47725
15082 * combine.c (cant_combine_insn_p): Don't check zero/sign
15083 extended hard registers.
15084
15085 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15086
15087 PR middle-end/47725
15088 * combine.c (cant_combine_insn_p): Check zero/sign extended
15089 hard registers.
15090
15091 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15092
15093 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15094 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15095 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15096 Change return type to bool.
15097 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15098
15099 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15100
15101 PR debug/48163
15102 * var-tracking.c (prepare_call_arguments): If CALL target
15103 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15104 pc instead of looking it up using cselib_lookup and use
15105 Pmode for it if x has VOIDmode.
15106 * dwarf2out.c (gen_subprogram_die): If also both first and
15107 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15108
15109 PR debug/48163
15110 * function.c (assign_parms): For data.passed_pointer parms
15111 use MEM of data.entry_parm instead of data.entry_parm itself
15112 as DECL_INCOMING_RTL.
15113 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15114 also when passed and declared mode is the same, DECL_RTL
15115 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15116 a MEM too.
15117
15118 2011-03-16 Jeff Law <law@redhat.com>
15119
15120 PR rtl-optimization/37273
15121 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15122 handle them like argument loads from stack slots. Do not double
15123 count memory for memory constants and argument loads from stack slots.
15124
15125 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15126
15127 PR debug/48160
15128 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15129
15130 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15131
15132 PR target/48171
15133 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15134
15135 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15136
15137 PR bootstrap/48153
15138 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15139 if dwarf_strict.
15140 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15141 Clear call_arg_locations and call_arg_loc_last always.
15142
15143 PR middle-end/48152
15144 * var-tracking.c (prepare_call_arguments): If argument needs to be
15145 passed by reference, adjust argtype and mode.
15146
15147 2011-03-17 Richard Guenther <rguenther@suse.de>
15148
15149 PR middle-end/48134
15150 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15151 a value make sure to fold the statement.
15152
15153 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15154
15155 PR target/43872
15156 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15157 return condition with !cfun->calls_alloca.
15158
15159 2011-03-17 Richard Guenther <rguenther@suse.de>
15160
15161 PR bootstrap/48148
15162 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15163 origin for decls in other ltrans units.
15164 (input_varpool_node): Likewise.
15165
15166 2011-03-17 Richard Guenther <rguenther@suse.de>
15167
15168 PR middle-end/48165
15169 * tree-object-size.c (compute_object_offset): Properly return
15170 the offset operand of MEM_REFs as sizetype.
15171
15172 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15173
15174 PR rtl-optimization/48141
15175 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15176 * dse.c: Include params.h.
15177 (active_local_stores_len): New variable.
15178 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15179 to NULL.
15180 (record_store, check_mem_read_rtx): Decrease it when removing
15181 from the chain.
15182 (scan_insn): Likewise. Increase it when adding to chain, if it
15183 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15184 set active_local_stores to NULL before the addition.
15185 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15186
15187 PR rtl-optimization/48141
15188 * dse.c (record_store): If no positions are needed in an insn
15189 that cannot be deleted, at least unchain it from active_local_stores.
15190
15191 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15192
15193 PR debug/47510
15194 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15195 (lookup_type_die_strip_naming_typedef): ... here.
15196 (get_context_die): Use it.
15197 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15198 the anonymous struct named by the naming typedef.
15199
15200 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15201
15202 PR target/48154
15203 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15204 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15205
15206 2011-03-16 Jeff Law <law@redhat.com>
15207
15208 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15209 check for operands of conditional. Allow type to be a pointer.
15210
15211 2011-03-16 Richard Guenther <rguenther@suse.de>
15212
15213 PR tree-optimization/48149
15214 * fold-const.c (fold_binary_loc): Fold
15215 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15216
15217 2011-03-16 Richard Guenther <rguenther@suse.de>
15218
15219 PR tree-optimization/26134
15220 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15221 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15222 (non_rewritable_mem_ref_base): Handle complex type component
15223 accesses, constrain offsets for vector and complex extracts
15224 more properly.
15225
15226 2011-03-16 Richard Guenther <rguenther@suse.de>
15227
15228 PR tree-optimization/48146
15229 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15230 operands avoiding the need for renaming.
15231
15232 2011-03-16 Richard Guenther <rguenther@suse.de>
15233
15234 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15235 constant folding. Move MEM_REF canonicalization first.
15236 Rely on fold_const_aggregate_ref for initializer folding.
15237 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15238
15239 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15240
15241 PR middle-end/48136
15242 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15243 arg0/arg1 or their arguments are always fold converted to matching
15244 types.
15245
15246 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15247 to nargs.
15248
15249 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15250
15251 PR lto/46944
15252 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15253 Handle in-tree gold.
15254 (ld_vers): Extract binutils version for gold.
15255 (gcc_cv_ld_hidden): Handle gold here.
15256 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15257 * configure: Regenerate.
15258 * config.in: Regenerate.
15259 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15260 -fuse-linker-plugin otherwise.
15261 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15262 (LINK_COMMAND_SPEC): Use it.
15263 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15264
15265 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15266
15267 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15268 * calls.c: Remove debug.h include.
15269 (emit_call_1): Don't call virtual_call_token debug hook.
15270 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15271 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15272 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15273 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15274 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15275 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15276 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15277 dwarf2out_virtual_call): Remove.
15278 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15279 copy_call_info and virtual_call hooks.
15280 (dwarf2out_init): Don't initialize vcall_insn_table,
15281 debug_dcall_section and debug_vcall_section.
15282 (prune_unused_types): Don't mark nodes from dcall_table.
15283 (dwarf2out_finish): Don't output dcall or vcall tables.
15284 * final.c (final_scan_insn): Don't call direct_call or
15285 virtual_call debug hooks.
15286 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15287 virtual_call_token, copy_call_info and virtual_call hooks.
15288 (debug_nothing_uid): Remove prototype.
15289 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15290 copy_call_info and virtual_call hooks.
15291 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15292 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15293 * debug.c (do_nothing_debug_hooks): Likewise.
15294 (debug_nothing_uid): Remove.
15295 * doc/invoke.texi (-fenable-icf-debug): Remove.
15296 * common.opt (-fenable-icf-debug): Likewise.
15297
15298 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15299 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15300 call's MEM. Handle functions returning aggregate through a hidden
15301 first pointer. For virtual calls add clobbered pc to call arguments
15302 chain.
15303 * dwarf2out.c (gen_subprogram_die): Emit
15304 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15305 can't be emitted.
15306
15307 PR debug/45882
15308 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15309 * rtl.h (ENTRY_VALUE_EXP): Define.
15310 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15311 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15312 * print-rtl.c (print_rtx): Likewise.
15313 * gengtype.c (adjust_field_rtx_def): Likewise.
15314 * var-tracking.c (vt_add_function_parameter): Adjust
15315 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15316 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15317 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15318 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15319 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15320
15321 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15322 Call var_location debug hook even on CALL_INSNs.
15323 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15324 * rtl.def (ENTRY_VALUE): New.
15325 * dwarf2out.c: Include cfglayout.h.
15326 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15327 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15328 (struct call_arg_loc_node): New type.
15329 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15330 tail_call_site_count): New variables.
15331 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15332 DW_TAG_GNU_call_site_parameter.
15333 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15334 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15335 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15336 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15337 and DW_AT_GNU_all_source_call_sites.
15338 (mem_loc_descriptor): Handle ENTRY_VALUE.
15339 (add_src_coords_attributes): Don't add enything if
15340 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15341 (dwarf2out_abstract_function): Save and clear call_arg_location,
15342 call_site_count and tail_call_site_count around dwarf2out_decl call.
15343 (gen_call_site_die): New function.
15344 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15345 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15346 (dwarf2out_function_decl): Clear call_arg_locations,
15347 call_arg_loc_last, set call_site_count and tail_call_site_count
15348 to -1 and free block_map.
15349 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15350 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15351 followed by any real instructions.
15352 (dwarf2out_begin_function): Set call_site_count and
15353 tail_call_site_count to 0.
15354 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15355 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15356 attempt to force a DIE for it and worst case remove the attribute.
15357 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15358 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15359 the decl itself.
15360 * var-tracking.c: Include tm_p.h.
15361 (vt_stack_adjustments): For calls call note_register_arguments.
15362 (argument_reg_set): New variable.
15363 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15364 ensure the VALUE is resolved.
15365 (call_arguments): New variable.
15366 (prepare_call_arguments): New function.
15367 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15368 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15369 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15370 always use the best expression.
15371 (vt_expand_loc): Add ignore_cur_loc argument.
15372 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15373 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15374 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15375 note for all calls.
15376 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15377 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15378 argument. Don't call cselib_preserve_only_values and
15379 cselib_reset_table.
15380 (note_register_arguments): New function.
15381 (vt_initialize): Compute argument_reg_set. Call
15382 vt_add_function_parameters before processing basic blocks instead of
15383 afterwards. For calls call prepare_call_arguments before calling
15384 cselib_process_insn.
15385 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15386 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15387 (var-tracking.o): Depend on $(TM_P_H).
15388 * cfglayout.h (insn_scope): New prototype.
15389 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15390 * cfglayout.c (insn_scope): No longer static.
15391 * insn-notes.def (CALL_ARG_LOCATION): New.
15392 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15393 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15394 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15395 nothing for DECL_EXTERNAL BLOCK_VARS.
15396
15397 2011-03-16 Alan Modra <amodra@gmail.com>
15398
15399 PR target/45844
15400 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15401 create invalid offset address for vsx splat insn.
15402 * config/rs6000/predicates.md (splat_input_operand): New.
15403 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15404
15405 2011-03-15 Xinliang David Li <davidxl@google.com>
15406
15407 PR c/47837
15408 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15409 (normalize_preds): New function.
15410 (is_use_properly_guarded): Normalize def predicates.
15411
15412 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15413
15414 PR target/46788
15415 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15416 in the output template.
15417
15418 2011-03-15 Richard Guenther <rguenther@suse.de>
15419
15420 PR middle-end/47650
15421 * tree-pretty-print.c (dump_function_declaration): Properly
15422 dump unprototyped and varargs function types.
15423
15424 2011-03-15 Richard Guenther <rguenther@suse.de>
15425
15426 PR tree-optimization/13954
15427 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15428 and friends.
15429
15430 2011-03-15 Richard Guenther <rguenther@suse.de>
15431
15432 PR tree-optimization/48037
15433 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15434 selects into BIT_FIELD_REFs.
15435 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15436 vector select.
15437
15438 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15439
15440 PR tree-optimization/48129
15441 * builtins.c (fold_builtin_snprintf): Convert to type of
15442 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15443 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15444
15445 2011-03-15 Richard Guenther <rguenther@suse.de>
15446
15447 PR tree-optimization/41490
15448 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15449 value but with VUSE.
15450 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15451 return statements.
15452 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15453 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15454 * tree-tailcall.c (find_tail_calls): Ignore returns.
15455
15456 2011-03-15 Richard Guenther <rguenther@suse.de>
15457
15458 PR middle-end/48031
15459 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15460 or variable-indexed array accesses when in gimple form.
15461
15462 2011-03-15 Richard Guenther <rguenther@suse.de>
15463
15464 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15465
15466 2011-03-15 Alan Modra <amodra@gmail.com>
15467
15468 PR target/48032
15469 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15470 presume symbol_refs without a symbol_ref_decl are suitably
15471 aligned, nor other trees we may see here. Handle anchor symbols.
15472 (legitimate_constant_pool_address_p): Comment. Add mode param.
15473 Check cmodel=medium addresses. Adjust all calls.
15474 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15475 creating cmodel=medium optimized access to locals.
15476 * config/rs6000/constraints.md (R): Pass QImode to
15477 legitimate_constant_pool_address_p.
15478 * config/rs6000/predicates.md (input_operand): Pass mode to
15479 legitimate_constant_pool_address_p.
15480 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15481 Update prototype.
15482
15483 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15484
15485 PR target/48053
15486 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15487 64-bit constants being loaded into registers other than GPRs such
15488 as loading 0 into a VSX register.
15489
15490 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15491
15492 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15493
15494 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15495
15496 PR middle-end/47917
15497 * builtins.c (fold_builtin_snprintf): New function.
15498 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15499 (fold_builtin_4): Likewise.
15500
15501 PR middle-end/38878
15502 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15503 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15504 and C - X == X also strip nops from +/-/p+ operand.
15505 When optimizing -X == C, fold C to arg0's type.
15506
15507 PR debug/47946
15508 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15509 emit it as add_AT_int instead of add_AT_unsigned.
15510
15511 2011-03-14 Tom Tromey <tromey@redhat.com>
15512
15513 * unwind-dw2.c: Include sys/sdt.h if it exists.
15514 (_Unwind_DebugHook): Use STAP_PROBE2.
15515 * config.in, configure: Rebuild.
15516 * configure.ac: Check for sys/sdt.h.
15517
15518 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15519
15520 * config/i386/i386.md (ROUND_FLOOR): New constant.
15521 (ROUND_CEIL): Ditto.
15522 (ROUND_TRUNC): Ditto.
15523 (ROUND_MXCSR): Ditto.
15524 (ROUND_NO_EXC): Ditto.
15525 (rint<mode>2): Use new defines instead of numerical constants.
15526 (floor<mode>2): Ditto.
15527 (ceil<mode>2): Ditto.
15528 (btrunc<mode>2): Ditto.
15529 * config/i386/i386-builtin-types.def: Define ROUND function type
15530 aliases.
15531 * config/i386/i386.c (enum ix86_builtins): Add
15532 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15533 (struct builtin_description): Add
15534 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15535 (ix86_expand_sse_round): New static function.
15536 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15537 function types.
15538 (ix86_builtin_vectorized_function): Handle
15539 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15540
15541 2011-03-14 Tom Tromey <tromey@redhat.com>
15542
15543 * c-parser.c (c_parser_asm_string_literal): Clear
15544 warn_overlength_strings.
15545
15546 2011-03-14 Tom Tromey <tromey@redhat.com>
15547
15548 * c-parser.c (disable_extension_diagnostics): Save
15549 warn_overlength_strings.
15550 (restore_extension_diagnostics): Restore warn_overlength_strings.
15551
15552 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15553
15554 * BASE-VER: Change to 4.7.0.
15555
15556 2011-03-14 Richard Guenther <rguenther@suse.de>
15557
15558 PR middle-end/48098
15559 * tree.c (build_vector_from_val): Adjust assert to requirements
15560 and reality.
15561
15562 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15563
15564 PR bootstrap/48102
15565 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15566
15567 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15568
15569 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15570 terms of target_flags_explicit. Adjust copyright year.
15571
15572 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15573 * config/rs6000/t-freebsd: New file. Add override for
15574 LIB2FUNCS_EXTRA.
15575
15576 2011-03-13 Chris Demetriou <cgd@google.com>
15577
15578 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15579 (-fno-diagnostics-show-option): this, to reflect current default.
15580 (-Werror=): Update text about -fno-diagnostics-show-option.
15581
15582 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15583
15584 PR target/48053
15585 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15586 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15587 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15588 mode is not V2DImode or V2DFmode.
15589 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15590 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15591 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15592 registers to 0.
15593 (movdi_internal64): Likewise.
15594
15595 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15596
15597 PR tree-optimization/47127
15598 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15599 parameter.
15600 (set_cloog_options): Same.
15601 (scop_to_clast): Same.
15602 (print_clast_stmt): Do not call cloog_state_malloc and
15603 cloog_state_free.
15604 (print_generated_program): Same.
15605 (gloog): Same.
15606 * graphite-clast-to-gimple.h (cloog_state): Declared.
15607 (scop_to_clast): Adjust declaration.
15608 * graphite.c (cloog_state): Defined here.
15609 (graphite_initialize): Call cloog_state_malloc.
15610 (graphite_finalize): Call cloog_state_free.
15611
15612 2011-03-11 Jason Merrill <jason@redhat.com>
15613
15614 * attribs.c (lookup_attribute_spec): Take const_tree.
15615 * tree.h: Adjust.
15616
15617 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15618
15619 * config/sparc/sparc.c (sparc_option_override): Use
15620 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15621
15622 2011-03-11 Richard Guenther <rguenther@suse.de>
15623
15624 PR tree-optimization/48067
15625 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15626 multiplication result will be only used once on the target
15627 stmt.
15628
15629 2011-03-11 Richard Guenther <rguenther@suse.de>
15630
15631 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15632
15633 2011-03-11 Richard Guenther <rguenther@suse.de>
15634
15635 PR lto/48073
15636 * tree.c (find_decls_types_r): Do not walk types only reachable
15637 from IDENTIFIER_NODEs.
15638
15639 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15640
15641 PR middle-end/48044
15642 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15643 all vnode->force_output nodes as needed.
15644
15645 2011-03-11 Jason Merrill <jason@redhat.com>
15646
15647 PR c++/48069
15648 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15649 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15650
15651 2011-03-11 Martin Jambor <mjambor@suse.cz>
15652
15653 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15654 cgraph_node.
15655
15656 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15657
15658 PR tree-optimization/48063
15659 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15660 inline functions called once if !tree_can_inline_p (node->callers).
15661
15662 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15663
15664 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15665 extra_objs.
15666 * config/score/score3.c: Delete.
15667 * config/score/score3.h: Delete.
15668 * config/score/mul-div.S: Delete.
15669 * config/score/sfp-machine.h: Add new file.
15670 * config/score/constraints.md: Add new file.
15671 * config/score/t-score-softfp: Add new file.
15672 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15673 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15674 (score7_extra_constraint): Delete.
15675 (score7_option_override): Remove unused code.
15676 * config/score/score.c: Remove score3 and score5 define and code.
15677 * config/score/score.h: Remove score3 and score5 define and code.
15678 * config/score/score.md: Remove score3 template and unusual insn.
15679 * config/score/score.opt: Remove score3 and score5 options.
15680
15681 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15682
15683 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15684 when _HPUX_SOURCE is defined.
15685 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15686
15687 2011-03-10 Jason Merrill <jason@redhat.com>
15688
15689 PR c++/48029
15690 * stor-layout.c (layout_type): Don't set structural equality
15691 on arrays of incomplete type.
15692 * tree.c (type_hash_eq): Handle comparing them properly.
15693
15694 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15695
15696 PR debug/48043
15697 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15698 result mode matches original rtl mode.
15699
15700 2011-03-10 Nick Clifton <nickc@redhat.com>
15701
15702 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15703 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15704
15705 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15706
15707 PR rtl-optimization/47866
15708 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15709 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15710 if target wasn't scalar.
15711 * function.c (assign_stack_temp_for_type): Assert that neither
15712 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15713 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15714 macro.
15715 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15716
15717 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15718
15719 * config/s390/s390-protos.h (s390_label_align): New prototype.
15720 * config/s390/s390.c (s390_label_align): New function.
15721 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15722
15723 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15724
15725 PR target/47755
15726 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15727 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15728 (output_vec_const_move): Ditto.
15729
15730 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15731
15732 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15733 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15734 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15735 Change 'rclass' argument and result type to reg_class_t.
15736 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15737
15738 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15739
15740 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15741 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15742 (TARGET_MEMORY_MOVE_COST): Define.
15743 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15744
15745 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15746
15747 PR debug/47881
15748 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15749 removed anything.
15750
15751 PR tree-optimization/48022
15752 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15753 for EQ/NE_EXPR.
15754
15755 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15756
15757 PR debug/47991
15758 * var-tracking.c (find_use_val): Return NULL for
15759 cui->sets && cui->store_p BLKmode MEMs.
15760
15761 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15762
15763 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15764 Remove.
15765 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15766 xstormy16_print_operand_address): Remove.
15767 * config/stormy16/stormy16.c (xstormy16_print_operand,
15768 xstormy16_print_operand_address): Make static.
15769 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15770
15771 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15772
15773 PR target/47862
15774 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15775 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15776 before definition.
15777
15778 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15779
15780 PR bootstrap/48000
15781 * cfgloopmanip.c (fix_bb_placements): Return immediately
15782 if FROM is BASE_LOOP's header.
15783
15784 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15785
15786 * gimplify.c (gimplify_function_tree): Fix building calls
15787 to __builtin_return_address.
15788
15789 2011-03-07 Alan Modra <amodra@gmail.com>
15790
15791 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15792 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15793 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15794 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15795 return_mode args.
15796 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15797 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15798 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15799 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15800 * config/rs6000/rs6000.c
15801 (rs6000_elf_end_indicate_exec_stack): Rename to..
15802 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15803 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15804 (rs6000_file_start): ..here.
15805 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15806 file scope variables.
15807 (call_ABI_of_interest): New function.
15808 (init_cumulative_args): Set above vars when function return value
15809 is a float, vector, or small struct.
15810 (rs6000_function_arg_advance_1): Likewise for function args.
15811 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15812 references float args.
15813
15814 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15815
15816 * doc/cfg.texi: Remove "See" before @ref.
15817 * doc/invoke.texi: Likewise.
15818
15819 2011-03-05 Jason Merrill <jason@redhat.com>
15820
15821 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15822
15823 2011-03-05 Anthony Green <green@moxielogic.com>
15824
15825 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15826
15827 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15828
15829 PR rtl-optimization/47899
15830 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15831 to flow_loop_nested_p when moving the loop upward.
15832
15833 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15834
15835 PR target/47719
15836 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15837
15838 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15839
15840 PR tree-optimization/47967
15841 * ipa-cp.c (build_const_val): Return NULL instead of creating
15842 VIEW_CONVERT_EXPR for mismatching sizes.
15843 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15844 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15845 give up on versioning.
15846
15847 2011-03-05 Alan Modra <amodra@gmail.com>
15848
15849 PR target/47986
15850 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15851 full cmodel medium/large lo_sum + high addresses.
15852
15853 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15854
15855 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15856 pool references in UNSPEC_LTREL_OFFSET.
15857
15858 2011-03-04 Jan Hubicka <jh@suse.cz>
15859
15860 PR lto/47497
15861 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15862 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15863 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15864 Add node pointers.
15865 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15866 cgraph_add_thunk): Add node pointers.
15867 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15868 associated to right node.
15869 (input_node): Update use of cgraph_same_body_alias
15870 and cgraph_add_thunk.
15871
15872 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15873
15874 * config/i386/i386.opt (mprefer-avx128): New flag.
15875 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15876 modes when the flag -mprefer-avx128 is on.
15877
15878 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15879
15880 * dwarf2out.c (compare_loc_operands): Fix address handling.
15881
15882 2011-03-04 Alan Modra <amodra@gmail.com>
15883
15884 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15885
15886 2011-03-04 Richard Guenther <rguenther@suse.de>
15887
15888 PR middle-end/47968
15889 * expmed.c (extract_bit_field_1): Prefer vector modes that
15890 vec_extract patterns can handle.
15891
15892 2011-03-04 Richard Guenther <rguenther@suse.de>
15893
15894 PR middle-end/47975
15895 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15896
15897 2011-03-04 Richard Henderson <rth@redhat.com>
15898
15899 * explow.c (emit_stack_save): Remove 'after' parameter.
15900 (emit_stack_restore): Likewise.
15901 * expr.h: Update to match.
15902 * builtins.c, calls.c, stmt.c: Likewise.
15903 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15904 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15905 * function.c (expand_function_end): Insert the emit_stack_save
15906 sequence before parm_birth_insn instead of after.
15907
15908 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15909
15910 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15911 (ssse3_pmaddubsw128): Ditto.
15912 (ssse3_pmaddubsw): Ditto.
15913
15914 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15915
15916 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15917
15918 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15919
15920 PR c/47963
15921 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15922 on TYPE_SIZE_UNIT if it is a DECL.
15923
15924 PR debug/47283
15925 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15926 first operand is not is_gimple_mem_ref_addr, try to fold it.
15927 If the operand still isn't is_gimple_mem_ref_addr, clear
15928 MEM_EXPR on op0.
15929
15930 2011-03-03 Richard Guenther <rguenther@suse.de>
15931
15932 PR middle-end/47283
15933 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15934 match comment.
15935 (refs_may_alias_p_1): For release branches return true if
15936 we are confused by our input.
15937
15938 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15939
15940 * config/s390/s390.c (s390_function_value): Rename to ...
15941 (s390_function_and_libcall_value): ... this.
15942 (s390_function_value): New function.
15943 (s390_libcall_value): New function.
15944 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15945 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15946 target macro definitions.
15947 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15948
15949 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15950
15951 * config/i386/freebsd64.h (CC1_SPEC): Define.
15952 * config/i386/linux64.h (CC1_SPEC): Define.
15953 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15954
15955 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15956
15957 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15958 Remove.
15959 * config/stormy16/stormy16.c: Include reload.h.
15960 (xstormy16_memory_move_cost): New function.
15961 (TARGET_MEMORY_MOVE_COST): Define.
15962
15963 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15964
15965 PR rtl-optimization/47925
15966 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15967 with side effects. Remove the more-specific check for volatile asms.
15968
15969 2011-03-02 Alan Modra <amodra@gmail.com>
15970
15971 PR target/47935
15972 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15973 toc relative addresses for valid offsets.
15974
15975 2011-03-01 Richard Guenther <rguenther@suse.de>
15976
15977 PR tree-optimization/47890
15978 * tree-vect-loop.c (get_initial_def_for_induction): Set
15979 related stmt properly.
15980
15981 2011-03-01 Richard Guenther <rguenther@suse.de>
15982
15983 PR lto/47924
15984 * lto-streamer.c (lto_record_common_node): Also register
15985 the canonical type.
15986
15987 2011-03-01 Richard Guenther <rguenther@suse.de>
15988
15989 PR lto/46911
15990 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15991 Do not stream DECL_ABSTRACT_ORIGIN.
15992 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15993 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15994 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15995 Do not stream DECL_ABSTRACT_ORIGIN.
15996 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15997 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15998
15999 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16000
16001 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16002 FUNCTION_VALUE_REGNO_P): Remove.
16003 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16004 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16005 Add 'outgoing' argument.
16006 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16007 function.
16008 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16009 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16010
16011 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16012
16013 PR debug/28047
16014 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16015 (lookup_filename): Likewise.
16016 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16017
16018 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16019 Jakub Jelinek <jakub@redhat.com>
16020
16021 PR middle-end/47893
16022 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16023 (assign_stack_local_1): Change last argument type to int.
16024 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16025 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16026 don't record padding space into frame_space_list nor use those areas.
16027 (assign_stack_local): Adjust caller.
16028 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16029 of assign_stack_local, pass 0 as last argument.
16030 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16031 callers.
16032
16033 2011-02-28 Jakub Jelinek <jakub@redhat.com>
16034
16035 PR debug/47283
16036 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16037 Use target address_mode and pointer_mode hooks instead of hardcoded
16038 Pmode and ptr_mode. Handle some simple cases of extending if
16039 POINTERS_EXTEND_UNSIGNED < 0.
16040 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16041 Call convert_debug_memory_address.
16042 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16043 convert_debug_memory_address.
16044
16045 PR middle-end/46790
16046 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16047 * configure: Regenerated.
16048 * config.in: Regenerated.
16049 * varasm.c (default_function_section): Return NULL
16050 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16051
16052 2011-02-28 Martin Jambor <mjambor@suse.cz>
16053
16054 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16055 the description to match the printed values.
16056
16057 2011-02-28 Richard Guenther <rguenther@suse.de>
16058
16059 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16060 of the copied scope tree.
16061
16062 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16063
16064 * doc/extend.texi (Function Attributes): Avoid deeply (and
16065 wrongly) nested tables.
16066
16067 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16068
16069 PR middle-end/47903
16070 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16071 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16072 r isn't op0 nor op1.
16073
16074 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16075
16076 * config/avr/avr.md: Remove magic comment for emacs.
16077
16078 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16079
16080 PR target/45261
16081 * config/avr/avr.c (avr_option_override): Use error on bad options.
16082 (avr_help): New function.
16083 (TARGET_HELP): Define.
16084
16085 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16086
16087 PR target/42240
16088 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16089 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16090
16091 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16092
16093 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16094 (ARM Options): Ditto.
16095 (i386 and x86-64 Options): Ditto.
16096 (RX Options): Ditto.
16097 (SPARC Options): Ditto.
16098
16099 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16100
16101 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16102 FreeBSD 6 and later. Generally use cpu generic.
16103
16104 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16105
16106 * doc/cpp.texi: Update copyright years.
16107
16108 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16109
16110 PR target/46898
16111 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16112
16113 2011-02-25 Jon Beniston <jon@beniston.com>
16114
16115 PR target/46898
16116 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16117 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16118 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16119 (lm32_block_move_inline): Add type cast to remove warning.
16120 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16121 (gen_int_relational): Move declarations to start of function.
16122
16123 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16124
16125 PR tree-optimization/45470
16126 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16127 can throw internally only.
16128 * tree-vect-stmts.c (vectorizable_call): Likewise.
16129
16130 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16131
16132 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16133 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16134 * config/stormy16/stormy16-protos.h
16135 (xstormy16_preferred_reload_class): Remove.
16136 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16137 static. Change 'rclass' argument and return type to reg_class_t.
16138 (TARGET_PREFERRED_RELOAD_CLASS,
16139 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16140
16141 2011-02-24 Richard Guenther <rguenther@suse.de>
16142
16143 * lto-streamer-in.c (input_bb): Do not find referenced vars
16144 in debug statements.
16145
16146 2011-02-23 Jason Merrill <jason@redhat.com>
16147
16148 * common.opt (fabi-version): Document v5 and v6.
16149
16150 2011-02-23 Richard Guenther <rguenther@suse.de>
16151
16152 PR tree-optimization/47849
16153 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16154
16155 2011-02-23 Jie Zhang <jie@codesourcery.com>
16156
16157 * opts-common.c (decode_cmdline_option): Print empty string
16158 argument as "" in decoded->orig_option_with_args_text.
16159 * gcc.c (execute): Print empty string argument as ""
16160 in the verbose output.
16161 (do_spec_1): Keep empty string argument.
16162
16163 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16164
16165 * config.gcc: Declare score-* and crx-* obsolete.
16166
16167 2011-02-23 Jie Zhang <jie@codesourcery.com>
16168
16169 PR rtl-optimization/47763
16170 * web.c (web_main): Ignore naked clobber when replacing register.
16171
16172 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16173
16174 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16175 Remove.
16176
16177 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16178
16179 PR doc/47848
16180 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16181
16182 2011-02-22 Mike Stump <mikestump@comcast.net>
16183
16184 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16185 assembler.
16186 * configure: Regenerate.
16187
16188 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16189
16190 PR rtl-optimization/46002
16191 * ira-color.c (update_copy_costs): Change class intersection
16192 test to reg_class_contents[] test of 'hard_regno'.
16193
16194 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16195
16196 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16197 than Driver option.
16198 * config/hpux11.opt (mt): Likewise.
16199 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16200 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16201 * config/vax/elf.opt (mno-asm-pic): Likewise.
16202 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16203
16204 2011-02-21 Mike Stump <mikestump@comcast.net>
16205
16206 PR target/47822
16207 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16208 tree so we can get save the type.
16209 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16210 for CFString instead of trying to use past the end of the builtins.
16211 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16212 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16213 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16214 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16215 Rename to darwin_builtin_cfstring.
16216 (darwin_init_cfstring_builtins): Return the built type.
16217
16218 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16219
16220 PR target/47840
16221 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16222 (_mm256_insert_epi64): Use _mm_insert_epi64.
16223
16224 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16225
16226 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16227 * config/stormy16/stormy16-protos.h
16228 (xstormy16_mode_dependent_address_p): Remove.
16229 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16230 Make static. Change return type to bool. Change argument type to
16231 const_rtx. Remove dead code.
16232 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16233
16234 2011-02-21 Richard Guenther <rguenther@suse.de>
16235
16236 PR lto/47820
16237 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16238 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16239 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16240 TUs context.
16241 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16242 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16243
16244 2011-02-20 Richard Guenther <rguenther@suse.de>
16245
16246 PR lto/47822
16247 * tree.c (free_lang_data_in_decl): Clean builtins from
16248 the TU decl BLOCK_VARS.
16249
16250 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16251
16252 PR debug/47620
16253 PR debug/47630
16254 * haifa-sched.c (fix_tick_ready): Skip tick computation
16255 for debug insns.
16256
16257 2011-02-19 Richard Guenther <rguenther@suse.de>
16258
16259 PR lto/47647
16260 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16261 Remove lazy BLOCK_VARS streaming.
16262 (lto_input_ts_block_tree_pointers): Likewise.
16263 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16264
16265 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16266
16267 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16268
16269 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16270
16271 * config/i386/biarch32.h, config/i386/mach.h,
16272 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16273
16274 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16275
16276 PR target/47800
16277 * config/i386/i386.md (peephole2 for shift and plus): Use
16278 operands[1] original mode in the first insn.
16279
16280 2011-02-18 Mike Stump <mikestump@comcast.net>
16281
16282 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16283
16284 2011-02-18 Jan Hubicka <jh@suse.cz>
16285
16286 PR middle-end/47788
16287 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16288 to zero when the function is not inlinable at all.
16289
16290 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16291
16292 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16293 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16294 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16295 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16296 * config/pa/t-pa64: Likewise.
16297 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16298
16299 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16300
16301 PR driver/47787
16302 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16303
16304 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16305
16306 PR target/47792
16307 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16308
16309 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16310
16311 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16312 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16313 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16314 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16315 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16316 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16317 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16318 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16319 m32r_legitimate_address_p): New functions.
16320 * config/m32r/constraints.md (constraint "S"): Don't use
16321 STORE_PREINC_PREDEC_P.
16322 (constraint "U"): Don't use LOAD_POSTINC_P.
16323
16324 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16325
16326 PR rtl-optimization/46178
16327 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16328 compute ira_hard_regno_cover_class[].
16329
16330 2011-02-18 Richard Guenther <rguenther@suse.de>
16331
16332 PR lto/47798
16333 * lto-streamer.h (lto_global_var_decls): Declare.
16334 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16335 statics for global var processing.
16336
16337 2011-02-18 Richard Guenther <rguenther@suse.de>
16338
16339 PR tree-optimization/47737
16340 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16341 edge dominance check.
16342
16343 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16344
16345 PR debug/47780
16346 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16347 avoid invalid rtx sharing.
16348
16349 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16350
16351 * doc/cpp.texi (Obsolete Features): Add background on the
16352 origin of assertions.
16353
16354 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16355
16356 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16357 objc_abi == 2.
16358 * config/darwin.c (output_objc_section_asm_op): Added support for
16359 ABI v1 and v2.
16360 (is_objc_metadata): New.
16361 (darwin_objc2_section): New.
16362 (darwin_objc1_section): New.
16363 (machopic_select_section): Added support for ABI v1 and v2.
16364 (darwin_emit_objc_zeroed): New.
16365 (darwin_output_aligned_bss): Detect objc metadata and treat it
16366 appropriately.
16367 (darwin_asm_output_aligned_decl_common): Same.
16368 (darwin_asm_output_aligned_decl_local): Same.
16369 * config/darwin-sections.def: Updated for ABI v1 and v2.
16370 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16371 compiling Objective-C code for the NeXT runtime, default to using
16372 ABI version 0 for 32-bit, and version 2 for 64-bit.
16373
16374 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16375
16376 * common.opt (optimize_fast): New Variable.
16377 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16378 instead of local variable ofast.
16379
16380 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16381
16382 * doc/invoke.texi (fobjc-abi-version): Documented.
16383 (fobjc-nilcheck): Documented.
16384 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16385 version.
16386
16387 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16388
16389 PR driver/47390
16390 * common.opt (export-dynamic): New Driver option.
16391 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16392
16393 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16394
16395 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16396
16397 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16398 Jan Hubicka <jh@suse.cz>
16399
16400 PR debug/47106
16401 PR debug/47402
16402 * cfgexpand.c (account_used_vars_for_block): Remove.
16403 (estimated_stack_frame_size): Use referenced vars.
16404 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16405 that were referenced in the original function. Test src_fn
16406 rather than cfun. Drop redundant get_var_ann.
16407 (setup_one_parameter): Drop redundant get_var_ann.
16408 (declare_return_variable): Likewise.
16409 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16410 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16411 * ipa-inline.c (compute_inline_parameters): Do not compute
16412 disregard_inline_limits here.
16413 (compute_inlinable_for_current, pass_inlinable): New.
16414 (pass_inline_parameters): Require PROP_referenced_vars.
16415 * cgraphunit.c (cgraph_process_new_functions): Don't run
16416 compute_inline_parameters explicitly unless function is in SSA form.
16417 (cgraph_analyze_function): Set .disregard_inline_limits.
16418 * tree-sra.c (convert_callers): Compute inliner parameters
16419 only for functions already in SSA form.
16420
16421 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16422
16423 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16424 -mlittle-endian-data.
16425
16426 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16427
16428 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16429 -mno-fpu, not -fpu and -no-fpu.
16430 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16431 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16432
16433 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16434
16435 PR target/43653
16436 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16437 input reload with PLUS RTX.
16438
16439 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16440
16441 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16442 of InverseVar(MDMX).
16443
16444 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16445
16446 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16447 --m4-340.
16448
16449 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16450
16451 * config/mn10300/mn10300.opt (mno-crt0): New.
16452
16453 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16454
16455 * config/m68k/uclinux.opt (static-libc): New Driver option.
16456
16457 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16458
16459 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16460
16461 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16462
16463 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16464 %{muser-extend-enabled}.
16465
16466 2011-02-16 Richard Guenther <rguenther@suse.de>
16467
16468 PR tree-optimization/47738
16469 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16470 the TODO from tree_predictive_commoning.
16471
16472 2011-02-15 Jeff Law <law@redhat.com>
16473
16474 Revert
16475 2011-01-25 Jeff Law <law@redhat.com>
16476
16477 PR rtl-optimization/37273
16478 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16479 handle them like argument loads from stack slots. Do not double
16480 count memory for memory constants and argument loads from stack slots.
16481
16482 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16483
16484 PR middle-end/47725
16485 * combine.c (cant_combine_insn_p): Revert the last change.
16486
16487 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16488
16489 PR target/47755
16490 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16491 mode for vector constants. Remove code that checks for TImode.
16492
16493 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16494
16495 PR debug/47106
16496 PR debug/47402
16497 * cgraph.h (compute_inline_parameters): Return void.
16498 * ipa-inline.c (compute_inline_parameters): Adjust.
16499
16500 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16501
16502 PR debug/47106
16503 PR debug/47402
16504 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16505 rather than decl.
16506 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16507 * ipa-inline.c (compute_inline_parameters): Adjust.
16508
16509 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16510
16511 PR debug/47106
16512 PR debug/47402
16513 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16514 Adjust all users. Pass FN to...
16515 * tree-flow-inline.h (first_referenced_var): ... this. Add
16516 fn argument.
16517 * ipa-struct-reorg.c: Adjust.
16518 * tree-dfa.c: Adjust.
16519 * tree-into-ssa.c: Adjust.
16520 * tree-sra.c: Adjust.
16521 * tree-ssa-alias.c: Adjust.
16522 * tree-ssa-live.c: Adjust.
16523 * tree-ssa.c: Adjust.
16524 * tree-ssanames.c: Adjust.
16525 * tree-tailcall.c: Adjust.
16526
16527 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16528
16529 PR debug/47106
16530 PR debug/47402
16531 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16532 Adjust all callers.
16533 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16534 * tree-flow-inline.h: Adjust.
16535 * gimple-pretty-print.c: Adjust.
16536 * tree-into-ssa.c: Adjust.
16537 * tree-ssa.c: Adjust.
16538 * cfgexpand.c: Adjust.
16539
16540 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16541
16542 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16543 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16544 (EXTRA_CONSTRAINT): Delete.
16545 * config/iq2000/constraints.md: New file.
16546 * config/iq2000/iq2000.md: Include it.
16547 (define_insn ""): Delete.
16548 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16549 unsupported constraint letters from patterns.
16550 (call_value, call_value_internal1): Likewise.
16551 (call_value_multiple_internal1): Likewise.
16552
16553 2011-02-15 Nick Clifton <nickc@redhat.com>
16554
16555 * config/mn10300/mn10300.c: Include tm-constrs.h.
16556 (struct liw_data): New data structure describing an LIW candidate
16557 instruction.
16558 (extract_bundle): Use struct liw_data. Allow small integer
16559 operands for some instructions.
16560 (check_liw_constraints): Use struct liw_data. Remove swapped
16561 parameter. Add comments describing the checks. Fix bug when
16562 assigning the source of liw1 to the source of liw2.
16563 (liw_candidate): Delete. Code moved into extract_bundle.
16564 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16565 before swapping.
16566 * config/mn10300/predicates.md (liw_operand): New predicate.
16567 Allows registers and small integer constants.
16568 * config/mn10300/constraints.md (O): New constraint. Accetps
16569 integers in the range -8 to +7 inclusive.
16570 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16571 for moving a small integer into a register. Give this alternative
16572 LIW attributes.
16573 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16574 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16575 using the J,K,L and M constraints,
16576 (liw): Remove SI mode on second operands to allow for HI and QI
16577 mode values.
16578 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16579 instruction.
16580
16581 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16582
16583 PR middle-end/47725
16584 * combine.c (cant_combine_insn_p): Check zero/sign extended
16585 hard registers.
16586
16587 2011-02-15 Richard Guenther <rguenther@suse.de>
16588
16589 PR tree-optimization/47743
16590 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16591 for a non-type-compatible VN lookup bail out.
16592
16593 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16594
16595 * config/fr30/constraints.md: New file.
16596 * config/fr30/fr30.md: Include it.
16597 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16598 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16599 (EXTRA_CONSTRAINT): Delete.
16600
16601 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16602
16603 * config/frv/constraints.md: New file.
16604 * config/frv/predicates.md: Include it.
16605 * config/frv/frv.c (reg_class_from_letter): Delete.
16606 (frv_option_override): Don't initialize it.
16607 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16608 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16609 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16610 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16611 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16612 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16613 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16614 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16615 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16616 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16617 (REG_CLASS_FROM_CONSTRAINT): Delete.
16618
16619 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16620
16621 PR middle-end/47581
16622 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16623 if frame size is 0 in a leaf function.
16624
16625 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16626
16627 PR pch/14940
16628 * config/alpha/host-osf.c: New file.
16629 * config/alpha/x-osf: New file.
16630 * config.host (alpha*-dec-osf*): Use it.
16631
16632 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16633
16634 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16635 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16636 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16637 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16638 type to const_rtx.
16639 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16640
16641 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16642
16643 * config/stormy16/constraints.md: New file.
16644 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16645 Use satisfies_constraint_Q and satisfies_constraint_R.
16646 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16647 Delete.
16648 (xstormy16_legitiamte_address_p): Declare.
16649 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16650 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16651 (EXTRA_CONSTRAINT): Delete.
16652 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16653 Un-staticize.
16654 (xstormy16_extra_constraint_p): Delete.
16655
16656 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16657
16658 PR tree-optimization/46494
16659 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16660 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16661 (pass_rtl_loop_done): Add TODO_verify_flow.
16662 * fwprop.c (pass_rtl_fwprop): Likewise.
16663 * modulo-sched.c (pass_sms): Likewise.
16664 * tree-ssa-dom.c (pass_dominator): Likewise.
16665 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16666 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16667 (pass_tree_loop_done): Likewise.
16668 * tree-ssa-pre.c (execute_pre): Likewise.
16669 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16670 * tree-ssa-sink.c (pass_sink_code): Likewise.
16671 * tree-vrp.c (pass_vrp): Likewise.
16672
16673 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16674
16675 * config/v850/constraints.md: New file.
16676 * config/v850/v850.md: Include it.
16677 * config/v850/predicates.md (reg_or_0_operand): Use
16678 satisfies_constraint_G.
16679 (special_symbolref_operand): Use satisfies_constraint_K.
16680 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16681 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16682 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16683 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16684 (EXTRA_CONSTRAINT): Delete.
16685 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16686 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16687 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16688
16689 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16690
16691 PR target/47696
16692 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16693 description.
16694
16695 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16696
16697 * config/mcore/constraints.md: New file.
16698 * config/mcore/mcore.md: Include it.
16699 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16700 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16701 (REG_CLASS_FROM_LETTER): Delete.
16702 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16703 insn_const_int_ok_for_constraint.
16704 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16705 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16706 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16707 (EXTRA_CONSTRAINT): Delete.
16708
16709 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16710
16711 PR ada/41929
16712 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16713 (IS_SIGHANDLER): Define.
16714 (sparc64_is_sighandler): New function, split off from
16715 sparc64_fallback_frame_state.
16716 (sparc_is_sighandler): New function, split off from
16717 sparc_fallback_frame_state.
16718 (sparc64_fallback_frame_state): Merge with ...
16719 (sparc_fallback_frame_state): ... this into ...
16720 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16721 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16722 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16723 stack instead of hardcoded offsets.
16724
16725 2011-02-14 Andriy Gapon <avg@freebsd.org>
16726
16727 PR target/45808
16728 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16729
16730 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16731
16732 * configure: Regenerate.
16733
16734 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16735
16736 PR driver/45731
16737 * gcc.c (asm_options): Correct spec matching --target-help.
16738
16739 2011-02-12 Martin Jambor <mjambor@suse.cz>
16740
16741 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16742 to gimple call error.
16743
16744 2011-02-12 Mike Stump <mikestump@comcast.net>
16745
16746 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16747 comments in backslash regions.
16748
16749 2011-02-12 Mike Stump <mikestump@comcast.net>
16750 Jakub Jelinek <jakub@redhat.com>
16751 Iain Sandoe <iains@gcc.gnu.org>
16752
16753 PR target/47324
16754 * dwarf2out.c (output_cfa_loc): When required, apply the
16755 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16756 (output_loc_sequence): Likewise.
16757 (output_loc_operands_raw): Likewise.
16758 (output_loc_sequence_raw): Likewise.
16759 (output_cfa_loc): Likewise.
16760 (output_loc_list): Suppress register number adjustment when
16761 calling output_loc_sequence()
16762 (output_die): Likewise.
16763
16764 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16765
16766 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16767 Remove macros.
16768 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16769 xtensa_memory_move_cost): New functions.
16770 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16771
16772 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16773
16774 PR lto/47225
16775 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16776 in the current directory.
16777 * configure: Rebuilt.
16778
16779 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16780
16781 * config/darwin.c (darwin_override_options): Add a hunk missed
16782 from the commit of r168571. Trim comment line lengths and
16783 correct indents of the preceding block.
16784
16785 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16786
16787 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16788 the switch.
16789
16790 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16791
16792 * common.opt (nostartfiles): New Driver option.
16793
16794 2011-02-11 Xinliang David Li <davidxl@google.com>
16795
16796 PR tree-optimization/47707
16797 * tree-chrec.c (convert_affine_scev): Keep type precision.
16798
16799 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16800
16801 PR tree-optimization/47420
16802 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16803
16804 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16805
16806 PR rtl-optimization/47614
16807 * rtl.h (check_for_inc_dec): Declare.
16808 * dse.c (check_for_inc_dec): Externalize...
16809 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16810 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16811
16812 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16813
16814 PR driver/47678
16815 * gcc.c (main): Do not compile inputs if there were errors in
16816 option handling.
16817 * opts-common.c (read_cmdline_option): Check for wrong language
16818 after other error checks.
16819
16820 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16821
16822 * cgraph.c: Fix comment typos.
16823 * cgraph.h: Likewise.
16824 * cgraphunit.c: Likewise.
16825 * ipa-cp.c: Likewise.
16826 * ipa-inline.c: Likewise.
16827 * ipa-prop.c: Likewise.
16828 * ipa-pure-const.c: Likewise.
16829 * ipa-ref.c: Likewise.
16830 * ipa-reference.c: Likewise.
16831
16832 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16833
16834 PR debug/47684
16835 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16836
16837 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16838
16839 PR testsuite/47400
16840 * doc/sourcebuild.texi (Require Support): Document
16841 dg-require-ascii-locale.
16842
16843 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16844
16845 * doc/lto.texi (Write summary): Fix missing parentheses.
16846
16847 2011-02-10 DJ Delorie <dj@redhat.com>
16848
16849 * config/m32c/m32c.c (m32c_option_override): Disable
16850 -fcombine-stack-adjustments until flag value tracking and compare
16851 optimization can be rewritten.
16852
16853 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16854
16855 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16856 PROCESSOR_POWER7.
16857 (PROCESSOR_DEFAULT64): Likewise.
16858
16859 2011-02-10 Richard Henderson <rth@redhat.com>
16860
16861 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16862 change from 2011-02-03.
16863 * config/rx/rx.c (flags_from_code): Likewise.
16864 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16865 is valid, n/pz otherwise.
16866 (rx_select_cc_mode): Return CCmode if Y is not zero.
16867
16868 2011-02-10 Richard Guenther <rguenther@suse.de>
16869
16870 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16871
16872 2011-02-10 Richard Guenther <rguenther@suse.de>
16873
16874 PR tree-optimization/47677
16875 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16876
16877 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16878
16879 PR target/47665
16880 * combine.c (make_compound_operation): Only change shifts into
16881 multiplication for SCALAR_INT_MODE_P.
16882
16883 2011-02-10 Jie Zhang <jie@codesourcery.com>
16884
16885 PR testsuite/47622
16886 Revert
16887 2011-02-05 Jie Zhang <jie@codesourcery.com>
16888 PR debug/42631
16889 * web.c (entry_register): Don't clobber the number of the
16890 first uninitialized reference in used[].
16891
16892 2011-02-09 Richard Guenther <rguenther@suse.de>
16893
16894 PR tree-optimization/47664
16895 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16896 all edges again.
16897
16898 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16899
16900 PR target/46481
16901 PR target/47032
16902 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16903 PROCESSOR_POWER7.
16904 (PROCESSOR_DEFAULT64): Same.
16905 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16906
16907 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16908
16909 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16910
16911 2011-02-09 Martin Jambor <mjambor@suse.cz>
16912
16913 PR middle-end/45505
16914 * tree-sra.c (struct access): New flags grp_scalar_read and
16915 grp_scalar_write. Changed description of assignment read and write
16916 flags.
16917 (dump_access): Dump new flags, reorder all of them.
16918 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16919 to detect multiple scalar reads.
16920 (analyze_access_subtree): Use the new scalar read write flags instead
16921 of the old flags. Adjusted comments.
16922
16923 2011-02-08 DJ Delorie <dj@redhat.com>
16924
16925 PR target/47548
16926 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16927 patterns.
16928
16929 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16930
16931 * config/m68k/uclinux.opt: New.
16932 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16933
16934 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16935
16936 * config/cris/elf.opt (sim): New Driver option.
16937
16938 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16939
16940 * config/xtensa/elf.opt: New.
16941 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16942
16943 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16944
16945 * config/vax/elf.opt: New.
16946 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16947
16948 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16949
16950 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16951
16952 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16953
16954 * config/gnu-user.opt: New.
16955 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16956 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16957 *-*-uclinux*): Use gnu-user.opt.
16958
16959 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16960
16961 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16962 * config/i386/gnu.h (CPP_SPEC): Likewise.
16963
16964 2011-02-08 Ian Lance Taylor <iant@google.com>
16965
16966 * common.opt (fcx-limited-range): Add SetByCombined flag.
16967 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16968 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16969 (fassociative-math, freciprocal-math): Likewise.
16970 (funsafe-math-optimizations): Likewise.
16971 * opth-gen.awk: Handle SetByCombined.
16972 * optc-gen.awk: Likewise.
16973 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16974 (set_unsafe_math_optimizations_flags): Likewise.
16975 * doc/options.texi (Option properties): Document SetByCombined.
16976
16977 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16978
16979 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16980 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16981 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16982 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16983 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16984
16985 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16986
16987 PR tree-optimization/46834
16988 PR tree-optimization/46994
16989 PR tree-optimization/46995
16990 * graphite-sese-to-poly.c (used_outside_reduction): New.
16991 (detect_commutative_reduction): Call used_outside_reduction.
16992 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16993 translate_scalar_reduction_to_array only when at least one
16994 loop-phi/close-phi tuple has been detected.
16995
16996 2011-02-08 Richard Guenther <rguenther@suse.de>
16997
16998 PR middle-end/47639
16999 * tree-vect-generic.c (expand_vector_operations_1): Update
17000 stmts here ...
17001 (expand_vector_operations): ... not here. Cleanup EH info
17002 and the CFG if required.
17003
17004 2011-02-08 Richard Guenther <rguenther@suse.de>
17005
17006 PR tree-optimization/47641
17007 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17008 require type compatibility.
17009
17010 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17011
17012 * gimple-low.c (lower_function_body): Don't remove the location of
17013 the return statement here.
17014 (lower_gimple_return): Do it here instead but only if the return
17015 statement is actually used twice.
17016
17017 2011-02-08 Richard Guenther <rguenther@suse.de>
17018
17019 PR tree-optimization/47632
17020 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17021 unused up_to_stmt parameter, return whether cfg-cleanup is
17022 necessary, remove EH info properly.
17023 (forward_propagate_into_gimple_cond): Adjust caller.
17024 (forward_propagate_into_cond): Likewise.
17025 (forward_propagate_comparison): Likewise.
17026 (tree_ssa_forward_propagate_single_use_vars): Make
17027 forward_propagate_comparison case similar to the two others.
17028
17029 2011-02-08 Nick Clifton <nickc@redhat.com>
17030
17031 * config/mn10300/mn10300.opt (mliw): New command line option.
17032 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17033 (liw_bundling): New automaton.
17034 (liw): New attribute.
17035 (liw_op): New attribute.
17036 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17037 (movsi_internal): Add LIW attributes.
17038 (andsi3): Likewise.
17039 (iorsi3): Likewise.
17040 (xorsi3): Likewise.
17041 (addsi3): Separate register and immediate alternatives.
17042 Add LIW attributes.
17043 (subsi3): Likewise.
17044 (cmpsi): Likewise.
17045 (aslsi3): Likewise.
17046 (lshrsi3): Likewise.
17047 (ashrsi3): Likewise.
17048 (liw): New pattern.
17049 * config/mn10300/mn10300.c (liw_op_names): New
17050 (mn10300_print_operand): Handle 'W' operand descriptor.
17051 (extract_bundle): New function.
17052 (check_liw_constraints): New function.
17053 (liw_candidate): New function.
17054 (mn10300_bundle_liw): New function.
17055 (mn10300_reorg): New function.
17056 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17057 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17058 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17059 __LIW__ or __NO_LIW__.
17060 * doc/invoke.texi: Describe the -mliw command line option.
17061
17062 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17063
17064 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17065 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17066 pthread_mutex_unlock): Remove.
17067 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17068 * config/pa/t-pa64: Likewise.
17069 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17070 shared libc if not linking against libpthread.
17071 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17072
17073 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17074
17075 PR target/47558
17076 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17077 on 10.6 and later to ensure that we always use the unwinder from
17078 the system. Only add -no_compact_unwind when tarteting darwin
17079 10.6 or later.
17080
17081 2011-02-07 Steve Ellcey <sje@cup.hp.com>
17082
17083 PR target/46997
17084 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17085 (vec_interleave_lowv2sf): Ditto.
17086 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17087 (vec_extract_oddv2sf): Ditto.
17088
17089 2011-02-07 Mike Stump <mikestump@comcast.net>
17090
17091 PR target/42333
17092 Add __ieee_divdc3 entry point.
17093 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17094 entry point.
17095 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17096 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17097 * config/darwin.c (darwin_rename_builtins): Add.
17098 * config/darwin-protos.h (darwin_rename_builtins): Add.
17099
17100 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17101
17102 PR target/47636
17103 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17104 for the condition.
17105
17106 2011-02-07 Mike Stump <mikestump@comcast.net>
17107
17108 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17109
17110 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17111
17112 PR target/47534
17113 * config/avr/libgcc.S (exit): Move .endfunc
17114
17115 2011-02-07 Richard Guenther <rguenther@suse.de>
17116
17117 PR tree-optimization/47615
17118 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17119 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17120 (run_scc_vn): Initialize it.
17121 (visit_reference_op_load): Use it.
17122 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17123
17124 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17125
17126 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17127 DImode trapping arithmetic libfuncs.
17128
17129 2011-02-07 Richard Guenther <rguenther@suse.de>
17130
17131 PR tree-optimization/47621
17132 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17133 two duplicates ...
17134 (execute_update_addresses_taken): ... here. Make it more
17135 conservative in what we accept.
17136
17137 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17138
17139 * config/sparc/freebsd.h (ASM_SPEC): Define.
17140 * config/sparc/vxworks.h (ASM_SPEC): Define.
17141
17142 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17143
17144 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17145
17146 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17147
17148 * doc/invoke.texi: Remove reference to compiler internals from
17149 user documentation.
17150
17151 * reg-notes.def: Remove REG_VALUE_PROFILE.
17152 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17153
17154 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17155
17156 PR middle-end/47610
17157 * varasm.c (default_section_type_flags): If decl is NULL,
17158 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17159
17160 2011-02-05 Jie Zhang <jie@codesourcery.com>
17161
17162 PR debug/42631
17163 * web.c (entry_register): Don't clobber the number of the
17164 first uninitialized reference in used[].
17165
17166 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17167
17168 PR tree-optimization/46194
17169 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17170 (build_classic_dist_vector_1): Do not represent classic distance
17171 vectors when the access functions are variating in different loops.
17172
17173 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17174
17175 * config/mips/iris6.opt: New.
17176 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17177
17178 2011-02-04 Richard Henderson <rth@redhat.com>
17179 Steve Ellcey <sje@cup.hp.com>
17180
17181 PR target/46997
17182 * config/ia64/predicates.md (mux1_brcst_element): New.
17183 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17184 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17185 (ia64_unpack_sign): New.
17186 (ia64_expand_unpack): Rewrite using new routines.
17187 (ia64_expand_widen_sum): Ditto.
17188 (ia64_expand_dot_prod_v8qi): Ditto.
17189 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17190 routines, add endian check.
17191 (pmpy2_even): Rename from pmpy2_r, add endian check.
17192 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17193 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17194 (vec_widen_smult_hi_v4hi): Ditto.
17195 (vec_widen_umult_lo_v4hi): Ditto.
17196 (vec_widen_umult_hi_v4hi): Ditto.
17197 (mulv2si3): Change endian checks.
17198 (sdot_prodv4hi): Rewrite with new calls.
17199 (udot_prodv4hi): New.
17200 (vec_pack_ssat_v4hi): Add endian check.
17201 (vec_pack_usat_v4hi): Ditto.
17202 (vec_pack_ssat_v2si): Ditto.
17203 (max1_even): Rename from max1_r, add endian check.
17204 (max1_odd): Rename from max1_l, add endian check.
17205 (*mux1_rev): Format change.
17206 (*mux1_mix): Ditto.
17207 (*mux1_shuf): Ditto.
17208 (*mux1_alt): Ditto.
17209 (*mux1_brcst_v8qi): Use new predicate.
17210 (vec_extract_evenv8qi): Remove endian check.
17211 (vec_extract_oddv8qi): Ditto.
17212 (vec_interleave_lowv4hi): Format change.
17213 (vec_interleave_highv4hi): Ditto.
17214 (mix2_even): Rename from mix2_r, add endian check.
17215 (mix2_odd): Rename from mux2_l, add endian check.
17216 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17217 (vec_extract_evenodd_helper): Format change.
17218 (vec_extract_evenv4hi): Remove endian check.
17219 (vec_extract_oddv4hi): Remove endian check.
17220 (vec_interleave_lowv2si): Format change.
17221 (vec_interleave_highv2si): Format change.
17222 (vec_initv2si): Remove endian check.
17223 (vecinit_v2si): Add endian check.
17224 (reduc_splus_v2sf): Add endian check.
17225 (reduc_smax_v2sf): Ditto.
17226 (reduc_smin_v2sf): Ditto.
17227 (vec_initv2sf): Remove endian check.
17228 (fpack): Add endian check.
17229 (fswap): Add endian check.
17230 (vec_interleave_highv2sf): Add endian check.
17231 (vec_interleave_lowv2sf): Add endian check.
17232 (fmix_lr): Add endian check.
17233 (vec_setv2sf): Format change.
17234 (*vec_extractv2sf_0_be): Use shift to extract operand.
17235 (*vec_extractv2sf_1_be): New.
17236 (vec_pack_trunc_v4hi): Add endian check.
17237 (vec_pack_trunc_v2si): Format change.
17238
17239 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17240
17241 PR inline-asm/23200
17242 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17243 do bb, locus and block comparison and disallow loads if it is not set.
17244 (stmt_is_replaceable_p): New function.
17245 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17246 callers.
17247 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17248 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17249 SSA_NAME_DEF_STMT.
17250 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17251
17252 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17253
17254 * config/rs6000/xilinx.opt: New.
17255 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17256
17257 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17258
17259 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17260
17261 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17262
17263 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17264 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17265 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17266 secondary_reload_info, xtensa_secondary_reload): Remove.
17267 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17268 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17269 (xtensa_preferred_reload_class): Make static. Change return and
17270 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17271 Use CONST_DOUBLE_P predicate.
17272 (xtensa_preferred_output_reload_class): New function.
17273 (xtensa_secondary_reload): Make static.
17274
17275 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17276
17277 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17278 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17279 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17280
17281 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17282
17283 PR middle-end/31490
17284 * output.h (SECTION_RELRO): Define.
17285 (SECTION_MACH_DEP): Adjust.
17286 (get_variable_section): New prototype.
17287 * varpool.c (varpool_finalize_named_section_flags): New function.
17288 (varpool_assemble_pending_decls): Call it.
17289 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17290 * cgraphunit.c (cgraph_output_in_order): Call
17291 varpool_finalize_named_section_flags.
17292 * varasm.c (get_section): Allow section flags conflicts between
17293 relro and read-only sections if the section hasn't been declared yet.
17294 Set SECTION_OVERRIDE after diagnosing section type conflict.
17295 (get_variable_section): No longer static.
17296 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17297 readonly sections that need relocations.
17298 (decl_readonly_section_1): New function.
17299 (decl_readonly_section): Use it.
17300
17301 Revert:
17302 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17303 Steve Ellcey <sje@cup.hp.com>
17304
17305 PR middle-end/31490
17306 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17307 if section attribute used.
17308
17309 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17310
17311 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17312 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17313 (darwin_init_sections): Remove assertion.
17314
17315 2011-02-03 Nick Clifton <nickc@redhat.com>
17316
17317 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17318 lt and ge.
17319 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17320 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17321 instead of "n" and "pz".
17322 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17323 CC_FLAG_S.
17324
17325 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17326
17327 PR target/47312
17328 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17329 fma, expand FMA_EXPR as fma{,f,l} call.
17330
17331 PR lto/47274
17332 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17333 copy them into a unsigned char variable and pass address of it to
17334 lto_output_data_stream.
17335
17336 PR target/47564
17337 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17338 around backend_init_target and lang_dependent_init_target calls.
17339 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17340 (verify_cgraph_node): Don't call set_cfun here. Use
17341 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17342 Set error_found for incorrectly represented calls to thunks.
17343
17344 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17345
17346 PR debug/43092
17347 PR rtl-optimization/43494
17348 * rtl.h (for_each_inc_dec_fn): New type.
17349 (for_each_inc_dec): Declare.
17350 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17351 (for_each_inc_dec_find_inc_dec): New fn.
17352 (for_each_inc_dec_find_mem): New fn.
17353 (for_each_inc_dec): New fn.
17354 * dse.c (struct insn_size): Remove.
17355 (replace_inc_dec, replace_inc_dec_mem): Remove.
17356 (emit_inc_dec_insn_before): New fn.
17357 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17358 (canon_address): Pass mem modes to cselib_lookup.
17359 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17360 (cselib_lookup_from_insn): Likewise.
17361 (cselib_subst_to_values): Likewise.
17362 * cselib.c (find_slot_memmode): New var.
17363 (cselib_find_slot): New fn. Use it instead of
17364 htab_find_slot_with_hash everywhere.
17365 (entry_and_rtx_equal_p): Use find_slot_memmode.
17366 (autoinc_split): New fn.
17367 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17368 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17369 Deal with autoinc. Special-case recursion into MEMs.
17370 (cselib_hash_rtx): Likewise.
17371 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17372 address and MEM modes.
17373 (cselib_subst_to_values): Add memmode, pass it on.
17374 Deal with autoinc.
17375 (cselib_lookup): Add memmode argument, pass it on.
17376 (cselib_lookup_from_insn): Add memmode.
17377 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17378 (struct cselib_record_autoinc_data): New.
17379 (cselib_record_autoinc_cb): New fn.
17380 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17381 mode to cselib_lookup. Reset autoinced REGs here instead of...
17382 (cselib_process_insn): ... here.
17383 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17384 to cselib_lookup.
17385 (add_uses): Likewise, also to cselib_subst_to_values.
17386 (add_stores): Likewise.
17387 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17388 cselib_subst_to_values.
17389 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17390 * gcse.c (do_local_cprop): Adjusted.
17391 * postreload.c (reload_cse_simplify_set): Adjusted.
17392 (reload_cse_simplify_operands): Adjusted.
17393 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17394
17395 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17396
17397 PR tree-optimization/45122
17398 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17399 unsafe assumptions when there's more than one loop exit.
17400
17401 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17402
17403 PR target/47272
17404 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17405 Document using vector double with the load/store builtins, and
17406 that the load/store builtins always use Altivec instructions.
17407
17408 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17409 to use altivec memory instructions, even on VSX.
17410 (vector_altivec_store_<mode>): Ditto.
17411
17412 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17413 function.
17414
17415 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17416 V2DF, V2DI support to load/store overloaded builtins.
17417
17418 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17419 altivec load/store builtins for V2DF/V2DI types.
17420
17421 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17422 set avoid indexed addresses on power6 if -maltivec.
17423 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17424 vector_altivec_load/vector_altivec_store builtins.
17425 (altivec_expand_st_builtin): Ditto.
17426 (altivec_expand_builtin): Add VSX memory builtins.
17427 (rs6000_init_builtins): Add V2DI types to internal types.
17428 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17429 load/store builtins.
17430 (rs6000_address_for_altivec): Insure memory address is appropriate
17431 for Altivec.
17432
17433 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17434 vec_vsx_ld and vec_vsx_st.
17435 (vsx_store_<mode>): Ditto.
17436
17437 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17438 variables to hold long long types for VSX vector memory builtins.
17439 (RS6000_BTI_unsigned_long_long): Ditto.
17440 (long_long_integer_type_internal_node): Ditti.
17441 (long_long_unsigned_type_internal_node): Ditti.
17442
17443 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17444 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17445 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17446
17447 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17448 short cuts.
17449 (vec_vsx_st): Ditto.
17450
17451 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17452
17453 * config/pa/pa-hpux10.opt: New.
17454 * config/hpux11.opt (pthread): New Driver option.
17455 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17456 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17457
17458 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17459
17460 * config/ia64/vms.opt: New.
17461 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17462
17463 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17464
17465 PR target/47580
17466 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17467 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17468 generator functions.
17469 (vsx_floatuns<VSi><mode>2): Ditto.
17470 (vsx_fix_trunc<mode><VSi>2): Ditto.
17471 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17472
17473 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17474
17475 * config/i386/djgpp.opt (posix): New Driver option.
17476
17477 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17478
17479 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17480 Move to the unsupported targets list.
17481
17482 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17483
17484 PR rtl-optimization/47525
17485 * df-scan.c: Update copyright years.
17486 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17487 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17488
17489 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17490
17491 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17492 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17493 (ASM_OUTPUT_ASCII): Remove.
17494 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17495
17496 2011-02-02 Jeff Law <law@redhat.com>
17497
17498 PR middle-end/47543
17499 * reload.c (find_reloads_address): Handle reg+d address where both
17500 components are invalid by reloading the entire address.
17501
17502 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17503 Richard Guenther <rguenther@suse.de>
17504
17505 PR tree-optimization/40979
17506 PR bootstrap/47044
17507 * passes.c (init_optimization_passes): After LIM call copy_prop
17508 and DCE to clean up.
17509 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17510
17511 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17512
17513 PR tree-optimization/47576
17514 PR tree-optimization/47555
17515 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17516 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17517 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17518 * tree-scalar-evolution.c (follow_ssa_edge): Use
17519 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17520
17521 2011-02-02 Richard Guenther <rguenther@suse.de>
17522
17523 PR tree-optimization/47566
17524 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17525
17526 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17527
17528 PR debug/47106
17529 PR debug/47402
17530 * tree-inline.c (declare_return_variable): Remove unused caller
17531 variable.
17532
17533 PR debug/47106
17534 PR debug/47402
17535 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17536 * cfgexpand.c (account_used_vars_for_block): Use them.
17537 * tree-nrv.c (tree_nrv): Likewise.
17538 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17539 (dump_scope_block): Likewise.
17540 (remove_unused_locals): Likewise.
17541
17542 PR debug/47106
17543 PR debug/47402
17544 * tree-inline.c (declare_return_variable): Add result decl to
17545 local decls only once.
17546 * gimple-low.c (record_vars_into): Mark newly-created variables
17547 as referenced.
17548
17549 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17550
17551 PR debug/47498
17552 PR debug/47501
17553 PR debug/45136
17554 PR debug/45130
17555 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17556 debug insns.
17557 (no_real_insns_p, schedule_block, set_priorities): Drop special
17558 treatment of boundary debug insns.
17559 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17560 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17561 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17562 (BOUNDARY_DEBUG_INSN_P): Likewise.
17563 (SCHEDULE_DEBUG_INSN_P): Likewise.
17564 * sched-rgn.c (init_ready_list): Drop special treatment of
17565 boundary debug insns.
17566 * final.c (rest_of_clean_state): Clear notes' BB.
17567
17568 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17569
17570 * config/openbsd.opt (assert=): New Driver option.
17571
17572 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17573
17574 * config/i386/nto.opt: New.
17575 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17576
17577 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17578
17579 * config/i386/netware.opt: New.
17580 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17581
17582 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17583
17584 * config/interix.opt (posix): New Driver option.
17585
17586 2011-02-01 DJ Delorie <dj@redhat.com>
17587
17588 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17589
17590 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17591 class for A0/A1.
17592
17593 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17594
17595 PR tree-optimization/47561
17596 * toplev.c (process_options): Print the Graphite flags. Add
17597 flag_loop_flatten to the list of options requiring Graphite.
17598
17599 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17600
17601 * config/i386/cygming.opt (posix): New Driver option.
17602
17603 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17604
17605 * config/arm/vxworks.opt: New.
17606 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17607
17608 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17609
17610 * config/alpha/elf.opt: New.
17611 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17612 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17613
17614 2011-02-01 Richard Guenther <rguenther@suse.de>
17615
17616 PR tree-optimization/47559
17617 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17618 store-motion on references that can throw.
17619
17620 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17621
17622 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17623 * tree-pass.h (TDF_CSELIB): New macro.
17624 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17625 cselib_lookup): Check for it rather than for TDF_DETAILS.
17626
17627 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17628
17629 PR driver/47547
17630 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17631 is HOST_BIT_BUCKET.
17632
17633 * opts.c (finish_options): Don't add x_aux_base_name if it is
17634 HOST_BIT_BUCKET.
17635
17636 2011-02-01 Richard Guenther <rguenther@suse.de>
17637
17638 PR tree-optimization/47555
17639 Revert
17640 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17641
17642 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17643
17644 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17645
17646 PR gcc/46692
17647 * config/lm32/t-lm32: Add multilib for all CPU options.
17648
17649 2011-02-01 Richard Guenther <rguenther@suse.de>
17650
17651 PR tree-optimization/47541
17652 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17653 sure to have a field at offset zero.
17654
17655 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17656
17657 * config/arc/arc.opt (EB, EL): New Driver options.
17658
17659 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17660
17661 * config/alpha/osf5.opt: New.
17662 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17663
17664 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17665
17666 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17667
17668 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17669
17670 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17671 -floop-interchange.
17672 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17673 is an alias of -floop-interchange and that it requires the
17674 Graphite infrastructure.
17675 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17676 flag_loop_interchange based on the value of flag_tree_loop_linear.
17677
17678 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17679 Richard Guenther <rguenther@suse.de>
17680
17681 PR tree-optimization/47538
17682 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17683 type instead of r1type, except for comparisons. For right
17684 shifts and comparisons punt if there are mismatches in
17685 sizetype vs. non-sizetype types.
17686
17687 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17688
17689 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17690 avx_runtime.
17691
17692 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17693
17694 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17695 version number.
17696 * configure: Regenerate.
17697
17698 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17699
17700 * configure.ac (gcc_cv_ld_static_option): Define.
17701 (gcc_cv_ld_dynamic_option): Define.
17702 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17703 instead.
17704 (HAVE_LD_STATIC_DYNAMIC): Update message.
17705 (LD_STATIC_OPTION): Define.
17706 (LD_DYNAMIC_OPTION): Define.
17707 * configure: Regenerate.
17708 * config.in: Regenerate.
17709 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17710 HAVE_LD_STATIC_DYNAMIC]: Use them.
17711
17712 2011-01-31 Nick Clifton <nickc@redhat.com>
17713
17714 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17715 registers inside interrupt handlers if the handler is not a leaf
17716 function.
17717
17718 2011-01-31 Nick Clifton <nickc@redhat.com>
17719
17720 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17721 reg_renumber returning an INVALID_REGNUM.
17722
17723 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17724
17725 PR libgcj/44341
17726 * doc/install.texi: Document host options discarded when cross
17727 configuring target libraries.
17728
17729 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17730
17731 Reverted:
17732 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17733 PR debug/45136
17734 PR debug/45130
17735 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17736 debug insns.
17737 (no_real_insns_p, schedule_block, set_priorities): Drop special
17738 treatment of boundary debug insns.
17739 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17740 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17741 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17742 (BOUNDARY_DEBUG_INSN_P): Likewise.
17743 (SCHEDULE_DEBUG_INSN_P): Likewise.
17744 * sched-rgn.c (init_ready_list): Drop special treatment of
17745 boundary debug insns.
17746 * final.c (rest_of_clean-state): Clear notes' BB.
17747
17748 2011-01-31 Alan Modra <amodra@gmail.com>
17749
17750 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17751 toc relative expressions as we do in print_operand_address.
17752
17753 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17754
17755 * doc/extend.texi: Follow spelling conventions.
17756 * doc/invoke.texi: Fix a typo.
17757
17758 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17759
17760 * config/hpux11.opt: New.
17761 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17762 ia64*-*-hpux*): Use hpux11.opt.
17763
17764 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17765
17766 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17767 to tmake_file.
17768
17769 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17770
17771 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17772 support sites.
17773
17774 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17775
17776 * doc/install.texi (Binaries): Remove outdated reference for
17777 Motorola 68HC11/68HC12 downloads.
17778
17779 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17780
17781 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17782 Drepper's paper.
17783
17784 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17785
17786 PR bootstrap/47147
17787 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17788 used by NetBSD.
17789
17790 2011-01-28 Ahmad Sharif <asharif@google.com>
17791
17792 * value-prof.c (check_counter): Corrected error message.
17793
17794 2011-01-29 Jie Zhang <jie@codesourcery.com>
17795
17796 * config/arm/arm.c (arm_legitimize_reload_address): New.
17797 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17798 arm_legitimize_reload_address.
17799 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17800
17801 2011-01-28 Ian Lance Taylor <iant@google.com>
17802
17803 * godump.c (go_define): Ignore macros whose definitions include
17804 two adjacent operands.
17805
17806 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17807
17808 PR target/42894
17809 * varasm.c (force_const_mem): Store copy of x in desc->constant
17810 instead of x itself.
17811 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17812 itself into REG_EQUAL note.
17813
17814 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17815
17816 * config/freebsd.opt (posix, rdynamic): New Driver options.
17817
17818 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17819
17820 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17821 -Bstatic/-Bdynamic.
17822 * configure: Regenerate.
17823
17824 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17825
17826 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17827 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17828
17829 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17830
17831 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17832 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17833 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17834 (s390_preferred_reload_class): Make static. Change return and
17835 'rclass' argument type to reg_class_t.
17836
17837 2011-01-27 Jan Hubicka <jh@suse.cz>
17838
17839 PR middle-end/46949
17840 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17841 (process_function_and_variable_attributes): Check defined weakrefs.
17842
17843 2011-01-27 Martin Jambor <mjambor@suse.cz>
17844
17845 PR tree-optimization/47228
17846 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17847 build_ref_for_offset.
17848
17849 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17850
17851 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17852
17853 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17854
17855 PR rtl-optimization/46856
17856 * postreload.c (reload_combine_recognize_const_pattern): Do not
17857 separate cc0 setter and user on cc0 targets.
17858
17859 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17860
17861 PR c/43082
17862 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17863 passed a VOID_TYPE expression, immediately emit an error and
17864 return error_mark_node.
17865
17866 2011-01-26 Jeff Law <law@redhat.com>
17867
17868 PR rtl-optimization/47464
17869 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17870 rather than may_trap_p as needed.
17871
17872 2011-01-26 DJ Delorie <dj@redhat.com>
17873
17874 PR rtl-optimization/46878
17875 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17876 setter/user dependency as well.
17877
17878 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17879
17880 PR rtl-optimization/44469
17881 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17882 after removing trivially dead basic blocks.
17883
17884 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17885
17886 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17887 * config/frv/frv.h (LINK_SPEC): Likewise.
17888 * config/i386/netware.h (LINK_SPEC): Likewise.
17889 * config/m68k/linux.h (ASM_SPEC): Likewise.
17890 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17891 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17892 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17893 * config/sparc/linux.h (ASM_SPEC): Likewise.
17894 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17895 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17896
17897 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17898
17899 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17900 * config/frv/frv.h (ASM_SPEC): Likewise.
17901 * config/m68k/linux.h (ASM_SPEC): Likewise.
17902 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17903 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17904 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17905 * config/sparc/linux.h (ASM_SPEC): Likewise.
17906 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17907 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17908
17909 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17910
17911 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17912 * config/frv/frv.h (LINK_SPEC): Likewise.
17913 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17914
17915 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17916
17917 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17918 * config/frv/frv.h (ASM_SPEC): Likewise.
17919 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17920 * config/m68k/linux.h (ASM_SPEC): Likewise.
17921 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17922 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17923 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17924 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17925 * config/sparc/linux.h (ASM_SPEC): Likewise.
17926 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17927 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17928 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17929
17930 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17931
17932 PR target/46997
17933 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17934 (*mux2): Ditto.
17935 (vec_extract_evenodd_help): Ditto.
17936 (vec_extract_evenv4hi): Ditto.
17937 (vec_extract_oddv4hi): Ditto.
17938 (vec_interleave_lowv2si): Ditto.
17939 (vec_interleave_highv2si): Ditto.
17940 (vec_extract_evenv2si): Ditto.
17941 (vec_extract_oddv2si: Ditto.
17942 (vec_pack_trunc_v2si): Ditto.
17943
17944 2011-01-22 Jan Hubicka <jh@suse.cz>
17945
17946 PR target/47237
17947 * cgraph.h (cgraph_local_info): New field can_change_signature.
17948 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17949 signature can change.
17950 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17951 can change.
17952 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17953 (cgraph_function_versioning): We can not change signature of functions
17954 that don't allow that.
17955 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17956 (lto_input_node): Likewise.
17957 * ipa-inline.c (compute_inline_parameters): Compute
17958 local.can_change_signature.
17959 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17960 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17961 functions that can not change signature.
17962 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17963 init_cumulative_args): Do not use local calling conventions
17964 for functions that can not change signature.
17965
17966 2011-01-22 Jan Hubicka <jh@suse.cz>
17967
17968 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17969
17970 2011-01-26 Richard Guenther <rguenther@suse.de>
17971
17972 PR tree-optimization/47190
17973 * cgraphunit.c (process_common_attributes): New function.
17974 (process_function_and_variable_attributes): Use it.
17975
17976 2011-01-26 Richard Guenther <rguenther@suse.de>
17977
17978 PR lto/47423
17979 * cgraphbuild.c (record_eh_tables): Record reference to personality
17980 function.
17981
17982 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17983
17984 PR debug/45454
17985 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17986 non-debug insns from moving up.
17987
17988 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17989
17990 PR target/40125
17991 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17992 t-dlldir{,-x} fragment for build and add it to tmake_file.
17993 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17994 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17995 * config/i386/t-dlldir: New file.
17996 (SHLIB_DLLDIR): Define.
17997 * config/i386/t-dlldir-x: New file.
17998 (SHLIB_DLLDIR): Define.
17999 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18000 (SHLIB_INSTALL): Use it.
18001
18002 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18003
18004 PR target/47246
18005 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18006 lower bound of the allowed Thumb-2 coprocessor load/store
18007 index range to -256. Add explaining comment.
18008
18009 2011-01-25 Ian Lance Taylor <iant@google.com>
18010
18011 * godump.c (go_define): Improve lexing of macro expansion to only
18012 accept expressions which match Go spec.
18013
18014 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18015
18016 PR c++/43601
18017 * tree.c (handle_dll_attribute): Handle it.
18018 * doc/extend.texi (@item dllexport): Mention it.
18019 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18020
18021 2011-01-25 Ian Lance Taylor <iant@google.com>
18022
18023 PR tree-optimization/26854
18024 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18025 (decl_jump_unsafe): Move higher in file, with no other change.
18026 (bind): Set has_jump_unsafe_decl if appropriate.
18027 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18028 (check_earlier_gotos): Likewise.
18029 (c_check_switch_jump_warnings): Likewise.
18030
18031 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18032
18033 * doc/invoke.texi (Warning Options): Add missing hyphen.
18034 (-fprofile-dir): Minor grammatical fixes.
18035 (-fbranch-probabilities): Likewise.
18036
18037 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18038
18039 PR debug/45136
18040 PR debug/45130
18041 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18042 debug insns.
18043 (no_real_insns_p, schedule_block, set_priorities): Drop special
18044 treatment of boundary debug insns.
18045 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18046 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18047 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18048 (BOUNDARY_DEBUG_INSN_P): Likewise.
18049 (SCHEDULE_DEBUG_INSN_P): Likewise.
18050 * sched-rgn.c (init_ready_list): Drop special treatment of
18051 boundary debug insns.
18052 * final.c (rest_of_clean-state): Clear notes' BB.
18053
18054 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18055
18056 * Makefile.in (LAMBDA_H): Removed.
18057 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18058 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18059 lambda-trans.o, and tree-loop-linear.o.
18060 (lto-symtab.o): Remove dependence on LAMBDA_H.
18061 (tree-loop-linear.o): Remove rule.
18062 (lambda-mat.o): Same.
18063 (lambda-trans.o): Same.
18064 (lambda-code.o): Same.
18065 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18066 (tree-vect-slp.o): Same.
18067 * hwint.h (gcd): Moved here.
18068 (least_common_multiple): Same.
18069 * lambda-code.c: Removed.
18070 * lambda-mat.c: Removed.
18071 * lambda-trans.c: Removed.
18072 * lambda.h: Removed.
18073 * tree-loop-linear.c: Removed.
18074 * lto-symtab.c: Do not include lambda.h.
18075 * omega.c (gcd): Removed.
18076 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18077 * tree-data-ref.c (print_lambda_vector): Moved here.
18078 (lambda_vector_copy): Same.
18079 (lambda_matrix_copy): Same.
18080 (lambda_matrix_id): Same.
18081 (lambda_vector_first_nz): Same.
18082 (lambda_matrix_row_add): Same.
18083 (lambda_matrix_row_exchange): Same.
18084 (lambda_vector_mult_const): Same.
18085 (lambda_vector_negate): Same.
18086 (lambda_matrix_row_negate): Same.
18087 (lambda_vector_equal): Same.
18088 (lambda_matrix_right_hermite): Same.
18089 * tree-data-ref.h: Do not include lambda.h.
18090 (lambda_vector): Moved here.
18091 (lambda_matrix): Same.
18092 (dependence_level): Same.
18093 (lambda_transform_legal_p): Removed declaration.
18094 (lambda_collect_parameters): Same.
18095 (lambda_compute_access_matrices): Same.
18096 (lambda_vector_gcd): Same.
18097 (lambda_vector_new): Same.
18098 (lambda_vector_clear): Same.
18099 (lambda_vector_lexico_pos): Same.
18100 (lambda_vector_zerop): Same.
18101 (lambda_matrix_new): Same.
18102 * tree-flow.h (least_common_multiple): Removed declaration.
18103 * tree-parloops.c (lambda_trans_matrix): Moved here.
18104 (LTM_MATRIX): Same.
18105 (LTM_ROWSIZE): Same.
18106 (LTM_COLSIZE): Same.
18107 (LTM_DENOMINATOR): Same.
18108 (lambda_trans_matrix_new): Same.
18109 (lambda_matrix_vector_mult): Same.
18110 (lambda_transform_legal_p): Same.
18111 * tree-pass.h (pass_linear_transform): Removed declaration.
18112 * tree-ssa-loop.c (tree_linear_transform): Removed.
18113 (gate_tree_linear_transform): Removed.
18114 (pass_linear_transform): Removed.
18115 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18116 flag_loop_interchange.
18117
18118 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18119
18120 PR tree-optimization/47265
18121 PR tree-optimization/47443
18122 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18123 if name still has some uses.
18124
18125 2011-01-25 Martin Jambor <mjambor@suse.cz>
18126
18127 PR tree-optimization/47382
18128 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18129 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18130
18131 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18132
18133 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18134 sjlj_except_unwind_info.
18135
18136 2011-01-25 Richard Guenther <rguenther@suse.de>
18137
18138 PR tree-optimization/47426
18139 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18140 visible functions results escape.
18141
18142 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18143
18144 PR target/45701
18145 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18146 (arm_get_frame_offsets): Use it.
18147
18148 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18149 Jakub Jelinek <jakub@redhat.com>
18150
18151 PR tree-optimization/47271
18152 * tree-if-conv.c (bb_postdominates_preds): New.
18153 (if_convertible_bb_p): Call bb_postdominates_preds.
18154 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18155 (predicate_scalar_phi): Call bb_postdominates_preds.
18156
18157 2011-01-25 Nick Clifton <nickc@redhat.com>
18158
18159 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18160 * config/rx/rx.c (rx_function_value): Likewise.
18161 (rx_promote_function_mode): Likewise.
18162 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18163 in order to make it legitimate.
18164 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18165 make sure that the first operand is the same as the result register.
18166 (addsi3_unspec): Delete.
18167 (subdi3): Do not accept immediate operands.
18168 (subdi3_internal): Likewise.
18169
18170 2011-01-25 Jeff Law <law@redhat.com>
18171
18172 PR rtl-optimization/37273
18173 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18174 handle them like argument loads from stack slots. Do not double
18175 count memory for memory constants and argument loads from stack slots.
18176
18177 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18178
18179 PR tree-optimization/47427
18180 PR tree-optimization/47428
18181 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18182 coalesce if the new root var would be TREE_READONLY.
18183
18184 2011-01-25 Richard Guenther <rguenther@suse.de>
18185
18186 PR middle-end/47414
18187 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18188 correct type for TBAA.
18189
18190 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18191
18192 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18193 (close_phi_written_to_memory): Call for_each_index with
18194 dr_indices_valid_in_loop.
18195
18196 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18197
18198 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18199 when it is initialized.
18200
18201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18202
18203 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18204 call to graphite_find_data_references_in_stmt.
18205 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18206 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18207 call to graphite_find_data_references_in_stmt.
18208 (analyze_drs_in_stmts): Same.
18209 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18210 in which the scalar analysis of indices is performed.
18211 (create_data_ref): Same. Update call to dr_analyze_indices.
18212 (find_data_references_in_stmt): Update call to create_data_ref.
18213 (graphite_find_data_references_in_stmt): Same.
18214 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18215 declaration.
18216 (create_data_ref): Same.
18217 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18218 call to create_data_ref.
18219
18220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18221
18222 * graphite-sese-to-poly.c (build_poly_scop): Move
18223 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18224
18225 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18226
18227 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18228 VAR_DECL, PARM_DECL, and RESULT_DECL.
18229
18230 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18231
18232 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18233 in a reduction PBB.
18234 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18235 that have already been marked as PBB_IS_REDUCTION.
18236
18237 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18238
18239 * graphite-scop-detection.c (same_close_phi_node): New.
18240 (remove_duplicate_close_phi): New.
18241 (make_close_phi_nodes_unique): New.
18242 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18243
18244 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18245
18246 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18247 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18248 of both data references to be the same.
18249
18250 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18251
18252 * graphite-dependences.c (build_lexicographical_constraint): Remove
18253 the gdim parameter.
18254 (build_lexicographical_constraint): Adjust call to
18255 ppl_powerset_is_empty.
18256 (dependence_polyhedron): Same.
18257 (graphite_legal_transform_dr): Same.
18258 (graphite_carried_dependence_level_k): Same.
18259 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18260 parameter.
18261 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18262
18263 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18264
18265 * graphite-sese-to-poly.c
18266 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18267 (close_phi_written_to_memory): New.
18268 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18269 and unshare_expr.
18270
18271 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18272
18273 * doc/install.texi: Update the expected version number of PPL to 0.11.
18274 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18275 #if PPL_VERSION_MINOR < 11.
18276
18277 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18278
18279 * graphite-dependences.c: Include graphite-cloog-util.h.
18280 (new_poly_ddr): Inlined into dependence_polyhedron.
18281 (free_poly_ddr): Moved close by new_poly_ddr.
18282 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18283 Early return NULL when ppl_powerset_is_empty returns true.
18284 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18285 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18286 (graphite_legal_transform_dr): Call new_poly_ddr.
18287 (graphite_carried_dependence_level_k): Same.
18288 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18289 (dot_transformed_deps_stmt_1): Removed.
18290 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18291 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18292 (dot_deps_1): Call dot_deps_2.
18293 * Makefile.in (graphite-dependences.o): Add missing dependence on
18294 graphite-cloog-util.h.
18295
18296 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18297
18298 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18299 (build_lexicographical_constraint): Same.
18300 (dependence_polyhedron_1): Same.
18301 (graphite_legal_transform_dr): Same.
18302 (graphite_carried_dependence_level_k): Same.
18303 * graphite-ppl.c (ppl_powerset_is_empty): New.
18304 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18305 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18306
18307 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18308
18309 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18310 the "a followed by b" relation and document it.
18311
18312 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18313
18314 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18315 iteration when the bag of constraints is empty.
18316
18317 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18318
18319 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18320
18321 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18322
18323 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18324 nest and two loop depths as parameters.
18325 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18326 lst_perfect_nestify.
18327
18328 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18329
18330 * graphite-dependences.c (print_pddr): Call
18331 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18332
18333 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18334
18335 * graphite-ppl.c (debug_gmp_value): New.
18336 * graphite-ppl.h (debug_gmp_value): Declared.
18337
18338 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18339
18340 * doc/install.texi: Document availability of cloog-0.16.
18341
18342 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18343
18344 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18345 invalid postdominance info.
18346
18347 2011-01-24 Jan Hubicka <jh@suse.cz>
18348
18349 PR c/21659
18350 * doc/extend.texi (weak pragma): Drop claim that it must
18351 appear before definition.
18352 * varasm.c (merge_weak, declare_weak): Only sanity check
18353 that DECL is not output at a time it is declared weak.
18354
18355 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18356
18357 * machmode.def: Fixed comments.
18358
18359 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18360
18361 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18362
18363 2011-01-24 Paul Koning <ni1d@arrl.net>
18364
18365 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18366 WORDS_BIG_ENDIAN.
18367
18368 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18369
18370 PR target/46519
18371 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18372 (block_info): Add scanned and prev.
18373 (move_or_delete_vzeroupper_2): Return if the basic block
18374 has been scanned and the upper 128bit state is unchanged
18375 from the last scan.
18376 (move_or_delete_vzeroupper_1): Return true if the exit
18377 state is changed.
18378 (move_or_delete_vzeroupper): Visit basic blocks using the
18379 work-list based algorithm based on vt_find_locations in
18380 var-tracking.c.
18381
18382 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18383
18384 2011-01-24 Nick Clifton <nickc@redhat.com>
18385
18386 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18387 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18388 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18389 then define __v850e1__.
18390 * doc/invoke.texi: Document -mv850es.
18391
18392 2011-01-24 Richard Henderson <rth@redhat.com>
18393
18394 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18395 compound unordered comparisons.
18396 * config/rx/rx.c (rx_split_fp_compare): Remove.
18397 * config/rx/rx-protos.h: Update.
18398 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18399 (cbranchsf4): Don't call rx_split_fp_compare.
18400 (*cbranchsf4): Use rx_split_cbranch.
18401 (*cmpsf): Don't accept "i" constraint.
18402 (*conditional_branch): Only valid after reload.
18403 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18404
18405 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18406
18407 PR target/47385
18408 * config/rs6000/altivec.md (vector constant splitters): Add
18409 support for creating vector single precision constants if -mvsx is
18410 used and we would create the constant using Altivec primitives.
18411
18412 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18413 Richard Sandiford <rdsandiford@googlemail.com>
18414
18415 PR rtl-optimization/47166
18416 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18417 mechanism for PRE_MODIFY and POST_MODIFY.
18418 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18419 reloadreg.
18420
18421 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18422
18423 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18424
18425 2011-01-22 Jan Hubicka <jh@suse.cz>
18426
18427 PR lto/47333
18428 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18429
18430 2011-01-22 Jan Hubicka <jh@suse.cz>
18431
18432 PR tree-optimization/43884
18433 PR lto/44334
18434 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18435 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18436
18437 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18438
18439 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18440 * config/s390/s390.c (s390_register_move_cost,
18441 s390_memory_move_cost): New.
18442 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18443
18444 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18445
18446 PR middle-end/47401
18447 * except.c (sjlj_assign_call_site_values): Move setting the
18448 crtl->uses_eh_lsda flag to ...
18449 (sjlj_mark_call_sites): ... here.
18450 (sjlj_emit_function_enter): Support NULL dispatch label.
18451 (sjlj_build_landing_pads): In a function with no landing pads
18452 that still has must-not-throw regions, generate code to register
18453 a personality function with empty LSDA.
18454
18455 2011-01-21 Richard Henderson <rth@redhat.com>
18456
18457 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18458
18459 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18460
18461 * compare-elim.c: New file.
18462 * Makefile.in (OBJS-common): Add it.
18463 (compare-elim.o): New.
18464 * common.opt (fcompare-elim): New.
18465 * opts.c (default_options_table): Add OPT_fcompare_elim.
18466 * tree-pass.h (pass_compare_elim_after_reload): New.
18467 * passes.c (init_optimization_passes): Add it.
18468 * recog.h: Protect against re-inclusion.
18469 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18470 * doc/invoke.texi (-fcompare-elim): Document it.
18471 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18472 * doc/tm.texi: Rebuild.
18473
18474 2011-01-22 Nick Clifton <nickc@redhat.com>
18475
18476 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18477 rx_split_fp_compare.
18478
18479 2011-01-22 Nick Clifton <nickc@redhat.com>
18480
18481 * config/rx/rx.md (UNSPEC_CONST): New.
18482 (deallocate_and_return): Wrap the amount popped off the stack in
18483 an UNSPEC_CONST in order to stop it being rejected by
18484 -mmax-constant-size.
18485 (pop_and_return): Add a "(return)" rtx.
18486 (call): Drop the immediate operand.
18487 (call_internal): Likewise.
18488 (call_value): Likewise.
18489 (call_value_internal): Likewise.
18490 (sibcall_internal): Likewise.
18491 (sibcall_value_internal): Likewise.
18492 (sibcall): Likewise. Generate an explicit call using
18493 sibcall_internal.
18494 (sibcall_value): Likewise.
18495 (mov<>): FAIL if a constant operand is not legitimate.
18496 (addsi3_unpsec): New pattern.
18497
18498 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18499 (ok_for_max_constant): New function.
18500 (gen_safe_add): New function.
18501 (rx_expand_prologue): Use gen_safe_add.
18502 (rx_expand_epilogue): Likewise.
18503 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18504 UNSPEC CONSTs.
18505
18506 2011-01-21 Jeff Law <law@redhat.com>
18507
18508 PR tree-optimization/47053
18509 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18510 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18511 statements are deleted.
18512 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18513 is nonempty, then purge dead edges and cleanup the CFG.
18514
18515 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18516
18517 PR debug/47402
18518 Temporarily revert:
18519 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18520 PR debug/47106
18521 * tree-dfa.c (create_var_ann): Mark variable as used.
18522
18523 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18524
18525 PR middle-end/45566
18526 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18527 notes from other section in hot/cold partitioning even if
18528 last_action is -3. Increment call_site_base.
18529
18530 PR rtl-optimization/47366
18531 * fwprop.c (forward_propagate_into): Return bool. If
18532 any changes are made, -fnon-call-exceptions is used and
18533 REG_EH_REGION note is present, call purge_dead_edges
18534 and return true if it purged anything.
18535 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18536 any EH edges were purged.
18537
18538 2011-01-21 Jeff Law <law@redhat.com>
18539
18540 PR rtl-optimization/41619
18541 * caller-save.c (setup_save_areas): Break out code to determine
18542 which hard regs are live across calls by examining the reload chains
18543 so that it is always used.
18544 Eliminate code which checked REG_N_CALLS_CROSSED.
18545
18546 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18547
18548 PR tree-optimization/47355
18549 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18550 NOP has non-debug uses beyond PHIs in new_bb.
18551
18552 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18553
18554 PR debug/47106
18555 * cfgexpand.c (account_used_vars_for_block): Only account vars
18556 that are annotated as used.
18557 (estimated_stack_frame_size): Don't set TREE_USED.
18558 * tree-dfa.c (create_var_ann): Mark variable as used.
18559
18560 2011-01-21 Richard Guenther <rguenther@suse.de>
18561
18562 PR middle-end/47395
18563 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18564
18565 2011-01-21 Richard Guenther <rguenther@suse.de>
18566
18567 PR tree-optimization/47365
18568 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18569 (vn_reference_lookup_pieces): Adjust.
18570 (vn_reference_lookup): Likewise.
18571 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18572 (vn_reference_lookup_3): Only look through kills if in
18573 VN_WALKREWRITE mode.
18574 (vn_reference_lookup_pieces): Adjust.
18575 (vn_reference_lookup): Likewise.
18576 (visit_reference_op_load): Likewise.
18577 (visit_reference_op_store): Likewise.
18578 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18579 (compute_avail): Likewise.
18580 (eliminate): Likewise.
18581
18582 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18583
18584 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18585 DECL_IGNORED_P non-reg vars if they are used.
18586
18587 PR tree-optimization/47391
18588 * varpool.c (const_value_known_p): Return false if
18589 decl is volatile.
18590
18591 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18592
18593 PR bootstrap/47215
18594 * config/i386/i386.c (ix86_local_alignment): Handle
18595 case for va_list_type_node is nil.
18596 (ix86_canonical_va_list_type): Likewise.
18597
18598 2011-01-21 Alan Modra <amodra@gmail.com>
18599
18600 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18601 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18602
18603 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18604
18605 * config/arm/arm.md (define_attr type): Rename f_load
18606 and f_store to f_fpa_load and f_fpa_store. Update.
18607 (write_conflict): Deal with rename fallout.
18608 (*push_fp_multi): Likewise.
18609 * config/arm/fpa.md (f_load): Use f_fpa_load.
18610 (f_store): Use f_fpa_store.
18611 (*movsf_fpa): Likewise.
18612 (*movdf_fpa): Likewise.
18613 (*movxf_fpa): Likewise.
18614 (*thumb2_movsf_fpa): Likewise.
18615 (*thumb2_movdf_fpa): Likewise.
18616 (*thumb2_movxf_fpa): Likewise.
18617 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18618 f_loadd and f_stored.
18619 (*thumb2_movdi_vfp): Likewise.
18620 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18621 (*thumb2_movsi_vfp): Likewise.
18622 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18623 Use f_loads instead of f_load.
18624 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18625
18626 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18627
18628 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18629 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18630 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18631 (xtensa_mode_dependent_address_p): New function.
18632 (constantpool_address_p): Make static. Change return type to bool.
18633 Change argument type to const_rtx. Use CONST_INT_P predicate.
18634
18635 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18636
18637 PR debug/46583
18638 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18639
18640 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18641
18642 PR debug/47283
18643 * cfgexpand.c (expand_debug_expr): Instead of generating
18644 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18645 etc. handling.
18646
18647 2011-01-20 Richard Guenther <rguenther@suse.de>
18648
18649 PR middle-end/47370
18650 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18651 the pointer operand of MEM_REFs.
18652
18653 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18654
18655 PR tree-optimization/46130
18656 * ipa-split.c (consider_split): If return_bb contains non-virtual
18657 PHIs other than for retval or if split_function would not adjust it,
18658 refuse to split.
18659
18660 2011-01-20 Richard Guenther <rguenther@suse.de>
18661
18662 PR tree-optimization/47167
18663 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18664 Revert previous change, only avoid enumeral type changes.
18665
18666 2011-01-19 Mike Stump <mikestump@comcast.net>
18667
18668 * doc/tm.texi.in (BRANCH_COST): Englishify.
18669 * doc/tm.texi (BRANCH_COST): Likewise.
18670
18671 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18672
18673 PR c++/47291
18674 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18675 (gen_scheduled_generic_parms_dies): New functions.
18676 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18677 generation for the end of CU compilation.
18678 (dwarf2out_finish): Generate template parameters DIEs here.
18679
18680 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18681
18682 PR debug/46240
18683 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18684 debug bind stmt on merge edges.
18685
18686 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18687
18688 PR debug/47079
18689 PR debug/46724
18690 * function.c (instantiate_expr): Instantiate incoming rtl of
18691 implicit arguments, and recurse on VALUE_EXPRs.
18692 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18693 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18694
18695 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18696
18697 * c-parser.c (c_parser_for_statement): Initialize
18698 collection_expression.
18699
18700 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18701
18702 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18703
18704 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18705
18706 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18707 (LINK_SHLIB_SPEC): Don't use %(link_path).
18708 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18709
18710 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18711
18712 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18713 (NO_SHARED_LIB_SUPPORT): Remove.
18714 (LINK_SHLIB_SPEC): Remove one conditional definition.
18715
18716 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18717
18718 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18719 %{call_shared}.
18720 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18721 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18722 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18723 %{call_shared} and conditionals on these options not being passed.
18724 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18725 %{call_shared}.
18726
18727 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18728
18729 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18730 simplify.
18731
18732 * ipa-split.c: Spelling fixes.
18733
18734 2011-01-19 Richard Henderson <rth@redhat.com>
18735
18736 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18737 (*mulsi3): Likewise.
18738
18739 * longlong.h [__mn10300__] (count_leading_zeros): New.
18740 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18741 [__mn10300__] (add_ssaaaa, subddmmss): New.
18742 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18743 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18744
18745 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18746
18747 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18748
18749 2011-01-19 Richard Henderson <rth@redhat.com>
18750
18751 * config/mn10300/mn10300.md (addsi3_flags): New.
18752 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18753 (subsi3_flags, subc_internal, subdi3): New.
18754 (subdi3_internal, *subdi3_degenerate): New.
18755 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18756
18757 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18758 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18759 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18760 * config/mn10300/mn10300-protos.h: Update.
18761 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18762 (return_ret): Likewise. Rename from return_internal_regs.
18763 (return_internal): Remove.
18764
18765 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18766 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18767 (mn10300_legitimate_constant_p): Likewise.
18768 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18769 (mn10300_frame_size): New.
18770 (mn10300_expand_prologue): Use it.
18771 (mn10300_expand_epilogue): Likewise.
18772 (mn10300_initial_offset): Likewise.
18773 * config/mn10300/mn10300-protos.h: Update.
18774 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18775 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18776 (prologue, epilogue, return_internal): Tidy output code.
18777 (mn10300_store_multiple_operation, return): Likewise.
18778 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18779 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18780 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18781 (load_pic, am33_load_pic): New.
18782 (mn10300_load_pic0, mn10300_load_pic1): New.
18783
18784 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18785 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18786 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18787 (cc_flags_for_mode, cc_flags_for_code): New.
18788 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18789 overflow flag is not valid. Validate that the flags we need
18790 for the comparison are valid.
18791 (mn10300_output_cmp): Remove.
18792 (mn10300_output_add): New.
18793 (mn10300_select_cc_mode): Use cc_flags_for_code.
18794 (mn10300_split_cbranch): New.
18795 (mn10300_match_ccmode): New.
18796 (mn10300_split_and_operand_count): New.
18797 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18798 to the function.
18799 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18800 (addsi3): ... here. Use mn10300_output_add.
18801 (*addsi3_flags): New.
18802 (*am33_subsi3, *mn10300_subsi3): Merge...
18803 (subsi3): ... here. Use attribute isa.
18804 (*subsi3_flags): New.
18805 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18806 when possible.
18807 (*am33_andsi3, *mn10300_andsi3): Merge...
18808 (andsi3): ... here.
18809 (*andsi3_flags): New.
18810 (andsi3 splitters): New.
18811 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18812 (iorsi3): ... here.
18813 (*iorsi3_flags): New.
18814 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18815 (xorsi3): ... here.
18816 (*xorsi3_flags): New.
18817 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18818 (one_cmplsi2): ... here.
18819 (*one_cmplsi2_flags): New.
18820 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18821 instead of "dax" in constraints. Use mn10300_split_cbranch.
18822 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18823 use matching constraints to eliminate a self-comparison.
18824 (*integer_conditional_branch): Rename from integer_conditional_branch.
18825 Use int_mode_flags to match CC_REG.
18826 (*cbranchsi4_btst, *btstsi): New.
18827 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18828 mn10300_split_cbranch.
18829 (*am33_cmpsf): Rename from am33_cmpsf.
18830 (*float_conditional_branch): Rename from float_conditional_branch.
18831 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18832 (zero_extendqisi2): ... here.
18833 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18834 (zero_extendhisi2): ... here.
18835 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18836 (extendqisi2): ... here.
18837 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18838 (extendhisi2): ... here.
18839 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18840 (ashlsi3): ... here.
18841 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18842 (lshrsi3): ... here.
18843 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18844 (ashrsi3): ... here.
18845 (consecutive add peephole): Remove.
18846 * config/mn10300/predicates.md (label_ref_operand): New.
18847 (int_mode_flags): New.
18848 (CCZN_comparison_operator): New.
18849
18850 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18851 (throughput_42_latency_43): New reservation.
18852 (mulsidi3, umulsidi3): New expanders.
18853 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18854 the MDR register to allocation; separately allocate the low and
18855 high parts of the DImode result.
18856 (umulsidi3_internal): Similarly.
18857 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18858 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18859 (udivsi3, umodsi3): Remove.
18860 (udivmodsi4, divmodsi4): New expanders.
18861 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18862 (*divmodsi4): Simiarly.
18863 (ext_internal): New.
18864
18865 * config/mn10300/constraints.md ("z"): New constraint.
18866 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18867 (FIXED_REGISTERS): Don't fix MDR.
18868 (CALL_USED_REGSITERS): Reformat nicely.
18869 (REG_ALLOC_ORDER): Add MDR.
18870 (enum regclass): Add MDR_REGS.
18871 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18872 (IRA_COVER_CLASSES): Add MDR_REGS.
18873 (REGNO_REG_CLASS): Handle MDR_REG.
18874 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18875 (mn10300_register_move_cost): Likewise.
18876 * config/mn10300/mn10300.md (MDR_REG): New.
18877 (*movsi_internal): Handle moves to/from MDR_REGS.
18878
18879 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18880 POST_MODIFY.
18881 (mn10300_secondary_reload): Tidy combination reload classes.
18882 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18883 addresses for AM33. Allow symbolic offsets for reg+imm.
18884 (mn10300_regno_in_class_p): New.
18885 (mn10300_legitimize_reload_address): New.
18886 * config/mn10300/mn10300.h (enum reg_class): Remove
18887 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18888 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18889 SP_OR_GENERAL_REGS.
18890 (REG_CLASS_NAMES): Update to match.
18891 (REG_CLASS_CONTENTS): Likewise.
18892 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18893 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18894 (REGNO_IN_RANGE_P): Remove.
18895 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18896 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18897 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18898 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18899 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18900 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18901 (REGNO_GENERAL_P): New.
18902 (HAVE_POST_MODIFY_DISP): New.
18903 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18904 (LEGITIMIZE_RELOAD_ADDRESS): New.
18905 * config/mn10300/mn10300-protos.h: Update.
18906
18907 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18908 DATA_REGS for AM33 stack-pointer destination.
18909 (mn10300_preferred_output_reload_class): Likewise.
18910 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18911 into a form appropriate for ...
18912 (TARGET_SECONDARY_RELOAD): New.
18913 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18914 * config/mn10300/mn10300-protos.h: Update.
18915 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18916 reload_insi; use the "A" constraint for the scratch; handle AM33
18917 moves of sp to non-address registers.
18918
18919 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18920 (*movqi_internal): ... here.
18921 (*am33_movhi, *mn10300_movhi): Merge into...
18922 (*movhi_internal): ... here.
18923 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18924 as the source/destination of moves from/to SP.
18925 (movsf): Only allow for AM33-2.
18926 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18927 any integer constant constraint. Only allow for AM33-2. Tidy
18928 all of the alternative outputs.
18929 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18930 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18931 for MN103.
18932 (udivsi3, umodsi3): New patterns for MN103 only.
18933
18934 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18935
18936 * doc/tm.texi.in: Spell out that a lack of register class unions
18937 can lead to ICEs.
18938 * doc/tm.texi: Regenerate.
18939
18940 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18941
18942 PR rtl-optimization/47337
18943 * dce.c (check_argument_store): New function.
18944 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18945
18946 PR tree-optimization/47290
18947 * tree-eh.c (infinite_empty_loop_p): New function.
18948 (cleanup_empty_eh): Use it.
18949
18950 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18951
18952 PR target/46997
18953 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18954 (a64_expand_widen_sum): Ditto.
18955 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18956 (vec_extract_evenodd_help): Ditto.
18957 (vec_extract_evenv4hi): Ditto.
18958 (vec_extract_oddv4hi): Ditto.
18959 (vec_extract_evenv2si): Ditto.
18960 (vec_extract_oddv2si): Ditto.
18961 (vec_extract_evenv2sf): Ditto.
18962 (vec_extract_oddv2sf): Ditto.
18963 (vec_pack_trunc_v4hi: Ditto.
18964 (vec_pack_trunc_v2si): Ditto.
18965 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18966 (vec_interleave_highv8qi): Ditto.
18967 (mix1_r): Ditto.
18968 (vec_extract_oddv8qi): Ditto.
18969 (vec_interleave_lowv4hi): Ditto.
18970 (vec_interleave_highv4hi): Ditto.
18971 (vec_interleave_lowv2si): Ditto.
18972 (vec_interleave_highv2si): Ditto.
18973
18974 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18975
18976 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18977 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18978 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18979 (pa_c_mode_for_suffix): New.
18980 (TARGET_EXPAND_BUILTIN): Define.
18981 (TARGET_C_MODE_FOR_SUFFIX): Define.
18982 (pa_builtins): Define.
18983 (pa_init_builtins): Register __float128 type and init new support
18984 builtins.
18985 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18986 * config/pa/quadlib.c (_U_Qfcopysign): New.
18987
18988 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18989
18990 PR middle-end/46894
18991 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18992 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18993 are defined.
18994
18995 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18996
18997 PR tree-optimization/47179
18998 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18999 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19000
19001 2011-01-18 Richard Guenther <rguenther@suse.de>
19002
19003 PR rtl-optimization/47216
19004 * emit-rtl.c: Include tree-flow.h.
19005 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19006 of replicating it with different semantics.
19007 * Makefile.in (emit-rtl.o): Adjust.
19008
19009 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19010
19011 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19012 (cortex_a9_dp): Handle neon types correctly.
19013
19014 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19015
19016 PR rtl-optimization/47299
19017 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19018 subtarget. Use normal multiplication if both operands are constants.
19019 * expmed.c (expand_widening_mult): Don't try to optimize constant
19020 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19021 before using it.
19022
19023 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19024
19025 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19026 spacing after 'e.g.', typos, comma, hyphenation.
19027
19028 2011-01-17 Richard Henderson <rth@redhat.com>
19029
19030 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19031 (rx_restricted_mem_operand): New.
19032 (rx_shift_operand): Use register_operand.
19033 (rx_source_operand, rx_compare_operand): Likewise.
19034 * config/rx/rx.md (addsi3_flags): New expander.
19035 (adddi3): Rewrite as expander.
19036 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19037 (subsi3_flags): New expander.
19038 (subdi3): Rewrite as expander.
19039 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19040
19041 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19042 (rx_init_builtins): Remove sat builtin.
19043 (rx_expand_builtin): Likewise.
19044 * config/rx/rx.md (ssaddsi3): New.
19045 (*sat): Rename from sat. Represent the CC_REG input.
19046
19047 * config/rx/predicates.md (rshift_operator): New.
19048 * config/rx/rx.c (rx_expand_insv): Remove.
19049 * config/rx/rx-protos.h: Update.
19050 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19051 operand to the canonical position.
19052 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19053 (*bitclr, *bitclr_in_memory): Similarly.
19054 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19055 (insv): Retain the zero_extract in the expansion.
19056
19057 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19058 (bswaphi2, bitinvert, revw): Likewise.
19059
19060 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19061 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19062 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19063 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19064 (bitset, bitset_in_memory): Likewise.
19065 (bitinvert, bitinvert_in_memory): Likewise.
19066 (bitclr, bitclr_in_memory): Likewise.
19067 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19068 (rx_strend, rx_cmpstrn): Likewise.
19069 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19070 (bitop peep2 patterns): Remove.
19071
19072 * config/rx/rx.c (rx_match_ccmode): New.
19073 * config/rx/rx-protos.h: Update.
19074 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19075 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19076 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19077 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19078 (fix_truncsfsi2, floatsisf2): Likewise.
19079 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19080 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19081 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19082 (*subsi3_flags, *xorsi3_flags): New.
19083
19084 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19085
19086 * config/rx/rx.c (rx_print_operand): Remove workaround for
19087 unsplit comparison operations.
19088
19089 * config/rx/rx.md (movsicc): Split after reload.
19090 (*movsicc): Merge *movsieq and *movsine via match_operator.
19091 (*stcc): New pattern.
19092
19093 * config/rx/rx.c (rx_float_compare_mode): Remove.
19094 * config/rx/rx.h (rx_float_compare_mode): Remove.
19095 * config/rx/rx.md (cstoresi4): Split after reload.
19096 (*sccc): New pattern.
19097
19098 * config/rx/predicates.md (label_ref_operand): New.
19099 (rx_z_comparison_operator): New.
19100 (rx_zs_comparison_operator): New.
19101 (rx_fp_comparison_operator): New.
19102 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19103 Validate that the flags are set properly for the comparison.
19104 (rx_gen_cond_branch_template): Remove.
19105 (rx_cc_modes_compatible): Remove.
19106 (mode_from_flags): New.
19107 (flags_from_code): Rename from flags_needed_for_conditional.
19108 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19109 (rx_select_cc_mode): Likewise.
19110 (rx_split_fp_compare): New.
19111 (rx_split_cbranch): New.
19112 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19113 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19114 (*cbranchsf4): Similarly.
19115 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19116 match_operator and rx_split_cbranch.
19117 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19118 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19119 (*cmpsi): Rename from cmpsi.
19120 (*tstsi): Rename from tstsi.
19121 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19122 (*conditional_branch): Rename from conditional_branch.
19123 (*reveresed_conditional_branch): Remove.
19124 (b<code>): Remove expander.
19125 * config/rx/rx-protos.h: Update.
19126
19127 * config/rx/rx.c (rx_compare_redundant): Remove.
19128 * config/rx/rx.md (cmpsi): Don't use it.
19129 * config/rx/rx-protos.h: Update.
19130
19131 * config/rx/rx-modes.def (CC_F): New mode.
19132 * config/rx/rx.c (rx_select_cc_mode): New.
19133 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19134 * config/rx/rx-protos.h: Update.
19135
19136 2011-01-17 Richard Henderson <rth@redhat.com>
19137
19138 * except.c (dump_eh_tree): Fix stray ; after for statement.
19139
19140 2011-01-17 Richard Guenther <rguenther@suse.de>
19141
19142 PR tree-optimization/47313
19143 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19144 handling before copying the body. Properly deal with
19145 by-reference result in SSA form.
19146
19147 2011-01-17 Ian Lance Taylor <iant@google.com>
19148
19149 PR target/47219
19150 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19151 (struct_value_alias_set): Don't define.
19152 (sparc_option_override): Don't set sparc_sr_alias_set and
19153 struct_value_alias_set.
19154 (save_or_restore_regs): Use gen_frame_mem rather than calling
19155 set_mem_alias_set.
19156 (sparc_struct_value_rtx): Likewise.
19157
19158 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19159
19160 PR target/47318
19161 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19162 (_mm_maskstore_pd): Likewise.
19163 (_mm_maskload_ps): Likewise.
19164 (_mm_maskstore_ps): Likewise.
19165 (_mm256_maskload_pd): Change mask to __m256i.
19166 (_mm256_maskstore_pd): Likewise.
19167 (_mm256_maskload_ps): Likewise.
19168 (_mm256_maskstore_ps): Likewise.
19169
19170 * config/i386/i386-builtin-types.def: Updated.
19171 (ix86_expand_special_args_builtin): Likewise.
19172
19173 * config/i386/i386.c (bdesc_special_args): Update
19174 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19175 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19176 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19177 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19178
19179 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19180 Use <avxpermvecmode> on mask register.
19181 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19182
19183 2011-01-17 Olivier Hainque <hainque@adacore.com>
19184 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19185 Eric Botcazou <ebotcazou@adacore.com>
19186
19187 PR target/46655
19188 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19189 if <= USHRT_MAX in 32-bit mode.
19190
19191 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19192
19193 * doc/install.texi (Configuration, Specific): Wrap long
19194 lines in examples. Allow line wrapping in long options
19195 and URLs where beneficial for PDF output.
19196
19197 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19198
19199 * config/mips/mips.c (mips_classify_symbol): Don't return
19200 SYMBOL_PC_RELATIVE for nonlocal labels.
19201
19202 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19203
19204 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19205
19206 2011-01-15 Jan Hubicka <jh@suse.cz>
19207
19208 PR tree-optimization/47276
19209 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19210 declarations as needed.
19211
19212 2011-01-15 Martin Jambor <mjambor@suse.cz>
19213
19214 * common.opt (fdevirtualize): New flag.
19215 * doc/invoke.texi (Option Summary): Document it.
19216 * opts.c (default_options_table): Add devirtualize flag.
19217 * ipa-prop.c (detect_type_change): Return immediately if
19218 devirtualize flag is not set.
19219 (detect_type_change_ssa): Likewise.
19220 (compute_known_type_jump_func): Likewise.
19221 (ipa_analyze_virtual_call_uses): Likewise.
19222
19223 2011-01-14 Martin Jambor <mjambor@suse.cz>
19224
19225 PR tree-optimization/45934
19226 PR tree-optimization/46302
19227 * ipa-prop.c (type_change_info): New type.
19228 (stmt_may_be_vtbl_ptr_store): New function.
19229 (check_stmt_for_type_change): Likewise.
19230 (detect_type_change): Likewise.
19231 (detect_type_change_ssa): Likewise.
19232 (compute_complex_assign_jump_func): Check for dynamic type change.
19233 (compute_complex_ancestor_jump_func): Likewise.
19234 (compute_known_type_jump_func): Likewise.
19235 (compute_scalar_jump_functions): Likewise.
19236 (ipa_analyze_virtual_call_uses): Likewise.
19237 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19238
19239 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19240
19241 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19242 * config/i386/i386.opt (msse5): New Alias.
19243
19244 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19245
19246 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19247 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19248 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19249 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19250
19251 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19252
19253 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19254 -mcpu options.
19255 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19256 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19257 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19258 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19259 Likewise.
19260 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19261
19262 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19263
19264 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19265
19266 2011-01-14 Mike Stump <mikestump@comcast.net>
19267
19268 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19269 * config/fr30/fr30.md: Likweise
19270 (movsi_push): Likewise.
19271 (movsi_pop): Likewise.
19272 (enter_func): Likewise.
19273 * config/moxie/moxie.md (movsi_push): Likewise.
19274 (movsi_pop): Likewise.
19275
19276 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19277
19278 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19279 %{no_archive} %{exact_version}.
19280 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19281 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19282 %{no_archive} %{exact_version}.
19283 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19284 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19285 * config/mips/vxworks.h: Likewise.
19286
19287 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19288
19289 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19290
19291 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19292
19293 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19294 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19295
19296 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19297
19298 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19299 -nodefaultlib.
19300
19301 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19302
19303 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19304 for mcpu not cpu.
19305 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19306 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19307 not cpu.
19308 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19309 Don't handle -shlib.
19310
19311 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19312
19313 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19314 (CC1_SPEC): Don't handle -profile.
19315
19316 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19317
19318 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19319 * config/mips/mips.h (CC1_SPEC): Likewise.
19320
19321 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19322
19323 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19324 * config/mips/mips.h (CC1_SPEC): Likewise.
19325
19326 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19327
19328 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19329 * config/m32r/linux.h (LINK_SPEC): Likewise.
19330 * config/mips/linux.h (LINK_SPEC): Likewise.
19331 * config/mips/linux64.h (LINK_SPEC): Likewise.
19332 * config/sparc/linux.h (LINK_SPEC): Likewise.
19333 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19334 LINK_SPEC): Likewise.
19335 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19336
19337 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19338
19339 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19340 %{version:-v}.
19341 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19342
19343 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19344
19345 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19346 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19347
19348 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19349
19350 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19351
19352 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19353
19354 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19355 supports -Bstatic/-Bdynamic.
19356 * configure: Regenerate.
19357
19358 2011-01-14 Jan Hubicka <jh@suse.cz>
19359 Jack Howarth <howarth@bromo.med.uc.edu>
19360
19361 PR target/46037
19362 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19363 when checking debug_info_level. Test write_symbols instead of
19364 debug_hooks->var_location when setting flag_var_tracking_uninit.
19365
19366 2011-01-14 Richard Guenther <rguenther@suse.de>
19367
19368 PR tree-optimization/47179
19369 * target.def (ref_may_alias_errno): New target hook.
19370 * targhooks.h (default_ref_may_alias_errno): Declare.
19371 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19372 (default_ref_may_alias_errno): New function.
19373 * target.h (struct ao_ref_s): Declare.
19374 * tree-ssa-alias.c: Include target.h.
19375 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19376 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19377 (targhooks.o): Likewise.
19378 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19379 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19380
19381 2011-01-14 Richard Guenther <rguenther@suse.de>
19382
19383 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19384
19385 2011-01-14 Richard Guenther <rguenther@suse.de>
19386
19387 PR tree-optimization/47280
19388 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19389 return CFG changes.
19390 (tree_ssa_forward_propagate_single_use_vars): Deal with
19391 CFG changes from associate_plusminus.
19392
19393 2011-01-14 Richard Guenther <rguenther@suse.de>
19394
19395 PR middle-end/47281
19396 Revert
19397 2011-01-11 Richard Guenther <rguenther@suse.de>
19398
19399 PR tree-optimization/46076
19400 * tree-ssa.c (useless_type_conversion_p): Conversions from
19401 unprototyped to empty argument list function types are useless.
19402
19403 2011-01-14 Richard Guenther <rguenther@suse.de>
19404
19405 PR tree-optimization/47286
19406 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19407
19408 2011-01-14 Martin Jambor <mjambor@suse.cz>
19409
19410 PR middle-end/46823
19411 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19412
19413 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19414
19415 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19416 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19417 * config/xtensa/xtensa.c (xtensa_libcall_value,
19418 xtensa_function_value_regno_p): New functions.
19419 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19420
19421 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19422
19423 PR c++/47213
19424 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19425 PE specific hook.
19426 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19427 New function prototype.
19428 * config/i386/winnt.c (i386_pe_assemble_visibility):
19429 Warn only if attribute was specified by user.
19430
19431 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19432
19433 PR target/47251
19434 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19435 floating point.
19436 (floatunsdidf2_fcfidu): Ditto.
19437
19438 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19439
19440 * config/s390/s390.c (print_operand_address): Replace 'error' with
19441 'output_operand_lossage'.
19442 (print_operand): Likewise.
19443
19444 2011-01-13 Jeff Law <law@redhat.com>
19445
19446 PR rtl-optimization/39077
19447 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19448 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19449 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19450 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19451 * gcse.c (prune_insertions_deletions): New function.
19452 (compute_pre_data): Use it.
19453
19454 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19455
19456 PR debug/PR46973
19457 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19458 static function.
19459 (prune_unused_types_mark): Use it.
19460
19461 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19462
19463 PR rtl-optimization/45352
19464 * sel-sched.c: Update copyright years.
19465 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19466 in the advancing loop when we have issued issue_rate insns.
19467
19468 2011-01-12 Richard Henderson <rth@redhat.com>
19469
19470 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19471 (TARGET_MD_ASM_CLOBBERS): New.
19472
19473 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19474 (TARGET_DELEGITIMIZE_ADDRESS): New.
19475
19476 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19477 (clzsi2, *bsch): New patterns.
19478
19479 * config/mn10300/mn10300.md (INT): New mode iterator.
19480 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19481
19482 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19483 flag_split_wide_types.
19484
19485 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19486 (mn10300_trampoline_init): Rewrite without a template, an immediate
19487 load and a direct branch.
19488 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19489
19490 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19491
19492 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19493 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19494 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19495 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19496
19497 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19498
19499 PR debug/47209
19500 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19501 of type.
19502
19503 2011-01-12 Jan Hubicka <jh@suse.cz>
19504
19505 PR driver/47244
19506 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19507 (PLUGIN_COND_CLOSE): New macro.
19508 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19509
19510 2011-01-12 Richard Guenther <rguenther@suse.de>
19511
19512 PR lto/47259
19513 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19514 register variables in a MEM_REF.
19515
19516 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19517
19518 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19519 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19520 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19521 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19522 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19523 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19524 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19525 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19526 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19527 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19528 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19529 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19530 * config/gnu-user.h: New. Copied from linux.h.
19531 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19532 GNU_USER_TARGET_STARTFILE_SPEC.
19533 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19534 GNU_USER_TARGET_ENDFILE_SPEC.
19535 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19536 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19537 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19538 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19539 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19540 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19541 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19542 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19543 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19544 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19545 * config/arm/linux-eabi.h (CC1_SPEC): Use
19546 GNU_USER_TARGET_CC1_SPEC.
19547 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19548 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19549 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19550 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19551 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19552 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19553 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19554 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19555
19556 2011-01-12 Richard Guenther <rguenther@suse.de>
19557
19558 PR other/46946
19559 * doc/invoke.texi (ffast-math): Document it is turned on
19560 with -Ofast.
19561
19562 2011-01-12 Jan Hubicka <jh@suse.cz>
19563
19564 PR tree-optimization/47233
19565 * opts.c (common_handle_option): Disable ipa-reference with profile
19566 feedback.
19567
19568 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19569
19570 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19571 error message.
19572
19573 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19574
19575 * c-parser.c (c_lex_one_token): Updated and reindented some
19576 comments. No changes in code.
19577
19578 2011-01-11 Ian Lance Taylor <iant@google.com>
19579
19580 * godump.c (go_output_var): Don't output the variable if there is
19581 already a type with the same name.
19582
19583 2011-01-11 Ian Lance Taylor <iant@google.com>
19584
19585 * godump.c (go_format_type): Don't generate float80.
19586
19587 2011-01-11 Richard Henderson <rth@redhat.com>
19588
19589 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19590 declaration. Rewrite for both speed and size.
19591 (mn10300_address_cost_1): Remove.
19592 (mn10300_register_move_cost): New.
19593 (mn10300_memory_move_cost): New.
19594 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19595 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19596 extensions, shifts, BSWAP, CLZ.
19597 (mn10300_wide_const_load_uses_clr): Remove.
19598 (TARGET_REGISTER_MOVE_COST): New.
19599 (TARGET_MEMORY_MOVE_COST): New.
19600 * config/mn10300/mn10300-protos.h: Update.
19601 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19602
19603 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19604 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19605 * config/mn10300/mn10300-protos.h: Update.
19606 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19607 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19608 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19609 (*test_int_bitfield, *test_byte_bitfield): Remove.
19610 (*bit_test, *subreg_bit_test): Remove.
19611 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19612
19613 * config/mn10300/constraints.md ("c"): Rename from "A".
19614 ("A", "D"): New constraint letters.
19615 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19616 (fmssf4, fnmasf4, fnmssf4): Likewise.
19617
19618 * config/mn10300/mn10300.md (isa): New attribute.
19619 (enabled): New attribute.
19620
19621 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19622 (abssf2, negsf2): Define only for hardware fp.
19623 (sqrtsf2): Reformat.
19624 (addsf3, subsf3, mulsf3): Merge expander and insn.
19625
19626 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19627 (DEBUGGER_AUTO_OFFSET): Remove.
19628 (DEBUGGER_ARG_OFFSET): Remove.
19629
19630 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19631 Emit register stores with the same offsets as the hardware.
19632 (mn10300_store_multiple_operation): Don't check that the register
19633 save offsets are monotonic.
19634 * config/mn10300/mn10300-protos.h: Update.
19635
19636 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19637
19638 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19639 in terms of the value on the stack, not the MDR register.
19640
19641 2011-01-11 Jan Hubicka <jh@suse.cz>
19642
19643 PR lto/45721
19644 PR lto/45375
19645 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19646 (symbol_alias_set_destroy, symbol_alias_set_contains,
19647 propagate_aliases_backward): Declare.
19648 * lto-streamer-out.c (struct sets): New sturcture.
19649 (trivally_defined_alias): New function.
19650 (output_alias_pair_p): Rewrite.
19651 (output_unreferenced_globals): Fix output of alias pairs.
19652 (produce_symtab): Likewise.
19653 * ipa.c (function_and_variable_visibility): Set weak alias destination
19654 as needed in lto.
19655 * varasm.c (symbol_alias_set_t): Remove.
19656 (symbol_alias_set_destroy): Export.
19657 (propagate_aliases_forward, propagate_aliases_backward): New functions
19658 based on ...
19659 (compute_visible_aliases): ... this one; remove.
19660 (trivially_visible_alias): New
19661 (trivially_defined_alias): New.
19662 (remove_unreachable_alias_pairs): Rewrite.
19663 (finish_aliases_1): Reorganize code checking if alias is defined.
19664 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19665 in LTO mode.
19666
19667 2011-01-11 Richard Guenther <rguenther@suse.de>
19668
19669 PR tree-optimization/46076
19670 * tree-ssa.c (useless_type_conversion_p): Conversions from
19671 unprototyped to empty argument list function types are useless.
19672
19673 2011-01-11 Richard Guenther <rguenther@suse.de>
19674
19675 PR middle-end/45235
19676 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19677 volatile MEMs as MEM_READONLY_P.
19678
19679 2011-01-11 Richard Guenther <rguenther@suse.de>
19680
19681 PR tree-optimization/47239
19682 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19683
19684 2011-01-11 Jeff Law <law@redhat.com>
19685
19686 PR tree-optimization/47086
19687 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19688 IVs from statements that might throw.
19689
19690 2011-01-10 Jan Hubicka <jh@suse.cz>
19691
19692 PR lto/45375
19693 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19694
19695 2011-01-10 Jan Hubicka <jh@suse.cz>
19696
19697 PR lto/45375
19698 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19699 when correcting profile.
19700
19701 2011-01-10 Jan Hubicka <jh@suse.cz>
19702
19703 PR lto/46083
19704 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19705 DECL_FINI_PRIORITY.
19706 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19707 Restore DECL_FINI_PRIORITY.
19708
19709 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19710
19711 * doc/gimple.texi: Fix quoting of multi-word return values in
19712 @deftypefn statements. Ensure presence of return value. Wrap
19713 overlong @deftypefn lines.
19714 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19715 descriptions of removed functions.
19716 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19717 of multi-word return value in @deftypefn statement.
19718
19719 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19720
19721 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19722 (Conditional Expressions, Logical Operators)
19723 (Statement and operand traversals): Do not indent smallexample
19724 code. Fix duplicate function argument in example.
19725
19726 2011-01-10 Jeff Law <law@redhat.com>
19727
19728 PR tree-optimization/47141
19729 * ipa-split.c (split_function): Handle case where we are
19730 returning a value and the return block has a virtual operand phi.
19731
19732 2011-01-10 Jan Hubicka <jh@suse.cz>
19733
19734 PR tree-optimization/47234
19735 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19736 (pass_feedback_split_functions): Declare.
19737 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19738 tree-profile.
19739 * ipa-split.c (gate_split_functions): Update comments; disable
19740 split-functions for profile_arc_flag and branch_probabilities.
19741 (gate_feedback_split_functions): New function.
19742 (execute_feedback_split_functions): New function.
19743 (pass_feedback_split_functions): New global var.
19744
19745 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19746
19747 PR lto/46760
19748 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19749 calling gimple_call_set_cannot_inline.
19750
19751 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19752
19753 * config/darwin-sections.def: Remove unused section.
19754
19755 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19756
19757 PR c++/47218
19758 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19759
19760 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19761
19762 PR objc/47232
19763 * c-parser.c (c_parser_declaration_or_fndef): Improved
19764 error message.
19765
19766 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19767
19768 * config/i386/winnt.c (i386_pe_start_function): Make sure
19769 to switch back to function's section.
19770
19771 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19772
19773 PR gcc/46902
19774 PR testsuite/46912
19775 * plugin.c: Move include of dlfcn.h from here...
19776 * system.h: ... to here.
19777
19778 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19779
19780 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19781 file name.
19782 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19783 two extra empty pages in PDF output.
19784
19785 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19786
19787 PR objc/47078
19788 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19789 for error recovery purposes behave as if it was not specified so
19790 that the default type is usd.
19791
19792 2011-01-07 Jan Hubicka <jh@suse.cz>
19793
19794 PR tree-optmization/46469
19795 * ipa.c (function_and_variable_visibility): Clear needed flags on
19796 nodes with external decls; handle weakrefs merging correctly.
19797
19798 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19799
19800 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19801 not false.
19802
19803 2011-01-07 Jan Hubicka <jh@suse.cz>
19804
19805 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19806 and no longer claim that gold is required for linker plugin.
19807 * configure: Regenerate.
19808 * gcc.c (PLUGIN_COND): New macro.
19809 (LINK_COMMAND_SPEC): Use it.
19810 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19811 * config.in (HAVE_LTO_PLUGIN): New.
19812 * configure.ac (--with-lto-plugin): New parameter; autodetect
19813 HAVE_LTO_PLUGIN.
19814
19815 2011-01-07 Jan Hubicka <jh@suse.cz>
19816
19817 PR tree-optimization/46367
19818 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19819 when we can update original.
19820 (cgraph_mark_inline_edge): Sanity check.
19821 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19822
19823 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19824
19825 * config/spu/spu.h (ASM_COMMENT_START): Define.
19826
19827 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19828
19829 PR driver/42445
19830 * gcc.c (%>S): New.
19831 (SWITCH_KEEP_FOR_GCC): Likewise.
19832 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19833 (do_spec_1): Handle "%>".
19834
19835 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19836
19837 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19838
19839 PR target/47201
19840 * config/i386/i386.c (ix86_delegitimize_address): If
19841 simplify_gen_subreg fails, return orig_x.
19842
19843 PR bootstrap/47187
19844 * value-prof.c (gimple_stringop_fixed_value): Handle
19845 lhs of the call properly.
19846
19847 2011-01-07 Jan Hubicka <jh@suse.cz>
19848
19849 PR lto/45375
19850 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19851
19852 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19853
19854 * target.def (function_switched_text_sections): New hook.
19855 * doc/tm.texi: Regenerated.
19856 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19857 * final.c (default_function_switched_text_sections): New.
19858 (final_scan_insn): Call function_switched_text_sections when a
19859 mid-function section change occurs.
19860 * output.h (default_function_switched_text_sections): Declare.
19861 * config/darwin-protos.h (darwin_function_switched_text_sections):
19862 Likewise.
19863 * config/darwin.c (darwin_function_switched_text_sections): New.
19864 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19865
19866 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19867
19868 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19869 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19870 the secondary code fragment when outputting for DWARF == 2.
19871
19872 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19873
19874 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19875 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19876 Remove.
19877 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19878 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19879
19880 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19881
19882 PR debug/46704
19883 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19884 when it is not empty.
19885
19886 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19887
19888 Bobcat Enablement
19889 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19890 (case ${target}): Add btver1.
19891 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19892 -march=native recognize btver1 processors.
19893 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19894 btver1 def_and_undef
19895 * config/i386/i386.c (struct processor_costs btver1_cost): New
19896 btver1 cost table.
19897 (m_BTVER1): New definition.
19898 (m_AMD_MULTIPLE): Includes m_BTVER1.
19899 (initial_ix86_tune_features): Add btver1 tune.
19900 (processor_target_table): Add btver1 entry.
19901 (static const char *const cpu_names): Add btver1 entry.
19902 (software_prefetching_beneficial_p): Add btver1.
19903 (ix86_option_override_internal): Add btver1 instruction sets.
19904 (ix86_issue_rate): Add btver1.
19905 (ix86_adjust_cost): Add btver1.
19906 * config/i386/i386.h (TARGET_BTVER1): New definition.
19907 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19908 (enum processor_type): Add PROCESSOR_BTVER1.
19909 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19910
19911 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19912
19913 PR target/43309
19914 * config/i386/i386.c (legitimize_tls_address)
19915 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19916 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19917 (tls_initial_exec_64_sun): New pattern.
19918
19919 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19920
19921 * doc/invoke.texi (Overall Options): Improve wording and markup
19922 of the description of -wrapper.
19923
19924 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19925
19926 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19927 rdynamic, threads): New Driver options.
19928
19929 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19930
19931 PR target/38118
19932 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19933 if coming from .tdata.
19934 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19935
19936 2011-01-06 Jan Hubicka <jh@suse.cz>
19937
19938 PR lto/47188
19939 * collect2.c (main): Do not enable LTOmode when plugin is active.
19940
19941 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19942
19943 PR other/45915
19944 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19945 --version output if supported.
19946 * configure: Regenerate.
19947
19948 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19949
19950 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19951 Driver options.
19952
19953 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19954
19955 PR c/47150
19956 * c-convert.c (convert): When converting a complex expression
19957 other than COMPLEX_EXPR to a different complex type, ensure
19958 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19959 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19960 when converting COMPLEX_TYPE.
19961
19962 2011-01-06 Ira Rosen <irar@il.ibm.com>
19963
19964 PR tree-optimization/47139
19965 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19966 only the last reduction value is used outside the loop. Update
19967 documentation.
19968
19969 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19970
19971 * config/rtems.opt: New.
19972 * config.gcc (*-*-rtems*): Use rtems.opt.
19973
19974 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19975
19976 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19977 processors do not support 3DNow instructions.
19978
19979 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19980
19981 * config/spu/spu.c (spu_option_override): Set parameter
19982 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19983
19984 2011-01-05 Jan Hubicka <jh@suse.cz>
19985
19986 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19987 at the command line.
19988
19989 2011-01-05 Martin Jambor <mjambor@suse.cz>
19990
19991 PR lto/47162
19992 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19993 deltas on streamed outgoing edges.
19994 (output_node_opt_summary): Output info for outgoing edges only when
19995 the node is in new parameter set.
19996 (output_cgraph_opt_summary): New parameter set, passed to the two
19997 aforementioned functions. Update its forward declaration and its
19998 callee too.
19999
20000 2011-01-05 Tom Tromey <tromey@redhat.com>
20001
20002 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20003 operator to c_finish_omp_atomic.
20004 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20005 (build_unary_op): Update.
20006 (build_modify_expr): Update.
20007 (build_asm_expr): Update.
20008
20009 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20010
20011 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20012 newly inserted insns.
20013 (pad_bb): Likewise.
20014 (spu_emit_branch_hint): Likewise.
20015 (insert_hbrp_for_ilb_runout): Likewise.
20016 (spu_machine_dependent_reorg): Call df_finish_pass after
20017 schedule_insns returns.
20018
20019 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20020
20021 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20022
20023 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20024
20025 PR tree-optimization/47005
20026 * tree-sra.c (struct access): Add 'non_addressable' bit.
20027 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20028 (decide_one_param_reduction): Return 0 if the parameter is passed by
20029 reference and one of the accesses in the group is non_addressable.
20030
20031 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20032
20033 PR tree-optimization/47056
20034 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20035 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20036 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20037
20038 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20039
20040 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20041 initializer. Skip view conversions from aggregate types.
20042
20043 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
20044
20045 PR bootstrap/47055
20046 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20047
20048 2011-01-04 Philipp Thomas <pth@suse.de>
20049
20050 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20051 obvious typo.
20052
20053 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20054
20055 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20056 on empty epilogue sequences.
20057
20058 2011-01-04 Joseph Myers <joseph@codesourcery.com>
20059
20060 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20061 non-static): New Driver options.
20062
20063 2011-01-04 Jie Zhang <jie@codesourcery.com>
20064
20065 PR driver/47137
20066 * gcc.c (default_compilers[]): Set combinable field to 0
20067 for all assembly languages.
20068
20069 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20070
20071 * config/mips/loongson3a.md: New file.
20072 * config/mips/mips.md: Include loongson3a.md.
20073 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20074 TUNE_LOONGSON_3A.
20075
20076 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20077
20078 PR middle-end/47017
20079 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20080 instead of convert_memory_address_addr_space on the base expression.
20081
20082 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20083
20084 * config/spu/spu.c (spu_option_override): Update error text
20085 for bad -march= / -mtune= values.
20086
20087 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20088
20089 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20090 if branch-hint optimization will be performed.
20091
20092 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20093
20094 PR tree-optimization/47148
20095 * ipa-split.c (split_function): Convert arguments to
20096 DECL_ARG_TYPE if possible.
20097
20098 PR tree-optimization/47155
20099 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20100 when computing uns.
20101
20102 PR rtl-optimization/47157
20103 * combine.c (try_combine): If undobuf.other_insn becomes
20104 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20105 and set *new_direct_jump_p too.
20106
20107 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20108
20109 PR tree-optimization/47021
20110 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20111
20112 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20113
20114 * gcc.c (process_command): Update copyright notice dates.
20115 * gcov.c (print_version): Likewise.
20116 * gcov-dump.c (print_version): Likewise.
20117 * mips-tfile.c (main): Likewise.
20118 * mips-tdump.c (main): Likewise.
20119
20120 2011-01-03 Martin Jambor <mjambor@suse.cz>
20121
20122 PR tree-optimization/46801
20123 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20124 aggregate fields start at byte boundary instead of the bit-field flag.
20125
20126 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20127
20128 PR driver/47137
20129 * gcc.c (main): Revert revision 168407.
20130
20131 2011-01-03 Martin Jambor <mjambor@suse.cz>
20132
20133 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20134
20135 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20136
20137 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20138 vector optab to expand vector/scalar shift, update gimple to vector.
20139
20140 2011-01-03 Martin Jambor <mjambor@suse.cz>
20141
20142 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20143 a thunk.
20144
20145 2011-01-03 Martin Jambor <mjambor@suse.cz>
20146
20147 PR tree-optimization/46984
20148 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20149 HOST_WIDE_INT.
20150 (cgraph_create_indirect_edge): Fixed line length.
20151 (cgraph_indirect_call_info): Declare.
20152 (cgraph_make_edge_direct) Update declaration.
20153 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20154 (cgraph_create_indirect_edge): Use it.
20155 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20156 callees.
20157 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20158 the new thunk_delta representation.
20159 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20160 HOST_WIDE_INT.
20161 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20162 (ipa_read_indirect_edge_info): Likewise.
20163 * lto-cgraph.c (output_edge_opt_summary): New function.
20164 (output_node_opt_summary): Call it on all outgoing edges.
20165 (input_edge_opt_summary): New function.
20166 (input_node_opt_summary): Call it on all outgoing edges.
20167
20168 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20169
20170 PR driver/47137
20171 * gcc.c (main): Don't check have_o when settting combine_inputs.
20172
20173 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20174
20175 * regrename.c: Add general comment describing the pass.
20176 (struct du_head): Remove 'length' field.
20177 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20178 (regrename_optimize): Do not sort chains. Rework comments, add others.
20179 Force renaming to the preferred class (if any) in the first pass and do
20180 not consider registers that belong to it in the second pass.
20181 (create_new_chain): Do not set 'length' field.
20182 (scan_rtx_reg): Likewise.
20183
20184 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20185
20186 PR tree-optimization/47140
20187 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20188 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20189 to bit_value_binop.
20190
20191 PR rtl-optimization/47028
20192 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20193 parm_birth_insn instead of at the beginning of first bb.
20194
20195 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20196
20197 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20198 Remove the word "see" before "@pxref".
20199 * doc/rtl.texi: Remove the word "see" before "@pxref".
20200
20201 2011-01-01 Jan Hubicka <jh@suse.cz>
20202
20203 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20204 memory.
20205
20206 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20207
20208 PR target/38662
20209 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20210
20211 \f
20212 Copyright (C) 2011 Free Software Foundation, Inc.
20213
20214 Copying and distribution of this file, with or without modification,
20215 are permitted in any medium without royalty provided the copyright
20216 notice and this notice are preserved.
This page took 1.019938 seconds and 5 git commands to generate.